/* =========================================================
   Design system — Артём Сенюков / маркетинг для застройщиков
   1. Tokens
   2. Base & typography
   3. Layout primitives
   4. Components
   5. Sections
   6. Overlays
   7. Responsive
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Ink */
  --ink:        #0E1B14;
  --ink-2:      #4E5F55;
  --ink-3:      #63726A;
  --on-dark:    #FFFFFF;
  --on-dark-2:  rgba(255, 255, 255, 0.78);
  --on-dark-3:  rgba(255, 255, 255, 0.56);

  /* Brand surfaces */
  --brand:      #0B1F15;
  --brand-2:    #123423;
  --brand-3:    #1A4630;

  /* Single action colour */
  --gold:        #DDB86B;
  --gold-top:    #E3C586;
  --gold-bottom: #D7AE56;
  --gold-ledge:  #D09C2E;
  --gold-hover:  #EACC8B;
  --gold-soft:  #F3E5C6;
  --gold-ink:   #0B1F15;

  /* Neutrals */
  --paper:      #F7F5EF;
  --surface:    #FFFFFF;
  --surface-2:  #FBFAF6;
  --line:       #E4E6DF;
  --line-2:     #EFF0EA;
  --line-dark:  rgba(255, 255, 255, 0.14);

  /* Semantic */
  --ok:         #1F7A5A;
  --accent:     #12684D;   /* зелёный акцент на светлом: контраст 6.46 */
  --accent-ink: #0F5A42;
  --err:        #B4342F;

  /* Spacing — 8pt */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Section rhythm */
  --section-y: var(--s9);
  --container: 1200px;
  --gutter: 24px;

  /* Type scale */
  --fs-xs:   13px;
  --fs-sm:   15px;
  --fs-base: 17px;
  --fs-md:   clamp(17px, 1.15vw, 19px);
  --fs-lg:   clamp(19px, 1.5vw, 22px);
  --fs-xl:   clamp(22px, 2.1vw, 28px);
  --fs-2xl:  clamp(26px, 3vw, 36px);
  --fs-3xl:  clamp(30px, 3.7vw, 46px);
  --fs-4xl:  clamp(34px, 4.4vw, 56px);

  --lh-display: 1.1;
  --lh-head:    1.2;
  --lh-body:    1.6;
  --lh-tight:   1.4;

  /* Radii */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-full: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(14, 27, 20, 0.04), 0 2px 8px rgba(14, 27, 20, 0.04);
  --sh-2: 0 2px 4px rgba(14, 27, 20, 0.04), 0 12px 28px rgba(14, 27, 20, 0.07);
  --sh-3: 0 4px 8px rgba(14, 27, 20, 0.05), 0 28px 64px rgba(14, 27, 20, 0.13);

  --header-h: 68px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 2. BASE & TYPOGRAPHY ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--s4);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); line-height: var(--lh-display); }
h2 { font-size: var(--fs-3xl); line-height: var(--lh-display); }
h3 { font-size: var(--fs-lg);  line-height: var(--lh-head); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-md);  line-height: var(--lh-head); letter-spacing: -0.01em; }

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

img, svg { max-width: 100%; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--gold); color: var(--gold-ink); }

/* Accessible focus — one consistent ring everywhere */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.dark :focus-visible,
.hero :focus-visible,
.quiz-section :focus-visible {
  outline-color: var(--gold-hover);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hidden { display: none !important; }

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

/* ---------- 3. LAYOUT PRIMITIVES ---------- */
.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section + .section { padding-top: 0; }

.section-head {
  max-width: 780px;
  margin-bottom: var(--s7);
}

.section-head h2 { margin-bottom: var(--s4); }

.section-head p {
  color: var(--ink-2);
  font-size: var(--fs-md);
  line-height: var(--lh-tight);
}

.dark .section-head p { color: var(--on-dark-2); }

.lead {
  color: var(--ink-2);
  font-size: var(--fs-md);
  line-height: var(--lh-tight);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s4);
  padding: var(--s2) var(--s3);
  border: 1px solid rgba(214, 169, 75, 0.4);
  border-radius: var(--r-full);
  background: rgba(214, 169, 75, 0.1);
  color: #7A5C14;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.dark .eyebrow { color: var(--gold); }

/* ---------- 4. COMPONENTS ---------- */

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 52px;
  padding: var(--s3) var(--s5);
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

/* Иконка внутри кнопки */
/* Иконки: Lucide v1.33.0 — https://lucide.dev
   ISC License. Copyright (c) for portions of Lucide are held by
   Cole Bemis 2013-2022 as part of Feather (MIT).
   All other copyright (c) for Lucide are held by Lucide Contributors 2022.
   Пути вставлены инлайном: ноль внешних запросов, цвет наследуется от родителя. */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-icon { flex: none; width: 19px; height: 19px; }

/* Стрелка в конце кнопки: уезжает вправо на наведении */
.btn-arrow {
  flex: none;
  width: 20px;
  height: 20px;
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn-arrow { transform: translateX(4px); }

.hero-copy .btn { justify-content: space-between; gap: var(--s4); }

/* Объёмная кнопка: градиент + блик сверху + тёмный уступ снизу.
   Уступ даёт ощущение толщины, поэтому кнопка выглядит нажимаемой. */
.btn-primary {
  background: linear-gradient(180deg, var(--gold-top) 0%, var(--gold-bottom) 100%);
  color: var(--gold-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 3px 0 var(--gold-ledge),
    0 8px 18px rgba(120, 88, 20, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #E9CD93 0%, #DCB562 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 4px 0 var(--gold-ledge),
    0 12px 24px rgba(120, 88, 20, 0.34);
}

/* Нажатие: кнопка проседает, уступ почти исчезает */
.btn-primary:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 1px 0 var(--gold-ledge),
    0 3px 8px rgba(120, 88, 20, 0.25);
}

.btn-secondary:active,
.btn-ghost:active { transform: translateY(1px); }

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-secondary:hover { border-color: var(--ink-3); background: var(--surface-2); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.13); }

.btn-lg { min-height: 60px; padding-inline: var(--s6); font-size: var(--fs-md); }
.btn-block { width: 100%; }

.btn:disabled { cursor: not-allowed; opacity: 0.5; }
.btn:disabled:hover { transform: none; }

/* Reassurance line under any CTA */

/* --- Card --- */
.card {
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

.card h3 { margin-bottom: var(--s2); }

.card p {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* --- Text link --- */
.text-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #0F5A42;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-link:hover { color: var(--ok); }

.dark .text-link { color: var(--gold); }

/* ---------- 5. SECTIONS ---------- */

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(14, 27, 20, 0.07);
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex: none;
  min-height: 44px;
  text-decoration: none;
  line-height: 1.15;
}

.brand-mark {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
}

.brand-text { display: grid; }

.brand b {
  display: block;
  color: var(--brand-2);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand small {
  display: block;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.header-nav {
  display: flex;
  gap: var(--s1);
  margin-inline: auto;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.header-nav a:hover { background: rgba(31, 122, 90, 0.08); color: var(--brand-2); }

.header-cta { white-space: nowrap; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-left: auto;
}

.phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--s2);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  white-space: nowrap;
}

.phone:hover { color: var(--ok); }

.messenger-links {
  display: flex;
  gap: 6px;
}

/* Единые плитки: одинаковый размер, скругление и фон у всех трёх */
.msg {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.msg:hover { transform: translateY(-2px); border-color: transparent; }

.msg svg { width: 20px; height: 20px; transition: fill 0.2s var(--ease); }
.msg img { width: 20px; height: 20px; border-radius: 5px; }

.msg--tg svg { fill: #5B6B62; }
.msg--vk svg { fill: #5B6B62; }
.msg--tg:hover { background: #229ED9; }
.msg--vk:hover { background: #0077FF; }
.msg--tg:hover svg,
.msg--vk:hover svg { fill: #fff; }

/* MAX — растровый логотип, приглушаем в покое и раскрываем на наведении */
.msg--max img { filter: grayscale(1) contrast(0.5) brightness(1.25); transition: filter 0.2s var(--ease); }
.msg--max:hover { background: #F1EDFB; }
.msg--max:hover img { filter: none; }

/* --- Hero --- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--s6) var(--s7);
  background:
    radial-gradient(720px 420px at 88% -6%, rgba(214, 169, 75, 0.20), transparent 62%),
    radial-gradient(680px 560px at -8% 104%, rgba(31, 122, 90, 0.16), transparent 62%),
    linear-gradient(180deg, #FCFBF8 0%, var(--paper) 100%);
  color: var(--ink);
}

/* Чертёжная сетка — отсылка к стройке, читается как фактура, а не как узор */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(11, 31, 21, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 21, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 20% 10%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 20% 10%, #000 0%, transparent 72%);
  pointer-events: none;
}

/* Тонкая золотая линия по низу экрана */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 104, 77, 0.4), transparent);
}

.hero h1 { color: var(--ink); }

/* Акцент зелёный, не золотой: золото на светлом даёт контраст 2:1 */
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

/* Чип — зелёный вместо золотого */
.hero .eyebrow {
  border-color: rgba(18, 104, 77, 0.26);
  background: rgba(18, 104, 77, 0.08);
  color: var(--accent-ink);
}

/* Галочки под кнопкой — зелёные */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: var(--s7);
  align-items: center;
}

.hero-copy { padding-block: var(--s5) 0; }

.nowrap { white-space: nowrap; }

.hero-copy .btn { max-width: 560px; text-align: left; }

/* Строка ключевых цифр под первым экраном */
.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  margin-top: var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}

.stats article {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.stats-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-2);
  color: #fff;
}

.stats-icon .icon { width: 24px; height: 24px; stroke-width: 1.9; }

.stats strong {
  display: block;
  color: var(--brand-2);
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.stats article > div > span {
  display: block;
  color: var(--ink-2);
  font-size: var(--fs-xs);
  line-height: 1.35;
}

.hero .lead {
  max-width: 52ch;
  margin-bottom: var(--s6);
  color: var(--ink-2);
  line-height: 1.55;
}

.hero-photo {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  margin-block: calc(var(--s5) * -1);
}

.hero-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  object-fit: cover;
  /* Низ растворяется в фоне — фото не «карточка», а часть первого экрана */
  -webkit-mask-image: linear-gradient(180deg, #000 52%, rgba(0, 0, 0, 0.72) 70%, rgba(0, 0, 0, 0.3) 86%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 52%, rgba(0, 0, 0, 0.72) 70%, rgba(0, 0, 0, 0.3) 86%, transparent 100%);
}

/* --- Problem --- */

/* Тёмно-зелёный якорь страницы: боль показываем на тёмном */
.section--dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block: var(--s9) 0;
  padding-block: var(--section-y);
  background:
    radial-gradient(680px 400px at 88% 0%, rgba(214, 169, 75, 0.14), transparent 62%),
    linear-gradient(158deg, #0A1D13 0%, var(--brand-2) 62%, #0A1D13 100%);
  color: var(--on-dark);
}

/* Карточки на тёмном — стеклянные, не белые */
.dark .card {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

/* Внутри тёмной секции выноска светлая — иначе сливается */
.dark .callout {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-2);
}

/* --- Audit --- */

/* --- Fit / qualification --- */

/* --- Quiz --- */
.quiz-section {
  padding-block: var(--s9);
  background:
    radial-gradient(800px 480px at 88% 6%, rgba(214, 169, 75, 0.16), transparent 60%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%);
  color: var(--on-dark);
}

.quiz-section h2 { color: var(--on-dark); }

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--s5);
  align-items: stretch;
}

.quiz-card {
  display: flex;
  flex-direction: column;
  padding: var(--s6);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-3);
}

/* Форма тянется на всю высоту карточки, кнопки прижаты к низу */
.quiz-card form {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.progress-wrap { margin-bottom: var(--s5); }

.progress-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s2);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.progress-text b { color: var(--brand-2); font-weight: 800; }

.progress-bar {
  height: 6px;
  overflow: hidden;
  border-radius: var(--r-full);
  background: var(--line);
}

.progress-bar span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fade-in 0.3s var(--ease); }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.quiz-step h3 {
  margin-bottom: var(--s5);
  font-size: var(--fs-xl);
  line-height: 1.25;
}

.multi-hint {
  margin: calc(var(--s4) * -1) 0 var(--s4);
  color: #8A6413;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}

.options button {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 60px;
  padding: var(--s3) var(--s4);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

.options button:hover {
  border-color: var(--gold);
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--sh-1);
}

.options button.selected {
  border-color: var(--gold);
  background: rgba(214, 169, 75, 0.14);
  box-shadow: inset 0 0 0 1px var(--gold);
  font-weight: 600;
}

.quiz-option-icon {
  flex: none;
  width: 72px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--gold-soft);
  object-fit: cover;
}

.options-multiple button { padding-right: 48px; }

.options-multiple button::before {
  content: "";
  position: absolute;
  right: var(--s4);
  top: 50%;
  width: 22px; height: 22px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transform: translateY(-50%);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.options-multiple button { position: relative; }

.options-multiple button.selected::before { border-color: var(--gold); background: var(--gold); }

.options-multiple button.selected::after {
  content: "";
  position: absolute;
  right: calc(var(--s4) + 7px);
  top: 50%;
  width: 6px; height: 11px;
  border-right: 2.5px solid var(--gold-ink);
  border-bottom: 2.5px solid var(--gold-ink);
  transform: translateY(-62%) rotate(45deg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}

label { display: grid; gap: var(--s2); font-size: var(--fs-sm); font-weight: 600; }

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  min-height: 52px;
  padding: var(--s3) var(--s4);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: var(--fs-base);
  font-weight: 500;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

input:hover { border-color: var(--ink-3); }

input:focus {
  border-color: var(--gold);
  background: var(--surface);
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 169, 75, 0.2);
}

input[aria-invalid="true"] { border-color: var(--err); }

.field-error {
  min-height: 18px;
  color: var(--err);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
  margin-top: var(--s4);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 400;
  line-height: 1.5;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ok);
}

/* The quiz card is a light island inside a dark section — undo .dark overrides */
.quiz-card .text-link { color: #0F5A42; }
.quiz-card .text-link:hover { color: var(--ok); }

.form-trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.quiz-actions {
  display: flex;
  gap: var(--s3);
  margin-top: auto;
  padding-top: var(--s5);
}

.quiz-actions .btn { flex: 1; }
.quiz-actions #prevBtn { flex: 0 0 auto; }

.error-message {
  min-height: 22px;
  margin: var(--s3) 0 0;
  color: var(--err);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.success-message {
  padding: var(--s6);
  color: var(--ink);
  border-radius: var(--r-md);
  background: rgba(31, 122, 90, 0.1);
}

/* Quiz side panel */
.quiz-bonus {
  display: grid;
  align-content: start;
  gap: var(--s5);
  padding: var(--s6);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.quiz-bonus h3 { margin: 0; color: var(--on-dark); font-size: var(--fs-md); }

.quiz-bonus-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--s3);
  align-items: center;
}

.quiz-bonus-item img {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: var(--gold);
  object-fit: cover;
}

.quiz-bonus-item p {
  margin: 0;
  color: var(--on-dark-2);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.quiz-bonus footer {
  padding-top: var(--s5);
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-3);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

/* Alternative contact path — for people who won't do a quiz */
.quiz-alt {
  margin-top: var(--s5);
  padding: var(--s5);
  border: 1px dashed var(--line-dark);
  border-radius: var(--r-md);
  color: var(--on-dark-2);
  font-size: var(--fs-sm);
  text-align: center;
}

.quiz-alt-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: center;
}

.quiz-alt-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s2) var(--s4);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.07);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}

.quiz-alt-links a:hover { background: rgba(255, 255, 255, 0.15); }
.quiz-alt-links svg, .quiz-alt-links img { width: 20px; height: 20px; }
.quiz-alt-links img { border-radius: 5px; }

/* --- Footer --- */
.site-footer {
  padding-block: var(--s8);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}

.site-footer strong {
  display: block;
  margin-bottom: var(--s3);
  color: var(--ink);
  font-size: var(--fs-sm);
}

.site-footer p { margin-bottom: var(--s2); line-height: 1.55; }

.legal-links { display: grid; gap: var(--s2); justify-items: start; }

.legal-links .text-link { min-height: 32px; display: inline-flex; align-items: center; }

/* ---------- 6. OVERLAYS ---------- */

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: var(--s3);
  right: var(--s3);
  bottom: var(--s3);
  z-index: 60;
  display: none;
  min-height: 56px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--gold);
  color: var(--gold-ink);
  font-size: var(--fs-md);
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(11, 31, 21, 0.3);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.sticky-cta.is-visible { display: inline-flex; align-items: center; justify-content: center; }
.sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

body.cookie-open .sticky-cta { bottom: 68px; }

/* Cookie bar — slim, never covers content */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  padding: var(--s2) var(--s4);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(14, 27, 20, 0.08);
}

.cookie-bar.is-visible { display: flex; }

.cookie-bar p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

.cookie-bar .btn { flex: none; min-height: 44px; padding-inline: var(--s5); font-size: var(--fs-xs); }

/* Modal shell — shared by popup, legal, lightbox */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s5);
  background: rgba(11, 31, 21, 0.62);
  backdrop-filter: blur(4px);
}

.modal.is-open { display: flex; animation: fade-in 0.2s var(--ease); }

.modal__panel {
  position: relative;
  width: min(600px, 100%);
  max-height: calc(100dvh - var(--s8));
  overflow-y: auto;
  padding: var(--s7);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-3);
}

.modal__panel--wide { width: min(800px, 100%); }

.modal__close {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 26px;
  line-height: 1;
  transition: background 0.2s var(--ease);
}

.modal__close:hover { background: var(--line); color: var(--ink); }

.legal-content h2 { margin-bottom: var(--s5); font-size: var(--fs-xl); }
.legal-content h3 { margin-top: var(--s5); font-size: var(--fs-md); }
.legal-content p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.65; }

.lightbox__panel {
  width: min(1640px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  padding: var(--s5);
  background: var(--surface);
  border-radius: var(--r-lg);
}

.lightbox__panel strong {
  display: block;
  margin: 0 var(--s8) var(--s4) 0;
  font-size: var(--fs-md);
}

.lightbox__viewport { overflow: hidden; }

.lightbox__panel img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 112px);
  object-fit: contain;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

@media (max-width: 720px) {
  .modal--wide-shot {
    align-items: stretch;
    padding: 8px;
  }

  .modal--wide-shot .lightbox__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: none;
    height: 100%;
    padding: var(--s5);
    overflow: hidden;
  }

  .modal--wide-shot .lightbox__viewport {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
    background: var(--surface-2);
  }

  .modal--wide-shot .lightbox__panel img {
    width: 1200px;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }
}

/* --- Thank-you page --- */
.thanks-page {
  min-height: 100dvh;
  background:
    radial-gradient(800px 500px at 82% 12%, rgba(214, 169, 75, 0.18), transparent 60%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%);
}

.thanks-screen { display: grid; place-items: center; min-height: 100dvh; padding: var(--s6) var(--gutter); }

.thanks-card {
  width: min(720px, 100%);
  padding: clamp(24px, 5vw, 56px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-3);
}

.thanks-card h1 { font-size: var(--fs-3xl); }
.thanks-card > p { color: var(--ink-2); font-size: var(--fs-md); line-height: 1.6; }

.thanks-next {
  display: grid;
  gap: var(--s3);
  margin: var(--s6) 0;
  padding: var(--s5);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.thanks-next strong { font-size: var(--fs-sm); }

.thanks-next li {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.thanks-next ul { display: grid; gap: var(--s2); margin: 0; padding-left: 20px; }

.thanks-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }

.thanks-socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }

.thanks-social {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 56px;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.thanks-social:hover { border-color: var(--gold); background: var(--surface-2); }
.thanks-social img, .thanks-social svg { width: 24px; height: 24px; flex: none; border-radius: 6px; }
.thanks-social svg { fill: #229ED9; }
.thanks-social:last-child svg { fill: #0077FF; }

/* ---------- 7. RESPONSIVE ---------- */
@media (max-width: 1100px) {
  :root { --section-y: var(--s8); }

  .hero-grid { gap: var(--s6); }
  .quiz-layout { grid-template-columns: 1fr; }
  .quiz-bonus { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .quiz-bonus h3 { grid-column: 1 / -1; }
  .quiz-bonus footer { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .header-nav { display: none; }
  .header-cta { display: none; }

}

@media (max-width: 720px) {
  :root {
    --section-y: var(--s7);
    --gutter: 16px;
    --header-h: 60px;
  }

  body { font-size: 16px; }

  h1 { font-size: 30px; line-height: 1.15; }
  h2 { font-size: 26px; line-height: 1.18; }

  .section-head { margin-bottom: var(--s6); }

  .header-inner { gap: var(--s3); }
  .header-actions { gap: var(--s1); }
  .phone { font-size: var(--fs-xs); padding-inline: var(--s1); }
  .brand b { font-size: var(--fs-xs); }
  .brand small { font-size: 11px; }
  .brand { gap: var(--s2); }
  .brand-mark { width: 34px; height: 34px; }
  .msg { width: 40px; height: 40px; border-radius: 11px; }
  /* В шапку помещается один мессенджер; остальные — в подвале */
  .header-actions .msg--max,
  .header-actions .msg--vk { display: none; }

  .hero { padding-block: var(--s5) var(--s7); }
  .hero .lead { margin-bottom: var(--s5); }
  .hero-grid { gap: var(--s5); }
  .hero::before { background-size: 44px 44px; }

  /* Чип над заголовком — мельче, чтобы не спорил с h1 */
  .hero .eyebrow {
    padding: 6px var(--s3);
    font-size: 11px;
    letter-spacing: 0.03em;
  }

  /* Compact stats — no more one screen per fact */
  .stats { grid-template-columns: 1fr; gap: var(--s4); margin-top: var(--s6); }
  .stats-icon { width: 40px; height: 40px; }
  .stats-icon { width: 44px; height: 44px; }
  .stats-icon .icon { width: 22px; height: 22px; }

  /* Одна колонка на мобильном */

  /* Одна колонка на мобильном */
  .form-grid,
  .options,
  .footer-grid,
  .thanks-socials,

  /* Одна колонка на мобильном. Специально отдельными правилами,
     чтобы правка одного блока не сносила остальные. */
  .form-grid { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .thanks-socials { grid-template-columns: 1fr; }

  .quiz-card { padding: var(--s4); border-radius: var(--r-md); }
  .quiz-step h3 { margin-bottom: var(--s4); font-size: 21px; }
  .options button { min-height: 54px; }
  .quiz-option-icon { width: 56px; height: 40px; }
  .quiz-bonus { grid-template-columns: 1fr; padding: var(--s5); }
  .quiz-actions { flex-direction: column-reverse; }
  .quiz-actions .btn { width: 100%; }

  .modal { padding: var(--s3); align-items: flex-end; }
  .modal__panel { padding: var(--s6) var(--s4) var(--s5); max-height: calc(100dvh - var(--s7)); border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .modal__close { top: var(--s2); right: var(--s2); }

  .cookie-bar { flex-direction: row; gap: var(--s3); padding: var(--s2) var(--s3); }
  .cookie-bar p { font-size: 11px; }
  .cookie-bar .btn { padding-inline: var(--s4); }

  /* Footer must clear the sticky CTA */
  .site-footer { padding-bottom: 140px; }
}

@media (max-width: 400px) {
  h1 { font-size: 26px; }
  .brand small { display: none; }
  .brand b { font-size: 12px; max-width: 120px; line-height: 1.2; }
  .cookie-bar p { font-size: 10px; }
  .phone { font-size: 12px; }
}

/* =========================================================
   Компоненты по ТЗ: боковой блок квиза, результаты,
   отзывы, финальный оффер, попап звонка, анимации
   ========================================================= */

/* Центрированная шапка секции */
.section-head--center {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.section-head h2 em { font-style: normal; color: var(--accent); }
.dark .section-head h2 em,
.quiz-section h2 em { color: var(--gold); }

/* --- Боковой блок квиза (ТЗ п.4) --- */
.quiz-bonus-author {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: var(--s4);
  align-items: center;
}

.quiz-bonus-author img {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(214, 169, 75, 0.5);
  border-radius: var(--r-full);
  object-fit: cover;
  object-position: 50% 32%;
}

.quiz-bonus-author strong {
  display: block;
  color: var(--on-dark);
  font-size: var(--fs-md);
  font-weight: 700;
}

.quiz-bonus-author em {
  display: block;
  margin-top: 2px;
  color: var(--on-dark-3);
  font-size: var(--fs-xs);
  font-style: normal;
}

.quiz-bonus-title {
  margin: 0;
  color: var(--on-dark);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.45;
}

.quiz-bonus-list {
  display: grid;
  gap: var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: bonus;
}

.quiz-bonus-list li {
  position: relative;
  padding-left: 40px;
  color: var(--on-dark-2);
  font-size: var(--fs-sm);
  line-height: 1.45;
  counter-increment: bonus;
}

.quiz-bonus-list li b { color: var(--on-dark); font-weight: 700; }

.quiz-bonus-list li::before {
  content: counter(bonus);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--gold);
  color: var(--gold-ink);
  font-size: var(--fs-xs);
  font-weight: 800;
}

/* --- Отзывы --- */

/* --- Финальный оффер --- */
.final-offer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  gap: var(--s7);
  align-items: center;
  padding: var(--s8);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 380px at 90% 0%, rgba(214, 169, 75, 0.16), transparent 60%),
    linear-gradient(158deg, #0A1D13 0%, var(--brand-2) 100%);
  color: var(--on-dark);
}

.final-offer h2 { color: var(--on-dark); }
.final-offer h2 em { font-style: normal; color: var(--gold); }
.final-offer p { color: var(--on-dark-2); font-size: var(--fs-md); }

.final-offer-stats { display: grid; gap: var(--s4); }

.final-offer-stats article {
  padding: var(--s4) var(--s5);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
}

.final-offer-stats b {
  display: block;
  color: var(--gold);
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.final-offer-stats span {
  display: block;
  margin-top: 2px;
  color: var(--on-dark-3);
  font-size: var(--fs-xs);
}

/* --- Подвал --- */
.footer-cta { display: grid; gap: var(--s4); align-content: start; justify-items: start; }

/* --- Попап «Заказать звонок» (ТЗ п.7) --- */
.callback { width: min(460px, 100%); text-align: center; }
.callback h2 { margin-bottom: var(--s2); font-size: clamp(23px, 2.1vw, 29px); }
.callback-sub { margin-bottom: var(--s5); color: var(--ink-2); font-size: var(--fs-sm); }
.callback form { display: grid; gap: var(--s3); }
.callback input[type="text"],
.callback input[type="tel"] { text-align: center; }
.callback .consent { margin-top: var(--s2); text-align: left; }
.callback .error-message { margin: 0; }

/* Пустой блок ошибки не должен раздвигать поля */
.callback .field-error:empty { display: none; }

/* --- Анимации: появление при скролле --- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in { opacity: 1; transform: none; }

/* Каскад для соседних карточек */

.js .stats article {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.stats.is-in article { opacity: 1; transform: none; }
.stats.is-in article:nth-child(2) { transition-delay: 0.09s; }
.stats.is-in article:nth-child(3) { transition-delay: 0.18s; }

/* Фото героя выезжает мягче остальных */
.js .hero-photo img {
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  animation: hero-in 0.9s var(--ease) 0.15s forwards;
}

@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

/* Кнопка слегка «дышит» тенью на наведении */
.btn-primary { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .stats article { opacity: 1 !important; transform: none !important; }
  .js .hero-photo img { opacity: 1; animation: none; transform: none; }
}

/* --- Адаптив новых блоков --- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; margin-block: 0; }
  .hero-photo img { max-width: 430px; }
  .final-offer { grid-template-columns: 1fr; padding: var(--s7); }
  .final-offer-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .hero-copy .btn { max-width: none; text-align: center; justify-content: center; }
  .hero-photo { justify-self: center; margin-block: 0; }
  .hero-photo img { max-width: 340px; }
  .final-offer { padding: var(--s5); border-radius: var(--r-lg); }
  .final-offer-stats { grid-template-columns: 1fr; gap: var(--s3); }
  .footer-cta .btn { width: 100%; }
  .quiz-bonus-author { grid-template-columns: 56px minmax(0, 1fr); }
  .quiz-bonus-author img { width: 56px; height: 56px; }
  .options-compact { grid-template-columns: 1fr; }
}

/* =========================================================
   Кейсы: цифра ведёт, скриншот подтверждает
   ========================================================= */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
}

.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.case-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }

.case-head { padding: var(--s6) var(--s6) var(--s5); }

.case-tag {
  display: inline-block;
  margin-bottom: var(--s3);
  color: #7A5C14;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-metric {
  display: block;
  margin-bottom: var(--s2);
  color: var(--brand-2);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* Там, где честной цифры нет, слот занимает короткая фраза */
.case-metric--text {
  font-size: clamp(20px, 1.9vw, 25px);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.case-note {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* Скриншот показываем целиком — обрезка прятала как раз те цифры,
   ради которых он и стоит на странице */
.case-shot {
  position: relative;
  display: block;
  width: 100%;
  margin-top: auto;
  padding: var(--s4);
  border: 0;
  border-top: 1px solid var(--line-2);
  background: var(--surface-2);
  cursor: zoom-in;
}

.case-shot img {
  display: block;
  width: 100%;
  height: 250px;
  border-radius: var(--r-sm);
  background: #fff;
  object-fit: contain;
  object-position: center;
}

.case-card--crm .case-shot img {
  object-fit: cover;
  object-position: center top;
}

.case-card--metrics .case-shot img {
  object-position: left center;
}

.case-zoom {
  position: absolute;
  right: var(--s5);
  bottom: var(--s5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--r-full);
  background: rgba(11, 31, 21, 0.72);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  opacity: 0.75;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}

.case-shot:hover .case-zoom,
.case-shot:focus-visible .case-zoom { opacity: 1; background: rgba(11, 31, 21, 0.92); }

.cases-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.cases-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.cases-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 900px) {
  .cases-grid { grid-template-columns: 1fr; }
  .case-head { padding: var(--s5) var(--s5) var(--s4); }
  .case-shot img { height: 200px; }
}

/* =========================================================
   Отзывы: цитата читается сразу, скриншот подтверждает
   ========================================================= */
.reviews-list {
  display: grid;
  gap: var(--s6);
  max-width: 1000px;
  margin-inline: auto;
}

.review {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--s7);
  align-items: center;
  padding: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

/* Чередуем стороны. Меняем и порядок, и ширины колонок — иначе телефон
   попадает в широкую колонку и раздувается. */
.review--flip { grid-template-columns: minmax(0, 1fr) 260px; }
.review--flip .review-shot { order: 2; }

.review-shot { margin: 0; }

.review-shot button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  cursor: zoom-in;
  transition: transform 0.25s var(--ease);
}

.review-shot button:hover { transform: translateY(-3px); }

.review-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
}

.review-shot .case-zoom { right: 50%; bottom: var(--s4); transform: translateX(50%); }
.review-shot button:hover .case-zoom { transform: translateX(50%); }

.review-quote { margin: 0; }

.review-quote p {
  margin-bottom: var(--s4);
  color: var(--ink);
  font-size: var(--fs-md);
  line-height: 1.55;
}

.review-quote p + p { color: var(--ink-2); font-size: var(--fs-sm); }

.review-quote footer {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}

.review-quote footer strong { font-size: var(--fs-md); font-weight: 700; }

.review-quote footer span { color: var(--ink-3); font-size: var(--fs-sm); }

@media (max-width: 860px) {
  .review {
    grid-template-columns: 1fr;
    gap: var(--s5);
    padding: var(--s5);
  }

  .review-shot { order: 2 !important; max-width: 300px; margin-inline: auto; }
  .review-quote { order: 1; }
}
