/* ───────── Токени ───────── */
:root {
  /* Фірмова гама: глибокий синій + золото (як у соцмережах і на бланку) */
  --paper: #f5f6f8;
  --tint: #e9edf3;
  --ink: #121e33;
  --ink-2: #33415a;
  --muted: #667289;
  --line: #d3d9e3;
  --dark: #121e33;
  --dark-2: #18273f;
  --dark-3: #1f324f;
  --on-dark: #f5f6f8;
  --on-dark-2: #aeb6c4;
  --line-dark: #2a3d5c;
  --accent: #e9a92d;
  --accent-ink: #96690a;

  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gut: clamp(20px, 5vw, 56px);
  --sec: clamp(72px, 10vw, 136px);
  --top: 76px;
}

/* ───────── База ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, .h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; line-height: 1.12; text-wrap: balance; }
h3 { font: 600 1.05rem/1.35 var(--sans); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.section { padding: var(--sec) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.h2 { font-size: clamp(1.9rem, 3.7vw, 3.1rem); max-width: 20ch; margin-bottom: clamp(28px, 4vw, 52px); }
.eyebrow { font: 500 0.74rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--accent); vertical-align: middle; margin: -2px 12px 0 0; }
.section--dark .eyebrow, .head .eyebrow, .hero .eyebrow, .cta .eyebrow { color: var(--accent); }
.case__meta, .post__meta { font-weight: 600; }
.muted { color: var(--muted); }
.narrow { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 10px 14px; }

/* ───────── Кнопки та посилання ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  font: 500 0.95rem/1 var(--sans); letter-spacing: 0.01em; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap;
}
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.875rem; }
.btn--light { background: var(--accent); color: var(--dark); font-weight: 600; }
.btn--light:hover { background: #f4bb4a; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--dark-3); }
.btn--ghost { border-color: var(--line-dark); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--on-dark); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.95rem; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.arrow { flex: none; transition: transform .25s; }
a:hover > .arrow, a:hover .arrow { transform: translateX(4px); }

/* ───────── Шапка ───────── */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top); color: var(--on-dark); transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.top.is-solid { background: rgba(18, 30, 51, .95); backdrop-filter: blur(10px); border-color: var(--line-dark); }
.top__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; line-height: 1.1; }
.logo__mark { height: 46px; width: auto; flex: none; }
.logo__text { display: flex; flex-direction: column; }
.logo__name { font: 700 1.2rem/1.1 var(--serif); letter-spacing: 0.08em; text-transform: uppercase; }
.logo__role { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-top: 5px; white-space: nowrap; }
.logo-full { width: min(100%, 360px); height: auto; margin-bottom: 36px; }
.nav { display: flex; gap: 24px; font-size: 0.86rem; white-space: nowrap; }
.nav a { color: var(--on-dark-2); transition: color .2s; padding: 6px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--on-dark); }
.nav__extra { display: none; }
.top__tel { font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; color: inherit; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .25s, top .25s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ───────── Перший екран ───────── */
.hero { background: radial-gradient(120% 90% at 85% 0%, var(--dark-3), var(--dark) 60%); color: var(--on-dark); padding-top: var(--top); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.04; }
.hero__pre { display: block; font: 400 italic 0.36em/1.2 var(--serif); color: var(--accent); letter-spacing: 0; margin-bottom: 0.5em; }
.hero__spec { font: 400 clamp(1.3rem, 2.4vw, 1.9rem)/1.25 var(--serif); margin-top: 22px; color: var(--on-dark); }
.hero__lead { max-width: 52ch; margin-top: 24px; color: var(--on-dark-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__urgent { margin-top: 28px; font-size: 0.9rem; color: var(--on-dark-2); padding-left: 16px; border-left: 1px solid var(--accent); max-width: 48ch; }
.hero__urgent a { color: var(--on-dark); border-bottom: 1px solid var(--line-dark); white-space: nowrap; }
.hero__facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.hero__facts > div { padding: 28px 24px 36px 0; }
.hero__facts > div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.hero__facts dt { font: 400 1.5rem/1.2 var(--serif); }
.hero__facts dd { font-size: 0.85rem; color: var(--on-dark-2); margin-top: 6px; line-height: 1.45; }

/* ───────── Портрет ───────── */
.portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--dark-2); position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.85); }
.portrait--hero { max-height: 78vh; justify-self: end; width: 100%; }
.portrait--hero::after { content: ""; position: absolute; inset: 12px; border: 1px solid var(--accent); opacity: .75; pointer-events: none; }
.portrait--hero img { filter: none; object-position: center 88%; }
.portrait--hero:not(.portrait--empty)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18, 30, 51, .05) 40%, rgba(18, 30, 51, .7)); }
.portrait--empty { display: grid; place-items: center; border: 1px solid var(--line-dark); background: linear-gradient(160deg, var(--dark-3), var(--dark-2)); }
.portrait--empty figcaption { position: absolute; bottom: 18px; left: 20px; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #6f7f99; }
.portrait__mono { font: 400 clamp(5rem, 14vw, 10rem)/1 var(--serif); color: #2c4063; letter-spacing: -0.04em; }

/* ───────── Заголовний блок внутрішніх сторінок ───────── */
.head { background: var(--dark); color: var(--on-dark); padding: calc(var(--top) + clamp(40px, 7vw, 88px)) 0 clamp(48px, 7vw, 88px); }
.head h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); max-width: 20ch; }
.head__lead { margin-top: 24px; max-width: 60ch; color: var(--on-dark-2); font-size: 1.06rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 0.8rem; color: #8693a8; margin-bottom: clamp(28px, 5vw, 56px); }
.crumbs a:not(:last-child)::after { content: "/"; margin: 0 10px; color: #4a5b78; }
.crumbs a:hover { color: var(--on-dark); }
.crumbs a:last-child { color: var(--on-dark-2); pointer-events: none; }

/* ───────── Сітки ───────── */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__head { position: sticky; top: calc(var(--top) + 32px); }
.split__head .h2 { margin-bottom: 20px; }
.section__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.section__top .h2 { margin-bottom: 0; }
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about--top { align-items: start; }
.about p + p { margin-top: 1.1em; }
.about > div > p { max-width: 60ch; color: var(--ink-2); }
.about .portrait--empty { background: #dce2eb; border-color: var(--line); }
.about .portrait--empty .portrait__mono { color: #c3ccd9; }
.about .portrait--empty figcaption { color: #8b97aa; }
.quote { font: 400 italic clamp(1.35rem, 2.3vw, 1.8rem)/1.35 var(--serif); margin: 36px 0; padding-left: 24px; border-left: 1px solid var(--accent); max-width: 26ch; }

/* ───────── Рядки (практика, ситуації) ───────── */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 5fr) 24px; gap: 8px 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .25s, background .25s; }
.row:hover { padding-left: 12px; padding-right: 12px; background: rgba(18, 30, 51, .04); }
.row__n { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; }
.row__t { font: 400 clamp(1.25rem, 2vw, 1.6rem)/1.2 var(--serif); }
.row__d { font-size: 0.93rem; color: var(--muted); line-height: 1.55; }
.row .arrow { align-self: center; color: var(--muted); }
.rows--plain .row { grid-template-columns: minmax(0, 1fr) 24px; }
.rows--plain .row__d { grid-column: 1; }
.rows--plain .arrow { grid-column: 2; grid-row: 1 / span 2; }

/* ───────── Кейси та публікації ───────── */
.cases, .posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; }
.case, .post { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); background: var(--paper); box-shadow: 0 0 0 1px var(--line); transition: background .25s; min-height: 320px; }
.section--tint .case, .section--tint .post { background: var(--tint); }
.case:hover, .post:hover { background: #fff; box-shadow: 0 0 0 1px var(--line), inset 0 3px 0 var(--accent); }
.case__meta, .post__meta { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.case__t, .post__t { font: 400 1.4rem/1.22 var(--serif); }
.case__d, .post__d { font-size: 0.93rem; color: var(--muted); line-height: 1.55; }
.case__more, .post__more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 500; }

/* ───────── Підхід ───────── */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.principles > div { background: var(--dark-2); padding: clamp(24px, 3.4vw, 44px); }
.principles h3 { font: 400 1.45rem/1.2 var(--serif); margin-bottom: 14px; }
.principles p { color: var(--on-dark-2); font-size: 0.97rem; max-width: 48ch; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(48px, 7vw, 88px); counter-reset: none; }
.flow li { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.flow span { font-size: 0.78rem; letter-spacing: 0.1em; color: var(--accent); }
.flow h3 { margin: 12px 0 8px; }
.flow p { font-size: 0.9rem; color: var(--on-dark-2); line-height: 1.55; }

/* ───────── Контакти та форма ───────── */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact .h2 { margin-bottom: 20px; }
.contacts { margin-top: 36px; border-top: 1px solid var(--line); }
.contacts li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contacts li > span:first-child { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; padding-top: 3px; }
.contacts a { border-bottom: 1px solid var(--line); }
.contacts a:hover { border-color: var(--ink); }
.contacts--lg { margin-top: 0; }
.contacts--lg li:first-child a { font: 400 clamp(1.5rem, 3vw, 2.1rem)/1.2 var(--serif); border: 0; }
.inline-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.gline { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.form { background: #fff; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); display: grid; gap: 18px; scroll-margin-top: calc(var(--top) + 24px); }
.form__title { font: 400 1.6rem/1.2 var(--serif); }
.form__note { font-size: 0.9rem; color: var(--muted); margin-top: -10px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); }
.field .is-invalid { border-color: #a4372b; }
.form__hp { position: absolute; left: -9999px; }
.form__legal { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.form__legal a { border-bottom: 1px solid var(--line); }
.form__status { font-size: 0.92rem; font-weight: 500; }
.form__status:empty { display: none; }
.form__status.is-error { color: #a4372b; }
.map-wrap { background: var(--tint); }
.map { width: 100%; height: clamp(320px, 45vw, 480px); border: 0; filter: grayscale(1) contrast(1.05); }

/* ───────── Статті та сторінки практики ───────── */
.article { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 300px); gap: clamp(40px, 8vw, 120px); justify-content: space-between; align-items: start; }
.prose { color: var(--ink-2); }
.prose--narrow { max-width: 720px; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); color: var(--ink); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); margin-top: 1.9em; font-size: 1.08rem; }
.prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.link):not(.btn) { color: var(--ink); border-bottom: 1px solid var(--accent); }
.prose a:not(.link):not(.btn):hover { border-color: var(--ink); }
.prose ul li, .prose ol li { position: relative; padding-left: 28px; }
.prose li + li { margin-top: 0.55em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 1px; background: var(--accent); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: 0.2em; font-size: 0.78rem; color: var(--accent-ink); font-weight: 600; }
.prose blockquote { font: 400 italic 1.35rem/1.4 var(--serif); padding-left: 24px; border-left: 1px solid var(--accent); color: var(--ink); }
.byline { margin-top: 3em !important; padding-top: 1.5em; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.aside { position: sticky; top: calc(var(--top) + 32px); border: 1px solid var(--line); padding: 28px; display: grid; gap: 16px; justify-items: start; background: #fff; }
.aside .eyebrow { margin: 0; }
.aside__t { font: 400 1.35rem/1.25 var(--serif); }
.aside__tel { font-weight: 500; }
.aside .btn { width: 100%; padding: 0 12px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 400 1.2rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 1.5rem/1 var(--sans); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); max-width: 64ch; }

/* ───────── Кейс ───────── */
.facts { display: flex; flex-wrap: wrap; gap: 24px 56px; padding-bottom: clamp(32px, 5vw, 56px); margin-bottom: clamp(8px, 2vw, 24px); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { max-width: 44ch; }
.facts dd a { border-bottom: 1px solid var(--accent); }
.facts--stack { display: block; padding: 0; margin: 0; border-top: 1px solid var(--line); border-bottom: 0; }
.facts--stack > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 56px minmax(0, 3fr) minmax(0, 7fr); gap: 12px 24px; padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.step__n { font-size: 0.78rem; color: var(--accent-ink); letter-spacing: 0.08em; padding-top: 8px; }
.step__t { font-size: clamp(1.4rem, 2.3vw, 1.85rem); }
.disclaimer { margin-top: 36px; font-size: 0.85rem; color: var(--muted); max-width: 76ch; }
.timeline > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline > div:last-child { border-bottom: 1px solid var(--line); }
.timeline dt { font: 400 1.35rem/1.2 var(--serif); }
.timeline dd { color: var(--ink-2); max-width: 64ch; }
.timeline strong { color: var(--ink); font-weight: 600; }

/* ───────── Заклик ───────── */
.cta { background: var(--dark); color: var(--on-dark); padding: clamp(64px, 9vw, 112px) 0; }
.cta__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: center; }
.cta h2 { font-size: clamp(1.9rem, 3.7vw, 3rem); }
.cta p { color: var(--on-dark-2); margin-top: 16px; max-width: 52ch; }
.cta__actions { display: grid; gap: 12px; justify-items: start; }
.cta__actions .btn { width: 100%; }
.cta__actions .link { margin-top: 8px; font-size: 0.875rem; color: var(--on-dark-2); border-color: var(--line-dark); }
.cta__actions .link:hover { color: var(--on-dark); }

/* ───────── Підвал ───────── */
.foot { background: var(--dark); color: var(--on-dark-2); font-size: 0.9rem; border-top: 1px solid var(--line-dark); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 3fr); gap: 40px; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(40px, 6vw, 64px); }
.foot__name { font: 400 1.4rem/1.2 var(--serif); color: var(--on-dark); margin-bottom: 12px; }
.foot__grid p + p { margin-top: 10px; }
.foot__grid nav a, .foot__grid div:last-child a { display: block; padding: 4px 0; }
.foot a:hover { color: var(--on-dark); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line-dark); font-size: 0.78rem; color: #8693a8; }
.foot__base p { max-width: 80ch; }

/* ───────── Мобільна панель зв’язку ───────── */
.bar { display: none; }

/* ───────── Повідомлення про cookie ───────── */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin-left: auto; background: #fff; border: 1px solid var(--line); padding: 20px; font-size: 0.85rem; display: grid; gap: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .12); }
.consent div { display: flex; gap: 10px; }

/* ───────── Планшет ───────── */
@media (max-width: 1320px) {
  .logo__io { display: none; }
}
@media (max-width: 1080px) {
  .top__tel { display: none; }
  .nav { gap: 20px; }
  .cases, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
}

/* ───────── Мобільна навігація ───────── */
@media (max-width: 900px) {
  .burger { display: block; }
  .top__cta { display: none; }
  .nav { position: fixed; inset: var(--top) 0 0; background: var(--dark); flex-direction: column; gap: 0; padding: 16px var(--gut) 120px; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav > a { font: 400 1.9rem/1.2 var(--serif); color: var(--on-dark); padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
  .nav__extra { display: grid; gap: 14px; margin-top: 32px; font-size: 1rem; }
  .nav__extra a { color: var(--on-dark); }
  body.is-locked { overflow: hidden; }
  .top.is-open { background: var(--dark); }

  .hero__grid { grid-template-columns: 1fr; padding-top: 32px; }
  .portrait--hero { max-height: none; aspect-ratio: 4 / 5; max-width: 520px; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .hero__facts > div { padding: 20px 16px 20px 0; }
  .hero__facts > div + div { padding-left: 0; border-left: 0; }
  .hero__facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-dark); }
  .hero__facts > div:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }

  .split, .about, .contact, .article, .cta__in { grid-template-columns: 1fr; }
  .split__head, .aside { position: static; }
  .about .portrait { max-width: 420px; }
  .row { grid-template-columns: 36px minmax(0, 1fr) 24px; padding: 22px 0; }
  .row__d { grid-column: 2; }
  .row .arrow { grid-column: 3; grid-row: 1; }
  .rows--plain .row__d { grid-column: 1; }
  .step { grid-template-columns: 36px minmax(0, 1fr); }
  .step .prose { grid-column: 2; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > div:first-child { grid-column: 1 / -1; }
}

/* ───────── Телефон ───────── */
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  :root { --top: 64px; }
  .logo__name { font-size: 1.02rem; }
  .logo__mark { height: 40px; }
  .logo__io { display: none; }
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.12em; }
  .eyebrow::before { width: 20px; margin-right: 8px; }
  .hero__actions .btn, .actions .btn { width: 100%; }
  .cases, .posts, .principles, .flow { grid-template-columns: 1fr; }
  .case, .post { min-height: 0; }
  .contacts li, .timeline > div { grid-template-columns: 1fr; gap: 4px; }
  .cta__actions { justify-items: stretch; }
  .foot__grid { grid-template-columns: 1fr; }

  .bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 55; background: var(--dark); border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom); }
  .bar a { display: flex; align-items: center; justify-content: center; height: 64px; font-size: 0.9rem; font-weight: 500; color: var(--on-dark); }
  .bar__call { background: var(--accent); color: var(--dark) !important; font-weight: 600; }
  .consent { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .bar, .cta, .aside, .map-wrap, .consent { display: none; }
  .head, .hero { background: none; color: #000; padding-top: 0; }
}
