/* ==========================================================================
   kaipinvestuoti.lt — „Ramūs sprendimai apie pinigus"
   Redakcinė sistema: gintaras, Baltijos šviesa, popierius.
   Šriftai talpinami lokaliai (OFL). Jokių slapukų, jokių išorinių užklausų.
   Žr. BRAND.md
   ========================================================================== */

/* --- Šriftai -------------------------------------------------------------- */

/* Literata ir Source Sans 3 — pilnas lietuviškas raidynas (ą č ę ė į š ų ū ž)
   suprojektuotas šriftų autorių, ne sintetintas. */
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/literata-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/literata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/sourcesans3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/sourcesans3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Ženklai -------------------------------------------------------------- */

:root {
  --paper: #FAF7F1;
  --paper-2: #F2EDE2;
  --card: #FFFDF8;
  --ink: #1F2D25;
  --ink-2: #4E5C52;
  --ink-3: #64716A;
  --line: #E6DFD0;
  --line-strong: #D4CBB6;
  --spruce: #0E4633;
  --spruce-deep: #0A3527;
  --spruce-tint: #E5EEE7;
  --amber: #B9722F;
  --amber-deep: #96591F;
  --amber-tint: #F6E8D4;
  --blue: #2B5876;
  --blue-tint: #E4EDF3;
  --red: #9C3B31;
  --red-tint: #F6E3DF;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 0 rgba(31,45,37,.04), 0 12px 32px -20px rgba(31,45,37,.28);
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --ease: cubic-bezier(.22,.7,.35,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131A15;
    --paper-2: #18211B;
    --card: #1A241E;
    --ink: #EDE8DC;
    --ink-2: #ADB7AC;
    --ink-3: #7E8B80;
    --line: #2A362E;
    --line-strong: #3A473E;
    --spruce: #7FBFA4;
    --spruce-deep: #9FD2BC;
    --spruce-tint: #1B2C24;
    --amber: #E3A455;
    --amber-deep: #ECB877;
    --amber-tint: #2E2415;
    --blue: #8FB6CE;
    --blue-tint: #1A2833;
    --red: #DE9186;
    --red-tint: #33201D;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.6);
  }
}

/* --- Bazė ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.05rem, 5vw, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.22rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--spruce); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--amber-deep); }
strong { font-weight: 650; }
small, .small { font-size: .86rem; color: var(--ink-2); }
img, svg, video { max-width: 100%; height: auto; }
::selection { background: var(--amber-tint); color: var(--ink); }

:focus-visible { outline: 2.5px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4.5vw, 36px); }
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: clamp(18px, 4.5vw, 36px); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--spruce); color: var(--paper); padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Redakcinė etiketė — mažos didžiosios */
.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-deep); margin-bottom: 1.1rem;
}
.kicker::before, .eyebrow::before {
  content: ""; width: 1.6rem; height: 1px; background: var(--amber);
}

/* --- Antraštė ------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }

.brand {
  display: flex; align-items: center;
  font-family: var(--serif); font-weight: 620; font-size: 1.18rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.brand svg { flex: none; margin-right: .65rem; }
.brand .brand-tld { color: var(--amber-deep); }
.brand:hover { color: var(--ink); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: .55rem .8rem;
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .93rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { color: var(--spruce); font-weight: 680; border-bottom-color: var(--amber); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: .5rem .8rem; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .75rem; gap: 0; }
  .site-nav a { padding: .85rem 1rem; font-size: 1.02rem; border-bottom: none; border-left: 2px solid transparent; }
  .site-nav a[aria-current="page"] { border-left-color: var(--amber); background: var(--paper-2); }
}

/* --- Herojus -------------------------------------------------------------- */

.hero {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .lede {
  font-size: clamp(1.06rem, 2vw, 1.22rem); color: var(--ink-2); max-width: 52ch;
  line-height: 1.6;
}

.hero-figure { margin: 0; position: relative; }
.hero-figure img {
  display: block; width: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.hero-figure figcaption {
  margin-top: .7rem; font-size: .78rem; color: var(--ink-3);
  letter-spacing: .04em;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-figure img { animation: hero-settle 1.4s var(--ease) both; }
  @keyframes hero-settle { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: none; } }
}

/* Statistikos juosta */
.hero-stats, .stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
@media (max-width: 700px) { .hero-stats, .stat-strip { grid-template-columns: 1fr; } }
.stat-card {
  padding: 1.4rem 1.5rem 1.3rem;
  border-right: 1px solid var(--line);
}
.stat-card:last-child { border-right: none; }
@media (max-width: 700px) {
  .stat-card { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-card:last-child { border-bottom: none; }
}
.stat-card .num {
  display: block; font-family: var(--serif); font-size: 2.1rem; font-weight: 590;
  color: var(--spruce); font-variant-numeric: tabular-nums; line-height: 1.15;
}
.stat-card .lbl { color: var(--ink-2); font-size: .9rem; line-height: 1.45; display: block; margin-top: .25rem; }
.stat-src { font-size: .76rem; color: var(--ink-3); margin-top: .8rem; }

/* --- Mygtukai ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.55rem; border-radius: var(--radius);
  font: inherit; font-weight: 640; font-size: .98rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s, color .18s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--spruce); color: var(--paper); }
.btn-primary:hover { background: var(--spruce-deep); color: var(--paper); }
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #10160f; }
  .btn-primary:hover { color: #10160f; }
}
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }

/* --- Sekcijos, kortelės ----------------------------------------------------- */

.section { padding-block: clamp(3rem, 7.5vw, 5.5rem); }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p { color: var(--ink-2); font-size: 1.02rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.45rem;
  display: flex; flex-direction: column;
  position: relative;
}
.card h3 { display: flex; align-items: center; gap: .65rem; margin-top: 0; }
.card p { color: var(--ink-2); font-size: .94rem; flex: 1; }
.card .card-link { font-weight: 640; font-size: .93rem; text-decoration: none; color: var(--spruce); }
.card .card-link::after { content: " →"; transition: none; }
a.card { text-decoration: none; color: inherit; transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
a.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
a.card:hover .card-link { color: var(--amber-deep); }

.icon-chip {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--spruce-tint); color: var(--spruce);
  border: 1px solid color-mix(in srgb, var(--spruce) 18%, transparent);
}
.icon-chip svg { width: 20px; height: 20px; }

/* Numeruoti žingsniai — redakcinis sąrašas */
.step-list { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; }
.step-list li {
  counter-increment: step; position: relative;
  padding: 1.4rem 0 1.4rem 4.4rem;
  border-top: 1px solid var(--line);
}
.step-list li:last-child { border-bottom: 1px solid var(--line); }
.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1.35rem;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 560;
  color: var(--amber); font-variant-numeric: tabular-nums;
}
.step-list h3 { margin-bottom: .25rem; font-size: 1.12rem; }
.step-list p { margin: 0; color: var(--ink-2); font-size: .95rem; max-width: 60ch; }

/* --- Ženkleliai, pranešimai --------------------------------------------------- */

.badge {
  display: inline-block; padding: .16rem .6rem; border-radius: 3px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; white-space: nowrap;
  text-transform: uppercase;
}
.badge-green { background: var(--spruce-tint); color: var(--spruce); }
.badge-amber { background: var(--amber-tint); color: var(--amber-deep); }
.badge-blue { background: var(--blue-tint); color: var(--blue); }
.badge-muted { background: var(--paper-2); color: var(--ink-2); }

.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--blue);
  background: var(--card); border-radius: var(--radius);
  padding: 1.05rem 1.3rem; margin: 1.5rem 0; font-size: .94rem;
}
.notice-amber { border-left-color: var(--amber); }
.notice p:last-child { margin-bottom: 0; }

.disclaimer-box {
  border: 1px solid var(--line);
  background: var(--paper-2); border-radius: var(--radius);
  padding: 1.05rem 1.3rem; margin: 1.5rem 0;
  font-size: .88rem; color: var(--ink-2);
}
.disclaimer-box p:last-child { margin-bottom: 0; }
.disclaimer-box strong { color: var(--ink); }

.updated-stamp { font-size: .84rem; color: var(--ink-3); font-style: italic; }

/* --- Lentelės -------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto; margin: 1.5rem 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card);
}
.table-scroll table { border-collapse: collapse; width: 100%; font-size: .91rem; min-width: 720px; }
.table-scroll caption {
  text-align: left; padding: 1.15rem 1.3rem .4rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.12rem;
}
.table-scroll th, .table-scroll td { text-align: left; padding: .8rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.table-scroll thead th {
  border-top: none; background: var(--paper-2); font-size: .74rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 700;
}
.table-scroll tbody th { font-weight: 650; white-space: nowrap; background: transparent; }
.table-scroll tbody tr:hover td, .table-scroll tbody tr:hover th { background: color-mix(in srgb, var(--paper-2) 55%, transparent); }
.table-scroll .sub { display: block; color: var(--ink-3); font-size: .8rem; font-weight: 400; white-space: normal; }
.table-scroll .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- Skaičiuoklės ------------------------------------------------------------------ */

.calc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.3rem); margin-block: 2rem;
}
.calc .field { margin-bottom: 1.25rem; }
.calc label { font-weight: 640; display: block; margin-bottom: .4rem; font-size: .92rem; }
.calc .hint { font-size: .82rem; color: var(--ink-3); margin-top: .35rem; display: block; font-weight: 400; line-height: 1.5; }
.calc input[type="number"], .calc select {
  width: 100%; padding: .75rem .95rem; font: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: border-color .15s;
}
.calc input:hover { border-color: var(--ink-3); }
.calc input:focus, .calc select:focus {
  border-color: var(--spruce); outline: 2px solid color-mix(in srgb, var(--spruce) 25%, transparent);
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.1rem; }

.calc-results { margin-top: 1.9rem; }
.result-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.result-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.2rem .95rem; background: var(--paper);
}
.result-card .rc-label { font-size: .78rem; font-weight: 650; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.result-card .rc-value {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 590;
  font-variant-numeric: tabular-nums; color: var(--ink); margin-top: .2rem;
}
.result-card.highlight { background: var(--spruce-tint); border-color: color-mix(in srgb, var(--spruce) 25%, transparent); }
.result-card.highlight .rc-value { color: var(--spruce); }

.chart-box { margin-top: 1.9rem; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .84rem; color: var(--ink-2); margin-top: .7rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.chart-legend i { width: .9rem; height: .9rem; border-radius: 2px; display: inline-block; }

/* --- Vedlys --------------------------------------------------------------------------- */

.wizard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem); margin-block: 2rem;
}
.wizard-progress { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.9rem; }
.wizard-progress .bar {
  flex: 1; height: 3px; background: var(--line); overflow: hidden; border-radius: 99px;
}
.wizard-progress .bar > span { display: block; height: 100%; background: var(--amber); transition: width .3s var(--ease); }
.wizard-progress .step-label { font-size: .8rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .06em; }

.wizard fieldset { border: 0; margin: 0; padding: 0; }
.wizard legend {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 590;
  margin-bottom: .4rem; padding: 0; letter-spacing: -0.01em; line-height: 1.2;
}
.wizard .q-help { color: var(--ink-2); font-size: .94rem; margin-bottom: 1.35rem; max-width: 58ch; }

.choice-list { display: grid; gap: .6rem; margin: 0 0 1.6rem; }
.choice {
  display: flex; gap: .85rem; align-items: flex-start;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: .95rem 1.05rem; cursor: pointer; background: var(--paper);
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--ink-3); }
.choice input { margin-top: .32rem; accent-color: var(--spruce); width: 17px; height: 17px; flex: none; }
.choice:has(input:checked) { border-color: var(--spruce); background: var(--spruce-tint); }
.choice .choice-title { font-weight: 640; display: block; font-size: .97rem; }
.choice .choice-desc { font-size: .85rem; color: var(--ink-3); display: block; margin-top: .12rem; }

.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: .5rem; flex-wrap: wrap; }

.plan-step {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem; margin-bottom: .9rem; background: var(--card);
}
.plan-step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.plan-step h3 { margin: 0; font-size: 1.08rem; }
.plan-step ul { margin: .5rem 0 0; padding-left: 1.2rem; font-size: .92rem; color: var(--ink-2); }
.plan-step li { margin-bottom: .35rem; }
.result-summary {
  border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; margin-bottom: 1.6rem;
  border: 1px solid color-mix(in srgb, var(--spruce) 28%, transparent); background: var(--spruce-tint);
}
.result-summary h2 { margin-bottom: .4rem; }
.result-summary p { margin-bottom: 0; color: var(--ink-2); }

/* --- Straipsniai / gidai ------------------------------------------------------------------ */

.article { padding-block: clamp(2.6rem, 6vw, 4.2rem); }
.article h1 { max-width: 22ch; }
.article .article-meta {
  color: var(--ink-3); font-size: .82rem; margin-bottom: 2rem;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.article .lede { font-size: 1.13rem; color: var(--ink-2); line-height: 1.62; }
.article h2 { margin-top: 2.4em; }
.article h3 { margin-top: 1.7em; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: .45rem; }
.article blockquote {
  margin: 1.6rem 0; padding: .4rem 0 .4rem 1.5rem; border-left: 2px solid var(--amber);
  color: var(--ink-2); font-family: var(--serif); font-size: 1.1rem;
}

.article-figure { margin: 0 0 2.2rem; }
.article-figure img {
  display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
}
.article-figure figcaption { margin-top: .6rem; font-size: .78rem; color: var(--ink-3); letter-spacing: .04em; }

.toc {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card);
  padding: 1.2rem 1.5rem; margin: 1.6rem 0 2.2rem; font-size: .92rem;
}
.toc strong { display: block; margin-bottom: .55rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .3rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* --- DUK -------------------------------------------------------------------------------------- */

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 1.1rem .2rem; font-weight: 640; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--serif); font-size: 1.5rem; font-weight: 400;
  color: var(--amber); flex: none; line-height: 1;
  transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 .2rem 1.2rem; color: var(--ink-2); font-size: .95rem; max-width: 65ch; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* --- CTA juosta --------------------------------------------------------------------------------- */

.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 6vw, 3.6rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  color: #F6F1E7; isolation: isolate;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--cta-img, none);
  background-size: cover; background-position: center;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,42,31,.88) 30%, rgba(10,42,31,.55));
}
.cta-band .cta-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.cta-band h2 { color: #FAF7F1; margin-bottom: .35rem; }
.cta-band p { color: #D9D2C2; margin: 0; max-width: 52ch; font-size: .98rem; }
.cta-band .btn { background: #FAF7F1; color: #0E4633; flex: none; font-weight: 680; }
.cta-band .btn:hover { background: #EFE7D6; color: #0A3527; }

/* --- Poraštė -------------------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line); background: var(--paper-2);
  padding-block: 3rem 2rem; margin-top: clamp(3rem, 7vw, 5rem);
  font-size: .9rem; color: var(--ink-2);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.2rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 {
  font-family: var(--sans); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-3); font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--spruce); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--line); padding-top: 1.3rem; font-size: .8rem; color: var(--ink-3); }
.footer-legal p { margin-bottom: .55rem; max-width: 90ch; }

/* --- Judesys: atskleidimas slenkant ---------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity .65s var(--ease), transform .65s var(--ease);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* --- Spausdinimas ------------------------------------------------------------------------------------ */

@media print {
  .site-header, .site-footer, .wizard-nav, .btn, .cta-band, .nav-toggle { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .calc, .plan-step, .result-summary { box-shadow: none; border: 1px solid #999; }
  a { color: #000; text-decoration: none; }
}
