:root {
  --parchment: #f6f3f1;
  --lake-blue: #2b59d1;
  --periwinkle: #cfdaf5;
  --sky: #a0b5eb;
  --mint: #a7fccd;
  --coral: #ff9473;
  --gold: #ecda98;
  --off-black: #242424;
  --ink: #000000;
  --graphite: #4e4d4d;
  --smoke: #797776;
  --ash: #cecac8;

  /* Три голоса. Засечки — заголовки. Гротеск — весь читаемый текст.
     Моноширинный остался только там, где он что-то значит: подписи-ярлыки,
     таблица заявок, схема, поле телефона. Раньше моноширинным был набран
     вообще весь текст — из-за этого страница читалась как консоль, а не
     как сайт для малого бизнеса. */
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Newsreader', ui-serif, Georgia, 'Times New Roman', serif;

  --max: 1180px;
  --gap: 112px;
}

* { box-sizing: border-box; }
/* hidden должен побеждать любой display из класса */
[hidden] { display: none !important; }
/* reserve the scrollbar gutter so locking scroll for the modal doesn't shift the page */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--off-black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* --- progress --- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--lake-blue); z-index: 200; transition: width .05s linear;
}

/* --- nav --- */
/* z-index: над градиентом и сеткой, которые лежат в .topband */
nav { position: relative; z-index: 2; padding: 32px 0 24px; }
nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-style: italic; text-decoration: none; }
.logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lake-blue); }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 14px; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* --- language switcher --- */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--ash); border-radius: 100px;
  padding: 10px 18px; font-size: 13px; color: var(--off-black);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary i { font-style: normal; font-size: 11px; color: var(--smoke); transition: transform .2s ease; }
.lang[open] summary { border-color: var(--off-black); }
.lang[open] summary i { transform: rotate(180deg); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  margin: 0; padding: 6px; list-style: none;
  background: var(--parchment); border: 1px solid var(--ash); border-radius: 20px;
  min-width: 170px;
}
.lang li button {
  display: block; width: 100%; text-align: left;
  background: none; border: none; border-radius: 14px;
  font-family: var(--sans); font-size: 14px; color: var(--off-black);
  padding: 10px 14px; cursor: pointer;
}
.lang li button:hover, .lang li button:focus-visible { background: var(--periwinkle); outline: none; }
.lang li button[aria-current="true"] { color: var(--lake-blue); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  padding: 15px 30px; border-radius: 100px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  touch-action: manipulation;
}
/* убирает залипание тача на интерактивных элементах */
.lang summary, .lang li button, .faq-item summary, .modal-x, .nav-links a {
  touch-action: manipulation;
}
.btn-primary { background: var(--lake-blue); color: var(--parchment); }
.btn-black { background: var(--off-black); color: var(--parchment); }
.btn-ghost { background: transparent; color: var(--off-black); border-color: var(--off-black); }
.btn-magnetic { transition: transform .15s ease-out; }
.btn-sm { padding: 11px 22px; font-size: 13px; }

/* --- hero --- */
/* .topband = навигация + герой. Фон (градиент и сетка) висит на нём, поэтому
   идёт от самой верхушки страницы, а не от начала героя: лого и переключатель
   языка стоят прямо на градиенте, без белой полосы над ним. */
.topband { position: relative; overflow: hidden; --cell: 56px; }
/* padding-top небольшой: над заголовком уже есть 24px нижнего отступа nav */
.hero { position: relative; padding: 44px 0 72px; text-align: center; }
.hero-blob {
  position: absolute; top: 60%; left: 50%; width: 860px; height: 860px;
  transform: translate(-50%,-50%);
  background:
    radial-gradient(circle at 38% 38%, rgba(43,89,209,.22), transparent 55%),
    radial-gradient(circle at 62% 45%, rgba(160,181,235,.34), transparent 58%),
    radial-gradient(circle at 50% 72%, rgba(236,218,152,.20), transparent 55%);
  filter: blur(75px); pointer-events: none; z-index: 0;
  transition: transform .35s ease-out; will-change: transform;
}

/* Сетка ячеек за оффером: страница про заявки, падающие в таблицу, — фон говорит
   то же самое ещё до чтения. Сама сетка — два repeating-gradient на одном элементе
   (ни разметки, ни картинок), маска гасит её к краям, чтобы не спорить с текстом.
   Ячейки привязаны к центру (background-position: 50% 50%), поэтому подсветка
   из .hero-cell всегда попадает точно в клетку. */
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(43,89,209,.09), rgba(43,89,209,.09) 1px, transparent 1px, transparent var(--cell)),
    repeating-linear-gradient(to bottom, rgba(43,89,209,.09), rgba(43,89,209,.09) 1px, transparent 1px, transparent var(--cell));
  background-position: 50% 50%;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 53%, #000 12%, transparent 72%);
          mask-image: radial-gradient(ellipse 62% 70% at 50% 53%, #000 12%, transparent 72%);
}
/* «Упала заявка»: анимируем только opacity — работает на композиторе, без
   пересчёта layout и перерисовки, поэтому остаётся и на телефоне.
   Координаты — в клетках от центра сетки, мимо заголовка и кнопок. */
.hero-cell {
  position: absolute;
  left: calc(50% + var(--x) * var(--cell));
  top: calc(50% + var(--y) * var(--cell));
  width: var(--cell); height: var(--cell);
  background: var(--lake-blue); opacity: 0;
  animation: cellIn 8.4s ease-in-out infinite;
  will-change: opacity;
}
.hero-cell:nth-child(1) { --x: -7; --y: -1; animation-delay: 0s; }
.hero-cell:nth-child(2) { --x: 6; --y: 0; animation-delay: 2.1s; }
.hero-cell:nth-child(3) { --x: -6; --y: 3; animation-delay: 4.2s; }
.hero-cell:nth-child(4) { --x: 5; --y: -4; animation-delay: 6.3s; }
@keyframes cellIn {
  0%, 100% { opacity: 0; }
  7%       { opacity: .17; }
  25%      { opacity: .14; }
  38%      { opacity: 0; }
}
/* На узком экране текст занимает почти всю ширину, и ячейка неизбежно
   оказывается под ним — уводить её некуда. Поэтому там подсветка слабее:
   сетка ещё «дышит», но за текстом не читается пятном. */
@keyframes cellInSoft {
  0%, 100% { opacity: 0; }
  7%       { opacity: .10; }
  25%      { opacity: .08; }
  38%      { opacity: 0; }
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: 64px; line-height: 1.1; letter-spacing: -1.3px; max-width: 880px; margin: 0 auto; }
.hero .sub { max-width: 580px; margin: 26px auto 36px; font-size: 18px; line-height: 1.5; color: var(--graphite); }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .price-note { margin-top: 22px; font-size: 13px; color: var(--smoke); }
@media (max-width: 640px) {
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 36px; letter-spacing: -.7px; }
  /* мельче клетка — на узком экране сетка иначе выглядит как пара линий */
  .topband { --cell: 40px; }
  .hero-grid {
    -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 50%, #000 10%, transparent 74%);
            mask-image: radial-gradient(ellipse 78% 62% at 50% 50%, #000 10%, transparent 74%);
  }
  /* на 390px в кадр влезает ±4 клетки от центра — десктопные координаты уехали бы за край */
  .hero-cell { animation-name: cellInSoft; }
  .hero-cell:nth-child(1) { --x: -4; --y: -2; }
  .hero-cell:nth-child(2) { --x: 3; --y: 1; }
  .hero-cell:nth-child(3) { --x: -3; --y: 4; }
  .hero-cell:nth-child(4) { --x: 2; --y: -4; }
}

.hero h1 .word { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(6px); animation: wordIn .7s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes wordIn { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.hero .sub, .hero .actions, .hero .price-note { opacity: 0; animation: fadeUp .7s cubic-bezier(.22,1,.36,1) forwards; }
.hero .sub { animation-delay: .6s; }
.hero .actions { animation-delay: .72s; }
.hero .price-note { animation-delay: .82s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .word, .hero .sub, .hero .actions, .hero .price-note {
    animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important;
  }
  .flow-dot, .glow-pulse, .ticker-track { animation: none !important; }
  /* сетка остаётся, гаснет только мигание ячеек */
  .hero-cell { animation: none !important; opacity: 0 !important; }
}

/* --- бегущая строка --- */
/* Сдержанно: цифры крупные, но приглушённые, ход медленный, края растворяются
   маской — резкий обрыв на границе экрана и был главным, что делало её крикливой. */
.ticker {
  overflow: hidden; border-top: 1px solid var(--ash); padding: 22px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker 64s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.ticker-group li { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.ticker-group li::after {
  content: ""; flex: none; align-self: center;
  width: 4px; height: 4px; border-radius: 50%; background: var(--ash);
  margin: 0 40px;
}
.tick-num {
  font-family: var(--serif); font-size: 34px; line-height: 1;
  letter-spacing: -1px; color: rgba(36, 36, 36, .55);
}
.tick-txt { font-size: 14px; color: var(--smoke); }
@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 640px) {
  .ticker { padding: 16px 0; }
  .ticker-track { animation-duration: 46s; }
  .ticker-group li { gap: 9px; }
  .ticker-group li::after { margin: 0 26px; }
  .tick-num { font-size: 26px; letter-spacing: -.6px; }
  .tick-txt { font-size: 13px; }
}

/* --- sections --- */
section { padding: var(--gap) 0; border-top: 1px solid var(--ash); }
.head { max-width: 660px; margin-bottom: 52px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head .kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0; color: var(--lake-blue); margin-bottom: 14px; }
.head h2 { font-size: 40px; letter-spacing: -.8px; line-height: 1.2; }
.head p { color: var(--graphite); font-size: 17px; margin-top: 18px; line-height: 1.55; }
@media (max-width: 640px) {
  /* десктопные 112px сверху и снизу давали 224px пустоты между секциями */
  :root { --gap: 60px; }
  .head { margin-bottom: 30px; }
  .head h2 { font-size: 30px; }
  .head p { font-size: 16px; margin-top: 14px; }
}

/* --- pipeline diagram --- */
.diagram-frame {
  border: 1px solid var(--ash); border-radius: 40px; padding: 36px 28px;
}
.diagram-wide { display: block; width: 100%; height: auto; }
.node-box { fill: var(--parchment); stroke: var(--ash); stroke-width: 1; }
.node-box.hub { stroke: var(--off-black); }
.node-text { font-family: var(--mono); font-size: 13px; fill: var(--off-black); letter-spacing: -.2px; }
.node-text.small { font-size: 12px; fill: var(--smoke); }
.node-text.sm { font-size: 12px; }
/* fill задаём классами: CSS перебивает presentation-атрибут fill="…" в разметке */
.node-text.strong { fill: var(--off-black); }
.node-text.on-blue { fill: var(--parchment); }
.node-hero { font-family: var(--serif); font-size: 24px; fill: var(--off-black); }
.node-hero.sm { font-size: 17px; }
.link-line { fill: none; stroke: var(--ash); stroke-width: 1.2; }
.link-line.faint { stroke-width: 1; opacity: .45; }
.flow-dot { fill: var(--lake-blue); }
.glow-pulse { animation: pulse 3.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .3; } 50% { opacity: .6; } }
.diagram-caption { margin-top: 22px; font-size: 14px; color: var(--graphite); text-align: center; }

/* narrow-screen vertical version of the same diagram */
.diagram-tall { display: none; width: 100%; height: auto; max-width: 420px; margin: 0 auto; }
@media (max-width: 820px) {
  .diagram-wide { display: none; }
  .diagram-tall { display: block; }
  .diagram-frame { padding: 26px 18px; }
}

/* --- includes grid --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; gap: 16px; } }
/* Номер стоит слева от заголовка, а не над ним: так карточка короче на высоту
   кружка с отступом (~58px), а на телефоне это сразу четыре экрана прокрутки. */
.card {
  border: 1px solid var(--ash); border-radius: 40px; padding: 40px;
  display: grid; grid-template-columns: auto 1fr;
  column-gap: 16px; align-items: center;
  /* карточки в паре растягиваются по высоте соседа; без align-content: start
     грид раздал бы лишнюю высоту строкам и текст отъехал бы от заголовка */
  align-content: start;
}
.card .idx {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--ash); display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--smoke); flex: none;
}
.card h3 { font-size: 24px; letter-spacing: -.4px; margin: 0; }
/* текст и список идут во всю ширину, под строкой «номер + заголовок» */
.card p { grid-column: 1 / -1; color: var(--graphite); font-size: 15px; line-height: 1.55; margin: 20px 0 16px; }
.card ul { grid-column: 1 / -1; margin: 0; padding-left: 18px; color: var(--graphite); font-size: 14px; line-height: 1.7; }
/* Строго после базовых правил .card: у медиазапроса та же специфичность,
   поэтому выше по файлу он бы им проиграл и просто не сработал. */
@media (max-width: 640px) {
  .card { padding: 26px 24px; border-radius: 28px; column-gap: 13px; }
  .card .idx { width: 30px; height: 30px; }
  .card h3 { font-size: 21px; letter-spacing: -.3px; }
  .card p { margin: 16px 0 14px; }
}

/* --- sheet mock --- */
.sheet-block { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .sheet-block { grid-template-columns: 1fr; gap: 40px; } }
.sheet {
  border: 1px solid var(--ash); border-radius: 24px; overflow: hidden; background: var(--parchment);
}
.sheet-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-bottom: 1px solid var(--ash); font-size: 12px; color: var(--smoke);
}
.sheet-bar .dots { display: flex; gap: 5px; margin-right: 8px; }
.sheet-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ash); display: block; }
.sheet-bar .live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--lake-blue); }
.sheet-bar .live b { width: 7px; height: 7px; border-radius: 50%; background: var(--lake-blue); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.sheet table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sheet th {
  text-align: left; padding: 12px 16px; font-weight: 400; color: var(--smoke);
  border-bottom: 1px solid var(--ash); font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
}
.sheet td { padding: 13px 16px; border-bottom: 1px solid rgba(206,202,200,.5); color: var(--graphite); }
.sheet tr:last-child td { border-bottom: none; }
.sheet tbody tr { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.sheet tbody tr.in { opacity: 1; transform: translateY(0); }
.sheet tbody tr.in td:first-child { color: var(--off-black); }
.sheet-note { margin-top: 16px; font-size: 13px; color: var(--smoke); text-align: right; }

/* --- price card --- */
.price-card {
  background: var(--periwinkle); border-radius: 40px; padding: 56px;
  display: grid; grid-template-columns: 1fr .9fr; gap: 48px; align-items: center;
}
@media (max-width: 860px) { .price-card { grid-template-columns: 1fr; padding: 36px; } }
.price-card .tag {
  display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  border: 1px solid var(--off-black); border-radius: 9999px; padding: 6px 14px; margin-bottom: 22px;
}
.price-card h2 { font-size: 36px; letter-spacing: -.7px; line-height: 1.15; margin-bottom: 16px; }
.price-card p { color: var(--graphite); font-size: 15px; line-height: 1.6; margin-bottom: 28px; }
.price-figure { text-align: center; }
/* --- стартовая цена --- */
/* Зачёркнутая цена стоит НАД крупной, а не рядом: рядом она конкурирует
   с суммой, которую человек должен запомнить. */
.price-stack { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.price-was {
  font-family: var(--serif); font-size: 30px; line-height: 1;
  color: var(--smoke); text-decoration-thickness: 1.5px; text-underline-offset: 0;
}
.promo {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 8px; padding: 7px 14px; border-radius: 100px;
  background: var(--off-black); color: var(--parchment);
  font-size: 12px; letter-spacing: -.005em; white-space: nowrap;
}
.promo strong { font-weight: 600; }
@media (max-width: 640px) {
  .promo { margin-left: 0; margin-top: 10px; }
  .price-was { font-size: 24px; }
}
.price-figure .amount { font-family: var(--serif); font-size: 88px; line-height: 1; letter-spacing: -2px; }
.price-figure .cur { font-size: 44px; vertical-align: super; }
.price-figure .what { margin-top: 14px; font-size: 13px; color: var(--graphite); }
.price-figure .sub { margin-top: 6px; font-size: 12px; color: var(--smoke); }

/* --- faq --- */
.faq-item { border-bottom: 1px solid var(--ash); padding: 26px 0; }
.faq-item summary {
  font-family: var(--serif); font-size: 22px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "↓"; font-family: var(--mono); font-size: 17px; flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .a { margin-top: 14px; color: var(--graphite); font-size: 15px; line-height: 1.6; max-width: 680px; }

/* --- forms (используется попапом) --- */
form { display: flex; flex-direction: column; gap: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--smoke); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 1px solid var(--ash); border-radius: 16px;
  padding: 14px 18px; font-family: var(--sans); font-size: 16px; color: var(--off-black); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--off-black); }

/* телефон: код страны и номер читаются как одно поле */
.tel-row { display: flex; gap: 8px; }
.tel-row select {
  flex: none; width: 112px;
  background: transparent; border: 1px solid var(--ash); border-radius: 16px;
  padding: 14px 30px 14px 14px;
  font-family: var(--mono); font-size: 15px; color: var(--off-black);
  cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23797776' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.tel-row select:focus { outline: none; border-color: var(--off-black); }
.tel-row input { flex: 1 1 auto; min-width: 0; font-family: var(--mono); letter-spacing: .02em; }
@media (max-width: 480px) { .tel-row select { width: 104px; padding-right: 26px; } }
form .btn { align-self: flex-start; margin-top: 6px; border: none; }
.form-err { font-size: 14px; color: #b0392b; margin-top: 2px; display: none; }
.form-err.show { display: block; }
.form-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--smoke); }
.form-note a { color: var(--lake-blue); }

/* --- lead modal --- */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(24, 24, 26, .58);
  visibility: hidden; opacity: 0;
  transition: opacity .16s ease, visibility .16s;
}
.modal.open { visibility: visible; opacity: 1; transition: opacity .16s ease; }
.modal-card {
  position: relative;
  width: 100%; max-width: 432px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: var(--parchment);
  border: 1px solid var(--ash); border-radius: 28px;
  padding: 44px 38px 38px;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  opacity: 0; transform: translate3d(0, 16px, 0);
  transition: opacity .2s ease, transform .26s cubic-bezier(.16, 1, .3, 1);
}
.modal.open .modal-card { opacity: 1; transform: translate3d(0, 0, 0); }
.modal-x {
  position: absolute; top: 15px; right: 15px;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ash); background: transparent;
  font-family: var(--mono); font-size: 18px; line-height: 1; color: var(--smoke);
  cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.modal-x:hover { border-color: var(--off-black); color: var(--off-black); }
.modal-x:focus-visible { outline: 2px solid var(--lake-blue); outline-offset: 2px; }
.modal-head { margin-bottom: 24px; padding-right: 32px; }
.modal-head .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: var(--lake-blue); margin-bottom: 12px; }
.modal-head h2 { font-size: 25px; letter-spacing: -.5px; line-height: 1.22; }
.modal-head p { font-size: 14px; color: var(--graphite); line-height: 1.55; margin: 12px 0 0; }
.modal-card form { gap: 16px; }
.modal-card form .btn { align-self: stretch; justify-content: center; margin-top: 10px; }

/* --- экран «спасибо» --- */
.modal-done { text-align: center; padding-top: 4px; }
.done-mark {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--mint); color: var(--off-black);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  animation: doneIn .32s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes doneIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
.modal-done h2 { font-size: 25px; letter-spacing: -.5px; line-height: 1.22; }
.modal-done p { font-size: 14px; color: var(--graphite); line-height: 1.55; margin: 12px 0 26px; }
.modal-done .btn { width: 100%; justify-content: center; }
.modal-done:focus { outline: none; }
/* на телефоне попап должен открываться мгновенно — короче переходы, меньше ход */
@media (max-width: 640px) {
  .modal { transition: opacity .1s ease, visibility .1s; }
  .modal.open { transition: opacity .1s ease; }
  .modal-card {
    transform: translate3d(0, 10px, 0);
    transition: opacity .13s ease, transform .17s cubic-bezier(.16, 1, .3, 1);
  }
}
@media (max-width: 480px) {
  .modal { padding: 12px; }
  .modal-card { padding: 42px 22px 24px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal, .modal.open, .modal-card { transition: opacity .1s linear; }
  .modal-card, .modal.open .modal-card { transform: none; }
  .done-mark { animation: none; }
}

/* --- footer --- */
footer { border-top: 1px solid var(--ash); padding: 56px 0 36px; }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px;
}
.foot-tag { margin: 14px 0 0; font-size: 13px; color: var(--smoke); max-width: 240px; line-height: 1.5; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-h {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--off-black); margin-bottom: 4px;
}
.foot-col a, .foot-col span, .foot-col button {
  font-size: 14px; color: var(--smoke); text-decoration: none;
  background: none; border: none; padding: 0; text-align: left;
  cursor: pointer; touch-action: manipulation;
}
.foot-col span { cursor: default; }
.foot-col a:hover, .foot-col button:hover { color: var(--off-black); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--ash); padding-top: 24px;
}
footer .copy { font-size: 12px; color: var(--smoke); }
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* --- legal page --- */
.legal-lang { display: flex; gap: 6px; }
.legal-lang button {
  background: none; border: 1px solid var(--ash); border-radius: 100px;
  font-family: var(--mono); font-size: 13px; color: var(--smoke);
  padding: 9px 16px; cursor: pointer; touch-action: manipulation;
}
.legal-lang button[aria-current="true"] { border-color: var(--off-black); color: var(--off-black); }
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 96px; }
.legal h1 { font-size: 42px; letter-spacing: -.9px; line-height: 1.15; }
.legal h2 { font-size: 22px; letter-spacing: -.4px; margin: 44px 0 14px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: var(--graphite); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--lake-blue); }
.legal strong { color: var(--off-black); font-weight: 500; }
.legal-meta { font-size: 13px; color: var(--smoke); margin-top: 12px; }
.legal-back { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--ash); }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; display: block; overflow-x: auto; }
.legal-table th, .legal-table td {
  text-align: left; padding: 12px 14px; font-size: 13px; line-height: 1.5;
  border-bottom: 1px solid var(--ash); vertical-align: top;
}
.legal-table th { font-weight: 400; color: var(--smoke); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.legal-table td { color: var(--graphite); }
/* незаполненные реквизиты — видно сразу, случайно не опубликуешь */
.todo { background: #ffe9a8; color: var(--off-black); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 640px) {
  .legal h1 { font-size: 30px; }
  .legal h2 { font-size: 19px; margin-top: 34px; }
}

/* --- cookie bar --- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  padding: 16px; pointer-events: none;
  opacity: 0; visibility: hidden; transform: translate3d(0, 12px, 0);
  transition: opacity .2s ease, transform .26s cubic-bezier(.16, 1, .3, 1), visibility .2s;
}
.cookie-bar.show { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.cookie-inner {
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--parchment); border: 1px solid var(--ash); border-radius: 22px;
  padding: 20px 24px;
  box-shadow: 0 10px 40px rgba(36, 36, 36, .13);
}
.cookie-text { margin: 0; flex: 1 1 320px; font-size: 13px; line-height: 1.55; color: var(--graphite); }
.cookie-text a { color: var(--lake-blue); }
/* «Отклонить» такой же по размеру и заметности, как «Принять» — этого требует GDPR */
.cookie-actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 560px) {
  .cookie-bar { padding: 10px; }
  .cookie-inner { padding: 18px; gap: 16px; border-radius: 18px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-bar { transition: opacity .12s linear; transform: none; }
}
