/* Адвокатский кабинет Ольги Черновой — демо.
   Направление «Портрет»: слоновая кость, камень, чернила, глубокий бордо, латунь.
   Oranienbaum только на крупных кеглях, Commissioner для текста. */

:root {
  --ivory: #F6F3EE;
  --stone: #E4E1DA;
  --stone-2: #ECE9E3;
  --ink: #1E1919;
  --ink-2: #463F3D;
  --muted: #655B57;
  --burgundy: #6B1F32;
  --burgundy-deep: #4A1323;
  --burgundy-soft: #F1E6E6;
  --brass: #9A8657;
  --brass-ink: #6E5F37;
  --line: rgba(30, 25, 25, .15);
  --line-strong: rgba(30, 25, 25, .34);
  --f-display: 'Oranienbaum', 'Bodoni MT', 'Didot', 'Playfair Display', 'Times New Roman', serif;
  --f-body: 'Commissioner', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 4.4vw, 64px);
  --maxw: 1360px;
  --head-h: 68px;
  --rib-h: 31px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fs-body: clamp(17px, 1.05vw + 13px, 19px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 20px); }
html:has(.subnav) { scroll-padding-top: calc(var(--head-h) + 76px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 var(--fs-body)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--burgundy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--burgundy-deep); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brass-ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--burgundy); color: var(--ivory); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 12px 18px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow { font-size: 12.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy); }
.eyebrow--light { color: #E9D7C0; }
.serif-lead { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.9vw, 56px); line-height: 1.12; letter-spacing: -.005em; max-width: 22ch; text-wrap: balance; }
.h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; }
.mt-xl { margin-top: clamp(48px, 6vw, 80px); }
.note { font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 62ch; margin-top: 14px; }
.muted { color: var(--muted); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 60ch; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; min-height: 44px; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; align-self: flex-start; color: var(--burgundy); }
.link-arrow svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid var(--burgundy); background: var(--burgundy); color: var(--ivory); font: 600 16px/1.2 var(--f-body); text-decoration: none; cursor: pointer; border-radius: 2px; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); text-align: center; }
.btn:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--light { background: var(--ivory); color: var(--burgundy-deep); border-color: var(--ivory); }
.btn--light:hover { background: #fff; color: var(--burgundy-deep); border-color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15.5px; transition: background .2s, border-color .2s; }
.chip svg { width: 20px; height: 20px; }
.chip:hover { background: var(--stone); border-color: var(--ink); }
.round { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.round svg { width: 22px; height: 22px; }
.round:hover { background: var(--ink); color: var(--ivory); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head-h); background: rgba(246, 243, 238, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head__in { height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-height: 44px; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--burgundy); color: var(--ivory); font: 400 26px/1 var(--f-display); border-radius: 2px; padding-bottom: 2px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt b { font-family: var(--f-display); font-weight: 400; font-size: 21px; letter-spacing: .005em; }
.brand__txt small { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 15.5px; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--burgundy); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.head-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: transparent; border-radius: 2px; font-weight: 650; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.head-phone svg { width: 18px; height: 18px; }
.head-phone:hover { background: var(--ink); color: var(--ivory); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); background: transparent; border-radius: 2px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 1.6px; background: var(--ink); content: ""; transition: transform .3s var(--ease), background .3s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- HERO: Имя-маска ---------- */
.hero { position: relative; --rib-h: 31px; }
.hero__stage { position: relative; display: flex; flex-direction: column; min-height: min(92vh, 1100px); min-height: min(92svh, 1100px); overflow: hidden; background: var(--ivory); }
.hero.is-live { height: 240vh; height: 240svh; }
.hero.is-live .hero__stage { position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); height: calc(100svh - var(--head-h)); min-height: 0; }

.hero__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #3a2a22; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: saturate(.9) contrast(1.12) brightness(.86); transform: scale(var(--ph, 1)); transform-origin: 50% 55%; will-change: transform; }
.hero__wash { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(84, 14, 34, .6), rgba(107, 31, 50, .4)); mix-blend-mode: multiply; }

.hero__top { position: relative; z-index: 3; display: flex; justify-content: space-between; gap: 20px; padding: 22px var(--gutter) 0; font-size: 12.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy); opacity: var(--uo, 1); }
.hero__name { position: relative; z-index: 2; flex: 1 1 auto; min-height: 0; margin: 6px 0; }
.hero__plate { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; bottom: 0; width: calc(100% - 2 * var(--gutter)); height: 100%; overflow: visible; opacity: var(--po, 1); }
.hero__plate--tall { display: none; }
.plate-fill { fill: var(--ivory); }
.nm { font-family: var(--f-display); font-weight: 400; }

.hero__bottom { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.15fr) auto; gap: 14px 40px; align-items: end; padding: 0 var(--gutter) calc(var(--rib-h) + 22px); opacity: var(--uo, 1); }
.hero__lead { grid-column: 1; font-family: var(--f-display); font-size: clamp(21px, 2vw, 29px); line-height: 1.22; max-width: 34ch; color: var(--ink); }
.hero__actions { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hero__reg { grid-column: 1; font-size: 13.5px; color: var(--muted); letter-spacing: .02em; }
.hero__cue { display: none; }
.js .hero.is-live .hero__cue { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; right: calc(var(--gutter) / 2 - 7px); top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; white-space: nowrap; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 650; opacity: calc(1 - var(--p, 0) * 12); z-index: 3; }
.hero__cue span { width: 1px; height: 30px; background: var(--brass-ink); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero.ui-off .hero__top, .hero.ui-off .hero__bottom { visibility: hidden; }

.facts { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--ivory); border-top: 1px solid var(--line-strong); }
.hero.is-live .facts { position: absolute; left: 0; right: 0; bottom: 0; transform: translate3d(0, var(--ft, 100%), 0); }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 20px clamp(14px, 1.6vw, 26px) 22px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: var(--gutter); }
.fact__k { font-size: 11.5px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; color: var(--burgundy); }
.fact__v { font-size: 15.5px; line-height: 1.35; font-weight: 500; color: var(--ink); }

/* ---------- Chapters ---------- */
.chap { padding-block: clamp(72px, 9vw, 140px) 0; }
.chap__grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
.chap__grid::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-strong); }
.chap__head { display: flex; align-items: baseline; gap: 16px; }
.chap__no { font-family: var(--f-display); font-size: clamp(44px, 5vw, 72px); line-height: .9; color: var(--brass); }
.chap__body { min-width: 0; }

.about { padding-bottom: clamp(24px, 4vw, 56px); }
.about__cols { display: grid; gap: 36px; margin-top: clamp(32px, 4vw, 56px); }
.about__photo { position: relative; }
.about__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: saturate(.85) sepia(.12); }
.about__photo figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }

.idcard { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr; }
.idcard > div { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.idcard dt { font-size: 12px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; color: var(--burgundy); padding-top: 4px; }
.idcard dd { font-weight: 500; }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.about__actions .note { flex-basis: 100%; margin-top: 4px; }
.cats { margin-top: 20px; border-top: 1px solid var(--line); }
.cats li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); }
.cats li::before { content: ""; position: absolute; left: 0; top: 25px; width: 18px; height: 1px; background: var(--brass-ink); }

/* ---------- Practice ---------- */
.practice { padding-bottom: clamp(48px, 7vw, 96px); }
.prac-list { border-top: 1px solid var(--ink); }
.prac { border-bottom: 1px solid var(--line-strong); }
.prac summary { list-style: none; display: grid; grid-template-columns: 48px 1fr 44px; align-items: center; gap: 14px; padding: clamp(18px, 2.4vw, 30px) 0; cursor: pointer; min-height: 72px; }
.prac summary::-webkit-details-marker { display: none; }
.prac__n { font-size: 13px; letter-spacing: .12em; font-weight: 650; color: var(--brass-ink); }
.prac__t { font-family: var(--f-display); font-size: clamp(27px, 4.1vw, 58px); line-height: 1.08; letter-spacing: -.005em; transition: color .3s, transform .5s var(--ease); }
.prac summary:hover .prac__t { color: var(--burgundy); transform: translateX(8px); }
.prac__i { position: relative; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background .3s, border-color .3s; }
.prac__i::before, .prac__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .35s var(--ease), background .3s; }
.prac__i::after { transform: translate(-50%, -50%) rotate(90deg); }
.prac[open] .prac__i { background: var(--burgundy); border-color: var(--burgundy); }
.prac[open] .prac__i::before, .prac[open] .prac__i::after { background: var(--ivory); }
.prac[open] .prac__i::after { transform: translate(-50%, -50%) rotate(0deg); }
.prac[open] .prac__t { color: var(--burgundy); }
.prac__b { display: grid; gap: 14px; padding: 0 0 clamp(26px, 3vw, 40px) 62px; max-width: 78ch; animation: prac-in .5s var(--ease) both; }
@keyframes prac-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.prac__price { padding: 14px 18px; background: var(--stone-2); border-left: 2px solid var(--brass); font-size: 16px; }
.prac__price b { font-weight: 650; color: var(--burgundy-deep); white-space: nowrap; }
.prac__price span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }

/* ---------- Plate (burgundy chapter) ---------- */
.plate { position: relative; margin-top: clamp(40px, 5vw, 80px); background: var(--burgundy-deep); color: #F4E9E3; padding-block: clamp(64px, 8vw, 120px); overflow: hidden; }
.plate::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(154, 134, 87, .14) 0 2px, transparent 2px 38px); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.plate__grid { position: relative; display: grid; gap: 44px; align-items: center; }
.plate__h { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 4.2vw, 62px); line-height: 1.1; margin-top: 16px; max-width: 18ch; text-wrap: balance; }
.plate__p { margin-top: 22px; max-width: 54ch; color: #EBDCD3; }
.tool-links { margin-top: 30px; border-top: 1px solid rgba(244, 233, 227, .28); max-width: 560px; }
.tool-links a { display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 14px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid rgba(244, 233, 227, .28); color: #fff; text-decoration: none; font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 28px); transition: padding .3s var(--ease), color .3s; }
.tool-links a small { font-family: var(--f-body); font-size: 13px; letter-spacing: .08em; color: #D9C5A0; }
.tool-links a svg { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.tool-links a:hover { padding-left: 10px; color: #F0DDB8; }
.tool-links a:hover svg { transform: translateX(4px); }
.plate__note { margin-top: 22px; font-size: 14px; color: #D8C8C0; max-width: 56ch; }
.plate__fig { color: #E9D7C0; }
.plate__fig svg { width: 100%; height: auto; max-width: 560px; margin-inline: auto; display: block; }
.plate__fig figcaption { font-size: 13px; color: #CDB9AE; margin-top: 10px; text-align: center; }
.tn rect { fill: #4A1323; stroke: rgba(233, 215, 192, .6); stroke-width: 1.2; }
.tn text { fill: #F4E9E3; font: 500 15.5px var(--f-body); }
.tn .tn--on { fill: #6E2A3E; stroke: #F0DDB8; }
.tn .tn--me { fill: #F4E9E3; stroke: #F4E9E3; }
.tn .tn--me + text { fill: var(--burgundy-deep); font-weight: 650; }

/* ---------- Gallery «Как я работаю» ---------- */
.method { padding-bottom: clamp(48px, 7vw, 96px); }
.gallery { margin-top: clamp(32px, 4vw, 56px); }
.gallery__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.gallery__bar .note { margin: 0; }
.gallery__btns { display: none; gap: 10px; }
.gallery__track { display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x proximity; padding: 4px max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))) 24px; scroll-padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--brass) transparent; outline-offset: -3px; }
.gallery__track::-webkit-scrollbar { height: 6px; }
.gallery__track::-webkit-scrollbar-thumb { background: var(--brass); border-radius: 3px; }
.frame { position: relative; flex: 0 0 min(78vw, 360px); scroll-snap-align: start; display: flex; flex-direction: column; }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.8) sepia(.1) contrast(1.02); background: var(--stone); }
.frame__cap { display: grid; gap: 6px; padding: 16px 2px 0; }
.frame__cap b { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1; color: var(--burgundy); }
.frame__cap span { font-size: 15.5px; color: var(--ink-2); max-width: 36ch; }
.frame--steps { background: var(--burgundy); color: #F4E9E3; padding: clamp(22px, 2.4vw, 36px); justify-content: center; min-height: 380px; }
.steps { counter-reset: s; margin-top: 18px; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; display: grid; gap: 2px; padding: 16px 0 16px 46px; border-top: 1px solid rgba(244, 233, 227, .28); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; font-family: var(--f-display); font-size: 30px; line-height: 1; color: #D9C5A0; }
.steps b { font-weight: 650; font-size: 17px; }
.steps span { font-size: 15px; color: #E7D6CD; }

/* ---------- Publications ---------- */
.press { padding-bottom: clamp(48px, 7vw, 96px); }
.pubs { border-top: 1px solid var(--ink); }
.pubs li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 18px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
.pubs__y { grid-row: span 3; font-family: var(--f-display); font-size: 28px; line-height: 1.1; color: var(--brass-ink); }
.pubs__k { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; font-weight: 650; color: var(--burgundy); }
.pubs__t { font-family: var(--f-display); font-size: clamp(23px, 2.5vw, 32px); line-height: 1.18; }
.pubs__v { font-size: 15px; color: var(--muted); }

/* ---------- Reception ---------- */
.reception { padding-bottom: clamp(64px, 8vw, 120px); }
.reception__band { position: relative; height: clamp(190px, 26vw, 320px); overflow: hidden; background: #2b2222; color: var(--ivory); }
.reception__band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(.7) contrast(1.05); }
.reception__band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(74, 19, 35, .92), rgba(74, 19, 35, .55) 55%, rgba(74, 19, 35, .25)); }
.reception__bandin { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(22px, 3vw, 40px); }
.reception__h { font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 7.4vw, 108px); line-height: .96; margin-top: 8px; color: #fff; }
.reception__grid { display: grid; gap: 48px; padding-top: clamp(36px, 5vw, 64px); }
.reception__info { display: grid; gap: 22px; align-content: start; min-width: 0; }
.addr { font-style: normal; display: grid; gap: 4px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; }
.addr__id { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.addr b { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; }
.open { display: inline-flex; align-items: center; gap: 10px; align-self: start; justify-self: start; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: 15px; }
.open__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.open.is-open .open__dot { background: #2f7a4d; box-shadow: 0 0 0 4px rgba(47, 122, 77, .18); }
.open.is-closed .open__dot { background: var(--burgundy); }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.hours th { font-weight: 600; width: 44%; }
.duty { padding: 18px 20px; background: var(--stone); border-left: 3px solid var(--burgundy); display: grid; gap: 4px; }
.duty p { font-size: 15px; color: var(--ink-2); }
.duty__tel { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; font-family: var(--f-display); font-size: clamp(30px, 3.2vw, 42px); color: var(--burgundy); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.duty__tel:hover { color: var(--burgundy-deep); }
.chan-row { display: flex; flex-wrap: wrap; gap: 10px; }
.map { border: 1px solid var(--line-strong); background: var(--stone-2); }
.map svg { width: 100%; height: auto; display: block; }
.map figcaption { padding: 8px 14px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.map__bg { fill: var(--stone-2); }
.map__blk rect { fill: var(--ivory); stroke: var(--line); stroke-width: 1; }
.map__water { fill: none; stroke: #CBD2D3; stroke-width: 26; stroke-linecap: round; }
.map__ripple { fill: none; stroke: #E5E9E8; stroke-width: 2; stroke-dasharray: 3 10; stroke-linecap: round; }
.map__st path { fill: none; stroke: #D7D2C7; stroke-width: 10; }
.map__lbl { font: 600 11px var(--f-body); fill: var(--muted); letter-spacing: .06em; }
.map__lbl--w { fill: #6C787B; }
.map__pin path { fill: var(--burgundy); stroke: var(--ivory); stroke-width: 2; }
.map__pin circle { fill: var(--ivory); }
.map__card rect { fill: var(--ink); }
.map__card text { fill: var(--ivory); font: 650 12px var(--f-body); }
.map__card text.s { font-weight: 500; font-size: 10.5px; fill: #D8CEC4; }
.map__n path { fill: var(--ink); }
.map__n text { font: 700 11px var(--f-body); fill: var(--ink); }
.reception__info > .btn { justify-self: start; }

.reception__form { background: var(--stone-2); border: 1px solid var(--line); padding: clamp(22px, 3vw, 40px); align-self: start; display: grid; gap: 14px; }
.form { display: grid; gap: 16px; margin-top: 6px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; letter-spacing: .02em; padding: 0; }
.field label small { font-weight: 400; color: var(--muted); font-size: 13px; }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea, .field select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-strong); background: var(--ivory); border-radius: 2px; font: 400 17px/1.4 var(--f-body); color: var(--ink); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--brass-ink); outline-offset: 1px; border-color: var(--ink); }
.chan__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chan__opts label { position: relative; font-weight: 500; letter-spacing: 0; }
.chan__opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chan__opts span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--ivory); font-size: 15.5px; }
.chan__opts input:checked + span { background: var(--burgundy); border-color: var(--burgundy); color: var(--ivory); }
.chan__opts input:focus-visible + span { outline: 3px solid var(--brass-ink); outline-offset: 2px; }
.form__warn { font-size: 14.5px; line-height: 1.5; padding: 12px 14px; background: var(--burgundy-soft); border-left: 2px solid var(--burgundy); color: var(--burgundy-deep); }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 14.5px; line-height: 1.5; align-items: start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--burgundy); }
.check a { white-space: nowrap; }

/* ---------- Footer & mobile bar ---------- */
.site-foot { background: var(--ink); color: #D9D3CC; padding: clamp(48px, 6vw, 88px) 0 24px; }
.foot__grid { display: grid; gap: 36px; }
.foot__id .foot__brand { font-family: var(--f-display); font-size: 30px; color: #fff; margin-bottom: 12px; line-height: 1.15; }
.foot__id p { font-size: 15px; line-height: 1.6; }
.foot__nav { display: grid; align-content: start; gap: 2px; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; color: #F1ECE6; text-decoration: none; font-weight: 550; }
.foot__nav a:hover, .foot__legal a:hover { color: #E7D2A6; }
.foot__contact { display: grid; gap: 6px; align-content: start; font-size: 15px; }
.foot__contact button { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: #fff; font-family: var(--f-display); font-size: 28px; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.foot__legal { position: relative; display: grid; gap: 6px; margin-top: 40px; padding-top: 22px; font-size: 13.5px; color: #B8B0A8; }
.foot__legal::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255, 255, 255, .18); }
.foot__legal a { color: #D9D3CC; }
:focus-visible.on-dark, .site-foot :focus-visible { outline-color: #E7D2A6; }

.mbar { display: none; }

/* ---------- Inner pages ---------- */
.pagehead { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(36px, 5vw, 64px); }
.pagehead__fig { display: none; }
.pagehead__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.85) sepia(.1); background: var(--stone); }
.pagehead__fig figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }
@media (min-width: 900px) {
  .pagehead--fig { display: grid; grid-template-columns: minmax(0, 1fr) clamp(250px, 25vw, 360px); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .pagehead--fig > * { grid-column: 1; }
  .pagehead--fig > .pagehead__fig { display: block; grid-column: 2; grid-row: 2 / span 3; align-self: end; margin-bottom: 0; }
  .pagehead--fig > .qfacts { grid-column: 1 / -1; }
  .pagehead--fig .pagehead__h { font-size: clamp(44px, 6.8vw, 104px); }
}
.crumbs { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.crumbs a:hover { color: var(--burgundy); }
.pagehead__h { font-family: var(--f-display); font-weight: 400; overflow-wrap: normal; word-break: normal; hyphens: manual; font-size: clamp(34px, 9.4vw, 140px); line-height: .94; letter-spacing: -.01em; max-width: 100%; color: var(--ink); }
.pagehead__h--doc { font-size: clamp(30px, 6.6vw, 88px); max-width: 18ch; }
.pagehead__h em { font-style: normal; color: var(--burgundy); }
.pagehead__lead { margin-top: clamp(22px, 3vw, 36px); max-width: 52ch; font-size: clamp(18px, 1.5vw, 22px); color: var(--ink-2); }
.qfacts { display: grid; gap: 0; margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--ink); }
.qfacts > div { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.qfacts b { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4vw, 54px); line-height: 1; color: var(--burgundy); }
.qfacts span { font-size: 15px; color: var(--ink-2); }

.subnav { position: sticky; top: var(--head-h); z-index: 40; background: rgba(246, 243, 238, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-block: 1px solid var(--line); }
.subnav__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 15px; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-cur { border-bottom-color: var(--burgundy); color: var(--burgundy); }
.subnav a:first-child { padding-left: 0; }

.sec { padding-block: clamp(56px, 7vw, 104px) 0; }
.sec__head { display: grid; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line-strong); margin-bottom: clamp(24px, 3vw, 40px); }
.sec__h { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 4.4vw, 62px); line-height: 1.08; max-width: 22ch; text-wrap: balance; }
.sec__lead { max-width: 62ch; color: var(--ink-2); }
.refs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ref { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); }
.ref--stamp { border-color: var(--brass); color: var(--brass-ink); background: rgba(154, 134, 87, .1); }

.tool { background: var(--stone); border: 1px solid var(--line); padding: clamp(18px, 3vw, 44px); }
.tool__disc { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-strong); font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }

/* Tree */
.tree { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: ". unc ." ". gp ." "fa . mo" "sib dec sp" "nep ch gc"; gap: 22px 22px; padding: 4px 0 6px; }
.tree::before { content: ""; position: absolute; left: 50%; top: 20px; bottom: 20px; width: 1px; background: var(--line-strong); transform: translateX(-.5px); }
.tn-card { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ord txt" "ctl ctl"; gap: 8px 10px; align-items: center; padding: 14px 14px 12px; background: var(--ivory); border: 1px solid var(--line-strong); border-radius: 2px; transition: border-color .3s, background .3s, box-shadow .3s; min-width: 0; }
.tn-card[data-node="unc"] { grid-area: unc; } .tn-card[data-node="gp"] { grid-area: gp; }
.tn-card[data-node="fa"] { grid-area: fa; } .tn-card[data-node="mo"] { grid-area: mo; }
.tn-card[data-node="sib"] { grid-area: sib; } .tn-card[data-node="sp"] { grid-area: sp; }
.tn-card[data-node="nep"] { grid-area: nep; } .tn-card[data-node="ch"] { grid-area: ch; } .tn-card[data-node="gc"] { grid-area: gc; }
.tn-card[data-node="fa"]::after, .tn-card[data-node="sib"]::after, .tn-card[data-node="nep"]::after { content: ""; position: absolute; left: 100%; top: 50%; width: 22px; height: 1px; background: var(--line-strong); }
.tn-card[data-node="mo"]::after, .tn-card[data-node="sp"]::after, .tn-card[data-node="gc"]::after { content: ""; position: absolute; right: 100%; top: 50%; width: 22px; height: 1px; background: var(--line-strong); }
.tn-card[data-node="fa"]::after { width: calc(50% + 22px); } .tn-card[data-node="mo"]::after { width: calc(50% + 22px); }
.tn-ord { grid-area: ord; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--stone); font-family: var(--f-display); font-size: 17px; line-height: 1; color: var(--ink-2); padding-bottom: 1px; transition: background .3s, color .3s; }
.tn-txt { grid-area: txt; display: grid; gap: 1px; line-height: 1.25; min-width: 0; }
.tn-txt b { font-weight: 650; font-size: 15.5px; }
.tn-txt small { font-size: 12.5px; color: var(--muted); }
.tn-ctl { grid-area: ctl; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.step { width: 44px; height: 44px; border: 1px solid var(--line-strong); background: var(--stone-2); border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; transition: background .2s, color .2s, border-color .2s; }
.step:hover:not(:disabled) { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.step:disabled { opacity: .35; cursor: default; }
.tn-val { flex: 1; text-align: center; font-family: var(--f-display); font-size: 28px; line-height: 1; min-width: 40px; }
.tn-share { position: absolute; top: -13px; right: 10px; padding: 3px 11px 4px; background: var(--burgundy); color: var(--ivory); font-weight: 650; font-size: 14px; line-height: 1.3; border-radius: 999px; box-shadow: 0 2px 0 var(--ivory); }
.tn-share[hidden] { display: none; }
.tn-card.is-on { background: #fff; border-color: var(--ink); }
.tn-card.is-called { border-color: var(--burgundy); box-shadow: inset 0 0 0 1px var(--burgundy); background: var(--burgundy-soft); }
.tn-card.is-called .tn-ord { background: var(--burgundy); color: var(--ivory); }
.tn-card.is-dim { background: var(--stone-2); border-style: dashed; }
.tn-card.is-dim .tn-txt b { color: var(--muted); }
.tn-dec { grid-area: dec; position: relative; z-index: 1; display: grid; place-items: center; text-align: center; padding: 16px 12px; background: var(--ink); color: var(--ivory); border-radius: 2px; min-height: 96px; }
.tn-dec b { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.1; }
.tn-dec small { font-size: 12.5px; color: #CFC7BE; }

.live { position: sticky; bottom: 14px; z-index: 6; margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; background: var(--ink); color: var(--ivory); border-radius: 2px; box-shadow: 0 12px 32px rgba(30, 25, 25, .28); }
.live b { font-weight: 600; font-size: 16px; line-height: 1.35; }
.live a { color: #E7D2A6; white-space: nowrap; font-weight: 600; font-size: 15px; }
.res { margin-top: 18px; display: grid; gap: 18px; padding: clamp(18px, 2.4vw, 32px); background: var(--ivory); border: 1px solid var(--ink); }
.res__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.12; color: var(--burgundy-deep); }
.res__list { border-top: 1px solid var(--line-strong); }
.res__list li { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.res__list li b { font-weight: 650; color: var(--burgundy); white-space: nowrap; }
.res__list li.is-off { color: var(--muted); font-weight: 400; }
.res__list li.is-off b { color: var(--muted); font-weight: 500; }
.res__text { max-width: 70ch; color: var(--ink-2); }
.res__vary { display: grid; gap: 4px; padding: 14px 16px; background: var(--stone-2); border-left: 2px solid var(--brass); font-size: 15px; }
.res__vary summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.res__vary ul { display: grid; gap: 8px; padding: 4px 0 6px 18px; list-style: disc; }
.res__acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.toast { font-size: 14px; color: #2f7a4d; font-weight: 600; min-height: 1.4em; }

/* Deadline */
.dl { display: grid; gap: 28px; }
.dl__in { display: grid; gap: 16px; align-content: start; }
.dl__in label { font-weight: 600; font-size: 15px; }
.dl__in input[type="date"] { min-height: 56px; padding: 10px 14px; border: 1px solid var(--line-strong); background: var(--ivory); border-radius: 2px; font: 500 20px/1 var(--f-body); color: var(--ink); width: 100%; max-width: 320px; }
.dl__in input[type="date"]:focus-visible { outline: 3px solid var(--brass-ink); outline-offset: 1px; }
.dl__out { padding: clamp(18px, 2.4vw, 30px); background: var(--ivory); border: 1px solid var(--ink); display: grid; gap: 14px; }
.dl__big { font-family: var(--f-display); font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; color: var(--burgundy-deep); }
.dl__sub { font-weight: 600; }
.track { position: relative; height: 12px; background: var(--stone); border-radius: 6px; margin: 22px 0 36px; }
.track__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--burgundy); border-radius: 6px; transition: width .6s var(--ease); width: 0; }
.track__tick { position: absolute; top: 18px; transform: translateX(-50%); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.track__tick::before { content: ""; position: absolute; left: 50%; top: -12px; width: 1px; height: 8px; background: var(--line-strong); }
.track__tick--s { transform: none; } .track__tick--s::before { left: 0; } .track__tick--e { transform: translateX(-100%); } .track__tick--e::before { left: 100%; }
.track__today { position: absolute; top: -9px; width: 2px; height: 30px; background: var(--ink); transition: left .6s var(--ease); }
.track__today::after { content: attr(data-label); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; background: var(--ink); color: var(--ivory); padding: 2px 8px; border-radius: 2px; }
.dl__text { color: var(--ink-2); max-width: 66ch; }

/* Checklist */
.chk-grid { display: grid; gap: 18px; }
.chk-group { background: var(--ivory); border: 1px solid var(--line-strong); padding: 6px 18px 14px; }
.chk-group h3 { font-size: 12px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; color: var(--burgundy); padding: 14px 0 8px; border-bottom: 1px solid var(--line); }
.chk-group .art { display: block; font-size: 13px; letter-spacing: .02em; color: var(--muted); text-transform: none; font-weight: 500; margin-top: 2px; }
.chk { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; align-items: start; }
.chk:last-child { border-bottom: 0; }
.chk input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--burgundy); }
.chk b { display: block; font-weight: 600; line-height: 1.35; }
.chk span span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.chk-prog { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.chk-prog__bar { flex: 1 1 200px; height: 8px; background: var(--ivory); border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.chk-prog__bar i { display: block; height: 100%; width: 0; background: var(--burgundy); transition: width .4s var(--ease); }
.chk-prog p { font-weight: 650; }

/* Fork: нотариус или суд */
.fork { display: grid; gap: 18px; }
.fork__col { padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--line-strong); background: var(--ivory); display: grid; gap: 14px; align-content: start; }
.fork__col--court { background: var(--burgundy-deep); color: #F4E9E3; border-color: var(--burgundy-deep); }
.fork__t { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
.fork__when { font-size: 15px; color: var(--muted); }
.fork__col--court .fork__when { color: #DDCBC1; }
.fork ul { display: grid; gap: 10px; }
.fork li { position: relative; padding-left: 22px; }
.fork li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: currentColor; opacity: .7; }
.fork__price { margin-top: 6px; padding-top: 14px; border-top: 1px solid currentColor; font-size: 15px; }
.fork__price b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1.1; }
.fork__col--court .fork__price { border-color: rgba(244, 233, 227, .35); }

.tl { counter-reset: t; margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--ink); }
.tl li { counter-increment: t; display: grid; grid-template-columns: 56px 1fr; gap: 6px 14px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.tl li::before { content: counter(t, decimal-leading-zero); grid-row: span 2; font-family: var(--f-display); font-size: 34px; line-height: 1; color: var(--brass-ink); }
.tl b { font-weight: 650; font-size: 18px; }
.tl span { color: var(--ink-2); max-width: 66ch; }

.docs { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.docs li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.docs li::before { content: ""; position: absolute; left: 0; top: 24px; width: 18px; height: 1px; background: var(--brass-ink); }
.docs b { font-weight: 600; }
.docs span { font-size: 15px; color: var(--muted); }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 36px; gap: 16px; align-items: center; min-height: 64px; padding: 14px 0; font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--f-body); font-size: 22px; transition: transform .3s var(--ease), background .3s, color .3s; }
.faq details[open] summary { color: var(--burgundy); }
.faq details[open] summary::after { content: "−"; background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
.faq .faq__a { padding: 0 0 24px; max-width: 70ch; color: var(--ink-2); display: grid; gap: 10px; animation: prac-in .5s var(--ease) both; }

.cta-band { margin-top: clamp(56px, 7vw, 104px); background: var(--stone); padding-block: clamp(40px, 6vw, 80px); }
.cta-band__grid { display: grid; gap: 36px; }
.cta-band__h { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.08; max-width: 16ch; }
.cta-band .reception__form { background: var(--ivory); }

/* Fees */
.fees { border-top: 1px solid var(--ink); }
.fee { border-bottom: 1px solid var(--line-strong); }
.fee__row { display: grid; grid-template-columns: 1fr; gap: 10px; padding: clamp(22px, 2.8vw, 34px) 0; }
.fee__t { font-family: var(--f-display); font-size: clamp(26px, 3vw, 42px); line-height: 1.1; }
.fee__d { color: var(--ink-2); max-width: 60ch; }
.fee__p { display: flex; flex-direction: column; gap: 2px; }
.fee__p b { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; color: var(--burgundy); white-space: nowrap; }
.fee__p small { font-size: 13.5px; color: var(--muted); }
.fee details { padding-bottom: 20px; }
.fee summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-weight: 650; color: var(--burgundy); border-bottom: 1px solid var(--line-strong); list-style: none; }
.fee summary::-webkit-details-marker { display: none; }
.fee details[open] summary { border-bottom-color: var(--burgundy); }
.fee__more { display: grid; gap: 14px; padding-top: 16px; }
.fee__more h4 { font-size: 12px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 4px; }
.fee__more ul { display: grid; gap: 6px; }
.fee__more li { position: relative; padding-left: 20px; font-size: 16px; }
.fee__more li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--brass-ink); }

.extra { display: grid; gap: 18px; }
.extra__c { padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line-strong); background: var(--ivory); display: grid; gap: 10px; align-content: start; }
.extra__c h3 { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.12; }
.extra__c p, .extra__c li { font-size: 16px; color: var(--ink-2); }
.extra__c ul { display: grid; gap: 8px; }
.extra__c li { position: relative; padding-left: 20px; }
.extra__c li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--brass-ink); }
.legal-box { margin-top: clamp(28px, 4vw, 48px); padding: 20px 22px; background: var(--burgundy-soft); border-left: 3px solid var(--burgundy); display: grid; gap: 6px; font-size: 15.5px; color: var(--burgundy-deep); }

/* Legal docs (privacy / consent) */
.doc { max-width: 78ch; padding-bottom: clamp(56px, 7vw, 100px); }
.doc h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); margin-top: 40px; line-height: 1.15; }
.doc p, .doc li { margin-top: 12px; color: var(--ink-2); }
.doc ul { list-style: disc; padding-left: 22px; }
.doc .stamp { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .qfacts { grid-template-columns: repeat(3, 1fr); }
  .qfacts > div { padding: 24px 28px 24px 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .qfacts > div + div { padding-left: 28px; }
  .qfacts > div:last-child { border-right: 0; }
  .fork { grid-template-columns: 1fr 1fr; }
  .extra { grid-template-columns: repeat(3, 1fr); }
  .pubs li { grid-template-columns: 84px 130px minmax(0, 1fr) 210px; align-items: baseline; gap: 18px; }
  .pubs__y { grid-row: auto; font-size: 34px; }
  .pubs__v { text-align: right; }
  .chk-grid { grid-template-columns: repeat(2, 1fr); }
  .fee__row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
  .fee__p { align-items: flex-end; text-align: right; }
}

@media (min-width: 900px) {
  .chap__grid { grid-template-columns: minmax(150px, 2fr) 10fr; gap: 40px; }
  .chap__head { flex-direction: column; align-items: flex-start; gap: 6px; position: sticky; top: calc(var(--head-h) + 28px); align-self: start; }
  .about__cols { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
  .about__photo { margin-top: 10px; }
  .idcard { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .plate__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 100px); }
  .gallery__btns { display: flex; }
  .frame { flex-basis: clamp(300px, 29vw, 440px); }
  .frame--steps { flex-basis: clamp(300px, 26vw, 400px); }
  .reception__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); }
  .reception__form { position: sticky; top: calc(var(--head-h) + 20px); }
  .foot__grid { grid-template-columns: 2fr 1fr 1.3fr; gap: 56px; }
  .dl { grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 40px; }
  .cta-band__grid { grid-template-columns: 1fr minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .tool .res { margin-top: 32px; }
}

@media (max-width: 1099px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .hero__reg { order: 3; }
  .facts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .facts::-webkit-scrollbar { display: none; }
  .fact { flex: 0 0 min(64vw, 250px); scroll-snap-align: start; }
  .fact:first-child { padding-left: var(--gutter); }
}

@media (max-width: 899px) {
  :root { --head-h: 60px; }
  .site-head__in { gap: 12px; }
  .brand__txt small { display: none; }
  .head-phone span { display: none; }
  .head-phone { width: 48px; padding: 0; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; background: var(--ivory); border-bottom: 1px solid var(--line-strong); box-shadow: 0 18px 30px rgba(30, 25, 25, .12); display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--line); padding: 0; }
  .site-nav a::after { display: none; }
  .tool { padding: 14px; margin-inline: calc(var(--gutter) * -0.5); }
  .prac__b { padding-left: 0; }
  .prac summary { grid-template-columns: 34px 1fr 44px; gap: 10px; }
}

@media (max-width: 760px) {
  .hero__plate--wide { display: none; }
  .hero__plate--tall { display: block; }
  .hero__top { font-size: 11px; letter-spacing: .12em; flex-direction: column; gap: 2px; padding-top: 16px; }
  .hero__top p:last-child { display: none; }
  .hero__stage { min-height: calc(100vh - var(--head-h) - 76px); min-height: calc(100svh - var(--head-h) - 76px); }
  .hero.is-live .hero__stage { height: calc(100vh - var(--head-h) - 76px); height: calc(100svh - var(--head-h) - 76px); }
  .hero__bottom { grid-template-columns: 1fr; gap: 12px; padding-bottom: calc(var(--rib-h) + 14px); }
  .hero__lead { font-size: 19px; max-width: none; }
  .hero__actions { grid-column: 1; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__actions .btn { min-height: 56px; padding: 0 10px; font-size: 15px; }
  .hero__reg { order: 3; font-size: 12.5px; }
  .js .hero.is-live .hero__cue { display: none; }
  body { padding-bottom: 76px; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .14); padding-bottom: env(safe-area-inset-bottom); }
  .mbar button { display: grid; place-items: center; gap: 2px; min-height: 64px; padding: 8px 2px 6px; background: none; border: 0; color: var(--ivory); font-size: 12.5px; font-weight: 600; cursor: pointer; border-right: 1px solid rgba(255, 255, 255, .1); }
  .mbar button:last-child { border-right: 0; background: var(--burgundy); }
  .mbar svg { width: 22px; height: 22px; }
  .mbar :focus-visible { outline-color: #E7D2A6; outline-offset: -4px; }
  .idcard > div { grid-template-columns: 1fr; gap: 2px; }
  .tool { margin-inline: 0; padding: 12px; }
  .live { bottom: 88px; }

  /* tree as a ladder list on phones */
  .tree { grid-template-columns: 1fr; grid-template-areas: "sp" "ch" "gc" "fa" "mo" "sib" "nep" "gp" "unc" "dec"; gap: 16px; padding-left: 18px; }
  .tree::before { left: 4px; top: 0; bottom: 0; transform: none; }
  .tn-card[data-node]::after { display: none; }
  .tn-card::before { content: ""; position: absolute; left: -14px; top: 50%; width: 14px; height: 1px; background: var(--line-strong); }
  .tn-card { grid-template-columns: auto 1fr auto; grid-template-areas: "ord txt ctl"; padding: 12px; gap: 10px; }
  .tn-ctl { gap: 2px; }
  .tn-val { min-width: 34px; font-size: 26px; }
  .step { width: 44px; height: 44px; }
  .tn-share { top: -12px; }
  .tn-dec { grid-area: dec; order: -1; }
  .tree { grid-template-areas: "dec" "sp" "ch" "gc" "fa" "mo" "sib" "nep" "gp" "unc"; }
  .res__list li { flex-direction: column; gap: 2px; }
  .fee__p { align-items: flex-start; text-align: left; }
}

@media (max-width: 380px) {
  .tn-txt b { font-size: 14.5px; }
  .tn-txt small { display: none; }
  .brand__txt b { font-size: 19px; }
}


/* misc */
.docs-grid { display: grid; gap: 28px; }
.mand { align-self: start; background: var(--burgundy-soft); border-color: rgba(107, 31, 50, .35); }
.mand h3 { color: var(--burgundy-deep); }
.mand .note { margin-top: 4px; }
.duty-note { margin-top: 22px; max-width: 46ch; }
.inline-tel { min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--burgundy); font: 600 inherit/1 var(--f-body); font-size: 1.05em; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.inline-tel:hover { color: var(--burgundy-deep); }
@media (min-width: 900px) { .docs-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); } }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__cue { display: none !important; }
}
@media print {
  .nx-ribbon, .site-head, .mbar, .subnav, .gallery__btns { display: none !important; }
}
.addr--sm { margin-top: 28px; font-size: 17px; }
.addr--sm b { font-size: 26px; }
.addr--sm span { color: var(--muted); font-size: 15px; margin-top: 2px; }
.cta-band .link-arrow { margin-top: 12px; }
