/* ==========================================================================
   ЭНТЕК — версия 3. База: токены, типографика, шапка с мегаменю,
   мобильное меню, кнопки, формы, футер.
   Токены наследуются из brand-spec.md без изменений.
   ========================================================================== */

:root {
  --bg:            oklch(96.5% 0.001 250);
  --surface:       oklch(100% 0 0);
  --surface-2:     oklch(94% 0.002 250);
  --fg:            oklch(16% 0.002 250);
  --muted:         oklch(52% 0.006 250);
  --muted-display: oklch(60% 0.005 250);
  --border:        oklch(90% 0.002 250);

  --accent:        oklch(48% 0.19 262);
  --accent-hover:  oklch(41% 0.17 262);
  --accent-soft:   oklch(88% 0.055 250);
  --accent-line:   oklch(70% 0.14 258);

  --ink:           oklch(13% 0.003 250);
  --ink-2:         oklch(19% 0.004 250);
  --ink-border:    oklch(30% 0.006 250);
  --ink-muted:     oklch(72% 0.006 250);
  --on-dark:       oklch(98% 0.001 250);

  --danger:        oklch(50% 0.19 27);
  --ok:            oklch(45% 0.13 155);

  --wrap: 1400px;
  --pad: 22px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;

  --font-display: "Manrope", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body[data-lock="true"] { overflow: hidden; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.hero :focus-visible,
.drawer :focus-visible { outline-color: oklch(85% 0.12 258); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 200;
  background: var(--fg);
  color: var(--on-dark);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { left: 22px; }

/* -------------------------------------------------- типографика */

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.04;
  margin: 0;
}
h1 { font-size: clamp(34px, 4.4vw, 68px); text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 50px); text-wrap: balance; }
h3 { font-size: clamp(19px, 1.7vw, 25px); letter-spacing: -0.02em; line-height: 1.15; }
h4 { font-size: 17px; letter-spacing: -0.015em; }

p { margin: 0; }

.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }

/* двухцветная фраза: смысловое начало — тёмное, продолжение — светло-серое */
.lede {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(23px, 2.5vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.028em;
  color: var(--fg);
  text-wrap: balance;
}
.lede .dim { color: var(--muted-display); }
h1 .dim, h2 .dim, h3 .dim { color: var(--muted-display); }

.body-text { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 62ch; text-wrap: pretty; }
.body-text + .body-text { margin-top: 16px; }
.body-text strong { color: var(--fg); font-weight: 600; }

/* -------------------------------------------------- маркер незакрытых данных
   Ни одна цифра не публикуется без подтверждения (раздел 11 плана).
   Всё, чего ещё нет, набирается этим маркером с кодом из реестра. */

.ph {
  font-family: var(--font-mono);
  font-size: 0.84em;
  letter-spacing: 0.01em;
  color: var(--muted);
  border-bottom: 1px dashed oklch(70% 0.004 250);
  padding-bottom: 1px;
  white-space: nowrap;
}
.ph::after {
  content: attr(data-ph);
  font-size: 0.68em;
  vertical-align: super;
  margin-left: 3px;
  opacity: 0.62;
  letter-spacing: 0;
}
.on-dark .ph, .hero .ph { color: var(--ink-muted); border-bottom-color: oklch(100% 0 0 / 0.35); }
.topbar .ph, .drawer .ph { color: inherit; border-bottom-color: currentColor; opacity: .88; }

/* -------------------------------------------------- pill-метка */

.pill {
  display: inline-flex;
  align-items: center;
  /* В сетке дочерний элемент растягивается на всю колонку, и метка
     превращалась в полосу во всю ширину. Вне сетки правило ничего
     не меняет, поэтому задаём его один раз здесь, а не по месту. */
  justify-self: start;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg);
  flex: none;
}
.pill--accent::before { background: var(--accent); }
.pill--ghost {
  background: oklch(100% 0 0 / 0.14);
  border-color: oklch(100% 0 0 / 0.3);
  color: var(--on-dark);
  backdrop-filter: blur(10px);
}
.pill--ghost::before { background: var(--on-dark); }
.pill--plain { padding-left: 15px; }
.pill--plain::before { display: none; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }

.btn--dark { background: var(--fg); color: var(--on-dark); }
.btn--dark:hover { background: oklch(28% 0.004 250); color: var(--on-dark); }

.btn--ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn--ghost:hover { background: var(--surface); border-color: oklch(76% 0.004 250); color: var(--fg); }

.btn--glass {
  background: oklch(100% 0 0 / 0.16);
  border-color: oklch(100% 0 0 / 0.34);
  color: #fff;
  backdrop-filter: blur(12px);
}
.btn--glass:hover { background: oklch(100% 0 0 / 0.3); border-color: oklch(100% 0 0 / 0.58); color: #fff; }

.btn--wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: border-color .18s ease;
}
.link:hover { border-color: var(--fg); color: var(--fg); }
.link svg { transition: transform .18s ease; }
.link:hover svg { transform: translate(2px, -2px); }
.on-dark .link { color: var(--on-dark); border-bottom-color: var(--ink-border); }
.on-dark .link:hover { border-bottom-color: var(--on-dark); color: #fff; }

/* -------------------------------------------------- шапка */

.topbar {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 60;
  pointer-events: none;
}
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 9px 18px;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.16);
  border: 1px solid oklch(100% 0 0 / 0.28);
  backdrop-filter: blur(14px);
  color: #fff;
  text-decoration: none;
  transition: background-color .18s ease;
}
.brand:hover { background: oklch(100% 0 0 / 0.3); color: #fff; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand__desc {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: .82;
}

.navpill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.16);
  border: 1px solid oklch(100% 0 0 / 0.28);
  backdrop-filter: blur(14px);
}
.navpill a, .navpill button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 17px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease;
}
.navpill a:hover, .navpill button:hover { background: oklch(100% 0 0 / 0.3); color: #fff; }
.navpill a[aria-current="page"] { background: #fff; color: var(--fg); }
.navpill button svg { transition: transform .2s ease; }
.navpill[data-mega="open"] button[data-mega-trigger] svg { transform: rotate(180deg); }

/* мегаменю «Услуги» */
.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(640px, calc(100vw - 44px));
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px oklch(18% 0.01 250 / 0.18);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

/* Панель мегаменю отстоит от кнопки на 12px. Курсор, идущий от кнопки
   к панели, пересекал этот зазор и выходил за пределы меню — оно
   закрывалось раньше, чем посетитель доводил мышь до пункта.
   Невидимая перемычка делает движение непрерывным. */
.mega::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto 0;
  height: 14px;
}

.navpill[data-mega="open"] .mega { opacity: 1; visibility: visible; transform: none; }
.mega h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega li a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--fg);
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color .16s ease;
}
.mega li a small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.mega li a:hover { background: var(--surface-2); color: var(--fg); }
.mega li a:hover small { color: var(--muted); }
.mega__foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mega__foot p { font-size: 13.5px; color: var(--muted); max-width: 40ch; }

.topbar__side { display: flex; align-items: center; gap: 10px; }
.topbar__phone {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.16);
  border: 1px solid oklch(100% 0 0 / 0.28);
  backdrop-filter: blur(14px);
}
.topbar__cta { display: inline-flex; }

.burger {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid oklch(100% 0 0 / 0.28);
  background: oklch(100% 0 0 / 0.16);
  backdrop-filter: blur(14px);
  color: #fff;
  cursor: pointer;
  transition: background-color .18s ease;
}
.burger:hover { background: oklch(100% 0 0 / 0.32); }
.burger__close { display: none; }

/* шапка на светлом фоне: после героя и на всех внутренних страницах */
.topbar[data-scrolled="true"] .brand,
.topbar[data-scrolled="true"] .navpill,
.topbar[data-scrolled="true"] .topbar__phone,
.topbar[data-scrolled="true"] .burger {
  background: oklch(100% 0 0 / 0.94);
  border-color: var(--border);
  color: var(--fg);
  box-shadow: 0 6px 22px oklch(20% 0.01 250 / 0.08);
}
.topbar[data-scrolled="true"] .brand:hover { background: #fff; }
.topbar[data-scrolled="true"] .navpill a,
.topbar[data-scrolled="true"] .navpill button { color: var(--fg); }
.topbar[data-scrolled="true"] .navpill a:hover,
.topbar[data-scrolled="true"] .navpill button:hover { background: var(--surface-2); color: var(--fg); }
.topbar[data-scrolled="true"] .navpill a[aria-current="page"] { background: var(--fg); color: var(--on-dark); }
.topbar[data-scrolled="true"] .topbar__phone:hover { background: var(--surface-2); color: var(--fg); }
.topbar[data-scrolled="true"] .burger:hover { background: var(--surface-2); }
.topbar[data-scrolled="true"] .topbar__cta {
  background: oklch(100% 0 0 / 0.94);
  box-shadow: 0 6px 22px oklch(20% 0.01 250 / 0.08);
}
.topbar[data-scrolled="true"] .topbar__cta:hover { background: var(--surface-2); }

/* над фотографией героя контурная кнопка переключается в стеклянную:
   тёмный текст на снимке нечитаем */
.topbar[data-scrolled="false"] .topbar__cta {
  background: oklch(100% 0 0 / 0.16);
  border-color: oklch(100% 0 0 / 0.34);
  color: #fff;
  backdrop-filter: blur(14px);
}
.topbar[data-scrolled="false"] .topbar__cta:hover {
  background: oklch(100% 0 0 / 0.32);
  border-color: oklch(100% 0 0 / 0.58);
  color: #fff;
}

/* -------------------------------------------------- мобильное меню */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--ink);
  color: var(--on-dark);
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity .26s ease, transform .26s ease, visibility .26s;
  pointer-events: none;
  overflow-y: auto;
}
.topbar[data-nav="open"] .drawer {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--pad) 18px;
  border-bottom: 1px solid var(--ink-border);
}
.drawer__brand { display: grid; gap: 2px; text-decoration: none; color: var(--on-dark); }
.drawer__brand b { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.drawer__brand span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.drawer__x {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--ink-border);
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  transition: background-color .18s ease;
}
.drawer__x:hover { background: var(--ink-2); color: #fff; }

.drawer__body { padding: 22px var(--pad); display: grid; gap: 28px; align-content: start; }
.drawer__group h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.drawer__group ul { list-style: none; margin: 0; padding: 0; display: grid; }
.drawer__group li + li { border-top: 1px solid var(--ink-border); }
.drawer__group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 12px 2px;
  color: var(--on-dark);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  transition: padding-left .2s ease, color .18s ease;
}
.drawer__group a small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--ink-muted);
  text-align: right;
  max-width: 44%;
}
.drawer__group a:hover { padding-left: 8px; color: #fff; }
.drawer__group a[aria-current="page"] { color: var(--accent-line); }

.drawer__foot {
  padding: 18px var(--pad) calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ink-border);
  display: grid;
  gap: 10px;
}
.drawer__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid var(--ink-border);
  color: var(--on-dark);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: background-color .18s ease;
}
.drawer__phone:hover { background: var(--ink-2); color: #fff; }
.drawer__foot .btn--primary { min-height: 54px; font-size: 16px; }

/* -------------------------------------------------- секции */

.section { padding-block: clamp(56px, 7vw, 108px); }
.section--tight { padding-block: clamp(40px, 5vw, 70px); }
.section--flush { padding-top: 0; }
.section--dark { background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(30px, 4vw, 52px); max-width: 68ch; }
.section-head .body-text { max-width: 60ch; }

.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(140px, 210px) 1fr;
  gap: 32px;
  align-items: start;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.split--wide-left { grid-template-columns: 1.15fr 1fr; }

/* -------------------------------------------------- форма */

.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field--wide { grid-column: 1 / -1; }

/* Поле выбора файла не сжимается ниже собственной ширины: кнопка «Выберите
   файл» плюс подпись «Файл не выбран» дают минимум около 330px, и на экранах
   уже 380px вся форма вылезала за правый край. Разрешаем ему сжиматься. */
.field { min-width: 0; }
.field input[type="file"] {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select {
  height: 50px;
  padding: 0 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font: inherit;
  font-size: 15px;
  color: var(--fg);
  transition: border-color .18s ease, background-color .18s ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}
.field textarea {
  min-height: 132px;
  padding: 14px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
  resize: vertical;
  transition: border-color .18s ease, background-color .18s ease;
}
.field textarea:hover { border-color: oklch(78% 0.004 250); }
.field textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: none;
  box-shadow: 0 0 0 3px oklch(48% 0.19 262 / 0.14);
}
[data-field][data-invalid="true"] textarea { border-color: oklch(55% 0.19 27); }
.field input::placeholder, .field textarea::placeholder { color: oklch(70% 0.004 250); }
.field input:hover, .field select:hover { border-color: oklch(78% 0.004 250); }
.field input:focus, .field select:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: none;
  box-shadow: 0 0 0 3px oklch(48% 0.19 262 / 0.14);
}
.field .hint { font-size: 12.5px; color: var(--muted); }
.field input[type="file"] {
  font: inherit;
  font-size: 14px;
  padding: 13px 15px;
  border: 1px dashed oklch(82% 0.004 250);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.field input[type="file"]:hover { border-color: var(--accent); background: var(--surface); }
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  margin-right: 14px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
}
.field input[type="file"]:hover::file-selector-button { background: var(--surface-2); }

.err { display: none; font-size: 12.5px; color: var(--danger); }
[data-field][data-invalid="true"] input,
[data-field][data-invalid="true"] select { border-color: oklch(55% 0.19 27); }
[data-field][data-invalid="true"] .err { display: block; }

.consent { display: grid; grid-template-columns: 18px 1fr; gap: 11px; align-items: start; font-size: 13.5px; color: var(--muted); font-weight: 400; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.consent a { color: var(--fg); }

.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.form__hint { font-size: 13px; color: var(--muted); max-width: 36ch; }
.form-status { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-status[data-state="error"] { color: var(--danger); }
.form-status[data-state="ok"] { color: var(--ok); }
.form-success {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  padding: 24px;
  gap: 12px;
}
.form-success[data-visible="true"] { display: grid; }
.form-success h3 { font-size: 22px; }
.form-success p { font-size: 15px; color: var(--muted); }

/* -------------------------------------------------- футер */

.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 72px);
  overflow: hidden;
}
.footer-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; padding-bottom: 44px; }
.footer-lead h2 { font-size: clamp(27px, 3.1vw, 44px); font-weight: 600; }
.footer-lead h2 .dim { color: oklch(100% 0 0 / 0.42); }
.footer-lead p { font-size: 15px; color: var(--ink-muted); max-width: 52ch; }

.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a, .footer-col li { font-size: 15px; color: oklch(100% 0 0 / 0.88); text-decoration: none; }
.footer-col a { transition: color .18s ease; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  padding: 26px 0;
  margin-top: 40px;
  border-top: 1px solid var(--ink-border);
  font-size: 13px;
  color: var(--ink-muted);
}
.footer-bottom a { color: var(--ink-muted); }
.footer-bottom a:hover { color: #fff; }

.footer-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(58px, 26vw, 330px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--on-dark);
  padding-inline: var(--pad);
  margin: 0;
  user-select: none;
}
.footer-tail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--ink-border);
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.footer-tail a { color: var(--ink-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer-tail a:hover { color: #fff; }

.mark-sub {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: clamp(9.5px, 0.9vw, 13px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-inline: var(--pad);
  margin: 14px 0 0;
}
.site-footer .mark-sub { color: var(--ink-muted); margin-top: 10px; }

/* якорные переходы не уезжают под фиксированную шапку */
[id] { scroll-margin-top: 96px; }

/* -------------------------------------------------- адаптив базы */

@media (max-width: 1180px) {
  .brand__desc { display: none; }
}

@media (max-width: 980px) {
  .navpill, .topbar__phone, .topbar__cta { display: none; }
  .burger { display: inline-flex; }
  .topbar[data-nav="open"] .burger__open { display: none; }
  .topbar[data-nav="open"] .burger__close { display: block; }
  .intro-grid, .split, .split--wide-left, .footer-lead { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .form__grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .mark-sub { flex-wrap: wrap; justify-content: flex-start; gap: 8px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
