/* ------------------------------------------------------------------
   Бизнес-центр «ТРАСТ» — сайт, версия 5.
   Композиция «Монография» (A) + умеренный фирменный паттерн «Простенки» (B).

   Фирменный стиль по брендбуку «ТРАСТ» 2025.
   Цвета — стр. 16, шрифт — стр. 17, логотип и дескриптор — стр. 8–11,
   вертикальная линейка-буллит — приём со стр. 4, 6, 8,
   паттерн — артборд 17 файла TPACT_2.ai (assets/pattern-tile.svg, геометрия не менялась).

   Где стоит паттерн (и только там):
     1. «Среда» — тиснение тон-в-тон за текстом (.env::before);
     2. «Условия» (светлый раздел) — тёмное тиснение тон-в-тон на весь раздел (.terms-sec::before);
     3. основной подвал — тиснение тон-в-тон на всю высоту (.footer::before).
   Страница «Спасибо» — фоном фронтальный фасад, паттерна поверх рендера нет.
   Везде паттерн повторяется в собственных пропорциях (без растяжения периода).
   Рисуется обычным фоновым SVG, а не маской: CSS-маски с внешним SVG блокируются при открытии
   файла с диска (file://), и паттерн пропадал полностью.
   В шапке и поверх рендеров паттерна нет.
   ------------------------------------------------------------------ */

@font-face {
  font-family: "Jost";
  src: url("assets/jost-light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/jost-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/jost-medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* Фирменные цвета, брендбук стр. 16 */
  --dark:   #122E39;   /* R18 G46 B57    — доминирующий тёмно-синий */
  --blue:   #6196B6;   /* R97 G150 B182  — акцентный голубой (декоративные элементы: рамки, буллиты) */
  --orange: #C6592E;   /* R198 G89 B46   — доминирующий оранжевый (декоративные элементы) */
  --light:  #EBE7E4;   /* R235 G231 B228 — светлый фон */

  /* Текстовые/интерактивные варианты фирменных цветов — подобраны на контраст ≥4.5:1
     (аудит доступности 23.09.2026): у исходных --blue и --orange недостаточно контраста
     для текста и текста на кнопках, поэтому для текста используются эти варианты,
     а --blue/--orange остаются как в брендбуке для рамок и прочих не-текстовых элементов. */
  --blue-text:   #6FA1C0;   /* контраст на --dark ≈5.1:1 — для .label--accent, .note-ref */
  --orange-deep: #A8471F;   /* контраст с белым текстом ≈5.9:1 — фон кнопки .btn--primary */
  --orange-deep-hover: #8F3C1A;

  --ink:        var(--dark);
  --ink-muted:  #4A6270;
  --on-dark-muted: rgba(255, 255, 255, 0.68);
  --rule-dark:  rgba(255, 255, 255, 0.18);
  --rule-light: rgba(18, 46, 57, 0.18);

  /* Сетка: поле набора 1600 px */
  --wrap: 1600px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --col-gap: clamp(16px, 2vw, 32px);
  --header-h: 64px;   /* полная высота шапки вместе с нижней линией 1px */
  --section-y: clamp(72px, 9vw, 144px);

  /* Шкала текста — единая для всех разделов:
     h1 — заголовок первого экрана; h2 — заголовки разделов; accent — названия условий, характеристики, телефон;
     lead — вводный абзац; body — пункты списков и описания. */
  --fs-h2: clamp(28px, 1.6vw + 18px, 44px);
  --fs-accent: clamp(19px, 0.8vw + 15px, 28px);
  --fs-lead: clamp(16px, 0.3vw + 15px, 20px);
  --fs-body: clamp(16px, 0.2vw + 15px, 18px);
  --lh-lead: 1.65;
  --lh-body: 1.6;

  /* Паттерн: плитка 73.286 × 886.536 pt — одна пара рёбер (высокое сверху, короткое снизу) */
  --tile-ratio: 0.08266;   /* ширина периода / высота */

  /* Высота открытого баннера cookie — ставит скрипт. Под неё резервируется место внизу страницы (body) и в
     scroll-padding-bottom, чтобы подвал и элемент с фокусом клавиатуры не прятались под fixed-панелью. */
  --cookie-h: 0px;
  /* Единица высоты экрана: svh там, где поддерживается, иначе vh (без запасного значения min-height и высота кадров сцен
     в старых браузерах терялись бы целиком) */
  --svh: 1vh;
  /* Подписи разделов поверх фото: --blue-text рассчитан на сплошной --dark (5,1:1), на снимке контраст падал до 2,3–3,7:1.
     Тот же голубой бренда, но светлее — для подписей внутри сцен (hero, «О проекте», «Технологии»). */
  --blue-on-photo: #A6CDE6;
}
@supports (height: 1svh) { :root { --svh: 1svh; } }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scroll-padding-bottom: calc(var(--cookie-h) + 8px);   /* запас под кольцо фокуса (2 px + отступ 3 px) */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Горизонтальное переполнение не маскируется overflow-x у body: каждый блок сам укладывается в ширину окна */
body {
  margin: 0;
  padding-bottom: var(--cookie-h);
  background: var(--light);
  color: var(--ink);
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 0.35vw + 14.5px, 18px);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
figure { margin: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange-deep); color: #fff; padding: 12px 20px; z-index: 100;
}
.skip:focus { left: 0; }

/* Фокус с клавиатуры: на тёмном поле — голубой, на светлом — тёмно-синий (контраст ≥3:1 в обоих случаях) */
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; }
.section--paper :focus-visible,
.doc :focus-visible { outline-color: var(--dark); }

/* ---------- Общая типографика ---------- */

/* Подписи разделов — прописные с разрядкой, как в брендбуке (стр. 17) */
.label {
  margin: 0 0 20px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.label--accent { color: var(--blue-text); }

.section__title {
  margin: 0 0 28px;
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.lead {
  text-wrap: pretty;
  margin: 0 0 32px;
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

/* Вертикальная линейка-буллит — приём брендбука, стр. 4, 6, 8 */
.marks { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.marks li {
  padding-left: 22px;
  border-left: 1px solid var(--blue);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.nowrap { white-space: nowrap; }
.marks li, .spec li, .terms__desc { text-wrap: pretty; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  padding: 18px 24px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
/* Фон кнопки — --orange-deep, а не брендовый --orange: у белого текста на --orange контраст
   только ≈4.3:1, ниже нормы WCAG AA (4.5:1) для обычного текста (аудит 23.09.2026). */
.btn--primary { background: var(--orange-deep); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--orange-deep-hover); }
.btn--primary:disabled { cursor: progress; background: var(--orange-deep-hover); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- Шапка: строгая полоса, без паттерна ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--dark);
  color: #fff;
  border-bottom: 1px solid var(--rule-dark);
}
.header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
  height: calc(var(--header-h) - 1px);   /* минус нижняя линия шапки */
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
}
.header__logo { display: block; flex: none; }
.header__logo img { height: 30px; width: auto; }

.nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
  margin-inline-start: auto;
}
.nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark-muted);
  padding-block: 8px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover, .nav a:focus-visible { color: #fff; border-bottom-color: var(--orange); }

.header__phone {
  flex: none;
  color: #fff;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 8px;
}
.header__phone:hover { color: var(--blue-text); }
/* Между разделами и телефоном — тонкая вертикальная линейка (приём брендбука), отделяет навигацию от контакта */
.nav + .header__phone { padding-inline-start: clamp(16px, 3vw, 48px); border-inline-start: 1px solid var(--rule-dark); }
/* На служебных страницах меню нет — телефон прижимаем вправо, как на главной */
.header__logo + .header__phone { margin-inline-start: auto; }

.nav-toggle { display: none; }

/* ---------- Сцены: рендер — фон всей секции, текст поверх на локальном градиенте ----------
   Используются в первом экране, «О проекте» и «Технологиях» (принцип v4).
   Затемнение только в зоне текста: правая часть кадра и здание остаются открыты.
   На экранах уже 1024 px кадр стоит в верхней части секции целиком и плавно уходит
   в тёмное поле под текстом — здание не прячется под сплошным затемнением. */

.scene {
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));   /* запасной вариант без container query units */
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  overflow: hidden;   /* обрезается только собственный фон сцены */
  display: flex;
  align-items: center;
  background: var(--dark);
  color: #fff;
}
@supports (width: 1cqw) {
  .scene { --edge: max(var(--gutter), calc((100cqw - var(--wrap)) / 2 + var(--gutter))); }
}
.scene__bg { position: absolute; inset: 0; z-index: -2; display: block; }
.scene__bg img { width: 100%; height: 100%; object-fit: cover; }
.scene::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background: var(--scene-shade);
}
.scene__content {
  width: 100%;
  padding: var(--scene-pad-y, clamp(56px, 8vh, 112px)) var(--edge);
}
.scene__text { max-width: clamp(440px, 38vw, 600px); }
.scene .lead { color: rgba(255, 255, 255, 0.86); }
.scene .label--accent { color: var(--blue-on-photo); }

/* ---------- 1. Первый экран ---------- */

.hero {
  --hero-h: calc(100 * var(--svh) - var(--header-h));
  min-height: var(--hero-h);
  align-items: flex-start;   /* текст от верха: основная кнопка остаётся выше уведомления о cookie */
  --scene-pad-y: clamp(36px, 6.5vh, 96px);
  /* Градиент слева под текстом; с 63 % ширины кадр открыт полностью */
  --scene-shade: linear-gradient(90deg,
    rgba(18, 46, 57, 0.92) 0%, rgba(18, 46, 57, 0.86) 30%, rgba(18, 46, 57, 0.58) 41%,
    rgba(18, 46, 57, 0.14) 53%, rgba(18, 46, 57, 0) 63%);
}
/* Кадр выровнен по левому краю: когда экран уже пропорций рендера, срезается правая часть улицы,
   а здание сдвигается вправо — подальше от текста */
.hero .scene__bg img { object-position: 0% 30%; }
/* Кадр целиком (1,724 : 1), от крыши до улицы с машинами и людьми: на экранах шире пропорций кадра
   он не растягивается на всю ширину (иначе срезается низ), а прижимается вправо в высоту экрана;
   слева плавно уходит в тёмное поле под текстом. На более узких экранах кадр, как раньше, заполняет блок. */
@media (min-width: 1024px) {
  /* На 1024–1400 px колонка текста заходит на здание: кадр сдвигается вправо (до 90 px на 1024) — левый край
     фасада остаётся за колонкой текста, а здание целиком в кадре. Контраст текста и кнопок по фото ≥4,5:1. */
  .hero { --hero-shift: clamp(0px, calc((1400px - 100vw) * 0.4), 90px); }
  .hero .scene__bg { left: auto; width: min(calc(100% - var(--hero-shift)), calc(var(--hero-h) * 1.724)); }
  .hero .scene__bg img { object-position: 0% 50%; }
  .hero .scene__bg::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--dark) 0%, rgba(18, 46, 57, 0.6) 16%, rgba(18, 46, 57, 0) 38%);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero { --scene-shade: linear-gradient(90deg,
    rgba(18, 46, 57, 0.92) 0%, rgba(18, 46, 57, 0.88) 34%, rgba(18, 46, 57, 0.78) 47%,
    rgba(18, 46, 57, 0.5) 56%, rgba(18, 46, 57, 0.14) 63%, rgba(18, 46, 57, 0) 70%); }
}
@media (min-width: 1200px) and (max-width: 1365px) {
  .hero { --scene-shade: linear-gradient(90deg,
    rgba(18, 46, 57, 0.92) 0%, rgba(18, 46, 57, 0.86) 32%, rgba(18, 46, 57, 0.68) 44%,
    rgba(18, 46, 57, 0.36) 52%, rgba(18, 46, 57, 0.1) 59%, rgba(18, 46, 57, 0) 65%); }
}
/* Колонка вмещает обе кнопки в один ряд */
.hero .scene__text { max-width: clamp(580px, 43vw, 660px); }
.hero__title {
  margin: 0 0 clamp(18px, 2.6vh, 28px);
  font-weight: 400;
  font-size: clamp(32px, min(3.5vw, 7vh), 60px);
  line-height: 1.06;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__lead {
  margin: 0;
  max-width: 32em;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: rgba(255, 255, 255, 0.88);
  text-wrap: pretty;
}
/* Подчёркивание + --blue-text: ссылка на сноску не должна опираться только на цвет (WCAG 1.4.1),
   а у --blue на --dark контраст текста был на грани провала (аудит 23.09.2026). */
.note-ref { text-decoration: underline; text-underline-offset: 3px; color: var(--blue-text); padding-inline: 2px; }

/* Характеристики — строка «выходных данных», каждая со своей линейкой */
.facts {
  margin: 0;
  padding-top: clamp(24px, 4vh, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px clamp(28px, 3vw, 48px);
}
.facts__item { padding-left: 18px; border-left: 1px solid var(--blue); }
.facts dt {
  font-weight: 400;
  font-size: var(--fs-accent);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.facts dd {
  margin: 4px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.hero__actions {
  margin: clamp(24px, 3.6vh, 44px) 0 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* ---------- Разделы ---------- */

.section { position: relative; padding-block: var(--section-y); }
.section--paper { background: var(--light); color: var(--ink); }
.section--dark  { background: var(--dark);  color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, 0.82); }

/* ---------- 2. О проекте ---------- */

.about {
  min-height: clamp(560px, 48vw, 820px);
  --scene-shade: linear-gradient(90deg,
    rgba(10, 26, 34, 0.9) 0%, rgba(10, 26, 34, 0.8) 36%, rgba(10, 26, 34, 0.42) 50%,
    rgba(10, 26, 34, 0.08) 62%, rgba(10, 26, 34, 0) 72%);
}
/* Входная группа, освещённое лобби и деревья справа остаются в кадре */
.about .scene__bg img { object-position: 50% 62%; }
.about .scene__text { max-width: clamp(480px, 42vw, 680px); }
.about .lead { margin-bottom: 28px; }
.about .marks { gap: 14px; }
.scene .marks li { color: rgba(255, 255, 255, 0.92); }

/* ---------- 4. Среда: тёмное поле, городской кадр слева, текст справа ---------- */

/* Кадр без полей — на всю высоту секции, как остальные сцены; от середины здания он уходит
   градиентом вправо, в тёмное поле под текстом. Высоту секции задаёт текст (не меньше min-height). */
.env { padding-block: 0; container-type: inline-size; overflow: hidden; }
.env__grid {
  display: grid;
  position: relative; z-index: 1;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  column-gap: clamp(24px, 3vw, 64px);
  align-items: stretch;
  min-height: clamp(560px, 46vw, 820px);
  padding-inline-end: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
@supports (width: 1cqw) {
  .env__grid { padding-inline-end: max(var(--gutter), calc((100cqw - var(--wrap)) / 2 + var(--gutter))); }
}
.env__plate { position: relative; min-width: 0; }
.env__plate picture { position: absolute; inset: 0; display: block; }
.env__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}
.env__plate::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(18, 46, 57, 0) 40%, rgba(18, 46, 57, 0.35) 62%, rgba(18, 46, 57, 0.82) 84%, var(--dark) 100%);
  pointer-events: none;
}
.env__text { min-width: 0; max-width: 38em; align-self: center; padding-block: clamp(56px, 6vw, 104px); }
.env__text .lead { margin-bottom: 32px; }

/* Тиснение тон-в-тон, как на обложках брендбука (стр. 20): крупный паттерн на тёмном поле за текстом.
   Плитка во всю высоту секции в собственных пропорциях; фото не перекрывается. */
.env::before {
  content: "";
  position: absolute; top: 0; bottom: 0; right: 0;
  width: 52%;
  /* как в «Условиях»: одинаковое затухание сверху и снизу */
  background:
    linear-gradient(to bottom, var(--dark) 0%, rgba(18, 46, 57, 0) 18%, rgba(18, 46, 57, 0) 82%, var(--dark) 100%),
    url("assets/pattern-tile.svg") repeat-x 100% 50% / auto 100%;
  opacity: 0.08;
  pointer-events: none;
}

/* ---------- 5. Технологии и комфорт ---------- */

/* Одна колонка слева: заголовок, абзац и характеристики — единым блоком по центру высоты,
   на локальном градиенте; фасад справа открыт */
.tech {
  min-height: clamp(600px, 50vw, 860px);
  --scene-pad-y: clamp(56px, 7vw, 112px);
  --scene-shade: linear-gradient(90deg,
    rgba(18, 46, 57, 0.92) 0%, rgba(18, 46, 57, 0.86) 34%, rgba(18, 46, 57, 0.4) 50%, rgba(18, 46, 57, 0) 64%);
}
.tech .scene__bg img { object-position: 60% 35%; }
/* 1024–1279 px: колонка текста занимает почти половину ширины — затемнение шире */
@media (min-width: 1024px) and (max-width: 1279px) {
  .tech { --scene-shade: linear-gradient(90deg, rgba(18, 46, 57, 0.92) 0%, rgba(18, 46, 57, 0.86) 44%, rgba(18, 46, 57, 0.4) 60%, rgba(18, 46, 57, 0) 74%); }
}
.tech .scene__text,
.tech .spec { max-width: clamp(440px, 42vw, 640px); }
.tech .lead { margin-bottom: 0; }

/* Характеристики — две колонки на общих линиях */
.spec {
  margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.spec li {
  padding: 12px 12px 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* ---------- 6. Условия: три блока и фасадный ритм паттерна ---------- */

/* Светлый раздел — единственная пауза между тёмными сценами перед формой (фирменный #EBE7E4).
   Тиснение тон-в-тон, как в «Среде», но тёмными рёбрами (pattern-tile-dark.svg — та же геометрия):
   паттерн в собственных пропорциях на всю высоту раздела, одинаково растворяется сверху и снизу. */
.terms-sec { padding-block: clamp(56px, 6vw, 96px); overflow: hidden; }
.terms-sec::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--light) 0%, rgba(235, 231, 228, 0) 18%, rgba(235, 231, 228, 0) 82%, var(--light) 100%),
    url("assets/pattern-tile-dark.svg") repeat-x 50% 50% / auto 100%;
  opacity: 0.06;
  pointer-events: none;
}
.terms-sec .wrap { position: relative; z-index: 1; }
.terms-sec .label { color: var(--ink-muted); }
.terms-sec__head { text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.terms-sec__head .section__title { margin: 0; }
.terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 clamp(32px, 4vw, 48px);
  border-block: 1px solid var(--rule-light);
}
.terms__item {
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 48px);
  border-left: 1px solid var(--rule-light);
  text-align: center;
}
.terms__item:first-child { border-left: 0; }
.terms__name {
  margin: 0 0 10px;
  font-weight: 400;
  font-size: var(--fs-accent);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.terms__desc { margin: 0 auto; max-width: 20em; color: var(--ink-muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.terms__action { margin: 0; text-align: center; }

/* ---------- 7. Заявка ---------- */

/* Фронтальный фасад № 002 — правая часть раздела на всю высоту, левый край растворяется в тёмном поле;
   заголовок и форма стоят слева на чистом поле. На экранах уже 1024 px — кадр целиком сверху. */
.form-sec { position: relative; isolation: isolate; padding-block: clamp(64px, 7vw, 104px); overflow: hidden; }
.form-sec__bg { position: absolute; top: 0; bottom: 0; right: 0; width: 58%; z-index: -1; display: block; }
.form-sec__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.form-sec__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--dark) 0%, rgba(18, 46, 57, 0.6) 18%, rgba(18, 46, 57, 0) 40%);
}

.form-sec__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  column-gap: clamp(40px, 7vw, 128px);
  align-items: start;
}
.form-sec__head .lead { margin-bottom: 0; }
.form-sec__head, .form-sec__body { grid-column: 1; }
.form-sec__body { margin-top: 32px; background: var(--dark); }
/* Форма — отдельная плоскость в тонкой рамке, как вклейка */
.form-sec__body {
  min-width: 0;
  border: 1px solid var(--rule-dark);
  padding: clamp(28px, 3.6vw, 56px);
}
.form-sec__body .form { margin-top: 0; max-width: none; }

.form { margin-top: clamp(24px, 3vw, 36px); max-width: 30em; }
.form__row { margin: 0 0 26px; display: grid; gap: 6px; }
.form__label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.form__input {
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 18px;   /* ≥16 px: мобильные браузеры не увеличивают масштаб при фокусе */
  border-radius: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form__input::placeholder { color: rgba(255, 255, 255, 0.5); }
.form__input:hover { border-bottom-color: rgba(255, 255, 255, 0.7); }
/* Фокус — в стилистике поля: нижняя линия становится голубой и толщиной 2 px (1 px рамки + тень),
   без отдельной прямоугольной рамки. Прозрачный outline нужен режиму высокой контрастности Windows:
   там он становится видимым системным цветом. */
.form__input:focus,
.form__input:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-bottom-color: var(--blue-text);
  box-shadow: 0 1px 0 var(--blue-text);
}
/* Ошибка — после попытки ввода/отправки: линия оранжевая и толще; текст подсказки даёт сам браузер */
.form__input:user-invalid {
  border-bottom-color: var(--orange);
  box-shadow: 0 1px 0 var(--orange);
}
.form__check:user-invalid { outline: 2px solid var(--orange); outline-offset: 2px; }

.form__consent {
  margin: 8px 0 30px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--on-dark-muted);
}
.form__check { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--orange-deep); cursor: pointer; }
.form__consent label { cursor: pointer; }
.form__consent a { color: #fff; text-underline-offset: 3px; }
.form__consent a:hover { color: var(--blue-text); }
.form__submit { margin: 0; }
.form__submit .btn { width: 100%; }

.form__row--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__error {
  margin: 0 0 26px;
  padding: 14px 18px;
  border: 1px solid var(--orange);
  border-left-width: 3px;
  background: rgba(198, 89, 46, 0.12);
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}
.form__error a { color: #fff; text-underline-offset: 3px; white-space: nowrap; }
.form__error[hidden] { display: none; }

/* ---------- Подвал ---------- */

.footer {
  background: var(--dark);
  color: #fff;
  padding-top: clamp(56px, 6vw, 96px);
  border-top: 1px solid var(--rule-dark);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr);
  column-gap: var(--col-gap);
  row-gap: 40px;
  align-items: start;
}
.footer__brand img { width: clamp(96px, 8vw, 128px); height: auto; }
.footer__col { min-width: 0; }
.footer__phone {
  margin: 0 0 16px;
  font-weight: 400;
  font-size: var(--fs-accent);
  letter-spacing: 0.02em;
}
.footer__phone a { text-decoration: none; white-space: nowrap; }
.footer__phone a:hover { color: var(--blue-text); }
.footer__text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--on-dark-muted);
}
.footer__links {
  margin: 0;
  font-size: 15px;
  line-height: 2;
}
.footer__links a { color: var(--on-dark-muted); text-underline-offset: 3px; }
.footer__links a:hover { color: #fff; }
.footer__note {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--rule-dark);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.56);
}
.footer__note a { color: var(--on-dark-muted); text-underline-offset: 3px; }
.footer__note a:hover { color: #fff; }

/* Основной подвал: тиснение тон-в-тон на всю высоту, как в «Условиях» — паттерн в собственных пропорциях,
   одинаково растворяется сверху и снизу. Компактный подвал служебных страниц остаётся без паттерна. */
.footer:not(.footer--compact) {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(40px, 5vw, 72px);
}
.footer:not(.footer--compact)::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--dark) 0%, rgba(18, 46, 57, 0) 18%, rgba(18, 46, 57, 0) 82%, var(--dark) 100%),
    url("assets/pattern-tile.svg") repeat-x 50% 50% / auto 100%;
  opacity: 0.07;
  pointer-events: none;
}
.footer:not(.footer--compact) > * { position: relative; z-index: 1; }

/* ---------- Адаптив: ноутбуки и планшеты ---------- */

@media (max-width: 1279px) {
  .footer__inner { grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 5fr); }
}

/* Сцены уже 1024 px: кадр целиком в верхней части секции, ниже — тёмное поле с текстом.
   Текст заходит только на нижнюю часть кадра (улица, цоколь), где градиент уже плотный;
   верх здания остаётся открыт. */
@media (max-width: 1023px) {
  .scene {
    --img-h: clamp(280px, calc(44 * var(--svh)), 520px);
    --scene-shade: linear-gradient(to bottom,
      rgba(18, 46, 57, 0) 0, rgba(18, 46, 57, 0) calc(var(--img-h) * 0.30),
      rgba(18, 46, 57, 0.76) calc(var(--img-h) * 0.50), rgba(18, 46, 57, 0.93) calc(var(--img-h) * 0.72),
      var(--dark) var(--img-h));
    display: block;
    min-height: 0;
  }
  .scene__bg { inset: 0 0 auto 0; height: var(--img-h); }
  .scene__content { padding: calc(var(--img-h) * 0.6) var(--gutter) clamp(48px, 7vw, 72px); }
  .scene__text { max-width: 40em; }

  .hero .scene__bg img { object-position: 52% 40%; }
  .hero__title { font-size: clamp(27px, 5.2vw, 46px); }
  .about .scene__bg img { object-position: 50% 60%; }
  .tech .scene__bg img { object-position: 72% 40%; }
  .tech .spec { max-width: none; }

  /* Кадр во всю ширину, под ним текст; тиснение — за текстом */
  /* Кадр сверху во всю ширину, от середины здания уходит градиентом вниз, в поле под текстом */
  .env__grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; min-height: 0; padding-inline-end: 0; }
  .env__plate { height: clamp(280px, 64vw, 540px); }
  .env__plate img { object-position: 40% 50%; }
  .env__plate::after {
    background: linear-gradient(to bottom,
      rgba(18, 46, 57, 0) 45%, rgba(18, 46, 57, 0.5) 70%, rgba(18, 46, 57, 0.86) 88%, var(--dark) 100%);
  }
  .env__text { position: relative; margin-top: -40px; padding: 0 var(--gutter) clamp(48px, 7vw, 72px); max-width: 44em; }   /* подпись заходит на плотную часть градиента */
  .env::before { width: 100%; top: auto; height: 66%; }

  .form-sec__grid { grid-template-columns: minmax(0, 1fr); row-gap: clamp(32px, 5vw, 48px); }
  .form-sec { padding-top: 0; }
  .form-sec__bg { position: relative; width: auto; }
  .form-sec__bg img { height: auto; }
  .form-sec__bg::after { background: linear-gradient(to bottom, rgba(18, 46, 57, 0) 45%, rgba(18, 46, 57, 0.7) 78%, var(--dark) 100%); }
  .form-sec__grid { position: relative; margin-top: -24px; }
  .form-sec__body { margin-top: 0; }
  .form-sec__head .lead { max-width: 34em; }
}

@media (max-width: 860px) {
  :root { --header-h: 57px; }
  .header__logo img { height: 26px; }
  .header__inner { gap: 16px; }
  .nav + .header__phone { padding-inline-start: 0; border-inline-start: 0; }
  .header__phone { margin-inline-start: auto; font-size: 15px; }

  /* Со скриптом разделы свёрнуты под кнопку «Меню» и раскрываются панелью под шапкой */
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    flex: none;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: none;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .js .nav-toggle[hidden] { display: none; }
  .js .nav-toggle[aria-expanded="true"] { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
  .js .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 4px var(--gutter) 20px;
    background: var(--dark);
    border-bottom: 1px solid var(--rule-dark);
  }
  .js.nav-open .nav { display: flex; }
  .js .nav a {
    padding-block: 14px;
    border-bottom: 1px solid var(--rule-dark);
    font-size: 14px;
    color: #fff;
  }
  .js .nav a:hover, .js .nav a:focus-visible { border-bottom-color: var(--orange); }
  .js .nav a:focus-visible { outline-offset: -2px; }

  /* Без скрипта — как в v4: разделы второй строкой шапки, всегда доступны.
     Только на главной (где в шапке есть меню): у служебных страниц шапка остаётся в одну строку. */
  html:not(.js):has(.nav) { --header-h: 99px; }
  html:not(.js) .header__inner:has(.nav) { height: auto; min-height: calc(var(--header-h) - 1px); padding-block: 8px; flex-wrap: wrap; row-gap: 4px; }
  html:not(.js) .nav { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 6px; }
  html:not(.js) .nav a { font-size: 12px; letter-spacing: 0.08em; }
}

@media (max-width: 767px) {
  .form-sec__bg img { aspect-ratio: 1200 / 1135; }   /* пропорции мобильного кадра: место занято до загрузки, форма не съезжает */
}

@media (max-width: 720px) {
  .terms { grid-template-columns: minmax(0, 1fr); }
  .terms__item { border-left: 0; border-top: 1px solid var(--rule-light); padding-block: 22px; }
  .terms__item:first-child { border-top: 0; }
  .terms__action .btn { width: 100%; }

  .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

/* Телефоны */
@media (max-width: 600px) {
  .scene { --img-h: clamp(250px, calc(42 * var(--svh)), 400px); }
  .scene__content { padding-top: calc(var(--img-h) * 0.62); padding-bottom: 44px; }
  .hero .label { margin-bottom: 10px; }
  .hero .scene__content { padding-top: calc(var(--img-h) * 0.57); }
  .hero__title { font-size: clamp(25px, 7.4vw, 36px); line-height: 1.1; margin-bottom: 14px; }
  .facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; padding-top: 14px; gap: 12px 18px; }
  .facts__item { padding-left: 12px; }
  .facts dd { font-size: 12px; letter-spacing: 0.06em; }
  .hero__actions { margin-top: 14px; gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; padding-block: 15px; }

  :root { --fs-h2: clamp(25px, 6.6vw, 34px); }
  .btn { padding: 16px 24px; }

  .form-sec__body { padding: 24px 20px 28px; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__brand { grid-column: auto; }
}

@media (max-width: 420px) {
  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec li { padding: 12px 0 14px; }
}

/* Узкие телефоны 320–359 px: телефон в шапке и кнопка «Меню» помещаются в одну строку */
@media (max-width: 359px) {
  .header__inner { gap: 10px; }
  .header__logo img { height: 24px; }
  .header__phone { font-size: 14px; letter-spacing: 0.01em; }
  .js .nav-toggle { padding: 0 10px; letter-spacing: 0.08em; }
  .facts { column-gap: 12px; }
  .facts dt { font-size: 17px; }
}

/* ---------- Юридические страницы ---------- */

.doc { padding-block: clamp(48px, 7vw, 96px) var(--section-y); background: var(--light); }
/* Короткие страницы (архив редакций): подвал прижат к низу окна, под ним нет пустой светлой полосы */
.page-doc { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page-doc .doc { flex: 1 0 auto; }
.doc__inner { max-width: 820px; margin: 0 auto; padding-inline: var(--gutter); }
.doc__back {
  display: inline-block;
  margin-bottom: clamp(28px, 4vw, 44px);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-underline-offset: 4px;
}
.doc__back:hover { color: var(--orange-deep); }
.doc h1 {
  margin: 0 0 clamp(28px, 4vw, 48px);
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--rule-light);
  font-weight: 400;
  font-size: clamp(24px, 1.6vw + 16px, 40px);
  line-height: 1.18;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
/* Заголовок с очень длинным словом («КОНФИДЕНЦИАЛЬНОСТИ» ≈ 13,2 кегля с разрядкой): на узких экранах
   кегль привязан к ширине колонки (100vw − 2 поля) / 14, чтобы слово целиком помещалось с запасом ~6%.
   Примерно от 390 px действует обычный размер .doc h1, на планшете и десктопе ничего не меняется. */
.doc h1.doc__title--long {
  font-size: min(clamp(24px, 1.6vw + 16px, 40px), calc((100vw - 2 * var(--gutter)) / 14));
}
.doc h2 {
  margin: clamp(36px, 4vw, 56px) 0 16px;
  font-weight: 500;
  font-size: clamp(16px, 0.6vw + 14px, 21px);
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 18px;
  border-left: 2px solid var(--orange);
}
.doc h3 {
  margin: 28px 0 12px;
  font-weight: 500;
  font-size: clamp(16px, 0.3vw + 15px, 18px);
  line-height: 1.4;
}
.doc p {
  margin: 0 0 18px;
  font-size: clamp(15px, 0.2vw + 14.5px, 17px);
  line-height: 1.8;
}
.doc ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.doc li {
  margin: 0 0 10px;
  padding-left: 18px;
  border-left: 1px solid var(--blue);
  font-size: clamp(15px, 0.2vw + 14.5px, 17px);
  line-height: 1.75;
}
.doc a { color: var(--dark); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { color: var(--orange-deep); }
.doc__operator { line-height: 1.9; }
.doc__meta {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--rule-light);
  color: var(--ink-muted);
  font-size: 14px;
}

/* ---------- Согласие на cookie: таблица условий и сноска ---------- */

.doc__terms { margin: 26px 0; border-top: 1px solid var(--rule-light); }
.doc__terms dt {
  margin: 0;
  padding-top: 18px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.doc__terms dd {
  margin: 6px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-light);
  font-size: clamp(15px, 0.2vw + 14.5px, 17px);
  line-height: 1.75;
}
.doc__terms dd p:last-child { margin-bottom: 0; }
/* Подчёркивание + --orange-deep: контраст --orange на светлом фоне ≈3.5:1 — ниже нормы
   для текста, да и опираться только на цвет ссылки нельзя (WCAG 1.4.1 / 1.4.3, аудит 23.09.2026). */
.doc__fn-ref { text-decoration: underline; text-underline-offset: 3px; color: var(--orange-deep); }
.doc__footnote { font-size: 14px; color: var(--ink-muted); }

/* ---------- Компактный подвал служебных страниц ----------
   Ссылка на Политику должна быть в подвале каждой страницы (Рекомендации аудитора, п. 3).
   Паттерна и рендера здесь нет — только строка с реквизитом и ссылками. */

.footer--compact { padding-block: clamp(22px, 3vw, 32px); }
.footer__compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 32px;
}
.footer--compact .footer__text { margin: 0; font-size: 14px; }
.footer--compact .footer__links { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; line-height: 1.6; font-size: 14px; }

/* ---------- Страница после отправки заявки ---------- */

.page-thanks { background: var(--dark); }
.thanks {
  position: relative;
  min-height: calc(100 * var(--svh) - 84px);   /* подвал виден без прокрутки */
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vw, 90px) var(--gutter);
  background: var(--dark);
  color: #fff;
  text-align: center;
}
/* Фронтальный фасад № 002 приглушённо за текстом: плотнее в центре, под текстом, светлее к краям */
.thanks__bg { position: absolute; inset: 0; display: block; }
.thanks__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.thanks__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 45%,
    rgba(18, 46, 57, 0.9) 0%, rgba(18, 46, 57, 0.78) 55%, rgba(18, 46, 57, 0.5) 100%);
}
.thanks__inner { position: relative; z-index: 1; max-width: 640px; }
.thanks__logo { width: clamp(112px, 14vw, 152px); height: auto; margin: 0 auto clamp(32px, 5vw, 52px); }
.thanks__title {
  margin: 0 0 20px;
  font-weight: 400;
  font-size: clamp(30px, 2.4vw + 18px, 52px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.thanks__text {
  margin: 0 0 clamp(30px, 4vw, 42px);
  font-size: clamp(16px, 0.3vw + 15px, 18px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}
.thanks__text a { color: #fff; text-underline-offset: 4px; }
.thanks__text a[href^="tel:"] { white-space: nowrap; }   /* номер телефона не разрывается между строками */

/* ---------- Уведомление о cookie ---------- */

.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--dark);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
/* атрибут hidden должен побеждать правило выше, иначе баннер не спрячется */
.cookie[hidden] { display: none; }
.cookie__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px 40px;
}
.cookie__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}
.cookie__text a { color: #fff; text-underline-offset: 3px; }
.cookie__actions { flex: none; display: flex; align-items: center; gap: 16px; }
.cookie__more { display: none; }   /* кнопка «Читать полностью» нужна только на телефоне */

/* Телефон: дословный текст целиком в разметке, но свёрнут до двух целых строк с многоточием —
   без обрыва на середине строки и без скрытой прокрутки. Полный текст — по «Читать полностью». */
@media (max-width: 720px) {
  .cookie__inner { flex-direction: column; align-items: stretch; gap: 6px; padding-block: 10px; }
  .cookie__text {
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .cookie--open .cookie__text {
    display: block;
    -webkit-line-clamp: none;
    max-height: 45vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .cookie__more {
    display: inline-flex;
    align-items: center;
    flex: none;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }
  .cookie__btn.btn { flex: 1; padding: 13px 18px; }   /* высота ≈ 46 px — удобно нажать */
}

/* ---- Окно с формой заявки (кнопки «Получить консультацию / презентацию / расчёт») ---- */
.modal {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(32px, 5vw, 48px) clamp(22px, 5vw, 48px) clamp(28px, 4vw, 40px);
  border: 1px solid var(--rule-dark);
  background: var(--dark);
  color: #fff;
  overflow-y: auto;
}
.modal::backdrop { background: rgba(8, 20, 26, 0.76); }
html:has(.modal[open]) { overflow: hidden; }
.modal .section__title { font-size: clamp(24px, 1.2vw + 18px, 32px); margin: 0 0 14px; padding-right: 40px; }
.modal .lead { margin: 0; font-size: 16px; color: rgba(255, 255, 255, 0.82); }
.modal .form { margin-top: clamp(20px, 3vw, 28px); max-width: none; }
/* Кнопка закрытия — квадрат 44×44 с тонкой рамкой, как у .btn--ghost; крестик нарисован двумя линиями,
   чтобы не зависеть от размера глифа в шрифте. Глиф «×» в разметке остаётся запасным вариантом без CSS. */
.modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35); background: none; cursor: pointer;
  font-size: 0; color: #fff;
  transition: border-color 0.2s, background-color 0.2s;
}
.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  background: currentColor;
}
.modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.modal__close:hover, .modal__close:focus-visible { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modal-in 0.2s ease-out; }
  @keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
