/* ==========================================================================
   Kabinet financí — lastworks.digital
   Vizuální systém: matná levandulová šeď, hluboká švestková, broušený titan
   ========================================================================== */

:root {
  --bg: #e7e3ec;
  --bg-deep: #dcd7e3;
  --panel: #f4f2f7;
  --panel-2: #ece9f1;
  --ink: #17121c;
  --ink-soft: #4a4351;
  --ink-mute: #746c7d;
  --plum: #4b1d3a;
  --plum-hi: #7a3560;
  --plum-ghost: rgba(75, 29, 58, .1);
  --rose: #c9a9bd;
  --line: rgba(75, 29, 58, .16);
  --line-soft: rgba(75, 29, 58, .08);
  --titan: linear-gradient(135deg, #f1eff4 0%, #c4c1cb 38%, #a9a6b1 55%, #e8e6ec 100%);
  --shadow-1: 0 1px 2px rgba(30, 18, 34, .05), 0 12px 28px -18px rgba(30, 18, 34, .35);
  --shadow-2: 0 2px 4px rgba(30, 18, 34, .06), 0 40px 70px -40px rgba(30, 18, 34, .5);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 56px);
  --step: clamp(56px, 9vw, 132px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  background-image:
    radial-gradient(120% 80% at 88% -10%, rgba(122, 53, 96, .13), transparent 60%),
    radial-gradient(90% 60% at -10% 100%, rgba(169, 166, 177, .35), transparent 60%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum-hi); }

:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-tight { max-width: 880px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--plum); color: #fff; padding: 12px 18px; font-family: var(--mono); font-size: 13px;
}
.skip:focus { left: 12px; top: 12px; color: #fff; }

/* --- Typografie ---------------------------------------------------------- */

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; margin: 0 0 .4em; line-height: 1.02; }
h1 { font-size: clamp(2.9rem, 8.2vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); line-height: 1.05; }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.15; }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.05em; }
.lead { font-size: clamp(1.06rem, 1.8vw, 1.32rem); color: var(--ink-soft); line-height: 1.6; max-width: 62ch; }
.small { font-size: .9rem; color: var(--ink-mute); }
strong { font-weight: 700; }

/* Štítek jako popiska u obrazu v galerii */
.tag {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--plum-hi);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.tag::before {
  content: "";
  width: 34px; height: 1px; background: var(--plum-hi); opacity: .55;
}
.tag-plain::before { display: none; }

.wall-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 18px;
}

/* --- Hlavička ------------------------------------------------------------ */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(231, 227, 236, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.head-in { display: flex; align-items: center; gap: 18px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { font-family: var(--serif); font-size: 1.24rem; font-weight: 400; letter-spacing: .01em; }
.brand-txt span { font-family: var(--mono); font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-mute); margin-top: 5px; }

.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a {
  font-size: .93rem; color: var(--ink-soft); text-decoration: none; padding: 9px 13px;
  border-radius: 2px; transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--plum); background: rgba(255, 255, 255, .5); }
.nav a[aria-current="page"] { color: var(--plum); font-weight: 700; }

.nav-toggle {
  margin-left: auto; display: none; width: 46px; height: 42px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .55); border-radius: 2px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 0 auto; transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4.5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-1.5px) rotate(-45deg); }

.head-cta { flex: none; }

/* --- Tlačítka ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: .93rem; font-weight: 700; letter-spacing: .01em;
  padding: 15px 26px; border-radius: 2px; border: 1px solid var(--plum);
  background: var(--plum); color: #f6f3f8; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .22s ease;
}
.btn:hover { background: var(--plum-hi); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(75, 29, 58, .9); }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .65); color: var(--plum); }
.btn-sm { padding: 11px 18px; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* --- Sekce a mřížka ------------------------------------------------------ */

.section { padding: var(--step) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(220, 215, 227, .55), rgba(231, 227, 236, 0)); }
.grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* asymetrie */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 76px); align-items: center; }
.split-wide { grid-template-columns: 1.35fr .65fr; }
.split-narrow { grid-template-columns: .62fr 1.38fr; }
.offset-down { transform: translateY(clamp(0px, 4vw, 62px)); }
.offset-up { transform: translateY(clamp(-58px, -3.6vw, 0px)); }

/* --- Panely -------------------------------------------------------------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: clamp(24px, 3.2vw, 40px);
  box-shadow: var(--shadow-1);
  position: relative;
}
.panel-float { box-shadow: var(--shadow-2); }
.panel-plum { background: var(--plum); color: #e9dfe6; border-color: transparent; }
.panel-plum h2, .panel-plum h3 { color: #fbf7fa; }
.panel-plum .tag { color: var(--rose); }
.panel-plum .tag::before { background: var(--rose); }
.panel-plum p { color: #d6c6d1; }
.panel-titan { background: var(--titan); border-color: rgba(255, 255, 255, .6); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- Obrázky ------------------------------------------------------------- */

.frame { position: relative; border-radius: 3px; overflow: hidden; box-shadow: var(--shadow-2); background: var(--bg-deep); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.frame:hover img { transform: scale(1.035); }
.frame-tall img { aspect-ratio: 3 / 4; }
.frame-wide img { aspect-ratio: 16 / 10; }
.frame-sq img { aspect-ratio: 1 / 1; }
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(75, 29, 58, .12), transparent 45%);
}

/* --- Hero ---------------------------------------------------------------- */

.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 80px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(28px, 5vw, 64px); align-items: end; }
.hero h1 { margin-bottom: .28em; }
.hero h1 em { font-style: italic; color: var(--plum); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute);
}
.hero-meta b { display: block; font-family: var(--serif); font-size: 1.7rem; letter-spacing: 0; text-transform: none; color: var(--plum); font-weight: 400; }

.hero-art { position: relative; }
.hero-art .frame-tall { max-height: 620px; }
.hero-chip {
  position: absolute; left: -30px; bottom: 44px; background: var(--panel); border: 1px solid var(--line-soft);
  padding: 18px 22px; box-shadow: var(--shadow-2); border-radius: 3px; max-width: 250px;
}
.hero-chip b { font-family: var(--serif); font-size: 1.9rem; display: block; line-height: 1; color: var(--plum); }
.hero-chip span { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }

/* --- Karty --------------------------------------------------------------- */

.card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 3px; padding: 30px 28px 26px;
  box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.card .idx { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--plum-hi); }
.card h3 { margin: 4px 0 2px; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.card-link { margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.card-link::after { content: " →"; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.stat-strip div { background: var(--panel); padding: 26px 22px; }
.stat-strip b { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: var(--plum); line-height: 1; }
.stat-strip span { font-family: var(--mono); font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-mute); }

/* --- Kalkulačka ---------------------------------------------------------- */

.calc { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(22px, 3vw, 44px); }
.calc-fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 2px; padding: 13px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px var(--plum-ghost); }
.calc-out { background: var(--plum); color: #f3e9ef; border-radius: 3px; padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.calc-out .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .16); padding-bottom: 12px; }
.calc-out .row:last-of-type { border-bottom: 0; }
.calc-out .row span { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #cbb4c3; }
.calc-out .row b { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 400; }
.calc-note { font-size: .84rem; color: #cdb9c6; margin: 0; }
.bar { height: 8px; background: rgba(255, 255, 255, .18); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--rose); width: 0; transition: width .5s cubic-bezier(.2, .7, .3, 1); }

/* --- Ceník --------------------------------------------------------------- */

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 3px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-1);
}
.price.is-featured { background: var(--panel-2); border-color: var(--plum); box-shadow: var(--shadow-2); }
.price .price-name { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; }
.price .price-num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--plum); line-height: 1; }
.price .price-num small { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); display: block; margin-top: 8px; }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.price li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--ink-soft); }
.price li::before { content: "—"; position: absolute; left: 0; color: var(--plum-hi); }
.price .btn { margin-top: auto; }
.price-flag { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--plum-hi); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
th { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); background: var(--panel-2); }
tbody tr:last-child td { border-bottom: 0; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* --- Kroky / proces ------------------------------------------------------ */

.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 90px 1fr 300px; gap: clamp(16px, 3vw, 40px); padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step .num { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; color: var(--plum-hi); padding-top: 6px; }
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; color: var(--ink-soft); }
.step .aside { font-family: var(--mono); font-size: .74rem; line-height: 1.7; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .07em; padding-top: 6px; }

/* --- Akordeon ------------------------------------------------------------ */

.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left; padding: 22px 44px 22px 0;
  font-family: var(--serif); font-size: clamp(1.12rem, 2vw, 1.42rem); color: var(--ink); position: relative; line-height: 1.25;
}
.acc-btn::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.3rem; color: var(--plum-hi); transition: transform .2s ease;
}
.acc-btn[aria-expanded="true"]::after { content: "–"; }
.acc-panel { display: none; padding: 0 40px 24px 0; color: var(--ink-soft); max-width: 74ch; }
.acc-panel.is-open { display: block; }

/* --- Citace / lidé ------------------------------------------------------- */

.quote { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.35rem); line-height: 1.22; color: var(--ink); margin: 0 0 22px; }
.byline { font-family: var(--mono); font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person .frame { margin-bottom: 16px; }
.person h4 { margin: 0 0 2px; }
.person .role { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--plum-hi); margin-bottom: 10px; display: block; }
.person p { font-size: .94rem; color: var(--ink-soft); margin: 0; }

/* --- Formulář ------------------------------------------------------------ */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--plum); }
.err { color: #8c2035; font-size: .82rem; font-family: var(--mono); min-height: 1em; display: block; }
.form-status {
  margin-top: 18px; padding: 16px 18px; border-radius: 3px; border: 1px solid var(--line);
  background: var(--panel-2); font-size: .95rem; display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { border-color: var(--plum); background: #fff; }

/* --- Kontaktní blok ------------------------------------------------------ */

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.contact-list .k { font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-mute); }
.contact-list .v { font-size: 1.05rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* --- Patička ------------------------------------------------------------- */

.site-foot { background: #1d1622; color: #b7adbe; padding: clamp(52px, 7vw, 88px) 0 30px; margin-top: var(--step); }
.site-foot a { color: #d9cfe0; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-grid h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #8d8395; margin-bottom: 16px; font-weight: 400; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .93rem; }
.foot-brand .brand-txt b { color: #f4eff7; }
.foot-brand .brand-txt span { color: #8d8395; }
.foot-brand p { font-size: .92rem; margin-top: 18px; max-width: 34ch; }
.foot-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #877d8f;
}

/* --- Cookie lišta -------------------------------------------------------- */

.cookie {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%);
  width: min(980px, calc(100% - 24px)); background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow-2); border-radius: 3px; padding: 22px 24px; z-index: 80;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  transition: transform .45s cubic-bezier(.2, .7, .3, 1), opacity .3s ease; opacity: 0;
}
.cookie.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.cookie p { margin: 0; font-size: .92rem; color: var(--ink-soft); max-width: 70ch; }
.cookie h4 { margin: 0 0 6px; font-size: 1rem; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- Drobečky, stránky dokumentů ----------------------------------------- */

.doc-head { padding: clamp(44px, 6vw, 84px) 0 clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.crumbs { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.doc { padding: clamp(34px, 5vw, 62px) 0; }
.doc h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-top: 2em; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 1.25rem; margin-top: 1.6em; }
.doc ul, .doc ol { padding-left: 20px; margin: 0 0 1.2em; }
.doc li { margin-bottom: .5em; color: var(--ink-soft); }
.doc p { color: var(--ink-soft); }
.doc-toc { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 3px; padding: 22px 26px; margin-bottom: 40px; }
.doc-toc ol { margin: 0; padding-left: 18px; columns: 2; column-gap: 30px; }
.doc-toc li { font-size: .93rem; break-inside: avoid; }

/* --- Reveal -------------------------------------------------------------- */

.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.rv.is-in { opacity: 1; transform: none; }

/* --- Responzivita -------------------------------------------------------- */

@media (max-width: 1020px) {
  .hero-grid, .split, .split-wide, .split-narrow, .calc { grid-template-columns: 1fr; }
  .offset-down, .offset-up { transform: none; }
  .g-4, .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .price-grid, .people { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 60px 1fr; }
  .step .aside { grid-column: 2; padding-top: 0; }
  .hero-chip { left: auto; right: 14px; bottom: 14px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .head-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--panel); border-bottom: 1px solid var(--line); padding: 12px var(--gut) 22px; gap: 0;
    display: none; box-shadow: var(--shadow-2);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .cookie { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .g-4, .stat-strip, .form-grid, .doc-toc ol { grid-template-columns: 1fr; columns: 1; }
  .hero-chip { position: static; margin-top: -18px; max-width: none; }
  .stat-strip div { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
}

@media print {
  .site-head, .site-foot, .cookie, .btn { display: none; }
  body { background: #fff; }
}
