/* =========================================================================
   МКА «Право и Защита» - московская коллегия адвокатов
   Aesthetic family: dark premium / trust-first. Native CSS, no framework.
   Honest note: this is not an official design system, it is a hand-built
   token layer. Nothing here pretends to be Material, Fluent or Carbon.

   Dials: DESIGN_VARIANCE 7 / MOTION_INTENSITY 5 / VISUAL_DENSITY 4

   THEME LOCK: the page is dark end to end. No section inverts.
   COLOR LOCK: one accent, --violet, used identically in every section.
   SHAPE SYSTEM (documented, applied everywhere):
       buttons and pills .... full radius
       cards and media ...... 18px
       inputs ............... 12px
   ========================================================================= */

/* ---------- Fonts (self-hosted, no external font requests) ---------- */
@font-face {
  font-family: 'Onest';
  src: url('assets/fonts/onest-cyrillic.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  src: url('assets/fonts/onest-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jbmono-cyrillic.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jbmono-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* surfaces: off-black, never #000 */
  --ink:        #0B0910;
  --ink-1:      #100D18;
  --ink-2:      #17131F;
  --ink-3:      #1E1829;

  /* text */
  --txt:        #EFECF6;
  --txt-2:      #A9A2BD;
  /* было #7A7391, но это давало 4.29:1 на фоне футера, ниже порога AA.
     Текущее значение даёт 5.8:1 и остаётся тише основного текста */
  --txt-3:      #8F87A8;

  /* the single accent, locked for the whole page */
  --violet:      #8B5CF6;
  --violet-soft: #B49BFF;   /* used for small text on dark, contrast 8.5:1 */
  --violet-deep: #3C1E7A;
  --violet-wash: rgba(139, 92, 246, 0.12);

  --line:       rgba(255, 255, 255, 0.09);
  --line-2:     rgba(255, 255, 255, 0.16);

  /* shape system */
  --r-card:     18px;
  --r-input:    12px;

  /* z-scale, documented so nothing gets a random z-50 */
  --z-nav:      40;
  --z-menu:     45;
  --z-skip:     60;

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --wrap:       1400px;
  --nav-h:      80px;
  --gut:        clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  /* Небольшой отступ: у секций есть собственный верхний паддинг,
     он и создаёт воздух под шапкой. Большое значение здесь бросало
     переход слишком высоко и оставляло пустой экран. */
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--txt);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

/* -------------------------------------------------------------------------
   Плёночное зерно поверх всей страницы.

   Тёмная база из одного цвета выглядит цифровой заливкой, а на градиентах
   hero видны ступени. Слой шума (SVG feTurbulence в data-URI, никаких
   сетевых запросов) даёт матовую фактуру и разбивает эти ступени.
   Плотность подобрана так, чтобы зерно замечалось только на пустых плоскостях.
   ------------------------------------------------------------------------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
/* Зерно на печати только съедает тонер */
@media print {
  body::after { display: none; }
}

:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: var(--z-skip);
  /* Тот же тон, что у главной кнопки: ссылку видят только с клавиатуры,
     и ей контраст нужен не меньше, а больше остальных */
  background: #A78BFA;
  color: var(--ink);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--r-input) var(--r-input);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

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

/* ---------- Type scale ---------- */
.h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 600;
  margin: 0 0 1.25rem;
  max-width: 20ch;
  text-wrap: balance;
}

.lede {
  color: var(--txt-2);
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
  max-width: 62ch;
  margin: 0 0 3rem;
}

/* Моноширинные капсы тонкие по природе: на малом кегле с широким
   трекингом они расплываются. Отсюда 500 по начертанию и умеренный
   трекинг у всех подписей этого типа. */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.84rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--violet-soft);
  margin: 0 0 1rem;
}

/* ---------- Icons ---------- */
.ico {
  display: inline-flex;
  color: var(--violet-soft);
  flex: none;
}
.ico svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.ico--lg svg { width: 2rem; height: 2rem; }
.ico--sm svg { width: 1.25rem; height: 1.25rem; }
.ico--xs svg { width: 1rem; height: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 0.7rem;
  --btn-pad-x: 1.35rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;   /* CTA labels never wrap */
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease),
              border-color 0.25s var(--ease),
              color 0.25s var(--ease),
              transform 0.12s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn--sm  { --btn-pad-y: 0.55rem; --btn-pad-x: 1.1rem; font-size: 0.875rem; }
.btn--lg  { --btn-pad-y: 0.95rem; --btn-pad-x: 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* Заливка светлой сиренью, надпись почти чёрная: контраст 7,3:1.
   Раньше здесь стоял основной акцент #8B5CF6, и с тем же тёмным текстом
   он давал 4,9:1 при пороге AA 4,5:1 - формально проходило, но надпись
   читалась тускло. Белый текст на #8B5CF6 дал бы 4,1:1 и не прошёл бы
   вовсе, поэтому осветлён фон, а не текст. Тон взят тот же, что у
   активного языка в переключателе, так что приём на странице не новый. */
.btn--primary {
  background: #A78BFA;
  color: #0B0910;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}
.btn--primary:hover { background: var(--violet-soft); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--txt);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--violet-soft); background: rgba(139, 92, 246, 0.14); }
.btn--ghost:active { transform: translateY(1px); }

.btn__spinner { display: none; }
.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading .btn__label { opacity: 0.5; }
.btn.is-loading .btn__spinner {
  display: block;
  position: absolute;
  width: 1.15rem; height: 1.15rem;
  border: 2px solid rgba(11, 9, 16, 0.3);
  border-top-color: #0B0910;
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   NAVIGATION - single line at desktop, 80px, condenses via IntersectionObserver
   ========================================================================= */
#nav-sentinel { position: absolute; top: 0; height: 1px; width: 100%; }

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(11, 9, 16, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
@supports not (backdrop-filter: blur(4px)) {
  .nav.is-stuck { background: rgba(11, 9, 16, 0.97); }
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex: none;
}
.brand__mark { color: var(--violet-soft); display: block; }
.brand__mark svg { width: 46px; height: 46px; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 600; font-size: 1.18rem; letter-spacing: -0.018em; }
.brand__kind {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--txt-2);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 1.6vw, 1.9rem);
  margin-inline: auto;
}
/* :not(.btn) обязательно: кнопка выдвижного меню тоже <a>, и без него
   она получала цвет пункта меню вместо своего почти чёрного. */
.nav__links a:not(.btn) {
  text-decoration: none;
  /* Пункты набраны основным цветом текста: приглушённый --txt-2 на
     подсвеченном фоне hero читался тускло. Иерархию держит вес, не цвет. */
  color: var(--txt);
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--violet-soft); }

/* Подсветка раздела, который сейчас на экране: на длинной странице
   это единственный ориентир, где читатель находится. */
.nav__links a:not(.btn) { position: relative; }
.nav__links a.is-current { color: var(--violet-soft); }
@media (min-width: 1331px) {
  .nav__links a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -0.45rem;
    height: 1.5px;
    background: var(--violet-soft);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s var(--ease);
  }
  .nav__links a.is-current::after { transform: scaleX(1); }
}
/* CTA живёт в выдвижном меню, на десктопе он есть в правой части шапки */
.nav__drawer-cta { display: none; }

.nav__side { display: flex; align-items: center; gap: 1.15rem; flex: none; }

/* Переключатель языка: сегментированная группа, активный сегмент подсвечен.
   Коды языков набраны моноширинным, как телефон рядом. */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  flex: none;
}
.lang__btn {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  /* Коды в две буквы: мелкий тонкий шрифт здесь читался хуже всего
     остального в шапке, поэтому крупнее и плотнее телефона рядом. */
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.46rem 0.66rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--txt-2);
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lang__btn:hover { color: var(--txt); }
/* Активный язык: тёмный текст на светлой сирени, контраст около 11:1 */
.lang__btn.is-active {
  background: var(--violet-soft);
  color: var(--ink);
}
/* Копия переключателя внутри выдвижного меню, на десктопе не нужна */
.lang--drawer { display: none; }
.tel {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1rem;
  color: var(--txt);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.tel:hover { color: var(--violet-soft); }
.nav__side .btn--sm { font-size: 0.98rem; padding: 0.72rem 1.4rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--txt);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* =========================================================================
   HERO - asymmetric split.
   Текст слева, интерактивная 3D-сцена Фемиды справа. Сцена прозрачна и
   без рамки, поэтому модель читается как часть страницы, а не как врезка.
   ========================================================================= */
.hero {
  position: relative;
  min-height: min(100dvh, 960px);
  margin-top: calc(var(--nav-h) * -1);   /* nav лежит поверх hero */
  padding-top: calc(var(--nav-h) + 2.25rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(64% 78% at 78% 34%, rgba(139, 92, 246, 0.24) 0%, transparent 62%),
    radial-gradient(90% 100% at 10% 0%, rgba(60, 30, 122, 0.34) 0%, transparent 58%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.08fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  width: 100%;
}

.hero__title {
  font-size: clamp(2.15rem, 1.05rem + 3.2vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -0.036em;
  font-weight: 600;
  margin: 0 0 1.35rem;
  max-width: 22ch;
}

.hero__sub {
  color: #D6D1E4;
  font-size: clamp(1.05rem, 0.98rem + 0.42vw, 1.24rem);
  max-width: 44ch;
  margin: 0 0 2.25rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Рамки, свечения и подложки нет намеренно: сцена внутри прозрачна,
   поэтому модель стоит прямо на фоне hero без видимого квадрата.
   Ограничения по ширине тоже нет. Оно стояло из-за видео (768px, выше
   шёл апскейл), а WebGL рендерит в любом размере без потери резкости. */
.hero__media {
  position: relative;
  width: 100%;
  margin-left: auto;
  aspect-ratio: 1 / 1;
  /* вылет за правый край контейнера, сцене нужен объём.
     по горизонтали body уже режет переполнение */
  margin-right: calc(var(--gut) * -1);
}
/* 3D-сцена Фемиды. Радиус не дублируем: карточка уже режет по overflow,
   поэтому единая шкала скругления (18px для карточек) сохраняется. */
.hero__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* =========================================================================
   STATS
   ========================================================================= */
.stats {
  border-block: 1px solid var(--line);
  background: var(--ink-1);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.stat {
  background: var(--ink-1);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat__num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--violet-soft);
  font-variant-numeric: tabular-nums;
}
/* Реквизит вместо счётчика: тот же ритм, но строка длиннее цифры */
.stat__num--id {
  font-size: clamp(1.15rem, 0.7rem + 1.3vw, 1.6rem);
  letter-spacing: -0.01em;
}
.stat__label { color: var(--txt-2); font-size: 0.92rem; line-height: 1.35; }

/* =========================================================================
   SECTIONS
   ========================================================================= */
.section { padding-block: clamp(3.5rem, 6vw, 6rem); }
.section--tint { background: var(--ink-1); border-block: 1px solid var(--line); }

/* =========================================================================
   BENTO - 5 items, 5 cells, no empty tiles, varied cell backgrounds
   ========================================================================= */
/* 6-column track so 5 items fill exactly 5 cells with no empty tile:
   [ 1 spans 4x2 ][ 2 ]
   [            ][ 3 ]
   [   4 (3)    ][ 5 (3) ]                                              */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
  margin-top: 2.75rem;
}
.bento__cell:nth-child(2),
.bento__cell:nth-child(3) { grid-column: 5 / span 2; }
.bento__cell:nth-child(4) { grid-column: 1 / span 3; }
.bento__cell:nth-child(5) { grid-column: 4 / span 3; }
.bento__cell {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.bento__cell:hover { border-color: var(--line-2); transform: translateY(-2px); }
.bento__cell h3 {
  margin: 0;
  font-size: 1.26rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
}
.bento__cell p { margin: 0; color: var(--txt-2); font-size: 1.04rem; line-height: 1.6; }

/* cell 1: photographic, spans four columns and two rows */
.bento__cell--wide {
  grid-column: 1 / span 4;
  grid-row: span 2;
  padding: 0;
  position: relative;
  justify-content: flex-end;
  min-height: 380px;
}
.bento__cell--wide img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.62);
}
.bento__cell--wide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 9, 16, 0.25) 0%, rgba(11, 9, 16, 0.93) 62%),
    linear-gradient(150deg, rgba(60, 30, 122, 0.55) 0%, transparent 60%);
}
.bento__body {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.bento__cell--wide h3 { font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.7rem); max-width: 20ch; }
.bento__cell--wide p { color: #CFC9DF; max-width: 52ch; }

/* Единственный акцент секции - фотокарточка с адвокатской тайной.
   Заливка и точечный узор ниже спорили с ней за внимание и подсвечивали
   пункты, которые главными не являются, поэтому в разметке сняты.
   Правила оставлены: акцент может понадобиться на другой карточке. */

/* cell 3: violet wash */
.bento__cell--accent {
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(139, 92, 246, 0.32) 0%, transparent 58%),
    var(--ink-2);
  border-color: rgba(139, 92, 246, 0.28);
}

/* cell 4: dot pattern */
.bento__cell--grid {
  background-image:
    radial-gradient(circle at center, rgba(180, 155, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  background-color: var(--ink-2);
}

/* =========================================================================
   ACCORDION
   ========================================================================= */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0.25rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary:hover { color: var(--violet-soft); }
.acc__title {
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: 1 1 auto;
}
.acc__chev { margin-left: auto; color: var(--txt-3); transition: transform 0.3s var(--ease), color 0.2s var(--ease); }
.acc__chev svg { width: 1.35rem; height: 1.35rem; fill: currentColor; display: block; }
.acc__item[open] .acc__chev { transform: rotate(180deg); color: var(--violet-soft); }
.acc__panel {
  padding: 0 0.25rem 1.75rem calc(1.25rem + 1rem);
  max-width: 72ch;
}
.acc__panel p { margin: 0 0 1rem; color: var(--txt-2); }
.acc__item[open] .acc__panel { animation: acc-in 0.35s var(--ease) both; }
@keyframes acc-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 1.02rem;
  color: var(--txt-2);
}
.ticks .ico { margin-top: 0.28rem; }

/* =========================================================================
   PROCESS STEPS - connected rail
   ========================================================================= */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  /* Линия идёт через центры узлов: узел 34px, значит центр на 17px */
  top: 17px;
  left: 17px;
  right: 17px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet) 0%, rgba(139, 92, 246, 0.22) 100%);
}
.steps { counter-reset: step; }
.step { position: relative; padding-top: 3.25rem; counter-increment: step; }
/* Номер шага не украшение: порядок здесь настоящий, приём идёт
   от записи к ведению дела, и вести взгляд по нему честно.
   Узел несёт номер внутри, поэтому непрозрачный фон рвёт линию сам. */
.step__node {
  position: absolute;
  top: 0;
  left: 0;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--ink);
  border: 1.5px solid var(--violet);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1rem;
  font-weight: 500;
  /* Трекинг у одиночной цифры только сдвигает её вправо от центра */
  letter-spacing: 0;
  line-height: 1;
  color: var(--violet-soft);
}
/* Цифра центрируется по строке, а не по глифу: у JetBrains Mono
   нижний выносной элемент больше верхнего, из-за чего цифра садится
   ниже середины кружка. Сдвиг возвращает её в оптический центр. */
.step__node::before {
  content: counter(step);
  display: block;
  transform: translateY(-0.5px);
}
.step h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.step p { margin: 0; color: var(--txt-2); font-size: 1.04rem; line-height: 1.6; }

/* =========================================================================
   AWARDS - дипломы и сертификаты, оригиналы открываются в новой вкладке

   Сканы приходят узкими (180px по ширине превью), поэтому картинка
   не растягивается на карточку: она стоит в натуральную величину по центру
   тёмной подложки. Растянутый скан выглядит мыльным, это заметнее пустых
   полей по бокам.
   ========================================================================= */
.awards {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.award a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.award a:hover { border-color: var(--line-2); transform: translateY(-3px); }
.award img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  /* сканы разной яркости приводятся к общему тону страницы */
  filter: grayscale(0.35) contrast(1.03) brightness(0.92);
}
.award a:hover img { filter: none; }
.award__cap {
  margin-top: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--txt-2);
  text-align: center;
}

/* =========================================================================
   PARTNERS - внешние ссылки на компании-партнёры
   ========================================================================= */
.partners__title {
  margin: clamp(3rem, 5vw, 4.5rem) 0 0;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-top: 1.75rem;
}
.partner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding: clamp(1.2rem, 2.2vw, 1.75rem);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  color: var(--txt);
  text-decoration: none;
  transition: border-color 0.3s var(--ease);
}
.partner:hover { border-color: var(--line-2); }
.partner img {
  flex: none;
  width: 120px;
  height: auto;
  border-radius: 10px;
  background: #98ACD7;
}
.partner__text { flex: 1; color: var(--txt-2); font-size: 1.02rem; line-height: 1.55; }
.partner__arrow { flex: none; color: var(--violet-soft); }

@media (max-width: 900px) {
  .awards { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .awards { grid-template-columns: 1fr; }
}

/* =========================================================================
   SPLIT - о коллегии
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: 0.68fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split__media { border-radius: var(--r-card); overflow: hidden; position: relative; align-self: center; }
.split__media img {
  width: 100%;
  /* высота задана явно: от aspect-ratio колонка вырастала заметно выше текста */
  height: clamp(340px, 30vw, 460px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.66);
}
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(60, 30, 122, 0.42) 0%, transparent 55%);
}
.split__text p {
  color: var(--txt-2);
  max-width: 56ch;
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.18rem);
  line-height: 1.62;
}

.facts { margin: 2.5rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--txt-2);
  padding-top: 0.2rem;
}
.facts dd { margin: 0; color: var(--txt); font-size: 1.08rem; }

/* =========================================================================
   QUOTES - horizontal scroll-snap
   ========================================================================= */
.quotes {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2.5rem var(--gut) 1rem;
  margin-inline: auto;
  max-width: var(--wrap);
  scrollbar-width: thin;
  scrollbar-color: var(--violet-deep) transparent;
}
.quotes::-webkit-scrollbar { height: 4px; }
.quotes::-webkit-scrollbar-thumb { background: var(--violet-deep); border-radius: 999px; }
.quote {
  scroll-snap-align: start;
  flex: 0 0 min(420px, 82vw);
  margin: 0;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 2.2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote__mark { color: rgba(180, 155, 255, 0.4); }
.quote blockquote {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.5;
  letter-spacing: -0.012em;
}
.quote figcaption {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.quote figcaption .quote__role { font-weight: 400; color: var(--txt-3); font-size: 0.84rem; }

/* Управление лентой: точки слева, стрелки справа. Показывается скриптом,
   поэтому без JS разметка не оставляет мёртвых кнопок. */
.quotes__ctl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}
.quotes__dots { display: flex; align-items: center; gap: 0.35rem; }
.quotes__dot {
  width: 30px; height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.quotes__dot::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--line-2);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.quotes__dot:hover::before { background: var(--txt-3); }
.quotes__dot[aria-selected="true"]::before { background: var(--violet-soft); transform: scale(1.25); }

.quotes__arrows { display: flex; gap: 0.5rem; }
.quotes__btn {
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--txt-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.quotes__btn:hover:not(:disabled) { color: var(--txt); border-color: var(--violet-soft); }
.quotes__btn:disabled { opacity: 0.35; cursor: default; }
.quotes__btn svg { width: 1.15rem; height: 1.15rem; fill: currentColor; display: block; }
/* Одна иконка «шеврон вниз» разворачивается в обе стороны */
#quotes-prev svg { transform: rotate(90deg); }
#quotes-next svg { transform: rotate(-90deg); }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact {
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(139, 92, 246, 0.16) 0%, transparent 55%),
    var(--ink);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact__intro p { color: var(--txt-2); max-width: 46ch; }

.contact__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: 0.8rem; font-size: 1rem; }
.contact__list a { text-decoration: none; transition: color 0.2s var(--ease); }
.contact__list a:hover { color: var(--violet-soft); }

.contact__note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  background: var(--violet-wash);
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: var(--r-card);
  font-size: 0.92rem;
  color: #D3CDE3;
  max-width: 46ch;
}
.contact__note .ico { margin-top: 0.15rem; }

/* ---------- Form ---------- */
.form {
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2.35rem);
  display: grid;
  gap: 1.15rem;
}
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--txt);
  letter-spacing: 0.005em;
}
.field input[type="text"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--txt);
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-input);
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 108px; }
/* placeholder is a format hint only, never a label. Contrast 5.1:1 on --ink-3 */
.field ::placeholder { color: #8F87A6; opacity: 1; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(255, 255, 255, 0.26); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.28);
  background: #221B2F;
}
.field__hint { margin: 0; font-size: 0.82rem; color: var(--txt-2); }
.field__err  { margin: 0; font-size: 0.82rem; color: #FF9BAE; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #FF7F96; }

.select { position: relative; }
.select select { appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select select option { background: var(--ink-3); color: var(--txt); }
.select__chev {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--txt-2);
  pointer-events: none;
}
.select__chev svg { width: 1.15rem; height: 1.15rem; fill: currentColor; display: block; }

.check { display: flex; align-items: flex-start; gap: 0.7rem; cursor: pointer; font-weight: 400; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 0.15rem;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--ink-3);
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.check__box svg { width: 13px; height: 13px; fill: #0B0910; opacity: 0; transition: opacity 0.15s var(--ease); }
.check input:checked + .check__box { background: var(--violet); border-color: var(--violet); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35); }
.check__text { font-size: 0.88rem; color: var(--txt-2); line-height: 1.45; }

/* Ловушка для ботов. Убрана из вида позиционированием, а не display:none
   и не hidden: часть ботов пропускает скрытые так поля, а видимое им
   заполнить хочется. Для человека недостижима, из фокуса выведена. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__status {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-input);
  font-size: 0.9rem;
}
.form__status[data-state="ok"] {
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #DCD4F5;
}
.form__status[data-state="error"] {
  background: rgba(255, 127, 150, 0.1);
  border: 1px solid rgba(255, 127, 150, 0.35);
  color: #FFC2CD;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { border-top: 1px solid var(--line); background: var(--ink-1); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}
.footer__desc { color: var(--txt-3); font-size: 0.9rem; margin: 1.25rem 0 0; max-width: 34ch; }
.footer__col { display: flex; flex-direction: column; gap: 0.65rem; align-items: flex-start; }
.footer__col h3 {
  margin: 0 0 0.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--txt-2);
}
/* Только текстовые ссылки: кнопка в этой колонке тоже <a>, и без :not(.btn)
   правило перекрашивало ей надпись в --txt-2. Селектор из класса и тега
   весомее одиночного .btn--primary, поэтому побеждал он, а не кнопка. */
.footer__col a:not(.btn) { text-decoration: none; color: var(--txt-2); font-size: 0.94rem; transition: color 0.2s var(--ease); }
.footer__col a:not(.btn):hover { color: var(--violet-soft); }
.footer__col p { margin: 0; color: var(--txt-3); font-size: 0.9rem; }
.footer__col--cta p { color: var(--txt-2); margin-bottom: 0.5rem; max-width: 30ch; }

.footer__legal {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__legal p { margin: 0; color: var(--txt-3); font-size: 0.82rem; }

/* =========================================================================
   MOTION - MOTION_INTENSITY 5. Every reveal is a scroll entry, nothing loops.
   ========================================================================= */
/* Reveals only hide when JS is present, so a no-script page stays readable */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   LEGAL - страница политики обработки персональных данных

   Отдельная типографика для длинного юридического текста: узкая колонка,
   крупный межстрочный интервал, подзаголовки без декора.
   ========================================================================= */
.legal__top { border-bottom: 1px solid var(--line); }
.legal__top-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.legal__inner {
  max-width: 74ch;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.legal h2 {
  margin: 2.5rem 0 0.85rem;
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.legal p { margin: 0 0 1rem; color: var(--txt-2); }
.legal .lede { margin-bottom: 0.5rem; }
.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--txt-2);
}
.legal li { margin-bottom: 0.4rem; }
/* Та же оговорка, что в футере и меню: кнопки на странице 404 - это <a>,
   и без :not(.btn) они получали бы сиреневый текст на сиреневой заливке. */
.legal a:not(.btn) { color: var(--violet-soft); }
.legal__date {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.86rem;
  color: var(--txt-3);
}

/* =========================================================================
   LEADS - служебная страница просмотра заявок

   Не витрина, а рабочий инструмент: плотнее основной страницы,
   без анимаций, читается с телефона в дороге.
   ========================================================================= */
.leads__inner { padding-block: clamp(2rem, 5vw, 3.5rem); }
.leads__logout { margin: 0; }
.leads__auth { max-width: 24rem; margin-top: 1.75rem; }

.leads__msg {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-input);
  border: 1px solid var(--line-2);
  font-size: 0.98rem;
}
.leads__msg--error { border-color: rgba(255, 120, 120, 0.4); color: #FFB4B4; }
.leads__msg--ok { border-color: rgba(139, 92, 246, 0.45); color: var(--violet-soft); }

.leads__months {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0.75rem;
}
.leads__month {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  text-decoration: none;
  color: var(--txt-2);
  font-size: 0.94rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.leads__month:hover { color: var(--txt); }
.leads__month.is-current { background: var(--violet-soft); color: var(--ink); border-color: var(--violet-soft); }

.leads__count {
  margin: 0 0 1.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.86rem;
  color: var(--txt-3);
}

.leads__list { display: grid; gap: 0.9rem; }
.lead {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.15rem 1.35rem;
}
.lead__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.84rem;
}
.lead__when { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--txt-3); }
.lead__topic { color: var(--violet-soft); }
.lead__lang {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--txt-2);
}
.lead__who {
  margin: 0 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.9rem;
  font-size: 1.08rem;
}
.lead__who a { color: var(--violet-soft); text-decoration: none; }
.lead__who a:hover { text-decoration: underline; }
.lead__msg { margin: 0; color: var(--txt-2); font-size: 1rem; line-height: 1.6; }

/* Удаление стоит справа и приглушено: это редкое действие, а не то,
   к чему тянется рука при каждом просмотре. */
.lead__del { margin: 0 0 0 auto; }
.lead__del button {
  border: 0;
  background: transparent;
  padding: 0.2rem 0;
  font: inherit;
  font-size: 0.84rem;
  color: var(--txt-3);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.lead__del button:hover { color: #FFB4B4; }

.leads__confirm { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.leads__confirm form { margin: 0; }
.leads__purge { margin: 1.75rem 0 0; }

/* =========================================================================
   RESPONSIVE - every multi-column block declares its own collapse
   ========================================================================= */
/* Шапка со крупным шрифтом перестаёт помещаться в одну строку раньше 768px,
   поэтому выдвижное меню включается заранее. Порог поднят с 1150 до 1330px:
   название коллегии и пять пунктов меню длиннее прежних, на 1200px кнопка
   записи выдавливалась за правый край. Двухстрочной шапки не бывает. */
@media (max-width: 1330px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--gut) 1.5rem;
    background: rgba(11, 9, 16, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    z-index: var(--z-menu);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a {
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .nav__side { margin-left: auto; }
  .burger { display: flex; }
  .nav__side .btn--primary { display: none; }
  /* В шапке переключателю уже тесно: он переезжает в выдвижное меню */
  .nav__side .lang { display: none; }
  .lang--drawer {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 1.25rem;
  }
  /* В меню палец, а не курсор: сегменты добираются до 44px */
  .lang--drawer .lang__btn {
    min-width: 52px;
    min-height: 44px;
    font-size: 1rem;
  }
  .nav__drawer-cta {
    display: inline-flex;
    border-bottom: none;
    margin-top: 1.25rem;
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
    color: #0B0910;
  }
  .nav__drawer-cta:hover { color: #0B0910; }

  /* hero становится вертикальным: сначала текст с кнопками, видео под ними */
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-bottom: clamp(3rem, 7vh, 5rem);
  }
  .hero__inner { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); }
  .hero__media { margin-inline: 0; max-width: 520px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell:nth-child(n) { grid-column: auto / span 1; }
  .bento__cell--wide { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
  .split { grid-template-columns: 1fr; }
  .split__media img { height: clamp(200px, 44vw, 300px); }
  .contact__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.25rem; }
  .steps::before { display: none; }
  .step { padding-top: 3rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 72px; }

  .brand__mark svg { width: 40px; height: 40px; }
  .brand__name { font-size: 1.05rem; }
  /* Подпись "московская коллегия адвокатов" в одну строку шире телефона:
     ниже 620px она вместе с номером выдавливала бургер за край экрана. */
  .brand__kind { font-size: 0.72rem; }

  /* на мобильном заголовок ломается сам, жёсткий перенос выключен */
  .br-lg { display: none; }
  .hero__title { max-width: 18ch; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__media { max-width: min(420px, 84vw); margin-inline: auto; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .bento__cell:nth-child(n) { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 0.25rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .acc__panel { padding-left: 0; }
}

@media (max-width: 620px) {
  .brand__kind { display: none; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 0.9rem; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}

/* =========================================================================
   REDUCED MOTION - everything above MOTION 3 collapses to static
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .acc__item[open] .acc__panel { animation: none; }
}

/* Solid fallback where translucency is unwanted */
@media (prefers-reduced-transparency: reduce) {
  .nav.is-stuck { background: var(--ink); backdrop-filter: none; }
  .btn--ghost { backdrop-filter: none; background: var(--ink-2); }
}
/* Меню становится полупрозрачной панелью только в выдвижном виде, поэтому
   и непрозрачный фолбэк нужен только там. Без ограничения по ширине он
   рисовал сплошную плашку за строкой ссылок на десктопе. */
@media (prefers-reduced-transparency: reduce) and (max-width: 1330px) {
  .nav__links { background: var(--ink); backdrop-filter: none; }
}

@media print {
  .nav, .hero__media, .burger { display: none; }
  body { background: #fff; color: #000; }
}
