/* Finansų dirbtuvės: bendri svetainės stiliai (visi puslapiai) */
  /* Naftos mėlyna: akcentas šviesiai ir tamsiai temai. */
  :root {
    --a-l: #0b6878; --a-l-ink: #ffffff;
    --a-d: #3bb8c9; --a-d-ink: #031418;
  }

  :root {
    --bg: #f3f4f5;
    --paper: #ffffff;
    --text: #151618;
    --muted: #5a5d63;
    --line: #d5d7da;
    --accent: var(--a-l);
    --accent-ink: var(--a-l-ink);
    --ink-cell: #151618;
    --ink-cell-text: #f3f4f5;
    --error: #b42318;
    --logo-filter: none;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #111214; --paper: #191b1e; --text: #eef0f2; --muted: #a2a6ad; --line: #2d3035;
      --accent: var(--a-d); --accent-ink: var(--a-d-ink);
      --ink-cell: #eef0f2; --ink-cell-text: #111214; --error: #f59b8b; --logo-filter: invert(1);
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #111214; --paper: #191b1e; --text: #eef0f2; --muted: #a2a6ad; --line: #2d3035;
    --accent: var(--a-d); --accent-ink: var(--a-d-ink);
    --ink-cell: #eef0f2; --ink-cell-text: #111214; --error: #f59b8b; --logo-filter: invert(1);
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 "Onest", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
  a { color: inherit; }
  img { display: block; max-width: 100%; height: auto; }
  .wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
  .logo-img { filter: var(--logo-filter); }

  /* Antraštė lieka viršuje: permatomas sluoksnis, pro kurį matosi turinys. */
  header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { header { background: var(--bg); } }
  @media (prefers-reduced-transparency: reduce) { header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
  html { scroll-padding-top: 88px; }
  nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
  nav .brand img { height: 36px; width: auto; }
  nav ul { list-style: none; display: flex; gap: 32px; align-items: center; margin: 0; padding: 0; }
  nav ul a { text-decoration: none; font-weight: 500; font-size: 15px; }
  nav ul a:not(.btn):hover { color: var(--accent); }

  .btn { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 14px 24px; border: 0; border-radius: 0; font: 600 15px/1 "Onest", sans-serif; text-decoration: none; cursor: pointer; background: var(--accent); color: var(--accent-ink); transition: transform .2s cubic-bezier(.16,1,.3,1), filter .2s; }
  .btn:hover { filter: brightness(.94); }
  .btn:active { transform: translateY(1px) scale(.98); }
  .btn i { font-size: 18px; transition: transform .2s; }
  .btn:hover i { transform: translateX(3px); }
  .link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--text); padding-bottom: 2px; }
  .link:hover { color: var(--accent); border-color: var(--accent); }

  /* Hero */
  .hero { padding-block: 80px 96px; display: grid; grid-template-columns: 1fr 340px; column-gap: 72px; row-gap: 56px; }
  .hero h1 { grid-column: 1; align-self: end; font-size: clamp(48px, 7vw, 108px); line-height: 1; letter-spacing: -0.05em; font-weight: 700; margin: 0; max-width: 13ch; padding-bottom: 4px; }
  .hero h1 span { color: var(--accent); display: block; }
  .hero-foot { grid-column: 1; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start; border-top: 1px solid var(--text); padding-top: 28px; }
  .hero-foot p { margin: 0; font-size: 19px; color: var(--muted); max-width: 38ch; }
  .hero-foot .ctas { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

  /* Skaičiuotuvas: forma kartoja logotipo kalkuliatorių (ekranas viršuje, aukštas "=" mygtukas apačioje dešinėje). */
  .calc { grid-column: 2; grid-row: 1 / span 2; align-self: start; border: 3px solid var(--text); background: var(--paper); padding: 16px; display: grid; gap: 10px; }
  .calc:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
  .calc-screen { border: 3px solid var(--text); padding: 10px 14px 12px; text-align: right; min-height: 92px; display: grid; align-content: end; overflow: hidden; }
  .calc-expr { font-size: 13px; color: var(--muted); min-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .calc-value { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .calc-vat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 52px; gap: 8px; }
  .calc button { font: 600 19px/1 "Onest", sans-serif; color: var(--text); background: transparent; border: 2px solid var(--text); border-radius: 0; cursor: pointer; transition: background .12s, color .12s, transform .1s; }
  .calc button:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
  .calc button:active, .calc button.is-down { transform: scale(.95); }
  .calc button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .calc .op { color: var(--accent); border-color: var(--accent); }
  .calc .fn { font-size: 15px; color: var(--muted); border-color: var(--line); }
  .calc .eq { grid-row: span 2; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-size: 24px; }
  .calc .eq:hover { background: var(--accent); filter: brightness(1.08); }
  .calc .zero { grid-column: span 2; }
  .calc-vat button { font-size: 14px; height: 40px; border-color: var(--accent); color: var(--accent); }

  /* Bento */
  section { padding: 104px 0; }
  h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; margin: 0 0 48px; max-width: 16ch; }
  .bento { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: auto auto; gap: 2px; background: var(--line); border: 2px solid var(--line); }
  .cell { background: var(--paper); padding: 36px; display: flex; flex-direction: column; min-height: 260px; }
  .cell i { font-size: 34px; margin-bottom: auto; padding-bottom: 40px; }
  .cell h3 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.025em; font-weight: 600; line-height: 1.15; }
  .cell p { margin: 0; color: var(--muted); max-width: 40ch; }
  .cell.big { grid-row: span 2; background: var(--accent); color: var(--accent-ink); }
  .cell.big p { color: var(--accent-ink); opacity: .9; }
  .cell.big h3 { font-size: clamp(32px, 3.4vw, 46px); }
  .cell.big ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-weight: 500; }
  .cell.big li::before { content: "+ "; }
  .cell.dark { background: var(--ink-cell); color: var(--ink-cell-text); }
  .cell.dark p { color: var(--ink-cell-text); opacity: .75; }
.cell h3 a { text-decoration: none; }
.cell h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }

  /* Mokesčių skaičiuoklė */
  .tax-sec { border-top: 1px solid var(--line); }
  .tax-sec .lead { color: var(--muted); margin: -24px 0 48px; max-width: 56ch; }
  .tax { display: grid; grid-template-columns: 320px 1fr; gap: 0; align-items: stretch; }
  .tax > * { min-width: 0; }
  .tax-inputs { display: grid; gap: 28px; align-content: start; background: var(--paper); border: 2px solid var(--line); border-right: 0; padding: 28px; }
  .tax-field { display: grid; gap: 10px; }
  .tax-field label { font-size: 14px; font-weight: 600; }
  .tax-num { display: flex; align-items: baseline; border-bottom: 2px solid var(--text); }
  .tax .tax-num input { flex: 1; min-width: 0; width: 100%; font: 700 34px/1.2 "Onest", sans-serif; letter-spacing: -0.03em; color: var(--text); background: transparent; border: 0; padding: 4px 0; font-variant-numeric: tabular-nums; }
  .tax .tax-num input:focus-visible { box-shadow: none; }
  .tax-num input:focus { outline: none; }
  .tax-num:focus-within { border-color: var(--accent); }
  .tax-num span { font-size: 24px; font-weight: 600; color: var(--muted); }
  /* Slankiklis: 32 px aukščio paspaudimo plotas, 24 px rankenėlė, užpildas iki rankenėlės (--p iš tax.js). */
  .tax-field input[type=range] { width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
  .tax-field input[type=range]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--line) var(--p, 0%)); }
  .tax-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--accent), 0 2px 6px color-mix(in srgb, var(--text) 20%, transparent); transition: transform .1s ease-out; }
  .tax-field input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
  .tax-field input[type=range]::-moz-range-track { height: 4px; background: var(--line); }
  .tax-field input[type=range]::-moz-range-progress { height: 4px; background: var(--accent); }
  .tax-field input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--accent); }
  .tax-field input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  .tax-note { font-size: 14px; color: var(--muted); margin: 0; }
  .tax-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
  .tax-card { background: var(--paper); padding: 28px; display: grid; align-content: start; gap: 6px; position: relative; }
  .tax-card h3 { margin: 0 0 16px; font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
  .tax-card .k { font-size: 13px; color: var(--muted); }
  .tax-card .left { font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-bottom: 14px; }
  .tax-card .sum { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
  .tax-card .sum span:last-child { color: var(--muted); font-weight: 500; }
  .tax-card details { margin-top: 12px; font-size: 14px; }
  .tax-card summary { cursor: pointer; color: var(--muted); font-weight: 500; }
  .tax-card summary:hover { color: var(--text); }
  .tax-card dl { margin: 12px 0 0; display: grid; gap: 6px; }
  .tax-card dl div { display: flex; justify-content: space-between; gap: 12px; }
  .tax-card dt { color: var(--muted); }
  .tax-card dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .tax-card .badge { display: none; position: absolute; top: 0; right: 0; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; padding: 6px 10px; }
  .tax-card.is-best { box-shadow: inset 0 0 0 3px var(--accent); }
  .tax-card.is-best .badge { display: block; }
  .tax-card.is-best .left { color: var(--accent); }
  .tax-more { grid-column: 2; }
  .tax-more .more-title { margin-top: 24px; }
  .tax-assume { grid-column: 2; font-size: 14px; color: var(--muted); margin: 16px 0 0; max-width: 90ch; }

  /* Kontaktai */
  .contact-sec { background: var(--paper); border-top: 1px solid var(--line); }
  .contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
  .contact .lead { color: var(--muted); margin: -24px 0 48px; max-width: 40ch; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; margin: 0; border-top: 1px solid var(--text); padding-top: 28px; }
  .facts dt { font-size: 14px; color: var(--muted); }
  .facts dd { margin: 4px 0 0; font-weight: 500; }
  .facts div:last-child { grid-column: 1 / -1; }
  .facts a { text-decoration: none; }
  .facts a:hover { color: var(--accent); }

  form { display: grid; gap: 24px; }
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .field { display: grid; gap: 6px; }
  label, legend { font-size: 14px; font-weight: 600; }
  .opt { color: var(--muted); font-weight: 400; }
  input[type=text], input[type=email], input[type=tel], textarea { width: 100%; font: 400 17px/1.4 "Onest", sans-serif; color: var(--text); background: transparent; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; padding: 10px 0; transition: border-color .15s; }
  textarea { min-height: 120px; resize: vertical; }
  input::placeholder, textarea::placeholder { color: var(--muted); }
  input:focus, textarea:focus { outline: none; border-bottom-color: var(--accent); }
  input:focus-visible, textarea:focus-visible { box-shadow: 0 2px 0 0 var(--accent); }
  [aria-invalid=true] { border-bottom-color: var(--error) !important; }
  .err { color: var(--error); font-size: 13px; font-weight: 500; }
  .err:empty { display: none; }
  fieldset { border: 0; padding: 0; margin: 0; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .chips input { position: absolute; opacity: 0; pointer-events: none; }
  .chips label { font-weight: 500; padding: 9px 16px; border: 2px solid var(--line); cursor: pointer; transition: all .15s; }
  .chips input:checked + label { border-color: var(--text); background: var(--text); color: var(--bg); }
  .chips input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
  .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .submit-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
  .submit-row .btn:disabled { opacity: .6; cursor: progress; }
  [data-status] { margin: 0; font-size: 15px; font-weight: 500; }
  [data-status][data-type=ok] { color: var(--text); }
  [data-status][data-type=error] { color: var(--error); }

  footer { padding: 28px 0; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
  .foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
  .foot-pay { flex-basis: 100%; font-size: 13px; }
  footer .wrap > span:first-child a { color: inherit; }
  .foot-links a, .foot-links button { color: var(--muted); font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
  .foot-links a:hover, .foot-links button:hover { color: var(--text); }
  .form-note { margin: -8px 0 0; font-size: 14px; color: var(--muted); }
  .form-note a { color: var(--text); }
  footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

  @media (prefers-reduced-motion: no-preference) {
    .hero h1 { animation: rise 1s cubic-bezier(.16,1,.3,1) both; }
    .hero-foot { animation: line 1s cubic-bezier(.16,1,.3,1) both .2s; }
    .calc { animation: rise 1s cubic-bezier(.16,1,.3,1) both .12s; }
    .reveal-on [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
    .reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
    .bento [data-reveal]:nth-child(2) { transition-delay: .06s; }
    .bento [data-reveal]:nth-child(3) { transition-delay: .12s; }
    .bento [data-reveal]:nth-child(4) { transition-delay: .18s; }
  }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
  @keyframes line { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

  @media (max-width: 900px) {
    .wrap { padding: 0 20px; }
    nav ul li:not(:last-child) { display: none; }
    .hero { padding-block: 48px 56px; min-height: 0; gap: 40px; grid-template-columns: 1fr; }
    .hero-foot { grid-template-columns: 1fr; gap: 28px; }
    .calc { grid-column: 1; grid-row: auto; width: 100%; max-width: 380px; }
    section { padding: 72px 0; }
    .bento { grid-template-columns: 1fr; }
    .cell.big { grid-row: auto; grid-column: auto; }
    .cell { min-height: 0; }
    .contact, .row { grid-template-columns: 1fr; gap: 48px; }
    .tax, .tax-results { grid-template-columns: 1fr; }
    .tax-inputs { border-right: 2px solid var(--line); border-bottom: 0; }
    .tax-assume, .tax-more { grid-column: 1; }
    .row { gap: 24px; }
  }
  @media (max-width: 480px) { .wrap { padding: 0 16px; } .facts, .cell.big ul { grid-template-columns: 1fr; } }

/* Ikonos (Phosphor SVG, assets/icons.svg) */
i.ic { display: inline-flex; font-style: normal; line-height: 1; }
i.ic svg { width: 1em; height: 1em; fill: currentColor; }

/* ---------- Meniu: skaičiuoklių pasirinkimas ---------- */
.menu { position: relative; }
.menu > details > summary { list-style: none; cursor: pointer; font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.menu > details > summary::-webkit-details-marker { display: none; }
.menu > details > summary i { font-size: 14px; transition: transform .2s; }
.menu > details[open] > summary i { transform: rotate(180deg); }
.menu > details > summary:hover { color: var(--accent); }
.menu-panel { position: absolute; z-index: 30; top: calc(100% + 18px); right: -16px; width: 320px; background: var(--paper); border: 2px solid var(--text); padding: 8px; display: grid; box-shadow: 0 16px 40px color-mix(in srgb, var(--text) 14%, transparent); }
.menu-panel a { display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; padding: 12px; text-decoration: none; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.menu-panel a i { grid-row: span 2; font-size: 22px; color: var(--accent); padding-top: 2px; }
.menu-panel a strong { font-size: 15px; font-weight: 600; }
.menu-panel a span { font-size: 14px; color: var(--muted); }
.menu-panel .all { border-top: 1px solid var(--line); margin-top: 4px; grid-template-columns: 1fr; font-size: 14px; font-weight: 600; }

/* ---------- Skaičiuoklių puslapiai ---------- */
nav.crumbs { display: block; height: auto; font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); }
.page-head { padding: 24px 0 40px; max-width: 760px; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; margin: 0 0 16px; }
.page-head p { font-size: 19px; color: var(--muted); margin: 0; max-width: 58ch; }
.calc-page { display: grid; grid-template-columns: 380px 1fr; gap: 2px; background: var(--line); border: 2px solid var(--line); margin-bottom: 24px; }
.calc-page > * { background: var(--paper); padding: 32px; min-width: 0; }
.cp-inputs { display: grid; gap: 22px; align-content: start; }
.cp-field { display: grid; gap: 8px; }
.cp-field > label, .cp-field > .lbl { font-size: 14px; font-weight: 600; }
.cp-num { display: flex; align-items: baseline; border-bottom: 2px solid var(--text); }
.cp-num:focus-within { border-color: var(--accent); }
.calc-page .cp-num input { flex: 1; min-width: 0; width: 100%; font: 700 32px/1.2 "Onest", sans-serif; letter-spacing: -0.03em; color: var(--text); background: transparent; border: 0; padding: 4px 0; font-variant-numeric: tabular-nums; }
.calc-page .cp-num input:focus { outline: none; }
.cp-num span { font-size: 22px; font-weight: 600; color: var(--muted); }
.cp-help { font-size: 14px; color: var(--muted); margin: 0; }
.cp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* Kai etiketė dviejose eilutėse, laukai eilutėje lieka viename aukštyje (subgrid). */
.cp-row > .cp-field { grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; }
.cp-row > .cp-field > label { align-self: end; }
.seg2 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 2px solid var(--text); }
.seg2 input { position: absolute; opacity: 0; pointer-events: none; }
.seg2 label { text-align: center; padding: 10px 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.seg2 input:checked + label { background: var(--text); color: var(--bg); }
.seg2 input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -4px; }
.calc-page select { width: 100%; font: 500 15px/1.3 "Onest", sans-serif; color: var(--text); background: var(--paper); border: 2px solid var(--line); border-radius: 0; padding: 10px 12px; }
.calc-page select:focus { outline: none; border-color: var(--accent); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check small { display: block; color: var(--muted); font-size: 14px; }
.cp-results { display: grid; gap: 28px; align-content: start; }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.big3 > div { background: var(--paper); padding: 20px; display: grid; gap: 4px; }
.big3 .k { font-size: 13px; color: var(--muted); }
.big3 .v { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big3 > .hl { background: var(--accent); color: var(--accent-ink); }
.big3 > .hl .k { color: var(--accent-ink); opacity: .85; }
.rows-t { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.rows-t th { text-align: left; font-weight: 500; color: var(--muted); padding: 9px 12px 9px 0; }
.rows-t td { text-align: right; padding: 9px 0; white-space: nowrap; }
.rows-t tr + tr th, .rows-t tr + tr td { border-top: 1px solid var(--line); }
.rows-t .sum th, .rows-t .sum td { color: var(--text); font-weight: 700; border-top: 2px solid var(--text); }
.rows-t .sub th { padding-left: 16px; font-size: 14px; }
.rows-t .grp th { color: var(--text); font-weight: 700; padding-top: 18px; }
.notes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.notes li { border-left: 3px solid var(--accent); padding: 6px 0 6px 12px; color: var(--muted); }
.notes li.warn { border-color: var(--error); color: var(--text); }
.cp-assume { font-size: 14px; color: var(--muted); max-width: 90ch; margin: 0 0 8px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 20px; max-width: none; }
.prose h3 { font-size: 20px; margin: 32px 0 8px; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); border-bottom: 2px solid var(--text); }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; color: var(--text); }
.faq details p { margin: 10px 0 0; }
.updated { font-size: 14px; color: var(--muted); }
.more-calcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); margin-top: 32px; }
.more-calcs a { background: var(--paper); padding: 22px; text-decoration: none; display: grid; gap: 4px; align-content: start; }
.more-calcs a:hover { background: color-mix(in srgb, var(--accent) 8%, var(--paper)); }
.more-calcs i { font-size: 26px; color: var(--accent); margin-bottom: 8px; }
.more-calcs strong { font-size: 17px; }
.more-calcs span { font-size: 15px; color: var(--muted); }
.more-title { font-size: 15px; font-weight: 700; margin: 40px 0 0; }
.cta-band { background: var(--paper); border-top: 1px solid var(--line); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); max-width: 24ch; }
.cta-band p { margin: 12px 0 0; max-width: 60ch; color: var(--muted); }
.hidden { display: none !important; }

@media (max-width: 900px) {
  nav ul li.menu { display: block !important; }
  nav ul { gap: 18px; }
  nav ul .btn { padding: 8px 12px; font-size: 13px; }
  .menu-panel { position: fixed; top: 72px; left: 12px; right: 12px; width: auto; }
  .calc-page { grid-template-columns: 1fr; }
  .calc-page > * { padding: 22px; }
  .big3 { grid-template-columns: 1fr; }
}

/* ---------- GPM skaičiuoklė: pajamų juosta ---------- */
.gpm-bar { display: flex; height: 22px; border: 2px solid var(--text); background: var(--paper); overflow: hidden; }
.gpm-bar span { height: 100%; min-width: 2px; }
.gpm-legend { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 20px; font-size: 14px; }
.gpm-legend li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.gpm-legend li b { margin-left: auto; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.gpm-legend i { width: 14px; height: 14px; flex: none; border: 1px solid var(--text); }
.npd { background: repeating-linear-gradient(45deg, var(--line) 0 4px, var(--paper) 4px 8px); }
.p15 { background: color-mix(in srgb, var(--accent) 30%, var(--paper)); }
.piv { background: color-mix(in srgb, var(--accent) 55%, var(--paper)); }
.p20 { background: var(--accent); }
.p25 { background: color-mix(in srgb, var(--accent) 55%, var(--text)); }
.p32 { background: var(--text); }
.pdiv { background: color-mix(in srgb, var(--muted) 45%, var(--paper)); }
.rows-t.cols3 td { width: 22%; }
.rows-t.cols3 thead th { font-size: 13px; color: var(--muted); font-weight: 500; text-align: right; }
.rows-t.cols3 thead th:first-child { text-align: left; }
.rows-t .muted { color: var(--text); font-weight: 600; margin-left: 4px; }

/* Meniu mygtukas: kompaktiškesnis nei turinio mygtukai */
@media (min-width: 901px) { nav ul .btn { padding: 9px 14px; font-size: 14px; } }

/* Kalbos perjungiklis */
nav ul li.lang a { font-size: 13px; font-weight: 700; letter-spacing: .04em; border: 2px solid var(--line); padding: 5px 8px; }
nav ul li.lang a:hover { border-color: var(--text); color: var(--text); }

/* Vidutiniai ekranai: hero tekstas ir mygtukai vienas po kitu, kad mygtukai netrumpėtų */
@media (max-width: 1200px) {
  .hero-foot { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Kainos ---------- */
.quote-price { font-size: clamp(36px, 4vw, 54px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.quote-vat { color: var(--muted); font-size: 15px; margin-top: 6px; letter-spacing: 0; line-height: 1.4; }
.quote-vat strong { display: block; color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.quote-pkg { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.quote-incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.quote-incl li { padding-left: 22px; position: relative; }
.quote-incl li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.quote-cta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.calc-page input.cp-small { width: 100%; font: 700 24px/1.2 "Onest", sans-serif; color: var(--text); background: transparent; border: 0; border-bottom: 2px solid var(--text); border-radius: 0; padding: 4px 0; font-variant-numeric: tabular-nums; }
.calc-page input.cp-small:focus { outline: none; border-color: var(--accent); }
.price-block { margin-top: 64px; }
.price-block h2 { margin-bottom: 8px; }
.price-block > p { color: var(--muted); margin: 0 0 8px; max-width: 64ch; }
.prose td.num, .prose th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prose td.num strong { color: var(--text); }
.prose td small { color: var(--muted); display: block; font-size: 14px; }
.deal { border: 3px solid var(--accent); padding: 28px; margin-top: 24px; display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; }
.deal h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.deal p { margin: 0; color: var(--muted); }
.deal .quote-price { font-size: 40px; text-align: right; }
@media (max-width: 700px) { .deal { grid-template-columns: 1fr; } .deal .quote-price { text-align: left; } }
.sources { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 6px; font-size: 14px; }
.sources a { color: var(--muted); }
.sources a:hover { color: var(--accent); }

/* ---------- Mokesčių kalendorius ---------- */
.upcoming { border: 3px solid var(--accent); background: var(--paper); padding: 28px 32px; margin-bottom: 8px; }
.upcoming h2 { font-size: 24px; margin: 0 0 16px; max-width: none; }
.up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.up-list li { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.up-list li:first-child { border-top: 0; }
.up-date, .up-what { display: grid; gap: 2px; color: var(--muted); font-size: 14px; }
.up-date b { color: var(--accent); font-size: 18px; }
.up-what b { color: var(--text); font-size: 16px; font-weight: 600; }
@media (max-width: 700px) { .up-list li { grid-template-columns: 1fr; gap: 4px; } .upcoming { padding: 20px; } }

/* ---------- Straipsniai ---------- */
.article { max-width: 760px; }
.article .lede { font-size: 20px; color: var(--muted); margin: 0 0 32px; }
.article h2 { margin-top: 48px; }
.facts-box { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 24px 0; }
.facts-box p { margin: 0; }

/* ---------- Kodėl mes ---------- */
.why-sec { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.why > div { border-top: 3px solid var(--accent); padding-top: 22px; }
.why i.ic { font-size: 30px; color: var(--accent); margin-bottom: 14px; }
.why h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.why p { margin: 0; color: var(--muted); font-size: 16px; }
.why a { color: var(--text); }

/* ---------- Kaip pradėti ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); counter-reset: st; }
.steps li { background: var(--paper); padding: 32px; position: relative; counter-increment: st; }
.steps li::after { content: counter(st); position: absolute; top: 20px; right: 28px; font-size: 64px; font-weight: 700; letter-spacing: -0.05em; color: color-mix(in srgb, var(--accent) 18%, transparent); line-height: 1; }
.steps i.ic { font-size: 30px; color: var(--accent); margin-bottom: 18px; }
.steps h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--muted); }
.faq-sec { padding-top: 0; }

@media (max-width: 900px) {
  .why { grid-template-columns: 1fr 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* ---------- Produktai (šablonai) ---------- */
.prod-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.prod-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.prod-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); color: inherit; }
.prod-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; display: block; }
.prod-card .pc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-card h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.prod-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.prod-card .pc-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.prod-card .pc-price { font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.prod-card .pc-price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.prod-card .pc-more { font-weight: 600; font-size: 15px; }
.pc-badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink, #fff); padding: 3px 8px; }
@media (max-width: 1000px) { .prod-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .prod-cards { grid-template-columns: 1fr; } }
.prod-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin: 8px auto 0; }
.prod-hero > img { width: 100%; height: auto; aspect-ratio: 3 / 2; border: 1px solid var(--line); display: block; }
.prod-hero .deal { margin-top: 0; grid-template-columns: 1fr; }
.prod-hero .deal .quote-price { text-align: left; order: -1; }
@media (max-width: 860px) { .prod-hero { grid-template-columns: 1fr; gap: 24px; } }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 8px; }
.gallery.wide { grid-template-columns: 1fr; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; display: block; border: 1px solid var(--line); background: #fff; }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 16px 0; }
.fit > div { border-top: 3px solid var(--accent); padding-top: 12px; }
.fit > div.no { border-top-color: var(--line); }
.fit h3 { margin: 0 0 8px; font-size: 18px; }
@media (max-width: 700px) { .fit { grid-template-columns: 1fr; } }
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 16px 0 8px; }
.pains > div { background: var(--paper); border: 1px solid var(--line); padding: 18px 20px; }
.pains strong { display: block; margin-bottom: 6px; font-size: 17px; }
.pains p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 800px) { .pains { grid-template-columns: 1fr; } }

/* ---------- Mobilusis meniu: telefone visos nuorodos viename „Meniu“ ---------- */
nav ul li.mnav { display: none; }
@media (max-width: 900px) {
  nav ul li.menu:not(.mnav) { display: none !important; }
  nav ul li.mnav { display: block !important; }
}

/* ---------- Reakcija paspaudimo momentu (ne tik užvedus pelę) ---------- */
.more-calcs a, .prod-card, .menu-panel a { transition: background-color .15s, transform .1s ease-out; }
.more-calcs a:active, .prod-card:active, .menu-panel a:active { transform: scale(.98); }
.chips label:active, .seg2 label:active { transform: scale(.97); }
.seg2 label { transition: background-color .15s, color .15s, transform .1s ease-out; }
.link:active { opacity: .7; }

/* ---------- Išskleidžiamas meniu atsiranda iš mygtuko ---------- */
@media (prefers-reduced-motion: no-preference) {
  .menu > details[open] > .menu-panel { animation: panel-in .16s cubic-bezier(.2,.8,.2,1); transform-origin: top right; }
}
@media (prefers-reduced-motion: reduce) {
  .menu > details[open] > .menu-panel { animation: panel-fade .12s ease-out; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes panel-fade { from { opacity: 0; } }

/* ---------- Pirmas ekranas: raktinė eilutė ir pasitikėjimo juosta ---------- */
.hero h1 .eyebrow { display: block; font-size: 16px; line-height: 1.4; letter-spacing: 0; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.hero-trust { grid-column: 1 / -1; margin: 0; font-size: 14px !important; color: var(--muted); max-width: none !important; }

/* ---------- Kvietimas po skaičiuoklės rezultato ---------- */
.calc-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-top: 24px; padding: 20px 24px; background: var(--paper); border: 2px solid var(--line); border-left: 4px solid var(--accent); }
.calc-cta p { margin: 0; max-width: 62ch; }
.tax .calc-cta { grid-column: 2; }
@media (max-width: 900px) { .tax .calc-cta { grid-column: 1; } }
