/* ============================================================================
   X·Tina — стартовая страница, правовые документы, страницы услуг
   Графит + сигнальный оранжевый. Строгая сетка, цвет в акцентах.

   1. Токены и сброс       5. Первый экран
   2. Фон                  6. Реестр направлений
   3. Типографика          7. Компания / Контакты / Подвал
   4. Шапка и кнопки       8. Правовые документы / Баннер cookie
                          9. Страница услуги
                         10. Адаптив и доступность
   ==========================================================================*/

/* ─── 1. Токены и сброс ─────────────────────────────────────────────────── */
:root {
  --bg:      #08090c;
  --panel:   #0f1116;

  --ink:     #f4f5f7;
  --ink-2:   #a9aeb7;
  --ink-3:   #7f848d;

  --line:    rgba(255, 255, 255, .09);
  --line-2:  rgba(255, 255, 255, .18);
  --line-3:  rgba(255, 255, 255, .32);

  --accent:   #ff4f1f;
  --accent-2: #4d7cff;

  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --head-h: 64px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, .55vw + 13.4px, 16.5px);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: rgba(255, 79, 31, .32); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── 2. Фон ────────────────────────────────────────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(50% 38% at 10% -6%,  rgba(255, 79, 31, .26), transparent 62%),
    radial-gradient(46% 40% at 94% 4%,   rgba(77, 124, 255, .22), transparent 64%),
    radial-gradient(70% 40% at 46% 106%,  rgba(255, 79, 31, .12), transparent 66%);
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(135% 95% at 50% 35%, transparent 42%, rgba(0, 0, 0, .6) 100%);
}

/* ─── 3. Типографика ────────────────────────────────────────────────────── */
.container {
  width: min(1180px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section { padding: clamp(54px, 6.2vw, 88px) 0; scroll-margin-top: calc(var(--head-h) + 16px); }
.section--last { padding-bottom: clamp(48px, 5.5vw, 78px); }

.section__head { max-width: 700px; margin-bottom: clamp(26px, 3.2vw, 42px); }
.section__title { font-size: clamp(25px, 3.1vw, 40px); margin-bottom: 14px; }
.section__sub { color: var(--ink-2); font-size: clamp(15px, .5vw + 13.6px, 17px); max-width: 62ch; }

.grad {
  background: linear-gradient(96deg, var(--accent) 0%, #ff8a3d 38%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kicker i { display: block; width: 26px; height: 2px; background: var(--accent); flex: none; }

/* ─── 4. Шапка и кнопки ────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(8, 9, 12, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.header.is-scrolled { background: rgba(8, 9, 12, .96); }

.header__inner {
  height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Логотип — оригинальный файл, стилистика не меняется.
   Пока файла нет, показывается текстовая подпись, а не «битая картинка». */
.brand { display: inline-flex; align-items: center; }
.brand__logo {
  display: block;
  height: var(--logo-h, 48px);
  width: auto;
  flex: none;
}
.brand__text {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand.is-nologo .brand__text { display: block; }
.brand.is-nologo .brand__logo { display: none; }

/* Тёмный логотип на тёмном фоне: переводим в белый.
   Форма, начертание и пропорции не меняются — только контраст.
   Класс ставит скрипт, если средняя светлота непрозрачных пикселей < 55 %. */
.brand.is-dark .brand__logo { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) {
  position: relative;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s;
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav > a:not(.btn):hover { color: var(--ink); }
.nav > a.is-active { color: var(--ink); }
.nav > a.is-active::after { transform: scaleX(1); }
.nav .btn { margin-left: 14px; }

/* многоканальный телефон в шапке */
.nav__phone {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 14px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.nav__phone-link { display: inline-flex; align-items: center; gap: 9px; }
.nav__phone-ico {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink-3);
  transition: color .2s, border-color .2s;
}
.nav__phone-ico svg { width: 15px; height: 15px; }
.nav__phone-link:hover .nav__phone-ico { color: var(--accent); border-color: var(--accent); }

.nav__phone-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color .2s;
}
.nav__phone-link:hover .nav__phone-num { color: var(--accent); }

.nav__phone-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }

.btn--accent {
  background: linear-gradient(100deg, var(--accent), #ff7a2f);
  color: #140600;
  box-shadow: 0 12px 30px -14px rgba(255, 79, 31, .9);
}
.btn--accent:hover { background: linear-gradient(100deg, #ff6733, #ff8c46); }

.btn--outline { border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink-3); background: rgba(255, 255, 255, .05); }

.btn--dark { background: #0b0c10; color: #fff; }
.btn--dark:hover { background: #000; }

.btn--dark-outline { border-color: rgba(0, 0, 0, .35); color: #0b0c10; }
.btn--dark-outline:hover { background: rgba(0, 0, 0, .07); border-color: rgba(0, 0, 0, .55); }

.btn__arrow { transition: transform .25s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.burger {
  display: none;
  width: 40px; height: 40px;
  padding: 12px 9px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line-2);
  border-radius: 3px;
}
.burger span { display: block; height: 1.5px; background: var(--ink); transition: transform .28s, opacity .2s; }
.burger.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger.is-open span:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

.nav-scrim { position: fixed; inset: var(--head-h) 0 0; z-index: 80; background: rgba(8, 9, 12, .72); }

/* ─── 5. Первый экран ───────────────────────────────────────────────────── */
.hero { padding: clamp(44px, 6vw, 84px) 0 0; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
  padding-bottom: clamp(38px, 5vw, 66px);
}

.hero__title { font-size: clamp(31px, 5vw, 60px); margin-bottom: 22px; }
.hero__title > span { display: block; }

.hero__text {
  color: var(--ink-2);
  font-size: clamp(15.5px, .6vw + 14px, 18px);
  max-width: 55ch;
  margin-bottom: 30px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 11px; }

/* яркая панель «7 направлений» */
.panel-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background:
    radial-gradient(95% 90% at 100% 0%,  rgba(255, 79, 31, .38), transparent 58%),
    radial-gradient(95% 90% at 0% 100%,  rgba(77, 124, 255, .34), transparent 58%),
    var(--panel);
}
.panel-hero__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(54px, 7vw, 84px);
  line-height: .9;
  letter-spacing: -.05em;
  background: linear-gradient(120deg, #fff 20%, #ffb08a 70%, #9dbcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.panel-hero__label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.panel-hero__list { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.panel-hero__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--ink-2);
}
.panel-hero__list i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
  flex: none;
  box-shadow: 0 0 10px var(--dot, var(--accent));
}

/* соцсети в первом экране */
.panel-hero__social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.panel-hero__social-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.panel-hero__social-row { display: flex; gap: 8px; margin-left: auto; }
.panel-hero__social-row .soc { width: 34px; height: 34px; }
.panel-hero__social-row .soc__img { width: 22px; height: 22px; }
.panel-hero__social-row .soc--mail .soc__img { width: 26px; height: 26px; }
.panel-hero__social-row .soc svg { width: 21px; height: 21px; }

/* полоса цифр */
.metrics { border-top: 1px solid var(--line-2); }
.metrics__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric {
  padding: 22px 22px 24px;
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: 0; }
.metric b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(110deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric span { display: block; margin-top: 9px; font-size: 13px; color: var(--ink-3); }

/* ─── 6. Карточки услуг ────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  --dot: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  overflow: hidden;
  isolation: isolate;
  transition: border-color .25s, background .25s, transform .25s;
}

/* цветная полоса сверху */
.card__bar {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--dot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}
/* мягкий цветной подсвет сверху */
.card::after {
  content: "";
  position: absolute;
  inset: -40% -30% auto;
  height: 90%;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--dot) 24%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
}

.card:hover, .card:focus-visible {
  border-color: color-mix(in srgb, var(--dot) 60%, transparent);
  transform: translateY(-4px);
}
.card:hover::after, .card:focus-visible::after { opacity: 1; }
.card:hover .card__bar, .card:focus-visible .card__bar { transform: scaleX(1); }

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--dot) 32%, transparent);
  background: color-mix(in srgb, var(--dot) 14%, transparent);
  color: var(--dot);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1);
}
.card__icon svg { width: 23px; height: 23px; }
.card:hover .card__icon { transform: translateY(-2px) rotate(-5deg); }

.card__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  transition: color .25s;
}
.card:hover .card__num { color: var(--dot); }

.card__title {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.card__text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.card__host {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .25s;
}
.card:hover .card__host { color: var(--dot); }

.card__go {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  margin-left: auto;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  transition: color .25s, border-color .25s, background .25s, transform .3s;
}
.card__go svg { width: 14px; height: 14px; }
.card:hover .card__go {
  color: #0a0b0d;
  background: var(--dot);
  border-color: var(--dot);
  transform: translateX(3px);
}

.noscript-list {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.noscript-list a { color: var(--accent); text-decoration: underline; }

/* ─── 7. Ключевые направления / Компания / Контакты / Подвал ──────────── */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}
.detail:nth-child(1) { --dot: #7c5cff; }
.detail:nth-child(2) { --dot: #22d3ee; }

.detail {
  --dot: var(--accent);
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}
.detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.detail__badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dot);
}
.detail__link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  transition: color .2s;
}
.detail__link:hover { color: var(--dot); }

.detail h3 { font-size: clamp(17px, 1.4vw, 20px); margin-bottom: 12px; }
.detail p  { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

.detail__list { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail__list li {
  position: relative;
  padding: 4px 0 4px 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.detail__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dot);
}

/* частые вопросы */
.faq__inner { max-width: 900px; }
.faq__inner .section__head { max-width: none; }
.faq { border-top: 1px solid var(--line-2); }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 17px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.35;
  letter-spacing: -.012em;
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 19px;
  line-height: 1;
  color: var(--accent);
  transition: transform .25s;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--accent); }

.faq__a { padding: 0 40px 20px 0; }
.faq__a p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 74ch;
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 68px);
  align-items: start;
}
.about__text p { color: var(--ink-2); max-width: 54ch; }
.about__text p + p { margin-top: 13px; }

.principles { border-top: 1px solid var(--line-2); }
.principle {
  display: flex;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.principle__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--accent);
  flex: none;
  width: 22px;
  padding-top: 3px;
}
.principle h3 { font-size: 16px; margin-bottom: 5px; }
.principle p { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }

.contacts__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(30px, 4.5vw, 68px);
  align-items: start;
}

.contacts-list { margin-top: clamp(22px, 2.6vw, 32px); border-top: 1px solid var(--line-2); }
.contacts-list__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.contacts-list__label {
  flex: none;
  width: 116px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contacts-list__value { font-size: 16px; font-weight: 500; transition: color .2s; }
a.contacts-list__value:hover { color: var(--accent); }
.contacts-list__pair { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.contacts-list__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-3);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-3);
  transition: color .2s, border-color .2s;
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }

.panel-cta {
  padding: clamp(26px, 3vw, 38px);
  border-radius: 5px;
  background:
    radial-gradient(100% 110% at 0% 0%,   rgba(255, 79, 31, .95), transparent 62%),
    radial-gradient(110% 120% at 100% 100%, rgba(77, 124, 255, .9), transparent 62%),
    linear-gradient(120deg, #ff5a24, #ff8b3c 45%, #4d7cff);
  color: #140600;
  box-shadow: 0 26px 60px -30px rgba(255, 79, 31, .75);
}
.panel-cta h2 { font-size: clamp(20px, 2.2vw, 28px); margin-bottom: 12px; }
.panel-cta p { color: rgba(20, 6, 0, .78); font-size: 14.5px; max-width: 46ch; }
.panel-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.footer { border-top: 1px solid var(--line); padding: 34px 0 22px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.footer__links ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__links a {
  font-size: 13px;
  color: var(--ink-3);
  transition: color .2s;
}
.footer__links a:hover { color: var(--accent); }

.footer__bottom {
  padding-top: 20px;
}
.footer__legal {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.75;
  letter-spacing: .04em;
  color: var(--ink-3);
  max-width: 96ch;
}
.footer__social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer__social a { transition: background .2s, transform .2s; }

/* без обводки — значки сами по себе читаются */
.soc {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--ink-3);
}
.soc svg { width: 24px; height: 24px; }
.soc__img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
/* круг в холсте занимает меньше места, чем квадрат — компенсируем размером */
.soc--mail .soc__img { width: 31px; height: 31px; }
.soc:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, .07);
  transform: translateY(-2px);
}

.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: 22px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: rgba(15, 17, 22, .94);
  color: var(--ink-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, visibility .25s, transform .25s, color .2s, border-color .2s;
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 120;
  translate: -50% 16px;
  padding: 11px 18px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: rgba(15, 17, 22, .97);
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, translate .25s, visibility .25s;
}
.toast.is-visible { opacity: 1; visibility: visible; translate: -50% 0; }

/* ─── 8. Правовые документы ─────────────────────────────────────────────
   Тот же графит, та же сетка и тот же сигнальный оранжевый, что на главной.
   Реквизиты и названия cookie — моноширинным, как в подвале.          */

.legal { padding: clamp(26px, 3.4vw, 48px) 0 clamp(46px, 5.5vw, 78px); }

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(20px, 2.6vw, 30px);
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color .2s;
}
.legal__back::before {
  content: "\2190";
  font-size: 17px;
  line-height: 1;
  color: var(--accent);
  transition: transform .22s;
}
.legal__back:hover { color: var(--ink); }
.legal__back:hover::before { transform: translateX(-4px); }

.legal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(24px, 3vw, 46px);
  align-items: start;
}

/* боковая колонка: остальные документы + оглавление.
   Оглавление длинное — колонка прокручивается внутри себя, иначе
   нижние разделы нельзя было бы увидеть на невысоком экране. */
.legal__aside {
  position: sticky;
  top: calc(var(--head-h) + 18px);
  max-height: calc(100vh - var(--head-h) - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-right: 2px;
}

.legal__box {
  padding: 17px 17px 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(15, 17, 22, .74);
}

.legal__box-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 11px;
}

.legal__docs a {
  display: block;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
  transition: color .2s, border-color .2s, background .2s;
}
.legal__docs a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .04);
  border-left-color: var(--line-2);
}
.legal__docs a.is-current {
  color: var(--ink);
  border-left-color: var(--accent);
  background: rgba(255, 79, 31, .09);
}

/* оглавление строится из заголовков документа */
.legal__toc a {
  display: block;
  padding: 5px 9px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-3);
  transition: color .2s, border-color .2s;
}
.legal__toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.legal__toc .lvl-3 a { padding-left: 20px; font-size: 12px; }

/* ─── Текст документа ─────────────────────────────────────────────────── */
.doc {
  padding: clamp(22px, 2.8vw, 42px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .008)),
    rgba(10, 11, 15, .74);
  backdrop-filter: blur(10px);
}

.doc__title {
  font-size: clamp(23px, 2.9vw, 37px);
  letter-spacing: -.02em;
  margin: 11px 0 0;
}
.doc__sub {
  margin-top: 13px;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 66ch;
}

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.doc__meta > div {
  padding: 0 clamp(14px, 1.8vw, 26px);
  border-right: 1px solid var(--line);
}
.doc__meta > div:first-child { padding-left: 0; }
.doc__meta > div:last-child  { border-right: 0; }
.doc__meta dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc__meta dd {
  margin: 6px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.doc__body {
  margin-top: clamp(22px, 2.6vw, 32px);
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

.doc__body h2 {
  font-size: clamp(17px, 1.7vw, 21px);
  margin: clamp(30px, 3vw, 42px) 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  scroll-margin-top: calc(var(--head-h) + 20px);
}
.doc__body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.doc__body h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 22px 0 9px;
  color: var(--ink);
  scroll-margin-top: calc(var(--head-h) + 20px);
}

.doc__body p  { margin: 0 0 13px; max-width: 78ch; }
.doc__body b, .doc__body strong { color: var(--ink); font-weight: 600; }
.doc__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.doc__body a:hover { color: #ff8a3d; }

.doc__body ul, .doc__body ol { margin: 0 0 14px; list-style: none; }
.doc__body li { position: relative; margin-bottom: 7px; max-width: 76ch; }
.doc__body ul li { padding-left: 22px; }
.doc__body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.doc__body ol { counter-reset: dnum; }
.doc__body ol li { padding-left: 26px; counter-increment: dnum; }
.doc__body ol li::before {
  content: counter(dnum) ".";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
}

.doc__body code, .doc__body .mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, .07);
  padding: 1.5px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

/* таблицы (сроки хранения, состав cookie) */
.doc__tablewrap {
  margin: 4px 0 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.doc__tablewrap table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 13px;
}
.doc__tablewrap thead th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .035);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  white-space: nowrap;
}
.doc__tablewrap td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}
.doc__tablewrap tbody tr:last-child td { border-bottom: 0; }
.doc__tablewrap tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.doc__tablewrap td:first-child { color: var(--ink); font-weight: 500; }
.doc__tablewrap td .mono { white-space: normal; }

/* выделенное примечание */
.doc__note {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 79, 31, .3);
  border-left-width: 2px;
  border-radius: 4px;
  background: rgba(255, 79, 31, .07);
  font-size: 13.5px;
  color: var(--ink-2);
}
.doc__note b { color: var(--ink); font-weight: 600; }

/* бланк реквизитов в согласиях */
.doc__fields { margin: 0 0 22px; }
.doc__field {
  display: grid;
  grid-template-columns: minmax(150px, 34%) minmax(0, 1fr);
  gap: 4px 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.doc__field dt { color: var(--ink-3); }
.doc__field dd {
  margin: 0;
  min-height: 20px;
  color: var(--ink);
  border-bottom: 1px dashed var(--line-2);
}

.doc__sign {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 34px;
  margin-top: clamp(26px, 3vw, 38px);
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.doc__sign > div { font-size: 13px; color: var(--ink-3); }
.doc__sign i {
  display: block;
  margin-top: 26px;
  border-bottom: 1px dashed var(--line-2);
  font-style: normal;
}

/* ссылки на соседние документы */
.doc__related {
  margin-top: clamp(28px, 3.2vw, 40px);
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.doc__related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.doc__related a {
  display: block;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  transition: color .2s, border-color .2s, background .2s;
}
.doc__related a:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(255, 255, 255, .035);
}

/* ссылки на документы в подвале */
.footer__docs { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.footer__docs ul { display: flex; flex-wrap: wrap; gap: 7px 22px; }
.footer__docs a,
.footer__cookie {
  font-size: 12.5px;
  color: var(--ink-3);
  transition: color .2s;
}
.footer__docs a:hover,
.footer__cookie:hover { color: var(--accent); }
.footer__cookie { text-decoration: underline; text-underline-offset: 3px; }
.footer__cookie::before { content: "\25E6\00a0"; color: var(--accent); }
.footer__cookie[hidden] { display: none; }

/* ─── 9. Баннер согласия на cookie ───────────────────────────────────────
   Тонкая полоса во всю ширину экрана: текст слева, кнопки справа.
   Раскрытая панель категорий растёт вверх, полоса остаётся внизу.   */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  padding: 12px var(--gutter);
  border-top: 1px solid var(--line-2);
  background: rgba(11, 12, 17, .97);
  backdrop-filter: blur(16px);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, .5);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, transform .3s, visibility .3s;
}
/* состояние «открыт» ставится скриптом сразу, без ожидания таймера:
   вход проигрывается ключами, закрытие — переходом выше */
.cookie.is-open { opacity: 1; visibility: visible; transform: none; }
.cookie.is-open { animation: cookie-in .3s cubic-bezier(.2, .8, .3, 1) both; }

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: none; }
}

.cookie__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(1180px, 100%);
  margin-inline: auto;
}

.cookie__row {
  display: flex;
  align-items: center;
  gap: 12px 26px;
}

.cookie__body { flex: 1 1 auto; min-width: 0; }
.cookie__text b { color: var(--ink); font-weight: 600; }
.cookie__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cookie__text a:hover { color: #ff8a3d; }

.cookie__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.cookie__main { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__save { display: none; }
.cookie.is-settings .cookie__cats { display: block; }
.cookie.is-settings .cookie__main { display: none; }
.cookie.is-settings .cookie__save { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__actions .btn { white-space: nowrap; }

/* панель категорий — раскрывается вверх, над строкой с кнопками */
.cookie__cats {
  display: none;
  margin-bottom: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.cookie__cats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 28px;
}
.cookie__cat {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 0;
  cursor: pointer;
}
.cookie__cat input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.cookie__switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  border-radius: 11px;
  background: var(--line-2);
  transition: background .25s;
}
.cookie__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .25s;
}
.cookie__cat input:checked + .cookie__switch { background: var(--accent); }
.cookie__cat input:checked + .cookie__switch::after { transform: translateX(16px); }
.cookie__cat input:disabled + .cookie__switch { opacity: .5; cursor: not-allowed; }
.cookie__cat input:focus-visible + .cookie__switch { outline: 2px solid var(--accent); outline-offset: 3px; }
.cookie__cat-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cookie__cat-text { display: block; margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

.cookie__note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--ink-3);
}

/* полоса не закрывает подвал и кнопку «наверх»: под неё резервируется место */
body.cookie-open { padding-bottom: var(--cookie-h, 0px); }
body.cookie-open .to-top { opacity: 0; visibility: hidden; }

/* ─── Появление блоков ─────────────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.2, .8, .3, 1), transform .6s cubic-bezier(.2, .8, .3, 1);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ─── 9. Страница услуги ──────────────────────────────────────────────────
   Тот же каркас, что у главной: преимущества сеткой, услуги списком
   с ценой справа, вопросы и панель-призыв переиспользуют существующие
   блоки .faq и .panel-cta.                                        */

.svc { padding: clamp(34px, 4.4vw, 64px) 0 0; }
.svc__title { font-size: clamp(28px, 4.4vw, 52px); margin: 12px 0 0; }
.svc__lead {
  margin-top: 16px;
  max-width: 64ch;
  font-size: clamp(15px, .5vw + 13.6px, 17px);
  color: var(--ink-2);
}
.svc__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }

.svc__adv {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
}

.adv {
  padding: 16px 17px 17px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
}
.adv__n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--accent);
}
.adv__t {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--ink);
}
.adv__d { margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }

/* список услуг с ценой */
.svc-list { border-top: 1px solid var(--line-2); }
.svc-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 26px;
  align-items: start;
  padding: 18px 12px 18px 0;
  margin-inline: -12px;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.svc-item:hover { background: rgba(255, 255, 255, .022); }
.svc-item__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--ink);
}
.svc-item__text {
  margin-top: 8px;
  max-width: 70ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.svc-item__price {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.svc-item__price small {
  display: block;
  margin-bottom: 5px;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}
.svc-item__note { margin-top: 7px; font-size: 12px; color: var(--ink-3); }

/* ─── 10. Адаптив ───────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .hero__inner,
  .about__inner,
  .contacts__inner,
  .detail-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__phone { display: none; }
  .metrics__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  /* на узком экране боковая колонка поднимается наверх, над документом */
  .legal__grid { grid-template-columns: minmax(0, 1fr); }
  .legal__aside {
    position: static;
    order: -1;
    max-height: none;
    overflow: visible;
  }
  .legal__toc { display: none; }

  .svc__adv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: var(--head-h) 0 auto;
    z-index: 85;
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 24px;
    background: rgba(8, 9, 12, .98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s cubic-bezier(.2, .8, .3, 1), opacity .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .nav .btn { margin: 18px 0 0; }

  /* телефон в мобильном меню — отдельной строкой */
  .nav__phone {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .nav__phone-num { font-size: 17px; }
  .nav__phone-note { font-size: 10.5px; }

  /* полоса согласия: текст и кнопки в столбец, категории в одну колонку */
  .cookie__row { flex-direction: column; align-items: stretch; }
  .cookie__actions { justify-content: flex-start; }
  .cookie__cats-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero__actions .btn,
  .panel-cta__actions .btn { width: 100%; }
  .contacts-list__label { width: 100%; }
  .panel-cta__actions { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; gap: 6px; }
  .metrics__inner { grid-template-columns: 1fr 1fr; }
  .doc__field,
  .doc__sign { grid-template-columns: minmax(0, 1fr); }
  .doc__field dd { min-height: 26px; }
  .doc__meta > div { padding: 6px 16px 6px 0; border-right: 0; }
  .cookie { padding: 11px 16px; }
  .cookie__main,
  .cookie__save { width: 100%; }
  .cookie__actions .btn { flex: 1 1 auto; justify-content: center; }

  .svc__adv { grid-template-columns: 1fr; }
  .svc-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .svc-item__price { padding-top: 0; }
  .svc-item__price small { display: inline; margin: 0 8px 0 0; text-align: left; }
}

/* ─── Доступность ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ─── Печать: документ должен уходить на бумагу читаемым ───────────────── */
@media print {
  #starfield, .bg-glow, .bg-vignette, .to-top, .nav-scrim,
  .header, .cookie, .legal__aside, .legal__back, .doc__related,
  .footer__docs, .footer__social { display: none !important; }

  body { background: #fff; color: #111; font-size: 11pt; }
  .legal { padding: 0; }
  .legal__grid { display: block; }

  .doc {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
  }
  .doc__title { font-size: 20pt; }
  .doc__body { color: #111; font-size: 10.5pt; line-height: 1.5; }
  .doc__body h2, .doc__body h3, .doc__body b, .doc__body strong,
  .doc__meta dd, .doc__field dd, .doc__note b { color: #000; }
  .doc__body a { color: #111; text-decoration: underline; }
  /* на бумаге адрес ссылки должен быть виден текстом */
  .doc__body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #444; }

  .doc__tablewrap { border: 1px solid #999; overflow: visible; }
  .doc__tablewrap table { min-width: 0; font-size: 9pt; }
  .doc__tablewrap thead th { background: #eee; color: #000; border-bottom: 1px solid #999; }
  .doc__tablewrap td { border-bottom: 1px solid #ccc; color: #111; }
  .doc__body h2 { break-after: avoid; page-break-after: avoid; }
  .doc__body h3 { break-after: avoid; page-break-after: avoid; }
  .doc__note { border-color: #999; background: #f4f4f4; color: #111; }
  .doc__field, .doc__sign { break-inside: avoid; page-break-inside: avoid; }
  .doc__field dd, .doc__sign i { border-bottom-color: #999; }
}

/* Forms: X-Tina */
.lead-form { margin-top: 0; scroll-margin-top: calc(var(--head-h) + 24px); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); display: grid; gap: 18px; }
.lead-form h3 { font-size: 20px; }
.lead-form__field { display: grid; gap: 7px; font-size: 14px; color: var(--ink-2); }
.lead-form input:not([type="checkbox"]), .lead-form textarea, .lead-form select { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.lead-form textarea { resize: vertical; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--ink-3); opacity: 1; }
.lead-form__consent { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 12px; line-height: 1.6; }
.lead-form__consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.lead-form__consent a, .lead-form noscript a { text-decoration: underline; text-underline-offset: 3px; }
.lead-form .btn { width: 100%; justify-content: center; }
.lead-form .btn:disabled { opacity: .65; cursor: wait; transform: none; }
.form__status { color: #ffb6b6; font-size: 14px; }
.form__status:empty, .form__ok { display: none; }
.form.is-sent .form__ok { display: block; color: var(--ink); font-size: 14px; }
.lead-success { box-sizing: border-box; width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 32px; border: 1px solid var(--accent); border-radius: 20px; background: var(--panel); color: var(--ink); text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.lead-success::backdrop { background: rgba(0,0,0,.75); }
.lead-success__icon { color: var(--accent); font-size: 48px; line-height: 1; margin-bottom: 20px; }
.lead-success h2 { margin: 0 0 16px; font-size: 24px; }
.lead-success p { margin: 0 0 24px; line-height: 1.6; }
.lead-success button { margin: 0 auto; }
