/* ============================================================
   Adsgalaxy — shared components for inner pages + mega menu
   Loaded on ALL pages after style.css
============================================================ */

/* ---------- Mega menu (desktop) ---------- */
.nav-drop { position: static; }
.nav-drop__btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: color 0.25s;
}
.nav-drop__btn i { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.nav-drop:hover .nav-drop__btn,
.nav-drop.is-open .nav-drop__btn { color: var(--text); }
.nav-drop:hover .nav-drop__btn i,
.nav-drop.is-open .nav-drop__btn i { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(14, 14, 16, 0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 90;
}
.nav-drop:hover .mega,
.nav-drop:focus-within .mega,
.nav-drop.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 34px clamp(20px, 4vw, 48px) 0;
}
.mega__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}
.mega--sm .mega__grid { grid-template-columns: repeat(5, 1fr); }
.mega__col { display: flex; flex-direction: column; gap: 2px; }
.mega__head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.mega__col a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 0;
  transition: color 0.2s, transform 0.2s var(--ease);
}
.mega__col a:hover { color: var(--accent); transform: translateX(3px); }
.mega__col a::after { content: none; }
.mega__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.mega__foot-text { font-size: 13.5px; color: var(--text-2); }
.mega__foot-text b { color: var(--text); }

/* industry mega cards */
.mega__ind {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.mega__ind:hover { border-color: var(--accent); transform: translateY(-3px); }
.mega__ind::after { content: none; }
.mega__ind i { width: 20px; height: 20px; color: var(--accent); }
.mega__ind-name { font-size: 14px; font-weight: 700; color: var(--text); }
.mega__ind-desc { font-size: 12px; color: var(--text-3); line-height: 1.4; }

@media (max-width: 1024px) {
  .nav-drop { display: none; }
}

/* ---------- Mobile menu accordions ---------- */
.mmenu__group { border-bottom: 1px solid var(--line); }
.mmenu__group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.mmenu__group summary::-webkit-details-marker { display: none; }
.mmenu__group summary i { width: 16px; height: 16px; color: var(--text-3); transition: transform 0.3s var(--ease); }
.mmenu__group[open] summary i { transform: rotate(180deg); }
.mmenu__sub { display: flex; flex-direction: column; gap: 2px; padding: 0 0 14px 12px; }
.mmenu__sub a { font-size: 14.5px; color: var(--text-2); padding: 6px 0; }
.mmenu__sub a:hover { color: var(--accent); }
.mmenu__sub-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 10px 0 4px;
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.crumbs a { color: var(--text-2); transition: color 0.2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs i { width: 12px; height: 12px; }
.crumbs span[aria-current] { color: var(--text-3); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(120px, 16vh, 170px) 0 clamp(40px, 6vh, 70px); position: relative; }
.page-hero .crumbs { margin-bottom: 28px; }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 900px;
}
.page-hero__title em { color: var(--accent); font-style: normal; }
.page-hero__lead { margin-top: 24px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); max-width: 640px; line-height: 1.55; }
.page-hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.page-hero__stats {
  margin-top: clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--line);
}
.page-hero__stat { padding: 22px 24px 0 0; border-right: 1px solid var(--line); }
.page-hero__stat:last-child { border-right: none; }
.page-hero__stat-num { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; color: var(--accent); }
.page-hero__stat-label { margin-top: 6px; font-size: 13px; color: var(--text-2); }

/* ---------- Pains ---------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.pain:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.pain i { width: 22px; height: 22px; color: var(--accent); }
.pain h3 { margin-top: 14px; font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.pain p { margin-top: 8px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
@media (max-width: 900px) { .pains { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pains { grid-template-columns: 1fr; } }

/* ---------- Funnel visual (industry pages) ---------- */
.funnel { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin-inline: auto; }
.funnel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 18px 24px;
  margin-inline: auto;
  width: 100%;
  transition: border-color 0.3s;
}
.funnel__row:nth-child(2) { width: 88%; }
.funnel__row:nth-child(3) { width: 76%; }
.funnel__row:nth-child(4) { width: 64%; border-color: var(--accent); background: var(--accent-dim); }
.funnel__row:hover { border-color: var(--line-strong); }
.funnel__label { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.funnel__label i { width: 18px; height: 18px; color: var(--accent); }
.funnel__num { font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); font-weight: 700; color: var(--text); white-space: nowrap; }
.funnel__row:nth-child(4) .funnel__num { color: var(--accent); }
.funnel__note { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* ---------- Quiz ---------- */
.quiz {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
}
.quiz__side {
  padding: clamp(28px, 3.5vw, 48px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(212, 255, 63, 0.06), transparent 60%),
    var(--surface);
}
.quiz__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 8px 14px;
}
.quiz__badge i { width: 13px; height: 13px; color: var(--accent); }
.quiz__side-title { margin-top: 22px; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; line-height: 1.2; }
.quiz__side-title em { color: var(--accent); font-style: normal; }
.quiz__side-text { margin-top: 14px; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.quiz__perks { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.quiz__perk { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.quiz__perk i { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

.quiz__main { padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; min-height: 480px; }
.quiz__progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.quiz__progress-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); white-space: nowrap; }
.quiz__bar { flex: 1; height: 4px; border-radius: 100px; background: var(--surface-2); overflow: hidden; }
.quiz__bar-fill { height: 100%; width: 0; background: var(--accent); border-radius: 100px; transition: width 0.4s var(--ease); }
.quiz__q { font-size: clamp(18px, 1.8vw, 23px); font-weight: 700; line-height: 1.3; }
.quiz__hint { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.quiz__options { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz__opt {
  text-align: left;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
}
.quiz__opt:hover { border-color: var(--accent); transform: translateY(-2px); }
.quiz__opt.is-selected { border-color: var(--accent); background: var(--accent-dim); }
.quiz__opt-mark {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: 0.2s;
}
.quiz__opt.is-selected .quiz__opt-mark { background: var(--accent); border-color: var(--accent); }
.quiz__opt.is-selected .quiz__opt-mark::after { content: "✓"; font-size: 11px; color: var(--accent-text); font-weight: 800; }
.quiz__nav { margin-top: auto; padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.quiz__back {
  background: none;
  border: none;
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.quiz__back:hover { color: var(--text); }
.quiz__back i { width: 15px; height: 15px; }
.quiz__back[hidden] { visibility: hidden; }

.quiz__contact { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.quiz__result-note {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.quiz__result-note b { color: var(--accent); }
.quiz__success { margin: auto 0; text-align: center; padding: 30px 0; }
.quiz__success i { width: 44px; height: 44px; color: var(--accent); }
.quiz__success-title { margin-top: 16px; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.quiz__success-text { margin-top: 10px; font-size: 14.5px; color: var(--text-2); max-width: 380px; margin-inline: auto; line-height: 1.55; }

@media (max-width: 920px) {
  .quiz { grid-template-columns: 1fr; }
  .quiz__side { border-right: none; border-bottom: 1px solid var(--line); }
  .quiz__options { grid-template-columns: 1fr; }
  .quiz__main { min-height: 430px; }
}

/* ---------- "Fixed in contract" / KPI block ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}
.kpi i { width: 20px; height: 20px; color: var(--accent); }
.kpi h3 { margin-top: 12px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.kpi p { margin-top: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } }

/* ---------- Related services ---------- */
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.related__card:hover { border-color: var(--accent); transform: translateY(-4px); }
.related__card i { width: 20px; height: 20px; color: var(--accent); }
.related__name { font-size: 15px; font-weight: 700; color: var(--text); }
.related__desc { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.related__arrow { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.related__arrow i { width: 14px; height: 14px; }
@media (max-width: 900px) { .related { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .related { grid-template-columns: 1fr; } }

/* ---------- Services card as link (main page) ---------- */
a.service { color: inherit; }
.service__go {
  margin-top: 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
}
.service__go i,
.service__go svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform 0.25s var(--ease); }
a.service:hover .service__go i,
a.service:hover .service__go svg { transform: translateX(4px); }

.services-more {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  font-size: 13.5px;
  color: var(--text-3);
}
.services-more b { color: var(--text-2); font-weight: 700; margin-right: 6px; }
.services-more a { color: var(--text-2); font-weight: 600; transition: color 0.2s; white-space: nowrap; }
.services-more a:hover { color: var(--accent); }
.services-more .dotsep { color: var(--text-3); opacity: 0.5; margin: 0 2px; }

/* ---------- Steps with tabs (inner pages reuse .process) ---------- */
.process--inner .process__step { cursor: default; }

/* ---------- CTA band (mid-page) ---------- */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(700px 300px at 90% 10%, rgba(212, 255, 63, 0.08), transparent 60%),
    var(--surface);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band__title { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 27px); font-weight: 700; line-height: 1.25; max-width: 560px; }
.cta-band__title em { color: var(--accent); font-style: normal; }
.cta-band__text { margin-top: 10px; font-size: 14.5px; color: var(--text-2); max-width: 520px; }

/* ============================================================
   Hero с фотографией
============================================================ */
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.page-hero__grid .page-hero__title {
  max-width: none;
  font-size: clamp(28px, 3.4vw, 44px);
}
.page-hero__grid .page-hero__lead { max-width: none; }
.page-hero__media {
  aspect-ratio: 4 / 3.2;
  border-radius: var(--radius);
}
.page-hero__media-badge {
  position: absolute;
  z-index: 2;
  left: 18px; top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 100px;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-hero__media-badge i { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__media { aspect-ratio: 16 / 10; order: -1; margin-bottom: 6px; }
}

/* ============================================================
   Цена на карточке услуги
============================================================ */
.service__price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 0;
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  align-self: flex-start;
  background: var(--surface);
  white-space: nowrap;
}
.service__price-from { font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.3; }
.service__price-num { font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--accent); }
.service:hover .service__price { border-color: rgba(212, 255, 63, 0.35); }
/* карточки без .service__foot (внутренние страницы) — тот же ритм 16px */
.service > .service__price,
.service > .service__metric,
.service > .service__go { margin-top: 4px; }

/* если в ряду есть карточки-ссылки, у остальных резервируем строку под ссылку —
   иначе метрики в ряду стоят на разной высоте */
.services:has(.service__go) .service:not(:has(.service__go))::after {
  content: "";
  display: block;
  margin-top: 4px;
  height: calc(13.5px * 1.2);
}

/* распорка вместо цены в карточках без прайса — держит сетку ровной */
.service__price--ghost { visibility: hidden; }
@media (max-width: 640px) {
  .service__price--ghost { display: none; }
}

/* ============================================================
   Полоса цен по каналам
============================================================ */
.price-strip {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.price-strip__head {
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.price-strip__title { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.price-strip__note { font-size: 13.5px; color: var(--text-2); }
.price-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.price-strip__item {
  background: var(--surface);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s;
}
a.price-strip__item:hover { background: var(--surface-2); }
.price-strip__item-name { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; }
.price-strip__item-name i { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.price-strip__item-price { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--accent); }
.price-strip__item-price span { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); font-weight: 400; margin-left: 4px; }
.price-strip__item-note { font-size: 12.5px; color: var(--text-3); }
@media (max-width: 900px) { .price-strip__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .price-strip__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Юридические страницы (политика, реквизиты)
============================================================ */
.legal {
  padding: clamp(110px, 15vh, 150px) 0 clamp(60px, 8vh, 100px);
}
.legal__layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: 44px;
}
.legal__toc {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
}
.legal__toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.legal__toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 9px; }
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.25s;
  display: flex;
  gap: 9px;
}
.legal__toc a::before { content: counter(toc) "."; color: var(--text-3); font-family: var(--font-mono); font-size: 12px; }
.legal__toc a:hover { color: var(--accent); }

.legal__body { max-width: 820px; }
.legal__body h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 46px 0 16px;
  scroll-margin-top: 100px;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; }
.legal__body p { color: var(--text-2); font-size: 15.5px; line-height: 1.72; margin-bottom: 14px; }
.legal__body ul, .legal__body ol { margin: 0 0 18px; padding-left: 0; display: flex; flex-direction: column; gap: 9px; }
.legal__body li {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.65;
  padding-left: 24px;
  position: relative;
}
.legal__body ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal__body ol { counter-reset: li; }
.legal__body ol li { counter-increment: li; }
.legal__body ol li::before {
  content: counter(li) ".";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}
.legal__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal__body b, .legal__body strong { color: var(--text); }
.legal__updated {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  margin-top: 18px;
}
.legal__updated i { width: 14px; height: 14px; color: var(--accent); }

/* Таблица реквизитов */
.req {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 22px 0 8px;
}
.req__group-title {
  padding: 14px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.req__row {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 16px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.req__row:last-child { border-bottom: none; }
.req__k { font-size: 13.5px; color: var(--text-3); }
.req__v { font-size: 15px; color: var(--text); font-weight: 600; word-break: break-word; }
.req__v--mono { font-family: var(--font-mono); letter-spacing: 0.02em; font-weight: 500; }
@media (max-width: 640px) {
  .req__row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 980px) {
  .legal__layout { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
}

/* ==========================================================
   Страница «Спасибо» (/spasibo/)
========================================================== */
.thanks-section { padding-top: 150px; }

.thanks {
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
}

.thanks__badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  box-shadow: 0 0 0 10px var(--accent-dim);
}
.thanks__badge i { width: 38px; height: 38px; color: var(--accent-text); stroke-width: 3; }

.thanks__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.thanks__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.thanks__title em { font-style: normal; color: var(--accent); }

.thanks__lead {
  margin-top: 18px;
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 580px;
  margin-inline: auto;
}

.thanks__steps {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  list-style: none;
  counter-reset: none;
}
.thanks__steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.thanks__step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
.thanks__steps b { display: block; font-size: 15.5px; font-weight: 700; }
.thanks__steps p { margin-top: 6px; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

.thanks__actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.thanks__note { margin-top: 20px; font-size: 13.5px; color: var(--text-3); }

.thanks__links {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
}
.thanks__links a { color: var(--text-2); transition: color 0.2s; }
.thanks__links a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .thanks-section { padding-top: 120px; }
  .thanks__steps li { padding: 16px 18px; }
  .thanks__actions .btn { width: 100%; justify-content: center; }
}
