/* Стили лендинга поверх base.css. Правила: docs/design.md */

/* ───────── Первый экран ───────── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.photo { position: absolute; z-index: -1; top: 0; right: 0; left: 0; height: 64svh; overflow: hidden; }
.photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 58%;
  transform: scale(1.08); filter: brightness(.45) saturate(.9);
  transition: transform 2.6s var(--ease-in), filter 2.2s var(--ease-in);
}
.photo.is-lit img { transform: none; filter: brightness(.92) saturate(.95); }
.photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.photo [data-water] { mix-blend-mode: screen; opacity: 0; transition: opacity 1.6s var(--ease-in) .8s; }
.photo.is-lit [data-water].is-on { opacity: .55; }
.no-gl [data-water] { display: none; }
.photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(16, 22, 21, .75) 0%, rgba(16, 22, 21, 0) 22%),
    linear-gradient(to top, var(--bg) 4%, rgba(16, 22, 21, .82) 34%, rgba(16, 22, 21, .25) 62%, rgba(16, 22, 21, 0) 80%);
}
.hero .body { flex: 1; display: grid; align-content: end; gap: 22px; padding-top: 8px; padding-bottom: clamp(20px, 4vh, 48px); }
.hero .text { display: grid; gap: 16px; justify-items: start; }
.hero .h1 { font-size: min(clamp(46px, 5.4vw + 25px, 104px), 12vh); letter-spacing: -0.045em; line-height: .96; text-shadow: 0 2px 24px rgba(16, 22, 21, .5); }
.hero .lead { color: #B3BAB7; }
.hero .text .btn-ghost { width: 100%; }
.hero .facts { width: 100%; }

/* Квиз-карточка */
.quiz {
  background: rgba(23, 32, 30, .96);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px; display: grid; gap: 14px;
}
.quiz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.quiz-title { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.step-n { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 33.3%; background: var(--accent); transition: width .32s var(--ease-state); }
.q { margin: 0; padding: 0; border: 0; min-width: 0; }
.q legend { padding: 0; margin-bottom: 10px; font-size: 15px; color: var(--ink); }
.q[hidden] { display: none; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opts.two { grid-template-columns: repeat(2, 1fr); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-btn);
  font-size: 15px; text-align: center; line-height: 1.15; cursor: pointer;
  transition: border-color .16s var(--ease-state), background-color .16s var(--ease-state);
}
.opt span:hover { border-color: var(--muted); }
.opt input:checked + span { border-color: var(--ink); background: #1D2826; }
.opt input:checked + span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.sum { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.sum b { color: var(--ink); font-weight: 500; }
.quiz .btn-main { width: 100%; }
.note { margin: 0; font-size: 13px; color: var(--muted); }
.back { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.back:hover { color: var(--ink); }
.back[hidden] { display: none; }

@media (max-width: 959px) {
  .hero .lead { font-size: 16px; }
  .hero .note { display: none; }
}
@media (min-width: 960px) {
  .photo {
    left: auto; width: 60vw; height: auto; bottom: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 18%, #000 38%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 18%, #000 38%);
  }
  .photo img { object-position: 50% 88%; }
  .photo::after {
    background:
      linear-gradient(90deg, rgba(16, 22, 21, .6) 0%, rgba(16, 22, 21, .3) 30%, rgba(16, 22, 21, 0) 48%),
      linear-gradient(to bottom, rgba(16, 22, 21, .7) 0%, rgba(16, 22, 21, 0) 16%),
      linear-gradient(to top, rgba(16, 22, 21, .55) 0%, rgba(16, 22, 21, 0) 26%);
  }
  .hero .h1 { text-shadow: none; }
  .hero .lead { color: var(--muted); }
  .hero .body { grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); align-content: center; align-items: center; gap: clamp(40px, 5vw, 96px); }
  .hero .text { gap: 26px; }
  .hero .text .btn-ghost { width: auto; }
  .quiz { padding: 28px; gap: 18px; }
  .quiz-title { font-size: 24px; }
  .opt span { height: 56px; }
  .hero .facts { gap: 24px; max-width: 520px; }
}

/* ───────── Общее для секций ───────── */
.sec { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.sec-light {
  background: var(--ink); color: var(--paper-ink);
  --line: var(--paper-line);
}
.h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 2.6vw + 20px, 60px);
  letter-spacing: -0.035em; line-height: 1.02; margin: 0;
  text-wrap: balance;
}
.h2 em { font-style: normal; font-weight: 300; font-variation-settings: "slnt" -10, "CRSV" 1, "SHRP" 100; }
.sec-head { display: grid; gap: 16px; max-width: 820px; margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head p { margin: 0; color: var(--muted); font-size: clamp(17px, .4vw + 15.5px, 20px); line-height: 1.45; max-width: 36em; }
.sec-light .sec-head p { color: var(--paper-muted); }
.sec-light .btn-ghost { color: var(--paper-ink); border-color: var(--paper-line); background: transparent; }
.sec-light .btn-ghost:hover { border-color: var(--paper-muted); }
.sec-light .btn:focus-visible { outline-color: var(--paper-ink); }

/* Пометка «заменить»: видно сразу, легко найти поиском */
.todo {
  display: inline;
  padding: 0 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  margin: 0 2px;
  border: 1px dashed currentColor;
  border-radius: 4px;
  font-family: var(--font-text);
  font-size: 12px; font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  vertical-align: middle;
  color: #E0794A;
  white-space: normal;
  overflow-wrap: anywhere;
  font-variation-settings: normal;
}
.sec-light .todo { color: #B4471A; }

/* Появление при прокрутке */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-in), transform .7s var(--ease-in);
  transition-delay: var(--d, 0ms);
}

/* Карточки с подсветкой за курсором */
.glow { position: relative; overflow: hidden; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(168, 230, 220, .10), transparent 60%);
  opacity: 0; transition: opacity .3s var(--ease-state);
  pointer-events: none;
}
.glow:hover::before { opacity: 1; }

/* ───────── Полоса обещаний ───────── */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.strip-track { display: flex; width: max-content; animation: strip 48s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip ul { display: flex; margin: 0; padding: 0; list-style: none; }
.strip li {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 18px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(17px, .6vw + 14px, 22px); letter-spacing: -0.02em;
  white-space: nowrap;
}
.strip li::after { content: ""; width: 10px; height: 10px; border: 1px solid var(--accent); transform: rotate(45deg); margin-left: 18px; }
@keyframes strip { to { transform: translateX(-50%); } }

/* ───────── Боли ───────── */
.pains { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--paper-line); }
.pain {
  display: grid; gap: 10px;
  padding: clamp(22px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--paper-line);
}
.pain q {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(22px, 1.7vw + 15px, 40px);
  letter-spacing: -0.03em; line-height: 1.12;
  quotes: "«" "»";
  text-wrap: balance;
}
.pain p { margin: 0; color: var(--paper-muted); font-size: 16px; max-width: 34em; }
.pain-n { color: var(--paper-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pains-foot { margin: 28px 0 0; color: var(--paper-muted); font-size: 14px; }
@media (min-width: 960px) {
  .pain { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: baseline; gap: 48px; }
}

/* ───────── Решение ───────── */
.promises { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.promise {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(22px, 2.4vw, 36px);
  display: grid; gap: 14px; align-content: start;
}
.promise b {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 2.6vw + 28px, 72px);
  letter-spacing: -0.045em; line-height: .95;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.promise h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, .4vw + 18px, 24px); letter-spacing: -0.015em; line-height: 1.2; }
.promise p { margin: 0; color: var(--muted); max-width: 30em; }
.promise .vs { max-width: none; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.promise .vs q { color: var(--ink); quotes: "«" "»"; }
@media (min-width: 760px) { .promises { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1100px) {
  .promises { grid-template-columns: repeat(12, 1fr); }
  .promise:nth-child(1) { grid-column: span 7; }
  .promise:nth-child(2) { grid-column: span 5; }
  .promise:nth-child(3) { grid-column: span 5; }
  .promise:nth-child(4) { grid-column: span 7; }
}

/* ───────── Как проходят 14 дней ───────── */
.days { display: grid; gap: 32px; }
.days-meter {
  position: sticky; top: 0; z-index: 3;
  margin: 0 calc(var(--gutter) * -1);
  padding: 12px var(--gutter);
  background: rgba(242, 239, 233, .94);
  border-bottom: 1px solid var(--paper-line);
  display: flex; align-items: center; gap: 16px;
}
.days-count { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.days-count b { font-weight: 500; font-size: 28px; }
.days-count span { font-size: 15px; color: var(--paper-muted); letter-spacing: 0; margin-left: 4px; }
.tiles14 { flex: 1; display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.tiles14 i {
  aspect-ratio: 1; border-radius: 2px;
  border: 1px solid var(--paper-line);
  background: transparent;
  transition: background-color .35s var(--ease-state), border-color .35s var(--ease-state), transform .35s var(--ease-in);
}
.tiles14 i.on { background: var(--accent); border-color: var(--accent); }
.tiles14 i.now { transform: translateY(-3px); }
.days-cap { display: none; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step {
  display: grid; gap: 8px;
  padding: 26px 0 26px 0;
  border-top: 1px solid var(--paper-line);
  transition: opacity .4s var(--ease-state);
}
.step:last-child { border-bottom: 1px solid var(--paper-line); }
.js .steps.is-live .step { opacity: .42; }
.js .steps.is-live .step.is-on { opacity: 1; }
.step-when { font-size: 14px; color: var(--brass-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.step h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(21px, .9vw + 17px, 30px); letter-spacing: -0.025em; line-height: 1.15; }
.step p { margin: 0; color: var(--paper-muted); max-width: 34em; }

@media (min-width: 960px) {
  .days { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
  .days-meter {
    top: 12vh; margin: 0; padding: 0; background: none; border: 0;
    display: grid; gap: 28px;
  }
  .days-count b { font-size: clamp(120px, 11vw, 200px); letter-spacing: -0.06em; }
  .days-count span { display: block; font-size: 20px; margin: 10px 0 0 6px; }
  .tiles14 { grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 420px; }
  .days-cap { display: block; margin: 0; color: var(--paper-muted); font-size: 15px; max-width: 26em; }
  .step { grid-template-columns: 120px minmax(0, 1fr); column-gap: 24px; padding: 34px 0; }
  .step-when { padding-top: 8px; grid-row: span 2; }
}

/* ───────── Цена ───────── */
.price { display: grid; gap: 28px; }
.price-ctrl { display: grid; gap: 22px; align-content: start; }
.seg { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 10px; color: var(--muted); font-size: 15px; }
.price-ctrl .btn { width: 100%; }
.price-ctrl .note { max-width: 30em; }

.sheet {
  background: var(--ink); color: var(--paper-ink);
  border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 44px);
  display: grid; gap: 18px;
  position: relative;
}
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--paper-line); }
.sheet-head b { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, .6vw + 17px, 26px); letter-spacing: -0.02em; }
.sheet-head span { color: var(--paper-muted); font-size: 14px; text-align: right; }
.lines { margin: 0; padding: 0; list-style: none; display: grid; }
.lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--paper-line); font-size: 15px; }
.lines li span:first-child { color: var(--paper-ink); }
.lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--paper-ink); font-weight: 500; }
.lines li.extra span:first-child { color: var(--paper-muted); }
.sheet-total { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.sheet-total small { display: block; color: var(--paper-muted); font-size: 14px; }
.sheet-total b { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 2.6vw + 24px, 64px); letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stamp {
  align-self: center;
  padding: 8px 14px; border: 1.5px solid var(--brass-ink); border-radius: 8px;
  color: var(--brass-ink); font-size: 13px; font-weight: 500; line-height: 1.25; text-align: center;
  transform: rotate(-4deg);
}
.sheet .fine { margin: 0; color: var(--paper-muted); font-size: 13px; }
.sheet [data-total] { transition: opacity .2s var(--ease-state); }
.sheet.is-changing [data-total], .sheet.is-changing .lines span:last-child { opacity: .3; }

@media (min-width: 960px) {
  .price { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .price-ctrl { position: sticky; top: 10vh; }
  .price-ctrl .btn { width: auto; justify-self: start; }
}

/* ───────── Работы и отзывы ───────── */
.works > li { min-width: 0; }
.works { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; list-style: none; scrollbar-width: none; }
.works::-webkit-scrollbar { display: none; }
.work { scroll-snap-align: start; display: grid; gap: 12px; margin: 0; }
.work img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; display: block; background: #E3DED4; }
.work figcaption { display: grid; gap: 2px; font-size: 15px; }
.work figcaption b { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.02em; }
.work figcaption span { color: var(--paper-muted); }
@media (min-width: 960px) {
  .works { grid-auto-flow: row; grid-template-columns: repeat(12, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 24px 24px; }
}
.reviews { display: grid; gap: 12px; margin: clamp(48px, 6vw, 88px) 0 0; padding: 0; list-style: none; }
.review {
  background: #E9E4DA; border-radius: var(--r-card);
  padding: clamp(22px, 2.4vw, 36px);
  display: grid; gap: 18px; align-content: start;
}
.review .glow::before, .review.glow::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(214, 163, 92, .16), transparent 60%); }
.review blockquote { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, .6vw + 16px, 24px); letter-spacing: -0.02em; line-height: 1.3; }
.review footer { color: var(--paper-muted); font-size: 14px; }
.review footer b { color: var(--paper-ink); font-weight: 500; }
@media (min-width: 760px) { .reviews { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ───────── О нас ───────── */
.about { display: grid; gap: 28px; }
.about-photo { margin: 0; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.about-facts { margin: 0; padding: 0; list-style: none; display: grid; }
.about-facts li { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.about-facts li:last-child { border-bottom: 1px solid var(--line); }
.about-facts b { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, .8vw + 18px, 30px); letter-spacing: -0.025em; line-height: 1.15; }
.about-facts span { color: var(--muted); }
@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: center; }
  .about-photo { aspect-ratio: 4 / 3.4; }
}

/* ───────── Вопросы ───────── */
.faq { display: grid; gap: 0; max-width: 920px; border-top: 1px solid var(--paper-line); }
.faq details { border-bottom: 1px solid var(--paper-line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(19px, .6vw + 16px, 24px); letter-spacing: -0.02em; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--paper-ink); outline-offset: 4px; border-radius: 4px; }
.faq summary i {
  flex: none; position: relative; width: 28px; height: 28px; border: 1px solid var(--paper-line); border-radius: 50%;
  transition: transform .32s var(--ease-state), background-color .2s var(--ease-state);
}
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--paper-ink); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .32s var(--ease-state); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover i { background: #E6E0D5; }
.faq .ans { overflow: hidden; }
.faq .ans p { margin: 0; padding: 0 48px 24px 0; color: var(--paper-muted); max-width: 40em; }

/* ───────── Финальный призыв и форма ───────── */
.final { overflow: hidden; isolation: isolate; }
.final-grid { display: grid; gap: 32px; }
.final .h2 { font-size: clamp(34px, 3.2vw + 20px, 72px); }
.final .lead { color: #B3BAB7; }
.lead-form {
  background: rgba(23, 32, 30, .97); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(20px, 2.4vw, 36px); display: grid; gap: 16px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--muted); }
.field input {
  height: 56px; padding: 0 16px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-btn);
  font: inherit; font-size: 17px;
  transition: border-color .16s var(--ease-state);
}
.field input::placeholder { color: #66706D; }
.field input:hover { border-color: #3A4744; }
.field input:focus { outline: none; border-color: var(--accent); }
.field .err { margin: 0; font-size: 13px; color: #F0A07A; }
.field .err[hidden] { display: none; }
.recap { margin: 0; font-size: 14px; color: var(--muted); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-btn); }
.recap b { color: var(--ink); font-weight: 500; }
.recap[hidden] { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; margin: 0; width: 22px; height: 22px; border: 1px solid #4A5552; border-radius: 6px; background: var(--bg); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border: 2px solid var(--bg); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.check a { color: var(--ink); text-decoration-color: var(--muted); text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-form .btn-main { width: 100%; }
.lead-form .btn-main:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.lead-form .btn-main:disabled::after { display: none; }
.thanks { display: grid; gap: 12px; align-content: center; min-height: 320px; }
.thanks[hidden] { display: none; }
.thanks b { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 1vw + 22px, 36px); letter-spacing: -0.03em; line-height: 1.1; }
.thanks p { margin: 0; color: var(--muted); }
@media (min-width: 960px) {
  .final-grid { grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); gap: clamp(48px, 6vw, 112px); align-items: center; }
}

/* ───────── Подвал ───────── */
.foot { padding: 48px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; gap: 24px; }
.foot p { margin: 0; }
.foot a { color: var(--ink); text-decoration-color: var(--muted); text-underline-offset: 3px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
@media (min-width: 960px) { .foot-grid { grid-template-columns: 1fr 1.4fr auto; align-items: start; gap: 48px; } }

/* ───────── Cookie ───────── */
.cookie {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px;
  max-width: 520px;
  background: var(--surface); border: 1px solid #33403D; border-radius: 14px;
  padding: 16px; display: grid; gap: 12px;
  font-size: 14px; color: var(--muted); line-height: 1.45;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  transform: translateY(16px); opacity: 0;
  transition: transform .4s var(--ease-in), opacity .4s var(--ease-in);
}
.cookie.is-in { transform: none; opacity: 1; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--ink); }
.cookie div { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn { height: 42px; padding: 0 16px; font-size: 14px; }
@media (min-width: 640px) { .cookie { left: 24px; bottom: 24px; } }

/* ───────── Параллакс перед формой ───────── */
.px { position: relative; height: 82svh; min-height: 520px; overflow: hidden; background: var(--bg); }
.px-stage { position: absolute; inset: 0; }
.px-l {
  position: absolute; left: 0; width: 100%;
  top: -24%; height: 124%;
  object-fit: cover; object-position: 58% 64%;
  will-change: transform;
}
.px-back { filter: brightness(.62) saturate(.9); }
.px-front { filter: brightness(.9); }
.px-title { pointer-events: none; }
.px-title .px-word { position: absolute; left: 0; right: 0; top: 30%; text-align: center; }
.px-word {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(92px, 19vw, 300px);
  letter-spacing: -0.06em; line-height: .9;
  color: var(--ink);
  white-space: nowrap;
  text-shadow: 0 6px 40px rgba(16, 22, 21, .45);
}
.px-word em { font-style: normal; font-weight: 300; font-variation-settings: "slnt" -10, "CRSV" 1, "SHRP" 100; }
.px-fade { position: absolute; left: 0; right: 0; bottom: -1px; height: 34%; background: linear-gradient(to bottom, rgba(16, 22, 21, 0), var(--bg)); pointer-events: none; }
@media (min-width: 960px) {
  .px { height: 100svh; }
  .px-l { object-position: 50% 66%; }
}
.final { padding-top: clamp(24px, 4vw, 64px); }

/* ───────── Правки после аудита ───────── */
.top-cta { display: flex; align-items: center; gap: 10px; }
.top-phone { display: none; color: var(--ink); text-decoration: none; font-size: 15px; font-variant-numeric: tabular-nums; }
.top-phone:hover { text-decoration: underline; text-underline-offset: 3px; }
.top-tg {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink);
  background: rgba(16, 22, 21, .5);
  transition: border-color .16s var(--ease-state);
}
.top-tg:hover { border-color: var(--muted); }
.top-tg:focus-visible, .top-phone:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (min-width: 1100px) { .top-phone { display: inline; margin-right: 6px; } .top-tg { width: 44px; height: 44px; } }

/* Квиз: цена и контакты в карточке */
.q-contact { display: grid; gap: 12px; }
.quote-price { display: grid; gap: 2px; padding-bottom: 6px; }
.quote-price small { color: var(--muted); font-size: 14px; }
.quote-price b { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 1.6vw + 24px, 44px); letter-spacing: -0.04em; line-height: 1.05; color: var(--accent); font-variant-numeric: tabular-nums; }
.quote-price span { color: var(--muted); font-size: 13px; }
.quiz .field input { height: 50px; }
.quiz .thanks { min-height: 0; padding: 8px 0; }
.form-fail { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #5A3A2C; border-radius: var(--r-btn); background: rgba(240, 160, 122, .06); font-size: 14px; line-height: 1.45; }
.form-fail b { color: #F0A07A; font-weight: 500; font-size: 15px; }
.form-fail p { margin: 0; color: var(--muted); }
.form-fail a { color: var(--ink); }
.form-fail[hidden] { display: none; }
.btn-main.is-sending { pointer-events: none; opacity: .75; }

/* Липкая кнопка на телефоне */
.sticky-cta {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transform: translateY(140%); transition: transform .32s var(--ease-in);
}
.sticky-cta.is-on { transform: none; }
@media (min-width: 960px) { .sticky-cta { display: none; } }

/* Боли: цитаты крупнее */
.pain q { font-size: clamp(24px, 2vw + 16px, 46px); }
.pain p { font-size: 17px; }

/* Примеры: три фото, первое крупное */
.works { scroll-padding-inline: var(--gutter); }
@media (min-width: 960px) {
  .works { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; }
  .works > li:nth-child(1) { grid-column: 1 / span 7; grid-row: 1 / span 2; }
  .works > li:nth-child(2), .works > li:nth-child(3) { grid-column: 8 / span 5; }
  .works > li:nth-child(1) img { aspect-ratio: auto; height: 100%; min-height: 0; }
  .works > li:nth-child(1) .work { height: 100%; grid-template-rows: 1fr auto; }
  .works > li:nth-child(2) img, .works > li:nth-child(3) img { aspect-ratio: 5 / 3.6; }
}

/* О нас без фото */
.about { grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
  .about > div { display: contents; }
  .about .sec-head { margin: 0 !important; }
}

.foot-contacts { display: grid; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .strip-track { animation: none; flex-wrap: wrap; width: auto; }
  .strip-track ul[aria-hidden] { display: none; }
  .strip ul { flex-wrap: wrap; }
  .glow::before { display: none; }
  .photo img { transition: none; }
  .tiles14 i, .step { transition: none; }
  .cookie { transition: none; }
  .sticky-cta { transition: none; }
  .px-l { transform: none !important; will-change: auto; }
  .faq summary i, .faq summary i::after { transition: none; }
}
