/* =========================================================
   Територія Закону — стилі теми v2 (макети Claude Design, жовтень 2026)
   Резинова сітка 390 → 1440 → 2560: усе в rem росте з кореневим кеглем,
   поля — з шириною вікна. Токени — tokens.css.
   ========================================================= */

/* ---------- База ---------- */
html { font-size: clamp(16px, 9.14px + .476vw, 22px); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.num { font-variant-numeric: lining-nums tabular-nums; }
.wrap { padding-inline: var(--g); }
.sec { padding-block: var(--sy); }
.sec--tint { background: var(--surface-2); }
.sec--plane { background: var(--plane); color: var(--on-plane); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }

/* ---------- Типографіка ---------- */
.eyebrow { display: flex; align-items: center; gap: 1rem; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; flex-shrink: 0; }
.hero .eyebrow, .sec--plane .eyebrow, .booking .eyebrow { color: var(--gold); }
.h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.5rem, .9rem + 3.9vw, 8rem); line-height: 1.02; letter-spacing: -.005em; }
.h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, .6rem + 2.4vw, 5rem); line-height: 1.06; }
.h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.625rem, 1rem + .9vw, 2.75rem); line-height: 1.12; }
.h4 { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
.lead { font-size: clamp(1.0625rem, .95rem + .25vw, 1.375rem); line-height: 1.6; color: var(--muted); }
.lead p + p { margin-top: 1rem; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2.5rem, 1rem + 2.5vw, 5rem); }
.sec-head__t { display: flex; flex-direction: column; gap: 1.25rem; max-width: 52rem; }
.sec-head__lead { color: var(--muted); font-size: 1.0625rem; }
.link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.link .icon { width: 1rem; height: 1rem; color: var(--accent); transition: transform .3s var(--ease); }
.link:hover .icon { transform: translateX(4px); }
.link--gold { color: var(--gold); }
.link--gold .icon { color: var(--gold); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .625rem; min-height: 3.5rem; padding: 0 1.5rem; border-radius: var(--r); font-weight: 700; font-size: 1rem; line-height: 1; border: 1px solid transparent; cursor: pointer; background: none; white-space: nowrap; transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--sm { min-height: 2.75rem; padding: 0 1rem; font-size: .875rem; }
.btn--ivory, .btn--ivory:hover { background: var(--ivory); color: #0F1B2D; }
.btn--ivory:hover { background: #F4EDE1; }
.btn--dark, .btn--dark:hover { background: var(--plane); color: var(--on-plane); }
.btn--dark:hover { background: #1E2D47; }
[data-theme="dark"] .btn--dark, [data-theme="dark"] .btn--dark:hover { background: var(--gold); color: #0B1422; }
[data-theme="dark"] .btn--dark:hover { background: #D4B97F; }
.btn--line { border-color: var(--line-strong); color: var(--text); font-weight: 600; font-size: .9375rem; padding: 0 1.125rem; }
.btn--line:hover { border-color: var(--text); color: var(--text); }
.btn--line-light { border-color: rgba(247, 248, 250, .3); color: var(--on-plane); font-weight: 600; font-size: .9375rem; padding: 0 1.125rem; }
.btn--line-light:hover { border-color: var(--gold); color: var(--gold); }
.btn__sep { width: 1px; height: 1.4em; background: currentColor; opacity: .25; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: .875rem; color: inherit; }
.logo__mark { width: 2.5rem; height: auto; color: currentColor; }
.logo__word { font-size: .8125rem; font-weight: 700; letter-spacing: .16em; line-height: 1.25; text-transform: uppercase; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--plane); color: var(--on-plane); border-bottom: 1px solid rgba(247, 248, 250, .1); }
[data-theme="dark"] .hdr { background: #0B1422; }
.hdr__in { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.hdr__nav .nav { list-style: none; display: flex; gap: clamp(1.5rem, 1rem + 1vw, 3rem); font-size: .9375rem; font-weight: 500; }
.hdr__nav a { color: #D3D9E2; padding-block: .5rem; transition: color .25s; }
.hdr__nav a:hover, .hdr__nav a[aria-current] { color: var(--on-plane); }
.hdr__nav a[aria-current] { box-shadow: inset 0 -1px 0 var(--gold); }
.hdr__tools { display: flex; align-items: center; gap: .75rem; }
.chip-btn { height: 2.75rem; min-width: 2.75rem; padding: 0 .875rem; border-radius: var(--r); border: 1px solid rgba(247, 248, 250, .18); background: transparent; color: #E8ECF2; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; font-size: .8125rem; cursor: pointer; list-style: none; transition: border-color .25s; }
.chip-btn::-webkit-details-marker { display: none; }
.chip-btn:hover { border-color: rgba(247, 248, 250, .45); }
.chip-btn .icon { width: 1.1rem; height: 1.1rem; }
.theme-toggle .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle .theme-toggle__moon { display: none; }
.hdr__phone { display: flex; align-items: center; gap: .75rem; padding-left: 1rem; margin-left: .25rem; border-left: 1px solid rgba(247, 248, 250, .14); min-height: 2.75rem; }
.hdr__phone .icon { width: 1.4rem; height: 1.4rem; color: var(--gold); }
.hdr__phone b { display: block; font-size: 1rem; letter-spacing: .02em; }
.hdr__phone small { display: block; font-size: .75rem; color: var(--on-plane-muted); line-height: 1.2; }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile__panel { position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; background: var(--plane); padding: 1.5rem var(--g) 7rem; overflow: auto; display: flex; flex-direction: column; gap: 2rem; animation: fade .25s var(--ease) both; }
.nav-mobile__panel .nav { list-style: none; display: flex; flex-direction: column; }
.nav-mobile__panel .nav a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--on-plane-line); font-family: var(--display); font-size: 2rem; line-height: 1.1; color: var(--on-plane); }
.nav-mobile__panel .nav a[aria-current] { color: var(--gold); }
.nav-mobile__contacts { display: flex; flex-direction: column; gap: .75rem; }
.nav-mobile__contacts .btn { width: 100%; }
.nav-mobile[open] .icon-menu { display: none; }
.nav-mobile .icon-close { display: none; }
.nav-mobile[open] .icon-close { display: block; }

/* Мова: випадний список на <details>, без JS */
.lang { position: relative; }
.lang summary svg { transition: transform .3s var(--ease); }
.lang[open] summary { border-color: rgba(247, 248, 250, .45); }
.lang[open] summary svg { transform: rotate(180deg); }
.lang__menu { list-style: none; position: absolute; right: 0; top: calc(100% + .5rem); min-width: 13rem; background: var(--plane-2); border: 1px solid rgba(247, 248, 250, .14); border-radius: 6px; padding: .375rem; box-shadow: 0 22px 48px -18px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 2px; z-index: 40; animation: rise .25s var(--ease) both; }
.lang__item { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: 0 .75rem; border-radius: 4px; font-size: .875rem; font-weight: 500; color: #E8ECF2; }
.lang__item b { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; color: var(--gold); width: 1.75rem; }
a.lang__item:hover { background: rgba(247, 248, 250, .07); color: #FFFFFF; }
.lang__item[aria-current] { background: rgba(201, 168, 102, .14); }
.lang__item[aria-current]::after { content: ""; margin-left: auto; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); }
.lang__item--off { color: #6F7B8F; cursor: not-allowed; }

/* ---------- Перший екран ---------- */
.hero { background: var(--plane); color: var(--on-plane); display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); min-height: clamp(560px, 30rem + 23vw, 1400px); }
.hero__text { padding: clamp(2.5rem, 1rem + 3vw, 6.5rem) clamp(1.5rem, 3.3vw, 5.5rem) clamp(2.5rem, 1.5rem + 1.5vw, 5rem) var(--g); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.hero .h1 { margin-top: 1.75rem; color: var(--on-plane); }
.hero .lead { margin-top: 1.75rem; max-width: 38rem; color: var(--on-plane-muted); }
.promise { margin-top: 1.125rem; display: flex; gap: .75rem; font-weight: 500; font-size: 1.0625rem; }
.hero .promise { color: #E8ECF2; }
.promise .icon { width: 1.25rem; height: 1.25rem; margin-top: .2em; color: var(--gold); stroke-width: 1.9; }
.shead .promise .icon { color: var(--accent); }
.hero__cta { margin-top: 2.5rem; }
.hint { margin-top: 1rem; font-size: .875rem; color: var(--on-plane-muted); }
.hint a { color: #E8ECF2; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201, 168, 102, .7); }
.hint a:hover { color: var(--gold); }
.trust { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding-top: 1.625rem; border-top: 1px solid var(--on-plane-line); }
.trust__v { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 600; font-size: clamp(2.25rem, 1.4rem + 1.3vw, 4.25rem); line-height: 1; font-variant-numeric: lining-nums; }
.trust__v em { font-style: normal; color: var(--gold); }
.trust__v .icon { width: .55em; height: .55em; fill: var(--gold); stroke: none; }
.trust__l { display: block; margin-top: .375rem; font-size: .875rem; color: var(--on-plane-muted); }
.trust__addr { font-size: .875rem; line-height: 1.45; display: flex; flex-direction: column; gap: .5rem; }
.trust__addr span { display: flex; gap: .5rem; }
.trust__addr .icon { width: 1.1rem; height: 1.1rem; color: var(--gold); margin-top: .15em; }
.trust--light { border-color: var(--line); }
.trust--light .trust__l { color: var(--muted); }
.trust--light .trust__v em { color: var(--accent); }
.portrait { margin: 0; position: relative; overflow: hidden; background: var(--portrait); }
.portrait picture, .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait img { object-fit: cover; object-position: 50% 14%; }
.portrait figcaption { position: absolute; left: 0; bottom: clamp(1.25rem, 3vw, 4.5rem); background: var(--plane); padding: 1.125rem 1.75rem 1.125rem 2rem; display: flex; flex-direction: column; gap: .375rem; }
[data-theme="dark"] .portrait figcaption { background: #0B1422; }
.portrait figcaption b { font-family: var(--display); font-size: 1.625rem; font-weight: 600; line-height: 1.1; color: var(--on-plane); }
.portrait figcaption span { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* ---------- Напрями (кластери) ---------- */
.clusters { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cluster { background: var(--surface); padding: clamp(1.5rem, 1rem + 1.2vw, 3rem); display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 1.25rem; align-content: start; position: relative; transition: background-color .35s; }
.cluster::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.cluster:hover { background: var(--hover); }
.cluster:hover::after { transform: scaleX(1); }
.cluster__n { font-family: var(--display); font-size: 1.125rem; font-weight: 600; color: var(--accent); }
.cluster__d { font-size: .9375rem; color: var(--muted); line-height: 1.55; }
.cluster__list { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--line); align-self: start; }
.cluster__list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8125rem 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .9375rem; transition: color .25s, padding .35s var(--ease); }
.cluster__list .icon { width: 1rem; height: 1rem; color: var(--accent); opacity: .5; transition: transform .3s var(--ease), opacity .3s; }
.cluster__list a:hover { color: var(--accent-text); padding-left: .375rem; }
.cluster__list a:hover .icon { opacity: 1; transform: translateX(3px); }
.clusters-note { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; font-size: .9375rem; color: var(--muted); }
.clusters-note .link { color: var(--text); }

/* ---------- Кроки ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 2.5vw, 4rem); }
.step__top { display: flex; align-items: center; gap: 1rem; }
.step__n { font-family: var(--display); font-size: clamp(2.75rem, 1.8rem + 1.4vw, 5rem); line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.step__line { flex-grow: 1; height: 1px; background: var(--line-strong); transform-origin: 0 50%; }
.step:last-child .step__line { opacity: 0; }
.step h3 { margin-top: 1.25rem; }
.step p { margin-top: .625rem; color: var(--muted); font-size: .9375rem; }
.step__tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .375rem; }
.step__tag { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; font-weight: 600; color: var(--accent-text); border: 1px solid #DCCFB5; border-radius: 999px; padding: .3rem .75rem; transition: background-color .25s; }
[data-theme="dark"] .step__tag { border-color: rgba(201, 168, 102, .35); }
a.step__tag:hover { background: rgba(201, 168, 102, .14); }
.section-note { margin-top: 2rem; color: var(--muted); font-size: .9375rem; max-width: 52rem; }
.section-note strong { color: var(--text); }

/* ---------- Засновник ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 10rem); align-items: start; }
.founder__quote { margin-top: 2rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.875rem, .8rem + 2vw, 4.25rem); line-height: 1.15; }
.founder__quote em { font-style: italic; color: var(--accent-text); }
.founder__card { display: flex; flex-direction: column; gap: 1.25rem; }
.founder__who { display: flex; align-items: center; gap: 1.25rem; }
.avatar { width: clamp(4.5rem, 3.5rem + 1.5vw, 7rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, #2C4063, #1E2D47 70%); flex-shrink: 0; }
[data-theme="dark"] .avatar { background: radial-gradient(circle at 50% 35%, #F1F3F6, #D9DEE6 70%); }
.avatar picture, .avatar img { width: 100%; height: 100%; }
.avatar img { object-fit: cover; }
.founder__name { font-family: var(--display); font-size: 1.75rem; font-weight: 600; line-height: 1.1; }
.founder__role { margin-top: .25rem; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.founder__bio { color: var(--muted); }
.founder__pub { padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .75rem; }
.founder__pub h3 { font-size: .875rem; font-weight: 700; font-family: var(--sans); }
.founder__pub p { font-size: .875rem; color: var(--muted); }

/* ---------- Відгуки ---------- */
.rating { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); transition: border-color .25s; }
.rating:hover { border-color: var(--line-strong); }
.rating__v { font-family: var(--display); font-weight: 600; font-size: 2.25rem; line-height: 1; }
.stars { display: flex; gap: 2px; color: var(--accent); }
.stars .icon { width: 1.05rem; height: 1.05rem; fill: currentColor; stroke: none; }
.rating__l { display: block; font-size: .875rem; color: var(--muted); }
.reviews { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); padding: clamp(1.5rem, 1rem + 1vw, 2.75rem); display: flex; flex-direction: column; gap: 1.5rem; transition: transform .4s var(--ease), box-shadow .4s; }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.6; }
.review figcaption { margin-top: auto; font-size: .875rem; font-weight: 600; color: var(--muted); }
.review__q { font-family: var(--display); font-size: 3rem; line-height: .5; color: var(--accent); height: 1.25rem; }
.review--big { grid-row: span 2; background: var(--plane); color: var(--on-plane); border-color: var(--plane); }
[data-theme="dark"] .review--big { border-color: var(--line); }
.review--big blockquote { font-family: var(--display); font-size: clamp(1.5rem, 1rem + .9vw, 2.5rem); line-height: 1.3; }
.review--big figcaption { color: var(--on-plane-muted); }
.review--big .review__q { color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 8rem); }
.faq__head { display: flex; flex-direction: column; gap: 1.25rem; align-self: start; position: sticky; top: calc(var(--hdr) + 2rem); }
.faq__list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.375rem, 1rem + .6vw, 2.25rem); line-height: 1.2; transition: color .25s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-text); }
.qa__ic { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); transition: transform .4s var(--ease), background-color .3s; }
.qa__ic .icon { width: 1rem; height: 1rem; }
.qa[open] .qa__ic { transform: rotate(45deg); background: var(--surface); }
.qa__a { padding: 0 4rem 1.75rem 0; color: var(--muted); display: flex; flex-direction: column; gap: .875rem; max-width: 52rem; }
.qa__a a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
@supports selector(::details-content) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
  .qa[open]::details-content { height: auto; }
}

/* ---------- Як записатися: на всю ширину ---------- */
.booking-band { background: var(--plane); color: var(--on-plane); border-top: 1px solid var(--on-plane-line); position: relative; overflow: hidden; }
.booking-band::before { content: ""; position: absolute; right: -6%; top: -55%; width: 45%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(201, 168, 102, .10), rgba(201, 168, 102, 0) 65%); pointer-events: none; }
.booking { position: relative; padding-block: clamp(3.5rem, 2rem + 4vw, 9rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 8rem); }
.booking .h2 { margin-top: 1.25rem; }
.booking__meta { margin-top: 1.25rem; color: var(--on-plane-muted); font-size: .9375rem; }
.booking__ph { margin-top: 2rem; display: flex; flex-direction: column; gap: .25rem; }
.booking__ph a:first-child { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 1.2rem + 1.3vw, 3.75rem); line-height: 1.1; }
.booking__ph a + a { font-size: 1rem; color: var(--on-plane-muted); }
.booking__steps { list-style: none; display: flex; flex-direction: column; }
.booking__steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.375rem 0; border-bottom: 1px solid var(--on-plane-line); }
.booking__steps li:first-child { padding-top: 0; }
.booking__steps i { font-style: normal; font-family: var(--display); font-size: 1.75rem; line-height: 1; color: var(--gold); }
.booking__steps h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.booking__steps p { margin-top: .25rem; font-size: .9375rem; color: var(--on-plane-muted); }
.booking__cta { margin-top: 2rem; }

/* ---------- Підвал ---------- */
.ftr { border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 2rem + 3vw, 7rem) 2rem; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: clamp(2rem, 4vw, 6rem); }
.ftr__about { margin-top: 1.25rem; font-size: .9375rem; color: var(--muted); max-width: 24rem; }
.ftr h2 { font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1.25rem; }
.ftr ul { list-style: none; display: flex; flex-direction: column; gap: .75rem; font-size: .9375rem; }
.ftr li { display: flex; gap: .625rem; }
.ftr li > .icon { width: 1.05rem; height: 1.05rem; color: var(--accent); margin-top: .25em; }
.ftr a:hover { color: var(--accent-text); }
.socials { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.icon-btn { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--text); transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.icon-btn:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); color: var(--text); }
.icon-btn .icon { width: 1.1rem; height: 1.1rem; }
.ftr__bottom { margin-top: clamp(3rem, 2rem + 2vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .8125rem; color: var(--muted); }
.ftr__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.ftr__legal a:hover { color: var(--text); }
.heron { display: inline-flex; align-items: center; gap: .625rem; color: var(--muted); }
.heron img { height: 1.75rem; width: auto; opacity: .9; transition: opacity .25s; }
.heron:hover img { opacity: 1; }
.only-dark { display: none !important; }
[data-theme="dark"] .only-dark { display: block !important; }
[data-theme="dark"] .only-light { display: none !important; }

/* ---------- Мобільна панель ---------- */
.mbar { display: none; }
.mbar__write { position: relative; }
.mbar__write summary { list-style: none; width: 100%; }
.mbar__write summary::-webkit-details-marker { display: none; }
.mbar__menu { list-style: none; position: absolute; right: 0; bottom: calc(100% + .75rem); min-width: 15rem; background: var(--plane-2); border: 1px solid rgba(247, 248, 250, .14); border-radius: 6px; padding: .375rem; box-shadow: 0 -18px 40px -16px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 2px; animation: rise .25s var(--ease) both; }
.mbar__menu a { display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: 0 .875rem; border-radius: 4px; color: #E8ECF2; font-weight: 600; font-size: .9375rem; }
.mbar__menu a:hover { background: rgba(247, 248, 250, .07); }
.mbar__menu .icon { color: var(--gold); }
.mbar__menu small { margin-left: auto; font-weight: 500; font-size: .8125rem; opacity: .55; }

/* ---------- Шапка внутрішньої сторінки ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8125rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.crumbs a:hover { color: var(--text); }
.phead { padding-block: clamp(2rem, 1rem + 2vw, 4rem) clamp(2.5rem, 1rem + 3vw, 5.5rem); }
.phead__grid { margin-top: clamp(2rem, 1rem + 2vw, 4rem); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 8rem); align-items: end; }
.phead .h1 { margin-top: 1.5rem; }
.phead__grid > .h1:first-child { margin-top: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .625rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .875rem; font-weight: 600; background: var(--surface); transition: border-color .25s, background-color .25s, color .25s; }
.chip i { font-style: normal; font-weight: 500; color: var(--muted); font-size: .8125rem; }
.chip:hover { border-color: var(--text); }
.chipbar { position: sticky; top: var(--hdr); z-index: 10; background: var(--chipbar); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-block: .875rem; }

/* ---------- Каталог послуг і питань ---------- */
.cgroup { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 8rem); padding-block: clamp(3.5rem, 2rem + 3vw, 7rem); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 4.5rem); }
.cgroup:first-child { border-top: 0; }
.cgroup__head { position: sticky; top: calc(var(--hdr) + 6rem); align-self: start; display: flex; flex-direction: column; gap: 1rem; }
.cgroup__n { font-family: var(--display); font-size: clamp(3.5rem, 2rem + 2.5vw, 7rem); line-height: .9; color: var(--accent); font-variant-numeric: lining-nums; }
.cgroup__d { color: var(--muted); max-width: 26rem; }
.cgroup__count { font-size: .875rem; color: var(--muted); }
.svc-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.svc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc { height: 100%; background: var(--surface); border: 1px solid var(--line); padding: clamp(1.5rem, 1rem + .9vw, 2.5rem); display: flex; flex-direction: column; gap: .875rem; position: relative; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.svc:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.svc h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + .6vw, 2.25rem); line-height: 1.15; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; }
.svc p { font-size: .9375rem; color: var(--muted); }
.svc__more { margin-top: auto; padding-top: .5rem; display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--accent-text); }
.svc__more .icon { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.svc:hover .svc__more .icon { transform: translateX(4px); }
.formats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--on-plane-line); border: 1px solid var(--on-plane-line); }
.format { height: 100%; background: var(--plane); padding: clamp(1.5rem, 1rem + 1vw, 2.75rem); display: flex; flex-direction: column; gap: .875rem; position: relative; transition: background-color .3s; }
.format:hover { background: var(--plane-2); }
.format .icon { width: 2rem; height: 2rem; color: var(--gold); stroke-width: 1.3; }
.format h3 { font-family: var(--display); font-weight: 600; font-size: 1.625rem; line-height: 1.15; }
.format h3 a::after { content: ""; position: absolute; inset: 0; }
.format p { font-size: .9375rem; color: var(--on-plane-muted); }
.qlist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 4rem); border-top: 1px solid var(--line); }
.qitem { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); height: 100%; transition: padding .35s var(--ease); }
.qitem b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.4; transition: color .25s; }
.qitem span { display: block; margin-top: .375rem; font-size: .875rem; color: var(--muted); }
.qitem .icon { width: 1rem; height: 1rem; margin-top: .3rem; color: var(--accent); opacity: .5; transition: transform .3s var(--ease), opacity .3s; }
.qitem:hover { padding-left: .375rem; }
.qitem:hover b { color: var(--accent-text); }
.qitem:hover .icon { opacity: 1; transform: translateX(3px); }

/* ---------- Сторінка послуги ---------- */
.shead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 8rem); align-items: start; margin-top: clamp(2rem, 1rem + 2vw, 4rem); }
.shead .h1 { margin-top: 1.5rem; }
.shead .lead { margin-top: 1.5rem; max-width: 42rem; }
.facts-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.5rem, 1rem + 1vw, 2.5rem); display: flex; flex-direction: column; }
.facts-card h2 { font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .75rem; }
.facts-card dl { margin: 0; }
.facts-card dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--line); }
.facts-card dt { color: var(--muted); font-size: .9375rem; }
.facts-card dd { margin: 0; font-weight: 600; text-align: right; }
.facts-card__cta { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .625rem; }
.facts-card__cta > .btn { width: 100%; }
.facts-card__msg { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: .5rem; }
.facts-card__msg .btn { padding: 0 .5rem; font-size: .8125rem; min-height: 3rem; }
.pairs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 6rem); }
.pair { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.pair__n { font-family: var(--display); font-size: 1.5rem; color: var(--accent); line-height: 1.2; font-variant-numeric: lining-nums; }
.pair h3 { font-family: var(--display); font-weight: 600; font-size: 1.75rem; line-height: 1.15; }
.pair p { margin-top: .5rem; color: var(--muted); font-size: .9375rem; }
.bullets { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem clamp(2rem, 4vw, 6rem); }
.bullets li { display: flex; gap: .75rem; padding: .875rem 0; border-top: 1px solid var(--line); }
.bullets li > .icon { width: 1.125rem; height: 1.125rem; color: var(--accent); margin-top: .25em; }
.alert { background: var(--alert-bg); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 4vw, 6rem); padding: clamp(2rem, 1rem + 2.5vw, 5rem); }
.alert__ic { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--alert); color: var(--alert); display: flex; align-items: center; justify-content: center; }
.alert__ic .icon { width: 1.4rem; height: 1.4rem; }
.alert h2 { margin-top: 1.25rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + .8vw, 2.75rem); line-height: 1.15; }
.alert__lead { margin-top: .75rem; color: var(--muted); font-size: .9375rem; }
.alert ul { list-style: none; }
.alert li { display: flex; gap: 1rem; padding: 1.125rem 0; border-bottom: 1px solid var(--alert-line); font-weight: 500; }
.alert li:first-child { padding-top: 0; }
.alert li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--alert); flex-shrink: 0; margin-top: .55em; }
.alert__cta { margin-top: 1.75rem; }
.alert__note { margin-top: 1.25rem; font-size: .9375rem; color: var(--muted); }
.checklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.check { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.5rem, 1rem + .9vw, 2.5rem); }
.check h3 { font-family: var(--display); font-weight: 600; font-size: 1.625rem; margin-bottom: 1rem; }
.check ul { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.check li { display: flex; gap: .75rem; font-size: .9375rem; }
.check li > .icon { width: 1.125rem; height: 1.125rem; color: var(--accent); margin-top: .2em; stroke-width: 1.9; }
.prose-grid { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); gap: clamp(2rem, 6vw, 10rem); align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 8rem); align-items: start; }
.split .prose { max-width: var(--measure); }
.prose { font-size: 1.0625rem; line-height: 1.7; display: flex; flex-direction: column; gap: 1.125rem; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.875rem, 1.3rem + .9vw, 3rem); line-height: 1.1; margin-top: .75rem; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.625rem, 1.2rem + .6vw, 2.25rem); line-height: 1.15; margin-top: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--text); }
.prose blockquote { margin: 0; padding-left: 1.25rem; border-left: 2px solid var(--accent); font-family: var(--display); font-size: 1.375rem; }
.aside-cta { position: sticky; top: calc(var(--hdr) + 2rem); background: var(--plane); color: var(--on-plane); padding: clamp(1.5rem, 1rem + 1vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 26rem; justify-self: end; }
.aside-cta .aside-cta__t { font-family: var(--display); font-size: 1.75rem; font-weight: 600; line-height: 1.15; }
.aside-cta p { color: var(--on-plane-muted); font-size: .9375rem; }
.aside-cta .btn-row .btn { flex: 1 1 0; padding: 0 .5rem; }
.qcards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.qcard { height: 100%; position: relative; background: var(--surface); border: 1px solid var(--line); padding: clamp(1.5rem, 1rem + .8vw, 2.25rem); display: flex; flex-direction: column; gap: .75rem; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.qcard:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.qcard small { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.qcard h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.qcard h3 a::after { content: ""; position: absolute; inset: 0; }
.qcard p { font-size: .875rem; color: var(--muted); }

/* ---------- Стаття і документи ---------- */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); z-index: 40; pointer-events: none; }
.ahead { max-width: 62rem; margin-top: clamp(2rem, 1rem + 2vw, 4rem); }
.ahead .h1 { margin-top: 1.5rem; font-size: clamp(2.25rem, .8rem + 3.2vw, 6.5rem); }
.byline { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.byline__who { display: flex; align-items: center; gap: .875rem; }
.byline .avatar { width: 3.25rem; }
.byline small { display: block; font-size: .75rem; color: var(--muted); }
.byline b { font-size: .9375rem; }
.byline a:hover b { color: var(--accent-text); }
.byline__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.art { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, var(--measure)) minmax(14rem, 22rem); justify-content: space-between; gap: clamp(2rem, 4vw, 6rem); align-items: start; padding-bottom: var(--sy); }
.art--doc { grid-template-columns: minmax(12rem, 16rem) minmax(0, var(--measure)) minmax(0, 1fr); }
.toc { position: sticky; top: calc(var(--hdr) + 2rem); }
.toc__t { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1rem; }
.toc ol { list-style: none; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .5rem 0 .5rem 1rem; margin-left: -1px; border-left: 1px solid transparent; font-size: .875rem; color: var(--muted); transition: color .25s, border-color .25s; }
.toc a:hover { color: var(--text); border-color: var(--accent); }
.toc-m { display: none; }
.answer { font-size: clamp(1.1875rem, 1rem + .35vw, 1.625rem); line-height: 1.55; font-weight: 500; }
.callout { background: var(--surface-2); padding: clamp(1.5rem, 1rem + 1vw, 2.5rem); }
.callout__label { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .75rem; }
.callout p { font-family: var(--display); font-size: clamp(1.375rem, 1rem + .5vw, 1.875rem); line-height: 1.35; }
.callout p + p { margin-top: .75rem; }
.art__body { display: flex; flex-direction: column; gap: clamp(2.5rem, 2rem + 1vw, 4rem); min-width: 0; }
.art__sec { display: flex; flex-direction: column; gap: 1.125rem; scroll-margin-top: calc(var(--hdr) + 1.5rem); }
.art__sec > h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.875rem, 1.3rem + .9vw, 3rem); line-height: 1.1; }
.art__sec .prose h2:first-child { margin-top: 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.table th { text-align: left; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); padding: 0 1rem .75rem 0; border-bottom: 1px solid var(--line-strong); }
.table td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td:first-child { font-weight: 600; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.svcref { position: relative; display: flex; flex-direction: column; gap: .75rem; background: var(--surface); border: 1px solid var(--line); padding: 1.5rem; transition: border-color .3s, box-shadow .4s; }
.svcref:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.svcref small { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.svcref h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.svcref h3 a::after { content: ""; position: absolute; inset: 0; }
.svcref p { font-size: .875rem; color: var(--muted); }
.art__aside { position: sticky; top: calc(var(--hdr) + 2rem); display: flex; flex-direction: column; gap: 1.25rem; }
.art__aside .aside-cta { position: static; max-width: none; }
.disclaimer { display: flex; gap: .75rem; font-size: .875rem; color: var(--muted); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.disclaimer .icon { width: 1.1rem; height: 1.1rem; margin-top: .2em; color: var(--accent); }
.author { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; background: var(--surface); border: 1px solid var(--line); padding: clamp(1.5rem, 1rem + 1vw, 2.5rem); }
.author .avatar { width: 5.5rem; }
.author__name { font-family: var(--display); font-size: 1.625rem; font-weight: 600; }
.author__role { display: block; margin-top: .25rem; font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.author p { margin-top: .75rem; font-size: .9375rem; color: var(--muted); }
.author .btn-row { margin-top: 1rem; }
.block-t { font-family: var(--display); font-weight: 600; font-size: clamp(1.875rem, 1.3rem + .9vw, 3rem); line-height: 1.1; margin-bottom: 1.25rem; }
.video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--plane); color: var(--on-plane); }
.video picture, .video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.video__play { position: absolute; left: 50%; top: 50%; width: 4.75rem; height: 4.75rem; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #0B1422; transition: transform .3s var(--ease); }
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.06); }
.video__caption { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.25rem; font-size: .875rem; font-weight: 600; }

/* ---------- Про компанію, контакти, 404 ---------- */
.activity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.activity__card { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.75rem, 1rem + 1.5vw, 3.5rem); display: flex; flex-direction: column; gap: 1rem; }
.activity__card h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + .8vw, 2.75rem); line-height: 1.15; }
.activity__card p { color: var(--muted); }
.activity__card .btn-row { margin-top: auto; padding-top: 1rem; }
.activity__card--plane { background: var(--plane); color: var(--on-plane); border-color: var(--plane); }
.activity__card--plane p { color: var(--on-plane-muted); }
.activity__card--plane .eyebrow { color: var(--gold); }
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.ccard { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.75rem, 1rem + 1.5vw, 3.5rem); display: flex; flex-direction: column; gap: 1.25rem; }
.ccard__label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.ccard__phone { display: flex; flex-direction: column; }
.ccard__phone b { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 1.3rem + 1.2vw, 3.5rem); line-height: 1.1; }
.ccard__phone span { font-size: .875rem; color: var(--muted); }
.ccard__phone:hover b { color: var(--accent-text); }
.ccard__row { display: flex; gap: .75rem; }
.ccard__row > .icon { width: 1.25rem; height: 1.25rem; color: var(--accent); margin-top: .15em; }
.ccard__row a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.ccard__alt { font-size: .875rem; color: var(--muted); margin-top: -.25rem; }
.ccard__alt a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.ccard .btn-row { margin-top: auto; padding-top: .5rem; }
.notfound { padding-block: clamp(4rem, 2rem + 8vw, 12rem); display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; max-width: 52rem; }
.notfound__code { font-family: var(--display); font-size: clamp(7rem, 4rem + 10vw, 16rem); font-weight: 500; line-height: .85; color: var(--accent); }

/* ---------- Cookie ---------- */
.cookie { position: fixed; z-index: 50; left: 0; right: 0; margin-inline: auto; bottom: 1rem; width: min(60rem, calc(100% - 2rem)); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 22px 60px -20px rgba(15, 27, 45, .45); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem 1.5rem; animation: rise .5s var(--ease) both; }
.cookie[hidden] { display: none; }
.cookie__body { flex: 1 1 auto; font-size: .875rem; color: var(--muted); }
.cookie__body b { color: var(--text); }
.cookie__body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.cookie__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.cookie__link { padding: 0 .5rem; border: 0; background: none; color: var(--text); font-size: .875rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; cursor: pointer; min-height: 2.75rem; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; background: rgba(11, 20, 34, .6); animation: fade .25s both; }
.modal[hidden] { display: none; }
.modal__box { width: 100%; max-width: 36rem; max-height: calc(100vh - 2rem); overflow: auto; display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.5rem, 1rem + 1vw, 2.5rem); background: var(--surface); color: var(--text); border-radius: 6px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); animation: rise .35s var(--ease) both; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal__title { font-family: var(--display); font-size: 1.875rem; font-weight: 600; line-height: 1.15; }
.modal__text { font-size: .9375rem; color: var(--muted); }
.modal__close { width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.modal__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.consent__item { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.consent__name { font-weight: 600; }
.consent__state { font-weight: 500; font-size: .8125rem; color: var(--muted); }
.consent__desc { grid-column: 1; font-size: .875rem; color: var(--muted); }
.switch { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 3rem; height: 1.75rem; border-radius: 999px; border: 0; background: var(--line-strong); position: relative; cursor: pointer; transition: background-color .25s; }
.switch::after { content: ""; position: absolute; top: .25rem; left: .25rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #FFFFFF; transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(1.25rem); }
.switch[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.toast { position: fixed; z-index: 55; left: 0; right: 0; margin-inline: auto; bottom: 1rem; width: min(30rem, calc(100% - 2rem)); background: var(--plane); color: var(--on-plane); border-radius: 6px; padding: 1rem 3.25rem 1.25rem 1.25rem; display: flex; gap: .875rem; box-shadow: 0 22px 60px -20px rgba(0, 0, 0, .6); overflow: hidden; animation: rise .35s var(--ease) both; }
.toast[hidden] { display: none; }
.toast.is-leaving { opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.toast__icon { color: var(--gold); }
.toast__title { font-weight: 700; }
.toast__text, .toast__hint { font-size: .8125rem; color: var(--on-plane-muted); margin-top: .25rem; }
.toast__hint a { color: var(--gold); text-decoration: underline; }
.toast__close { position: absolute; right: .5rem; top: .5rem; width: 2.75rem; height: 2.75rem; border: 0; background: none; color: var(--on-plane); cursor: pointer; display: grid; place-items: center; }
.toast__timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: 0 50%; animation: toast-timer 3s linear forwards; }
.toast:hover .toast__timer { animation-play-state: paused; }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Анімації ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hdr-shadow { from { box-shadow: none; } to { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); } }
@keyframes read { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ring { 0%, 78%, 100% { transform: rotate(0); } 80% { transform: rotate(-16deg); } 82% { transform: rotate(14deg); } 84% { transform: rotate(-14deg); } 86% { transform: rotate(12deg); } 88% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } 92% { transform: rotate(0); } }
.motion .in { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
.motion .portrait img { animation: settle 1.8s var(--ease) both; }
.motion .portrait figcaption { animation: rise .9s var(--ease) .7s both; }
a[href^="tel:"] .icon { transform-origin: 50% 50%; animation: ring 4.5s ease-in-out infinite; }
a[href^="tel:"]:hover .icon { animation-duration: 1.2s; }
@supports (animation-timeline: view()) {
  .motion .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  .motion .rv-s > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  .motion .rv-s > *:nth-child(4n+2) { animation-range: entry 8% entry 88%; }
  .motion .rv-s > *:nth-child(4n+3) { animation-range: entry 16% entry 96%; }
  .motion .rv-s > *:nth-child(4n+4) { animation-range: entry 24% entry 100%; }
  .motion .step__line { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
  .hdr { animation: hdr-shadow linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
  .progress { animation: read linear both; animation-timeline: scroll(root); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Планшет ---------- */
@media (max-width: 1200px) {
  .clusters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .step:nth-child(2n) .step__line { opacity: 0; }
  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art { grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr); }
  .art__aside { position: static; grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust__addr { display: none; }
  .svc-grid--3, .qcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hdr__phone small { display: none; }
}
@media (max-width: 1024px) {
  .hdr__nav, .hdr__phone { display: none; }
  .nav-mobile { display: block; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .portrait { order: -1; height: 20rem; }
  .portrait img { object-position: 50% 8%; }
  .portrait figcaption { padding: .75rem 1.125rem .75rem 1.25rem; }
  .portrait figcaption b { font-size: 1.3125rem; }
  .portrait figcaption span { font-size: .625rem; }
  .hero__text { padding: 1.75rem var(--g) 2rem; gap: 2rem; }
  .hero .h1, .hero .lead { margin-top: 1.125rem; }
  .hero__cta { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .hero__cta .btn--ivory { grid-column: 1 / -1; }
  .hero__cta .btn--line-light { padding: 0 .25rem; font-size: .8125rem; gap: .375rem; min-height: 3.25rem; }
  .founder, .faq, .booking, .cgroup, .phead__grid, .shead, .alert, .prose-grid, .split, .contacts, .activity { grid-template-columns: minmax(0, 1fr); }
  .faq__head, .cgroup__head, .aside-cta { position: static; }
  .aside-cta { max-width: none; justify-self: stretch; }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review--big { grid-row: auto; grid-column: 1 / -1; }
  .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__grid > div:first-child { grid-column: 1 / -1; }
  .svc-grid, .pairs, .bullets, .checklist, .qlist { grid-template-columns: minmax(0, 1fr); }
  .art, .art--doc { grid-template-columns: minmax(0, 1fr); }
  .art__aside { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-m { display: block; border: 1px solid var(--line); background: var(--surface); }
  .toc-m summary { list-style: none; cursor: pointer; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m ol { list-style: none; padding: 0 1.25rem 1rem; display: flex; flex-direction: column; gap: .625rem; font-size: .9375rem; }
  .mbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: .75rem 1rem 1rem; background: #0B1422; border-top: 1px solid rgba(247, 248, 250, .12); }
  [data-theme="dark"] .mbar { background: #070E18; }
  .mbar .btn { width: 100%; min-height: 3.25rem; font-size: .9375rem; }
  body { padding-bottom: 5.25rem; }
  .cookie { bottom: 5.75rem; flex-direction: column; align-items: stretch; }
  .toast { bottom: 5.75rem; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .clusters, .steps, .formats, .reviews, .ftr__grid, .svc-grid--3, .qcards { grid-template-columns: minmax(0, 1fr); }
  .step .step__line { opacity: 1; }
  .step:last-child .step__line { opacity: 0; }
  .trust { gap: .75rem; padding-top: 1.375rem; }
  .trust__v { font-size: 2rem; }
  .trust__l { font-size: .75rem; }
  .qa__a { padding-right: 0; }
  .table--stack thead { display: none; }
  .table--stack tr { display: block; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .table--stack td { display: block; border: 0; padding: .25rem 0; }
  .table--stack td::before { content: attr(data-label); display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
  .author { grid-template-columns: minmax(0, 1fr); }
  .facts-card__msg .btn { font-size: .75rem; }
  .cookie__actions { flex-wrap: wrap; }
  .cookie__actions .btn { flex: 1 1 auto; }
  .logo__word { font-size: .6875rem; }
  .logo__mark { width: 2rem; }
}
