/* Namie ir Sode – žurnalas apie namus, gamtą ir sodą */
:root {
    --rose: #d8215e;
    --rose-dk: #b3134a;
    --leaf: #2e5a3c;
    --leaf-dk: #234631;
    --ink: #1f2b23;
    --muted: #5d6a60;
    --sage: #eef3ea;
    --line: #d9e2d4;
    --white: #fff;
    --serif: "Literata", Georgia, serif;
    --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --wide: 1180px;
}
* { box-sizing: border-box; }
/* display: flex klasėse neturi perrašyti hidden atributo */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.6 var(--sans); }
/* footeris visada ekrano apačioje: main užima likusį aukštį */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--rose-dk); text-underline-offset: 3px; }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.2; color: var(--ink); }
.muted { color: var(--muted); font-size: 15px; }
.lead { font-size: 19px; }
.err { color: #b42318; }

/* ---------- viršutinė juosta ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.bar-in { max-width: var(--wide); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 28px; }
.bar-logo img { display: block; width: 150px; height: auto; }
.nav { flex: 1; }
.nav-list { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a, .nav-btn { padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 600 16px var(--sans); background: none; border: 0; cursor: pointer; }
.nav-item > a:hover, .nav-btn:hover { background: var(--sage); color: var(--leaf); }
.nav-item > a[aria-current] { color: var(--leaf); box-shadow: inset 0 -3px 0 var(--leaf); border-radius: 0; }
.nav-btn::after, .sub-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.sub-toggle { margin-left: -8px; padding: 8px 8px; background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 8px; }
.sub-toggle::after { margin-left: 0; }
.sub-toggle:hover { background: var(--sage); }
.sub { display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 230px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px -12px rgba(31,43,35,.35); }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.sub a:hover, .sub a[aria-current] { background: var(--sage); color: var(--leaf); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: block; }
.has-sub.open > .sub-toggle::after, .has-sub.open > .nav-btn::after { transform: translateY(1px) rotate(-135deg); }
.userbox { display: flex; align-items: center; gap: 12px; font-size: 15px; white-space: nowrap; min-height: 40px; }
.userbox .who { text-align: right; line-height: 1.3; }
.userbox .who small { display: block; color: var(--muted); }
.userbox .who small.on { color: var(--leaf); font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--rose-dk); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- mygtukai ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: 2px solid var(--rose); border-radius: 999px; background: var(--rose); color: #fff; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--rose-dk); border-color: var(--rose-dk); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 18px; }
.btn-ghost { background: transparent; color: var(--leaf); border-color: var(--leaf); }
.btn-ghost:hover { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.btn-leaf { background: var(--leaf); border-color: var(--leaf); }
.btn-leaf:hover { background: var(--leaf-dk); border-color: var(--leaf-dk); }
.btn-sm { padding: 7px 16px; font-size: 15px; }

/* ---------- hero: naujausias numeris ant ankstesnių ---------- */
.hero { background: var(--sage); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { max-width: var(--wide); margin: 0 auto; padding: 56px 24px 64px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.stack-covers { position: relative; display: block; aspect-ratio: 860 / 1200; width: min(100%, 400px); margin-left: 40px; }
.sc { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 2px rgba(31,43,35,.2), 0 18px 40px -12px rgba(31,43,35,.45); }
.sc-3 { transform: translate(-46px, 14px) rotate(-7deg); filter: saturate(.75) brightness(.96); }
.sc-2 { transform: translate(-22px, 6px) rotate(-3.5deg); filter: saturate(.85); }
.sc-1 { transform: rotate(1deg); transition: transform .35s ease; }
.stack-covers:hover .sc-1 { transform: rotate(0) translateY(-6px); }
.hero-when { margin: 0 0 8px; color: var(--leaf); font-weight: 600; }
.hero-title { margin: 0 0 16px; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.01em; }
.hero-title a { color: inherit; text-decoration: none; }
.hero-lead { margin: 0 0 28px; max-width: 34em; font-size: 19px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-paper { margin: 22px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- archyvas ---------- */
.archive { max-width: var(--wide); margin: 0 auto; padding: 48px 24px 24px; }
.archive-title { font-size: 30px; margin: 0 0 8px; }
.year { display: flex; align-items: center; gap: 16px; margin: 36px 0 18px; font-size: 22px; color: var(--leaf); }
.year::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
.rack-item { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.rack-cover { display: block; aspect-ratio: 860 / 1200; background: var(--sage); border-radius: 3px; overflow: hidden; box-shadow: 0 1px 2px rgba(31,43,35,.15), 0 10px 24px -14px rgba(31,43,35,.5); }
.rack-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rack-title { margin-top: 12px; font: 650 17px/1.3 var(--serif); }
.rack-item:hover .rack-title { color: var(--rose-dk); text-decoration: underline; text-underline-offset: 3px; }
.rack-date { font-size: 14px; color: var(--muted); }

/* ---------- naujienos (RSS) ---------- */
.news { max-width: var(--wide); margin: 0 auto; padding: 48px 24px 0; }
.news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 20px; }
.news-head h2 { font-size: 30px; margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.news-item { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.news-img { display: block; aspect-ratio: 3 / 2; background: var(--sage); border-radius: 3px; overflow: hidden; }
.news-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-title { margin-top: 10px; font: 650 16px/1.35 var(--serif); }
.news-item:hover .news-title { color: var(--rose-dk); text-decoration: underline; text-underline-offset: 3px; }
.news-date { font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .news { padding: 36px 16px 0; } .news-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; } .news-title { font-size: 15px; } }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 48px 0 24px; }
.pager a, .pager b, .pager span { min-width: 44px; padding: 9px 14px; text-align: center; border-radius: 999px; font-weight: 600; }
.pager a { color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.pager a:hover { border-color: var(--leaf); color: var(--leaf); }
.pager b { background: var(--leaf); color: #fff; }
.pager span { color: var(--muted); min-width: auto; padding: 0 2px; }

.covers { max-width: var(--wide); margin: 0 auto; padding: 0 24px 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }

/* ---------- numerio puslapis ---------- */
.issue-page { max-width: var(--wide); margin: 0 auto; padding: 48px 24px 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.issue-cover img { display: block; width: 100%; border-radius: 3px; box-shadow: 0 1px 2px rgba(31,43,35,.2), 0 24px 50px -18px rgba(31,43,35,.5); }
.issue-side { position: sticky; top: 100px; }
.issue-title { margin: 0 0 28px; font-size: clamp(30px, 3.6vw, 44px); }
.issue-box { padding: 28px; background: var(--sage); border-radius: 14px; }
.issue-box .lead { margin: 0 0 18px; }
.issue-box .btn { width: 100%; }
.issue-box .btn + .btn { margin-top: 12px; }
.issue-box .note { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.pass { margin-top: 14px; font-size: 15px; }
.pass code { font: 700 17px/1 var(--sans); letter-spacing: .02em; background: #fff; padding: 4px 10px; border-radius: 6px; border: 1px dashed var(--leaf); color: var(--leaf); }
.back { margin-top: 28px; }

/* ---------- tekstiniai puslapiai ---------- */
.post, .article { max-width: 960px; margin: 0 auto; padding: 48px 24px 64px; }
.post.narrow { max-width: 960px; }
.post.center { text-align: center; }
.h1, .article-title { font-size: clamp(30px, 3.6vw, 42px); margin: 0 0 22px; }
.body { overflow-wrap: break-word; }
.body img { height: auto; border-radius: 3px; }
.body h2 { font-size: 26px; margin-top: 1.6em; }
.body h3 { font-size: 19px; margin-top: 1.3em; }
.body li { margin-bottom: .35em; }
.tbl-plain { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1em 0; }
.tbl-plain th, .tbl-plain td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.tbl-plain th { background: var(--sage); }
@media (max-width: 680px) { .tbl-plain { display: block; overflow-x: auto; } .tbl-plain th, .tbl-plain td { min-width: 140px; } }
.gallery { display: block; margin: 16px auto; border-radius: 3px; }

/* ---------- formos ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.stack label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 16px; }
.stack label.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--leaf); }
.stack input, .stack select, .stack textarea { width: 100%; padding: 12px 14px; font: 17px var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #b9c5b4; border-radius: 10px; }
.stack input:focus, .stack select:focus, .stack textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(46,90,60,.18); }
/* suma: tamsi juosta - kairėje kas pasirinkta, dešinėje bendra kaina */
.sum { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; background: var(--leaf); color: #fff; border-radius: 14px; }
.sum-l { display: flex; flex-direction: column; min-width: 0; }
.sum-l span { font-size: 13px; color: #b9cdbb; }
.sum-l b { font-weight: 600; font-size: 16px; }
.sum-r { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.sum-r b { font: 650 34px/1.05 var(--serif); }
.sum-r small { font-size: 12px; color: #b9cdbb; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
details summary { cursor: pointer; color: var(--leaf); font-weight: 600; }
details[open] summary { margin-bottom: 12px; }
.notice { padding: 20px 22px; background: #fff6f8; border: 1px solid #f3c4d3; border-radius: 12px; }

/* ---------- dialogas ---------- */
.dlg { border: 0; border-radius: 16px; padding: 28px 30px 30px; width: min(420px, 92vw); box-shadow: 0 24px 60px rgba(31,43,35,.35); }
.dlg::backdrop { background: rgba(31,43,35,.55); }
.dlg h2 { margin: 0 0 4px; font-size: 26px; }
.dlg-close { position: absolute; top: 10px; right: 12px; }
.dlg-close button { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }
.dlg-links { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; font-size: 15px; }
.msg:empty { display: none; }
.msg { margin: 0; color: #b42318; }

/* ---------- skelbimo forma ---------- */
.sk-form .fs, .pay-form .fs { margin: 0; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 14px; }
.sk-form legend, .pay-form .fs legend { padding: 0 8px; font: 650 19px var(--serif); color: var(--leaf); }
.sk-count { margin: -6px 0 0; }
.choice { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }

/* pasirinkimo kortelės (stilius, numerių kiekis): radio paslėptas, bet pasiekiamas klaviatūra */
/* žurnalų pasirinkimas ir kiekvieno žurnalo kainos */
.jr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stack label.jr { position: relative; flex-direction: column; gap: 8px; padding: 10px 10px 12px; border: 1.5px solid #c9d3c4; border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.stack label.jr:hover { border-color: var(--leaf); }
.jr input { position: absolute; opacity: 0; pointer-events: none; }
.stack label.jr.on { border-color: var(--leaf); background: var(--sage); box-shadow: 0 0 0 1px var(--leaf); }
.jr.on::after { content: "✓"; position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--leaf); color: #fff; font-weight: 700; font-size: 14px; }
.stack label.jr:has(input:focus-visible) { outline: 3px solid var(--rose); outline-offset: 2px; }
.jr-img { display: block; aspect-ratio: 860 / 1200; background: var(--sage); border-radius: 4px; overflow: hidden; }
.jr-img:empty { display: none; }
.jr-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jr-t { padding-right: 26px; font-weight: 600; }
.jr-img:not(:empty) + .jr-t { padding-right: 0; text-align: center; }
.jr-plans + .jr-plans:not([hidden]) { padding-top: 14px; border-top: 1px dashed var(--line); }
.jr-plans-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
.jr-plans-head h3 { margin: 0; font: 650 18px var(--serif); }
.stack label.jr-bold { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.jr-bold select { width: auto; }

.sk-style, .plans { display: grid; gap: 12px; }
.sk-style { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plans { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stack label.sk-opt, .stack label.plan { position: relative; border: 1.5px solid #c9d3c4; border-radius: 14px; background: #fff; cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s, box-shadow .15s; }
.sk-opt input, .plan input { position: absolute; opacity: 0; pointer-events: none; }
/* tokio pat tikslumo kaip bazinė taisyklė, kitaip jos baltas fonas laimi */
.stack label.sk-opt:hover, .stack label.plan:hover { border-color: var(--leaf); }
.stack label.sk-opt.on, .stack label.plan.on { border-color: var(--leaf); background: var(--sage); box-shadow: 0 0 0 1px var(--leaf); }
.stack label.sk-opt:has(input:focus-visible), .stack label.plan:has(input:focus-visible) { outline: 3px solid var(--rose); outline-offset: 2px; }
.sk-opt.on::after, .plan.on::after { content: ""; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.stack label.sk-opt { flex-direction: row; align-items: center; gap: 14px; padding: 14px 40px 14px 16px; }
.sk-aa { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: #fffdf7; border: 1px solid #e3dccb; font: 400 24px Georgia, serif; color: var(--ink); }
.sk-aa-b { font-weight: 700; }
.sk-opt b { display: block; font-size: 16px; }
.sk-opt small { color: var(--muted); font-size: 14px; }
.stack label.plan { flex-direction: column; align-items: flex-start; gap: 0; padding: 14px 16px 16px; }
.plan-n { font: 650 40px/1 var(--serif); color: var(--leaf); }
.plan-l { margin-top: 2px; font-weight: 600; color: var(--ink); }
.plan-p { margin-top: 12px; font: 700 20px var(--sans); color: var(--ink); }
.plan-e { font-size: 13px; color: var(--muted); }

/* stilius kairėje (vienas po kitu), peržiūra dešinėje; telefone - iš eilės */
.sk-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: center; }
.sk-row .sk-style { grid-template-columns: minmax(0, 1fr); }

/* peržiūra: skelbimų skiltis ant popieriaus (nežymima, tik pavyzdys), centruota savo stulpelyje */
.sk-paper { margin: 0; display: flex; flex-direction: column; align-items: center; user-select: none; -webkit-user-select: none; cursor: default; }
.sk-paper .sk-page { width: 100%; }
.sk-paper figcaption { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sk-page { max-width: 340px; padding: 14px 16px 16px; background: #fbf8f1; border-radius: 3px; box-shadow: 0 1px 2px rgba(31,43,35,.12), 0 14px 30px -14px rgba(31,43,35,.35); transform: rotate(-.6deg); }
.sk-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 6px; margin-bottom: 10px; border-bottom: 3px solid var(--rose); font: 700 13px var(--sans); }
.sk-head span:first-child { font: 700 17px Georgia, serif; color: var(--rose); }
.sk-head span:last-child { font-weight: 600; font-size: 11px; color: #8a8478; }
/* fiksuoto aukščio skiltis: ilgesnis skelbimas nustumia apatinius, blokas nešokinėja; apačioje - išblukimas kaip tęsinys */
.sk-col { height: 15.5em; overflow: hidden; font: 12.5px/1.4 Georgia, "Times New Roman", serif; color: #2a2a2a;
    -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.sk-col p { margin: 0; padding: 6px 0; border-bottom: 1px dotted #cfc8b8; overflow-wrap: break-word; }
.sk-col p:last-child { border-bottom: 0; }
.sk-other { color: #a39d90; }
.sk-mine { margin: 2px -6px !important; padding: 7px 6px !important; color: #111; background: #fff3b8; border-radius: 3px; border-bottom: 0 !important; }
.sk-mine.bold { font-weight: 700; }
.sk-mine.empty { color: #8a8478; font-style: italic; }
@media (max-width: 680px) {
    .sk-row { grid-template-columns: minmax(0, 1fr); }
    .sk-page { transform: none; }
}

/* ---------- apmokėjimo rezultatas ---------- */
.pay-result { text-align: center; }
.pr-icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font: 700 36px var(--sans); color: #fff; }
.pr-icon.ok { background: var(--leaf); }
.pr-icon.bad { background: var(--rose); }
.pr-icon.wait { background: var(--sage); }
.spin { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--leaf); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pr-card { margin: 26px 0; padding: 6px 20px; border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.pr-card > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.pr-card > div + div { border-top: 1px solid var(--line); }
.pr-card span { color: var(--muted); }
.pr-card b { text-align: right; }
.pr-card .pr-ad { flex-direction: column; gap: 4px; }
.pr-card .pr-ad b { text-align: left; font: 400 15px/1.45 Georgia, serif; }
.pr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.center-t { text-align: center; margin-top: 18px; }

/* ---------- antraštės vartotojas ---------- */
.me-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--leaf); color: #fff; font: 650 17px var(--serif); }
.me-av img { width: 100%; height: 100%; object-fit: cover; }
.me { text-decoration: none; }
.me-name { color: var(--ink); font-weight: 700; text-decoration: none; }
.me-name:hover { color: var(--rose-dk); }

/* ---------- profilis ---------- */
.profile { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
.profile-head { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; }
.profile-head .h1 { margin: 0 0 4px; }
.profile-head .muted { margin: 0; }
.avatar { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--leaf); color: #fff; font: 650 40px var(--serif); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.psec { padding: 28px 0; border-top: 1px solid var(--line); }
.psec h2 { margin: 0 0 16px; font-size: 24px; }
.psec .lead { margin: 0 0 14px; }
.psec.danger h2 { color: #b42318; }
.psec .stack { max-width: 440px; }
.row-btns { display: flex; gap: 12px; }
.mt { margin-top: 12px; }
.flash { padding: 16px 20px; border-radius: 12px; margin: 0 0 22px; }
.flash p { margin: 0 0 12px; }
.flash.ok { background: #e6f4ea; color: #1e6b3a; font-weight: 600; }
.flash.bad { background: #fde8e6; color: #8a1c12; }
.orders { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.order { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.order + .order { border-top: 1px solid var(--line); }
.order > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.order-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.inv-link { font-size: 14px; font-weight: 600; }
.back-top { margin: 0 0 6px; font-size: 15px; }
.order-btns { display: flex; gap: 8px; margin-top: 4px; }
.order-btns form { margin: 0; }
.order-btns:empty { display: none; }
.badge { padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge.on { background: #e6f4ea; color: #1e6b3a; }
.badge.wait { background: #fff3c4; color: #7a5a00; }
.btn-danger { background: #fff; color: #b42318; border-color: #e9b4ae; }
.btn-danger:hover { background: #b42318; border-color: #b42318; color: #fff; }
input[type=file] { padding: 12px; border-style: dashed; background: var(--sage); cursor: pointer; }
input[type=file]::file-selector-button { margin-right: 14px; padding: 8px 16px; font: 600 15px var(--sans); color: #fff; background: var(--leaf); border: 0; border-radius: 999px; cursor: pointer; }

/* ---------- apačia ---------- */
.footer { margin-top: 56px; background: var(--leaf); color: #d6e3d8; font-size: 15px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.foot-in { max-width: var(--wide); margin: 0 auto; padding: 52px 24px 0; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(var(--g, 2), minmax(0, .85fr)) minmax(0, 1.3fr); gap: 40px; padding-bottom: 40px; }
.foot-col h2 a { color: #fff; }
.foot-logo img { display: block; width: 190px; height: auto; background: #fff; padding: 10px 14px; border-radius: 12px; }
.foot-tagline { margin: 18px 0 0; max-width: 26em; line-height: 1.55; }
.foot-col h2 { margin: 0 0 14px; font-size: 19px; color: #fff; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-form { display: flex; flex-direction: column; gap: 10px; }
.foot-form input, .foot-form textarea { width: 100%; padding: 11px 13px; font: 16px var(--sans); color: var(--ink); background: #fff; border: 0; border-radius: 10px; }
.foot-form textarea { resize: vertical; min-height: 84px; }
.foot-form input:focus, .foot-form textarea:focus { outline: 3px solid #f6a3bf; outline-offset: 0; }
.foot-form .btn { align-self: flex-start; }
.foot-msg { margin: 0; font-weight: 600; }
.foot-msg:empty { display: none; }
.foot-msg.ok { color: #c6f0d2; }
.foot-msg.bad { color: #ffd2dc; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 26px; border-top: 1px solid rgba(255,255,255,.16); font-size: 14px; color: #b9cdbb; }
.foot-bottom p { margin: 0; }
.foot-bottom a { color: #e4ede5; }
.heart { color: #ff7aa2; }
@media (max-width: 960px) {
    .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .foot-top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

/* ---------- mažesni ekranai ---------- */
@media (max-width: 960px) {
    .rack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-in { gap: 40px; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .bar-in { flex-wrap: wrap; gap: 8px 16px; padding: 8px 16px; }
    .bar-logo img { width: 120px; }
    .userbox { margin-left: auto; }
    .nav { order: 3; flex-basis: 100%; margin: 0 -8px; }
    .nav-item > a, .nav-btn { white-space: nowrap; padding: 6px 10px; font-size: 15px; }
    /* telefone hover nėra - submeniu atidaromas mygtuku, rodomas po visa eilute */
    .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
    .has-sub.open { flex-basis: 100%; flex-wrap: wrap; }
    .has-sub.open > .sub { display: block; position: static; flex-basis: 100%; margin: 4px 0 8px; box-shadow: none; background: var(--sage); }
    .hero-in, .issue-page { grid-template-columns: minmax(0, 1fr); padding: 32px 16px 40px; gap: 32px; }
    .stack-covers { width: min(78%, 320px); margin: 0 auto 0 calc(11% + 20px); }
    .issue-side { position: static; }
    .archive, .post, .article { padding-left: 16px; padding-right: 16px; }
    .rack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
    .userbox .who small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
