/* ibonus — стили лендинга. Токены палитры: SPEC.md, раздел 3. */

/* Шрифты со своего сервера (scripts/build_fonts.py, лицензия OFL — assets/fonts/OFL-*.txt) */
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F5F8F7;
  --surface: #FFFFFF;
  --text: #12201B;
  --muted: #4F5F59;
  --border: #DCE5E1;
  --accent: #0F7A5F;
  --accent-bg: #E0F2EC;
  --accent-2: #1E5BB8;
  --on-accent: #FFFFFF;
  --control-border: #8A9C95; /* ≥ 3:1 к фону — рамки кнопок и полей */

  --font-head: "Unbounded", "Trebuchet MS", sans-serif;
  --font-body: "Onest", "Segoe UI", "Helvetica Neue", sans-serif;
  --radius: 14px;
  --radius-lg: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(18 32 27 / 6%), 0 4px 16px rgb(18 32 27 / 5%);
  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0E1513;
  --surface: #16201D;
  --text: #E8F0ED;
  --muted: #9DB0A8;
  --border: #27352F;
  --accent: #3CC9A0;
  --accent-bg: #123229;
  --accent-2: #7EAAF5;
  --on-accent: #0E1513;
  --control-border: #5E726A;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%);
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 72px; }
}

/* ---------- база ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.75rem, 1.2rem + 2.8vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.375rem); }
h3 { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }

p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
/* «₽» в <abbr title="рублей"> — чтобы скринридер читал «рублей»; выглядит как обычный текст */
.rub { text-decoration: none; cursor: inherit; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-2); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: 600 1rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 56px; padding: 14px 24px; font-size: 1.0625rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--control-border); }
.btn-secondary:hover { border-color: var(--text); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { background: var(--accent-bg); }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-2);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  color: var(--text);
}
.logo { height: 26px; width: auto; aspect-ratio: 4254 / 890; color: var(--text); fill: var(--accent); } /* fill — метка над «i» (без inline-стилей в SVG: их блокирует CSP) */

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }
.burger[aria-expanded="true"] .icon-menu { display: none; }

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 8px var(--gutter) 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav.is-open { display: block; }
.nav-list { list-style: none; margin-bottom: 16px; }
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-list a:hover { color: var(--accent); }
.nav-cta { width: 100%; }

@media (min-width: 1024px) {
  .burger { display: none; }
  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
    order: 0;
  }
  .nav-list { display: flex; gap: 4px; margin: 0; }
  .nav-list a { padding: 0 12px; border: 0; min-height: 44px; }
  .nav-cta { width: auto; }
  .header-inner { gap: 16px; }
  .logo { height: 28px; }
}

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

.section { padding-block: clamp(56px, 4rem + 3vw, 112px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.125rem; }

.overline {
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.lead { color: var(--muted); font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); max-width: 40em; }

/* ---------- первый экран ---------- */

/* Иллюстрация нарисована с пустой левой частью: на десктопе она — фон справа, текст поверх пустого места.
   Тёмный вариант (hero-dark) выбирается <source media="(prefers-color-scheme: dark)">, а при ручном
   переключении темы — main.js (syncThemedPictures). */
.hero { position: relative; overflow: hidden; padding-block: 32px 40px; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.hero-text { position: relative; z-index: 1; }
.hero-text h1 { margin-bottom: 20px; }
.hero-text .lead { margin-bottom: 28px; }
.hero-text .btn-row .btn { flex: 1 1 260px; }

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  color: var(--muted);
  font-size: .9375rem;
}
.trust li { display: flex; align-items: center; gap: 8px; }
@media (min-width: 1280px) { .hero-text .trust { width: max-content; flex-wrap: nowrap; } }
.trust .icon { width: 20px; height: 20px; color: var(--accent); }

.hero-media { margin: 0 calc(-1 * var(--gutter)); }
.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 100% 50%; /* на телефоне — правая часть: смартфон и значки */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}

@media (min-width: 600px) and (max-width: 959px) {
  .hero-media img { aspect-ratio: 4 / 3; object-position: 80% 50%; }
}

@media (min-width: 960px) {
  .hero { padding-block: 72px 96px; min-height: min(78vh, 720px); display: flex; align-items: center; }
  .hero-grid { display: block; width: 100%; }
  .hero-text { max-width: min(580px, 50%); }
  .hero-text .btn-row .btn { flex: 0 1 auto; }
  /* Картинка 4:3 прижата вправо и центрирована по высоте. Значки на ней начинаются примерно на 40 % ширины,
     т. е. в 0,8 × высоты от правого края; высота ограничена так, чтобы на 960–1200 px они не заходили под текст. */
  .hero-media {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: min(100%, calc(62.5vw - 60px));
    aspect-ratio: 4 / 3;
    margin: 0;
  }
  .hero-media picture { display: block; height: 100%; }
  .hero-media img {
    height: 100%;
    aspect-ratio: auto;
    /* края картинки растворяются в фоне страницы — без шва */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
    mask-composite: intersect;
  }
}

@media (min-width: 1280px) {
  /* 4 строки вместо 5: чуть меньше кегль и шире колонка (значки иллюстрации остаются справа от текста) */
  .hero-text { max-width: 640px; }
  .hero-text h1 { font-size: 3rem; }
}

/* ---------- для кого ---------- */

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
/* «Для кого» — спокойные метки, а не кнопки: без рамки и «пилюли», мягкий фон акцента */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  background: var(--accent-bg);
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: default;
}
.chip .icon { color: var(--accent); }

/* ---------- карточки ---------- */

.cards { list-style: none; display: grid; gap: 16px; }
.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.section-alt .card { background: var(--bg); }
.card h3 { margin: 16px 0 8px; }
.card p { margin: 0; color: var(--muted); }
.icon-lg { width: 32px; height: 32px; color: var(--accent); stroke-width: 1.75; }

@media (min-width: 640px) { .cards-4, .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.price-card { display: flex; flex-direction: column; }
.price-card .price {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
}

.offer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 12px;
  padding: 16px 20px;
  background: var(--accent-bg);
  border-radius: var(--radius);
  font-weight: 600;
}
.offer .icon { color: var(--accent); }
.note { color: var(--muted); font-size: .9375rem; }

/* ---------- цифры ---------- */

.stats { list-style: none; display: grid; gap: 16px; }
.stat {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-value {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
}
.stat-label { margin: 0 0 12px; }
.stat-source { margin-top: auto; color: var(--muted); font-size: .8125rem; }
a.stat-source, .stat-source a { color: var(--muted); }
/* подзаголовок блока внутри секции («Что вы получаете», «Карточка места: до и после») — один уровень */
.subhead { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.75rem); }
.stats-title { margin: clamp(40px, 5vw, 64px) 0 20px; }
.stats-accent .stat { background: var(--accent-bg); border-color: transparent; }
.stats-accent .stat-value { color: var(--text); }
.stats-accent .stat { padding: 20px; }
/* «Что вы получаете» на телефоне: одна колонка, строка «цифра — подпись» */
@media (max-width: 639px) {
  .stats-accent { gap: 8px; }
  .stats-accent .stat { flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px; }
  .stats-accent .stat-value { flex: none; min-width: 2.6em; margin: 0; font-size: 1.75rem; }
  .stats-accent .stat-label { margin: 0; }
}

@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- примеры: вкладки ---------- */

.tablist {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 4px 8px;
  margin: 0 -4px 20px;
  scrollbar-width: thin;
}
.tab {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 56px;
  padding: 10px 18px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: 600 1rem/1.25 var(--font-body);
  text-align: left;
  cursor: pointer;
}
.tab span { color: var(--muted); font-weight: 400; font-size: .875rem; }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tab[aria-selected="true"] span { color: var(--on-accent); }
.tabpanel { display: grid; gap: 24px; align-items: center; }
.tabpanel[hidden] { display: none; }
.tab-preview img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.tab-text p { color: var(--muted); }
@media (min-width: 960px) {
  .tablist { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .tabpanel { grid-template-columns: 1.5fr 1fr; gap: 48px; }
}

/* ---------- примеры: до/после ---------- */

.ba { display: grid; gap: 28px; margin-top: clamp(56px, 7vw, 96px); align-items: center; }
.ba-intro p { color: var(--muted); }
.ba-legend { list-style: none; display: grid; gap: 8px; margin-top: 20px; color: var(--muted); font-size: .9375rem; }
.ba-legend strong { color: var(--text); }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--control-border); border-radius: var(--radius); }
.segmented button {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: 600 .9375rem/1.2 var(--font-body);
  cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.ba-stage {
  --pos: 50%;
  position: relative;
  display: grid;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}
.ba-layer { grid-area: 1 / 1; min-width: 0; }
.ba-layer img { -webkit-user-drag: none; pointer-events: none; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: .8125rem;
  font-weight: 600;
  pointer-events: none;
}
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; background: var(--accent); color: var(--on-accent); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 44px;
  margin-left: -22px;
  display: grid;
  place-items: center;
  cursor: ew-resize;
}
.ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: var(--accent);
}
.ba-grip {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow);
}
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible .ba-grip { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.ba-noscript { grid-area: 1 / 1; padding: 24px; }

@media (min-width: 960px) {
  .ba { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .ba-intro { position: sticky; top: calc(var(--header-h) + 32px); padding-top: 24px; }
}

/* обобщённая карточка места */
.place {
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  font-size: .9375rem;
}
.place-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: 190px; background: var(--border); }
.place-photos > * { min-width: 0; min-height: 0; }
.place-photos > :first-child { grid-row: span 2; }
.place-photos img { width: 100%; height: 100%; object-fit: cover; }
.place-photos picture { display: block; height: 100%; }
.place-nophoto, .place-more {
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--muted);
  font-size: .8125rem;
  text-align: center;
}
.place-more { background: var(--accent-bg); color: var(--text); font-weight: 600; }
.place-body { padding: 16px 18px 18px; }
.place-name { margin: 0 0 2px; font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; }
.place-meta { margin: 0 0 10px; color: var(--muted); }
.place-desc { margin: 0 0 14px; }
.place-block { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border); }
.place-label { margin: 0 0 6px; font-weight: 600; }
.place-empty { margin: 0; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.place-empty .icon { width: 18px; height: 18px; }
.place-prices { list-style: none; display: grid; gap: 4px; }
.place-prices li { display: flex; justify-content: space-between; gap: 12px; }
.place-prices b { white-space: nowrap; }
.skel { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.skel i { display: block; height: 8px; border-radius: 4px; background: var(--border); }
.skel i:nth-child(2) { width: 80%; }
.skel i:nth-child(3) { width: 55%; }
.skel + .skel { margin-top: 6px; }
.place-reply { margin: 6px 0 0 18px; background: var(--accent-bg); }
.place-reply small { color: var(--text); font-weight: 600; font-size: .75rem; }
.place-reply i { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.place-count { margin: 8px 0 0; color: var(--muted); font-size: .8125rem; }
.place-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.mock-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--control-border);
  font-weight: 600;
  font-size: .875rem;
}
.mock-btn.is-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- как работаем ---------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.step {
  position: relative;
  padding: 24px 24px 24px 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 600;
}
.step h3 { margin: 6px 0 6px; }
.step p { margin: 0; color: var(--muted); }

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step { padding: 80px 20px 24px; }
  .step::before { left: 20px; top: 24px; }
  /* в пяти узких колонках 17 px давали ≈ 22 знака в строке и 5–6 строк — мельче и плотнее */
  .step h3 { font-size: 1.0625rem; }
  .step p { font-size: .9375rem; line-height: 1.5; }
}

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

.form-grid { display: grid; gap: 40px; }
.form-intro h3 { margin-top: 28px; }
.checklist { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--accent); margin-top: 2px; }
.tg-btn { width: 100%; }
.form-box {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.form-frame {
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 12px; /* текст формы не уходит под скругление */
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.form-frame iframe { width: 100%; height: 760px; border: 0; display: block; }
.form-placeholder { padding: 24px; color: var(--muted); text-align: center; }
.form-fallback { margin: 16px 0 8px; }

@media (min-width: 960px) {
  .form-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
  .form-frame { padding: 20px; }
  .tg-btn { width: auto; }
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq-more {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 860px;
}
.faq-more-title { margin: 0 0 4px; font-family: var(--font-head); font-size: 1.0625rem; font-weight: 600; }
.faq-more p:not(.faq-more-title) { color: var(--muted); }
/* десктоп: слева заголовок и «Не нашли ответа?», справа вопросы */
@media (min-width: 1024px) {
  .faq-wrap {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 2fr;
    grid-template-areas: "head list" "more list";
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    align-items: start;
  }
  .faq-head { grid-area: head; margin-bottom: 0; }
  .faq { grid-area: list; max-width: none; }
  .faq-more { grid-area: more; margin-top: 24px; }
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* ---------- подвал ---------- */

.site-footer {
  padding-block: 40px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: .9375rem;
}
.footer-grid { display: grid; gap: 24px; }
.footer-brand .logo { height: 30px; margin-bottom: 12px; }
/* слоган и заголовки колонок — один уровень: фирменный шрифт, ≈ 1,15× размера ссылок */
.footer-tagline, .footer-title { font-family: var(--font-head); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.footer-tagline { margin-bottom: 0; }
.footer-title { margin-bottom: 8px; }
.footer-list { list-style: none; }
/* в подвале ссылки компактнее 44 px (решение владельца), но не меньше 32 px — с запасом к минимуму WCAG 24 px */
.footer-list a, .footer-list .link-btn { display: inline-flex; align-items: center; min-height: 32px; }
.footer-legal {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .875rem;
}
.footer-legal p { margin-bottom: .25em; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; }
}

/* ---------- панель согласия на cookie (consent.js; нейтральные классы — см. CLAUDE.md, «Браузеры и блокировщики») ---------- */

.consent-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
}
.consent-panel[hidden] { display: none; }
.consent-inner {
  max-width: 960px;
  margin-inline: auto;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgb(0 0 0 / 14%);
  font-size: .9375rem;
}
.consent-inner p { margin: 0 0 12px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 768px) {
  .consent-inner { display: flex; align-items: center; gap: 24px; }
  .consent-inner p { margin: 0; }
  .consent-actions { flex: none; display: flex; }
  .consent-actions .btn { min-width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- юридические страницы и 404 ---------- */

.legal { max-width: calc(780px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal ul { padding-left: 1.25em; margin-bottom: 1em; }
.legal li { margin-bottom: .4em; }
.legal-meta { color: var(--muted); }
.legal code { font-size: .9em; }
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal th { color: var(--muted); font-weight: 600; }
