/* ═══ AVatar 1С-Битрикс · вариант D «Корпоративный день» ═══
   ДНК 20 + система Аспро (aspro-system / section-bank-aspro / aspro-motion).
   Тайминги словаря системы: ссылки/карточки 300мс EASE_OUT, кнопки 100мс EASE_IN.
   Шапка без backdrop-filter: blur делает шапку containing block и ломает fixed-меню. */

/* ── Шрифты: Geologica (display) + Montserrat (body), OFL, селф-хост, кириллица ── */
@font-face {
  font-family: "Geologica";
  src: url("fonts/geologica-var-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  src: url("fonts/geologica-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-var-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122;
}

/* ── Токены: дословные значения системы Аспро (см. манифест, таблица контраста) ── */
:root {
  --font-display: "Geologica", "PT Sans", sans-serif;
  --font-body: "Montserrat", "PT Sans", sans-serif;

  --bg: #F7F8FB;             /* подложка Приорити */
  --surface: #FEFEFE;        /* белые карточки (значение из скрина продукта) */
  --tint: #D9E9FB;           /* акцент 12% системы, растёкшийся по фону */
  --steel: #E9EFF5;          /* стальной тинт из холодных панелей продукта */
  --line: #E4E8F3;           /* обводка/разделитель системы */
  --line-strong: #7E879B;    /* границы полей, ≥3:1 */
  --gray-btn: #E8EAED;

  --ink: #222428;
  --ink-2: #555560;
  --mute: #5A688A;           /* Aspro #72809D перекалиброван до AA */
  --accent: #0077FF;         /* числа-графика, шевроны, иконки: только large/non-text */
  --accent-strong: #0060DA;  /* заливки кнопок, изюминка, текст ссылок: AA */
  --accent-strong-hover: #0050BE;
  --focus: #0060DA;

  --radius-btn: 8px;
  --radius-sticker: 4px;
  --radius-card: 20px;
  --radius-block: 24px;
  --shadow-pop: 0 4px 20px rgba(68, 68, 68, 0.12);  /* единственная тень системы */

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --dur-link: 300ms;   /* EASE_OUT: ссылки, шевроны, меню, карточки */
  --dur-btn: 100ms;    /* EASE_IN: кнопки */

  --head-h: 88px;
}

/* Тёмное полотно системы (токены Премьера), посекционный ритм свет/тьма */
.dark {
  --bg: #222228;
  --surface: #2A2A32;
  --line: #3E3E4A;
  --line-strong: #767B8D;
  --ink: #F7F8FB;
  --ink-2: #B9BFCE;
  --mute: #9CA3B4;
  --accent: #13B3F8;         /* акцент баннеров Премьера: числа и шевроны на тёмном */
  --focus: #13B3F8;
}

/* ── База ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }

::selection { background: #D9E9FB; color: #222428; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 1512px; margin-inline: auto; padding-inline: clamp(16px, 6vw, 204px); }
section[id] { scroll-margin-top: calc(var(--head-h) + 16px); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: #0060DA; color: #FEFEFE; padding: 12px 16px; border-radius: var(--radius-btn);
  font-size: 16px; font-weight: 600; transition: top var(--dur-btn) var(--ease-out);
}
.skip-link:focus-visible { top: 12px; }

/* ── Типографика ── */
.h1 { font-size: clamp(32px, 4.9vw, 67px); line-height: 1.06; letter-spacing: -0.01em; }
.h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -0.01em; }
.h3, .tile__name, .step__name, .plan__name { font-family: var(--font-display); font-size: 21px; line-height: 1.3; font-weight: 600; }
.lead { font-size: 21px; line-height: 1.5; max-width: 62ch; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: #0060DA; margin-bottom: 16px;
}

/* ── Кнопки системы (Primary + Transparent-обводка; текст 16/600 ради AA) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 16px; line-height: 1.4; min-height: 48px;
  transition: background-color var(--dur-btn) var(--ease-out),
              color var(--dur-btn) var(--ease-out),
              border-color var(--dur-link) var(--ease-out);
}
.btn--primary { background: #0060DA; color: #FEFEFE; }
.btn--primary:hover { background: #0050BE; }
.btn--outline { border: 1.5px solid #0060DA; color: #0060DA; background: transparent; }
.btn--outline:hover { background: #D9E9FB; }
.btn--sm { padding: 8px 16px; min-height: 40px; }
.btn--wide { width: 100%; }

/* ── Шапка: ярус Middle 88, sticky, без backdrop-filter ── */
.head {
  position: sticky; top: 0; z-index: 80;
  background: #F7F8FB; border-bottom: 1px solid #E4E8F3;
}
.head__in { display: flex; align-items: center; gap: 32px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; border-radius: 50%; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; white-space: nowrap; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: block; padding: 12px; font-size: 15px; font-weight: 500;
  color: #222428; transition: color var(--dur-link) var(--ease-out);
}
.nav__link:hover { color: #0060DA; }
.nav__link[aria-current="page"] { color: #0060DA; font-weight: 600; }
.head__actions { display: flex; align-items: center; gap: 12px; }
.burger {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-btn);
  border: 1px solid #E4E8F3; background: #FEFEFE;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger__bar { display: block; width: 18px; height: 2px; background: #222428; border-radius: 2px; }

/* ── Мобильный ящик: прямой потомок body, fixed от вьюпорта.
   display:none в закрытом виде — не раздувает scrollWidth документа ── */
.drawer { position: fixed; inset: 0; z-index: 120; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(34, 34, 40, 0.55); opacity: 0; transition: opacity var(--dur-link) var(--ease-out); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw); background: #222228; color: #F7F8FB;
  padding: 24px 28px 32px; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--dur-link) var(--ease-out);
  overflow-y: auto;
}
.drawer.is-shown .drawer__scrim { opacity: 1; }
.drawer.is-shown .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer__close {
  width: 44px; height: 44px; border-radius: var(--radius-btn);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #3E3E4A; color: #F7F8FB;
}
.drawer__list { display: flex; flex-direction: column; }
.drawer__link {
  display: block; padding: 16px 4px; font-family: var(--font-display);
  font-size: 21px; font-weight: 600; color: #F7F8FB;
  border-bottom: 1px solid #3E3E4A; transition: color var(--dur-link) var(--ease-out);
}
.drawer__link:hover, .drawer__link[aria-current="page"] { color: #13B3F8; }
.drawer__login { margin-top: auto; }

/* ── Секции: вертикальный шаг 96, шапка двухчастная, шеврон-переход ── */
section { padding-block: clamp(56px, 5vw, 96px); }
.secthead {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px 48px; align-items: end; margin-bottom: 48px;
}
.secthead__t { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.secthead__t .h2 { flex: 1 1 auto; }
.secthead__t .kicker { flex-basis: 100%; }
.secthead__lead { font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.secthead__go {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: #0060DA;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color var(--dur-link) var(--ease-out), color var(--dur-link) var(--ease-out);
}
.secthead__go svg { width: 20px; height: 20px; }
.secthead__go:hover { background: #0060DA; color: #FEFEFE; border-color: #0060DA; }
.dark .secthead__go { border-color: var(--line); background: var(--surface); color: #13B3F8; }
.dark .secthead__go:hover { background: #13B3F8; color: #222228; border-color: #13B3F8; }

/* ── S1 Hero: баннер с контентом справа + ручной слайдер ── */
.shot { view-transition-name: hero-shot; }
.hero { padding-top: clamp(32px, 3vw, 48px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(32px, 3.5vw, 56px); align-items: center;
}
.hero__text .lead { margin-top: 24px; }
.hero__checks { margin-top: 24px; display: grid; gap: 12px; max-width: 56ch; }
.hero__checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.check {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: #D9E9FB; color: #003E9E;
  display: inline-flex; align-items: center; justify-content: center;
}
.check svg { width: 14px; height: 14px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

.hero__media { min-width: 0; position: relative; }
.hero__media::before {
  content: ""; position: absolute;
  top: 32px; left: 32px; right: -20px; bottom: -20px;
  background: #D9E9FB; border-radius: var(--radius-block);
}
.hero__media .shot, .hero__media .pager { position: relative; z-index: 1; }
.shot {
  background: #FEFEFE; border: 1px solid #E4E8F3; border-radius: var(--radius-card);
  overflow: hidden;
}
.shot__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: #F7F8FB; border-bottom: 1px solid #E4E8F3;
}
.shot__dot { width: 10px; height: 10px; border-radius: 50%; background: #C9CFDD; }
.shot__url {
  margin-left: 12px; padding: 4px 12px; border-radius: var(--radius-sticker);
  background: #E9EFF5; color: #555560;
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.rail {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; min-width: 0;
}
.rail::-webkit-scrollbar { display: none; }
.shots { height: clamp(240px, 26vw, 420px); }
.shots__slide {
  flex: 0 0 100%; scroll-snap-align: start; min-width: 0;
  background: #E9EFF5;              /* плашка Banner_with_bg: кадр лежит на стальной подложке */
  display: flex; flex-direction: column;
}
.shots__slide img {
  flex: 1 1 auto; min-height: 0; width: 100%; object-fit: contain; padding: 16px 16px 4px;
}
.shots__slide figcaption {
  padding: 8px 20px 16px; font-family: var(--font-display); font-size: 13px;
  color: #5A688A; font-variant-numeric: tabular-nums;
}

.pager { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.pager__arrow {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid #E4E8F3; background: #FEFEFE; color: #222428;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-link) var(--ease-out), color var(--dur-link) var(--ease-out);
}
.pager__arrow svg { width: 20px; height: 20px; }
.pager__arrow:hover { border-color: #0060DA; color: #0060DA; }
.pager__dots { display: flex; gap: 4px; }
.pager__dotbtn {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.pager__dotbtn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #C9CFDD; transition: background-color var(--dur-link) var(--ease-out); }
.pager__dotbtn[aria-current="true"]::before { background: #0077FF; }
.pager__count {
  margin-left: auto; font-family: var(--font-display); font-size: 13px;
  color: #5A688A; font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}

/* ── S2 Петля: тёмный разворот, телефон + лента 8 ступеней ── */
.spread--dark { background: #222228; color: #F7F8FB; }
.spread--dark .kicker { color: #13B3F8; }
.loop { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 3.5vw, 56px); align-items: start; }
.loop__tape { min-width: 0; }
.phone { display: grid; gap: 12px; justify-items: center; }
.phone__body {
  width: min(300px, 100%); background: #2A2A32; border: 1px solid #3E3E4A;
  border-radius: var(--radius-block); padding: 12px;
}
.phone__body img { width: 100%; border-radius: 16px; }
.phone figcaption { font-family: var(--font-display); font-size: 13px; color: #B9BFCE; font-variant-numeric: tabular-nums; }
.loop__example { font-size: 16px; color: #B9BFCE; margin-bottom: 24px; max-width: 60ch; }
.steps { gap: 16px; }
.step {
  flex: 0 0 min(302px, 82vw); scroll-snap-align: start;
  background: #2A2A32; border: 1px solid #3E3E4A; border-radius: var(--radius-card);
  padding: 32px; display: flex; flex-direction: column; gap: 12px; min-height: 240px;
}
.step__num {
  font-family: var(--font-display); font-weight: 600; font-size: 42px; line-height: 1;
  color: #13B3F8; font-variant-numeric: tabular-nums;
}
.step__line { font-size: 16px; line-height: 1.55; color: #B9BFCE; }
.pager--dark .pager__arrow { border-color: #3E3E4A; background: #2A2A32; color: #F7F8FB; }
.pager--dark .pager__arrow:hover { border-color: #13B3F8; color: #13B3F8; }
.pager--dark .pager__dotbtn::before { background: #4A4A56; }
.pager--dark .pager__dotbtn[aria-current="true"]::before { background: #13B3F8; }
.pager--dark .pager__count { color: #B9BFCE; }
.loop__trust { margin-top: 24px; font-size: 16px; color: #B9BFCE; max-width: 60ch; }

/* ── S3 Плитки отличий: «Квадраты по 3», одна изюминка ── */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  border-radius: var(--radius-card); padding: 32px; min-height: 264px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--dur-link) var(--ease-out);
}
.tile:hover { transform: scale(1.01); }
.tile--tint { background: #D9E9FB; }
.tile--steel { background: #E9EFF5; }
.tile--accent { background: #0060DA; color: #FEFEFE; }
.tile__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(254, 254, 254, 0.72); color: #0077FF;
  display: inline-flex; align-items: center; justify-content: center;
}
.tile--accent .tile__icon { background: rgba(254, 254, 254, 0.18); color: #FEFEFE; }
.tile__icon svg { width: 24px; height: 24px; }
.tile__line { font-size: 16px; line-height: 1.55; color: #555560; }
.tile--accent .tile__line { color: #FEFEFE; }
.tile__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tile__num {
  font-family: var(--font-display); font-weight: 600; font-size: 42px; line-height: 1;
  color: #0077FF; font-variant-numeric: tabular-nums;
}
.tile--accent .tile__num { color: #FEFEFE; }
.tile__go {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: #0060DA; color: #FEFEFE;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color var(--dur-link) var(--ease-out);
}
.tile__go svg { width: 20px; height: 20px; }
.tile__go:hover { background: #0050BE; }
.tile--accent .tile__go { background: #FEFEFE; color: #0060DA; }
.tile--accent .tile__go:hover { background: #D9E9FB; }

/* ── S5 Тарифы: карточки с выносками, инверсная «Экономия» ── */
.tariffs { background: #F7F8FB; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan {
  background: #FEFEFE; border: 1px solid #E4E8F3; border-radius: var(--radius-card);
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.plan__over { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: #5A688A; }
.plan__rows { display: grid; gap: 10px; margin-top: 8px; }
.plan__row { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.5; }
.plan__row span { color: #555560; flex: 0 0 auto; }
.plan__row .d { flex: 1 1 auto; border-bottom: 1px dotted #B9C2D4; transform: translateY(-4px); min-width: 16px; }
.plan__row b { font-weight: 600; color: #222428; text-align: right; flex: 0 1 auto; }
.plan__price {
  font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.2;
  color: #0060DA; font-variant-numeric: tabular-nums;
}
.plan .btn { margin-top: auto; }
.plan--dark {
  background: #222228; border-color: #3E3E4A; color: #F7F8FB;
}
.plan--dark .plan__over { color: #B9BFCE; }
.plan--dark .plan__row span { color: #B9BFCE; }
.plan--dark .plan__row b { color: #F7F8FB; }
.plan--dark .plan__row .d { border-color: #4A4A56; }
.plan--dark .plan__price { color: #13B3F8; }

/* ── S6 Форма заявки: тёмная форма захвата ── */
.lead-form { background: #222228; color: #F7F8FB; }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(32px, 3.5vw, 56px); align-items: start; }
.leadform { margin-top: 32px; display: grid; gap: 20px; max-width: 720px; }
.leadform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: #F7F8FB; }
.field input, .field textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-btn);
  background: #2A2A32; border: 1px solid #767B8D; color: #F7F8FB;
  font: inherit; font-size: 16px;
}
.field input::placeholder, .field textarea::placeholder { color: #9CA3B4; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid #13B3F8; outline-offset: 1px; }
.consent { display: flex; gap: 12px; align-items: flex-start; max-width: 720px; }
.consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto;
  width: 20px; height: 20px; margin: 2px 0 0; border-radius: var(--radius-sticker);
  border: 1px solid #767B8D; background: #2A2A32;
  display: inline-grid; place-content: center;
}
.consent input[type="checkbox"]::before {
  content: ""; width: 12px; height: 12px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M20 6 9 17l-5-5" stroke="%23FEFEFE" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
  transform: scale(0); transition: transform var(--dur-btn) var(--ease-out);
}
.consent input[type="checkbox"]:checked { background: #0060DA; border-color: #0060DA; }
.consent input[type="checkbox"]:checked::before { transform: scale(1); }
.consent input[type="checkbox"]:focus-visible { outline: 2px solid #13B3F8; outline-offset: 2px; }
.consent label { font-size: 14px; line-height: 1.55; color: #B9BFCE; }
.consent a { color: #13B3F8; text-decoration: underline; }
.form__aside { display: grid; gap: 16px; }
.form__trial, .disclaimer {
  background: #2A2A32; border: 1px solid #3E3E4A; border-radius: var(--radius-btn);
  padding: 16px 20px; font-size: 14px; line-height: 1.6; color: #D2D7E3;
}
.form__trial { color: #F7F8FB; font-weight: 500; }

/* ── Футер: Footer/Base, тёмная тема ── */
.foot { background: #222228; color: #F7F8FB; border-top: 1px solid #3E3E4A; padding-block: 48px 32px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); }
.foot__note { margin-top: 16px; font-size: 16px; line-height: 1.6; color: #B9BFCE; max-width: 40ch; }
.foot__cap { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: #B9BFCE; margin-bottom: 16px; }
.foot__col ul { display: grid; gap: 10px; }
.foot__col a { font-size: 16px; color: #F7F8FB; transition: color var(--dur-link) var(--ease-out); }
.foot__col a:hover { color: #13B3F8; }
.foot__legal {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid #3E3E4A;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: #9CA3B4;
}
.foot__legal a { color: #9CA3B4; transition: color var(--dur-link) var(--ease-out); }
.foot__legal a:hover { color: #13B3F8; }

/* ── M1 Вход-модалка: побайтовый контракт ферм ── */
.modal { border: none; padding: 0; background: transparent; max-width: none; }
.modal::backdrop { background: rgba(34, 34, 40, 0.55); }
.modal[open] { display: grid; place-items: center; width: 100vw; height: 100vh; }
.modal__box {
  position: relative; width: min(460px, calc(100vw - 32px));
  background: #FEFEFE; color: #222428; border-radius: var(--radius-card);
  padding: 48px; box-shadow: var(--shadow-pop);
}
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid #E4E8F3; color: #222428;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-link) var(--ease-out), color var(--dur-link) var(--ease-out);
}
.modal__close:hover { border-color: #0060DA; color: #0060DA; }
.modal__title { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.modal__hint { margin-top: 4px; font-family: var(--font-display); font-size: 13px; color: #5A688A; font-variant-numeric: tabular-nums; }
.modal__box form { margin-top: 24px; display: grid; gap: 16px; }
.modal__box .field label { color: #222428; }
.modal__box .field input { background: #FEFEFE; border-color: #7E879B; color: #222428; }
.modal__box .field input:focus-visible { outline: 2px solid #0060DA; outline-offset: 1px; }
.consent--light label { color: #5A688A; }
.consent--light input[type="checkbox"] { border-color: #7E879B; background: #FEFEFE; }
.consent--light input[type="checkbox"]:checked { background: #0060DA; border-color: #0060DA; }
.consent--light input[type="checkbox"]:focus-visible { outline: 2px solid #0060DA; }
.consent--light a { color: #0060DA; }

/* ── Движение: reveal секций (пол планки), View Transitions, reduced-motion ── */
.reveal {
  animation: rise 480ms var(--ease-out) both;
  animation-timeline: view();
  animation-range: entry 0% cover 24%;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
::view-transition-old(root) { animation-duration: 180ms; }
::view-transition-new(root) { animation-duration: 260ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ── Адаптив ── */
@media (max-width: 1440px) {
  .wrap { padding-inline: clamp(16px, 6vw, 96px); }
}
@media (max-width: 1120px) {
  .nav { display: none; }
  .head__login { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr; }
  .phone { justify-items: center; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: 1fr; }
  .form__aside { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .secthead { grid-template-columns: 1fr; align-items: start; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .lead { font-size: 16px; line-height: 1.55; }
  .hero__media::before { top: 16px; left: 16px; right: -8px; bottom: -8px; }
  .leadform__row { grid-template-columns: 1fr; }
  .form__aside { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .shots__slide img { height: 220px; padding: 8px; }
  .pager__count { display: none; }
}
