/* ==========================================================================
   Ремонт в новостройке с нуля — стили лендинга
   Плоско: без теней, градиентов-заливок и скруглений больше 2px.
   ========================================================================== */

/* Шрифты лежат на нашем хостинге, чтобы браузер посетителя не обращался к Google. */
/* Golos Text, cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/golos-text-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Golos Text, cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Golos Text, latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/golos-text-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Golos Text, latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Unbounded, cyrillic-ext */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/unbounded-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Unbounded, cyrillic */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/unbounded-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Unbounded, latin-ext */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/unbounded-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Unbounded, latin */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/unbounded-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #22282D;
  --muted: #5C646B;
  --line: #C9CCC8;
  --concrete: #E6E7E3;
  --concrete-2: #F2F3F0;
  --tape: #F2B400;
  --tape-edge: #D49E00;
  --tape-tint: #FFF4CF;
  --sam: #1D7A68;
  --sam-tint: #E2F0EC;
  --brig: #2D5BA6;
  --brig-tint: #E5ECF7;
  --mix: #256A87;
  --mix-tint: #E2EDF2;
  --alert: #CC3D26;
  --alert-dark: #A42E1B;
  --alert-tint: #FBE8E3;
  --example: #8A9095;
  --lvl-1: #CFE6DF;
  --lvl-2: #8FC4B6;
  --ruler-bg: #EEEFEC;
  --ruler-tick: #9AA0A4;
  --ruler-num: #8A9095;
  --on-dark-line: rgba(255, 255, 255, 0.16);
  --on-dark-muted: #A9B0B5;

  --f-head: "Unbounded", "Arial", sans-serif;
  --f-body: "Golos Text", "Arial", sans-serif;

  --cm: 40px;
  --mm: 4px;
  --ruler-w: 0px;
  --wrap: 1200px;
  --gutter: 16px;
  --radius: 2px;
  --section-y: 64px;
  --header-h: 64px;

  color-scheme: light;
}

@media (min-width: 640px) {
  :root { --gutter: 32px; --section-y: 88px; }
}
@media (min-width: 1100px) {
  :root { --ruler-w: 30px; --gutter: 40px; --section-y: 112px; --header-h: 72px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  padding-left: var(--ruler-w);
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 640px) { body { font-size: 17px; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
b, strong { font-weight: 600; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--tape);
  outline-offset: 2px;
}
.on-light :focus-visible,
.section :focus-visible { outline-color: var(--ink); }

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

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--tape); color: var(--ink);
  padding: 12px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; }

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

/* --------------------------------------------------------------------------
   Миллиметровая линейка по левому краю (как в пособии)
   -------------------------------------------------------------------------- */
.ruler {
  display: none;
}
@media (min-width: 1100px) {
  .ruler {
    display: block;
    position: fixed; z-index: 60;
    left: 0; top: 0; bottom: 0;
    width: var(--ruler-w);
    background:
      linear-gradient(to bottom, var(--ruler-tick) 1px, transparent 0) right 0 top 0 / 15px var(--cm) repeat-y,
      linear-gradient(to bottom, var(--ruler-tick) 1px, transparent 0) right 0 top calc(var(--cm) / 2) / 10px var(--cm) repeat-y,
      linear-gradient(to bottom, var(--ruler-tick) 1px, transparent 0) right 0 top 0 / 6px var(--mm) repeat-y,
      var(--ruler-bg);
    border-right: 1px solid var(--line);
    overflow: hidden;
    pointer-events: none;
  }
  .ruler__num {
    position: absolute; left: 3px;
    font: 400 10px/1 var(--f-body);
    color: var(--ruler-num);
    transform: translateY(2px);
  }
  .ruler__progress {
    position: absolute; right: -1px; top: 0;
    width: 3px; height: 0;
    background: var(--tape);
  }
}

/* --------------------------------------------------------------------------
   Рулетка
   -------------------------------------------------------------------------- */
.tape {
  position: relative;
  height: 58px;
  background:
    linear-gradient(90deg, var(--ink) 1px, transparent 0) 0 0 / var(--cm) 26px repeat-x,
    linear-gradient(90deg, var(--ink) 1px, transparent 0) calc(var(--cm) / 2) 0 / var(--cm) 18px repeat-x,
    linear-gradient(90deg, var(--ink) 1px, transparent 0) 0 0 / var(--mm) 11px repeat-x,
    var(--tape);
  border-bottom: 4px solid var(--tape-edge);
  overflow: hidden;
}
.tape__nums {
  position: absolute; left: 0; bottom: 6px;
  display: flex;
  padding-left: var(--cm);
  white-space: nowrap;
  font: 700 15px/1 var(--f-body);
  color: var(--ink);
}
.tape__nums span { flex: 0 0 var(--cm); padding-left: 5px; }
.tape--pull { animation: tape-pull 1.6s cubic-bezier(.2, .75, .15, 1) .15s both; }
@keyframes tape-pull {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.tape-caption {
  margin: 0;
  padding: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Типографика и общие элементы
   -------------------------------------------------------------------------- */
.tag {
  display: inline-block;
  padding: 7px 10px 6px;
  background: var(--tape);
  color: var(--ink);
  font: 800 13px/1.1 var(--f-head);
  letter-spacing: 0.01em;
  border-radius: 0;
}
.tag--ink { background: var(--ink); color: #fff; }
.tag--sam { background: var(--sam); color: #fff; font: 600 13px/1.1 var(--f-body); }
.tag--brig { background: var(--brig); color: #fff; font: 600 13px/1.1 var(--f-body); }
.tag--mix { background: var(--mix); color: #fff; font: 600 13px/1.1 var(--f-body); }

.h2 {
  margin-top: 18px;
  font: 600 clamp(28px, 4.2vw, 46px)/1.12 var(--f-head);
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.h3 {
  font: 600 clamp(19px, 2vw, 22px)/1.25 var(--f-head);
  letter-spacing: -0.01em;
}
.lead {
  margin-top: 20px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  max-width: 44ch;
}
.lead--wide { max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }

.section {
  padding: var(--section-y) 0;
}
.section--concrete { background: var(--concrete-2); }
.section--line { border-top: 1px solid var(--line); }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--split {
  display: grid; gap: 20px;
}
@media (min-width: 960px) {
  .section__head--split { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 48px; }
  .section__head--split .lead { margin-top: 0; }
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  font: 600 15px/1.2 var(--f-head);
  letter-spacing: 0.005em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--tape);
  color: var(--ink);
  border-bottom: 4px solid var(--tape-edge);
  padding-top: 4px;
}
.btn--primary:hover { background: #FFC51F; }
.btn--ink {
  background: var(--ink); color: #fff;
}
.btn--ink:hover { background: #343c42; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-dark {
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn--ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.btn__price {
  padding-left: 14px;
  border-left: 1px solid rgba(34, 40, 45, 0.35);
  font-weight: 800;
}
.btn .arrow { font: 500 20px/1 var(--f-body); margin-top: -3px; }

/* Плашки-заглушки: то, что заполнит автор */
.ph {
  display: inline-block;
  padding: 0 8px;
  border: 1px dashed var(--example);
  border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, rgba(138, 144, 149, .16) 0 5px, transparent 5px 10px);
  color: var(--muted);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.82em;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: 0.06em;
}
.ph--block {
  display: block;
  padding: 14px 16px;
  white-space: normal;
  font-size: 15px;
  line-height: 1.5;
}
.on-dark .ph, .ph--on-dark {
  border-color: rgba(255, 255, 255, .45);
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .1) 0 5px, transparent 5px 10px);
  color: #D5D9DC;
}
.btn--primary .ph { border-color: rgba(34, 40, 45, .5); color: var(--ink); background: repeating-linear-gradient(-45deg, rgba(34, 40, 45, .12) 0 5px, transparent 5px 10px); }
.is-hidden { display: none !important; }

.author-note {
  margin-top: 16px;
  padding: 14px 16px 14px 16px;
  border: 1px dashed var(--example);
  background: repeating-linear-gradient(-45deg, rgba(138, 144, 149, .09) 0 6px, transparent 6px 12px);
  font-size: 14px; line-height: 1.5;
  color: var(--muted);
}
.author-note b { color: var(--ink); }
.author-note code { font-size: 13px; background: #fff; padding: 1px 4px; }

/* Плашки в тексте: «Важно», «Деньги», «Совет»… */
.note {
  padding: 18px 22px 20px;
  border-left: 8px solid var(--ink);
  background: var(--concrete-2);
}
.note__label {
  display: block;
  margin-bottom: 6px;
  font: 700 14px/1.3 var(--f-head);
}
.note--alert { border-color: var(--alert); background: var(--alert-tint); }
.note--alert .note__label { color: var(--alert-dark); }
.note--money { border-color: var(--tape); background: var(--tape-tint); }
.note--example { border-color: var(--example); }

/* Нумерованный шаг: цифра в тонком круге */
.step-num {
  display: inline-grid; place-items: center;
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  font: 700 15px/1 var(--f-head);
}
.step-num--fill { background: var(--ink); color: #fff; }

/* Номер страницы: графитовая цифра в жёлтом прямоугольнике */
.page-num {
  display: inline-block;
  min-width: 34px;
  padding: 4px 6px 3px;
  background: var(--tape);
  font: 800 12px/1.2 var(--f-head);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid var(--on-dark-line);
}
.header__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  font: 600 14px/1.15 var(--f-head);
  letter-spacing: -0.005em;
}
.brand__mark {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  background:
    linear-gradient(90deg, var(--ink) 1.5px, transparent 0) 7px 0 / 7px 11px repeat-x,
    linear-gradient(90deg, var(--ink) 1px, transparent 0) 3.5px 0 / 7px 6px repeat-x,
    var(--tape);
  border-bottom: 3px solid var(--tape-edge);
}
.brand__text em { font-style: normal; color: var(--tape); }
.nav { margin-left: auto; }
.nav__list {
  display: flex; gap: 28px;
  list-style: none;
}
.nav__list a {
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  color: #D5D9DC;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav__list a:hover { color: #fff; border-bottom-color: var(--tape); }
.header__cta { min-height: 44px; padding: 4px 18px 0; font-size: 14px; border-bottom-width: 3px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--on-dark-line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; margin: 0 auto;
  background: #fff; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 959px) {
  .nav-toggle { display: block; }
  .header__cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink);
    border-bottom: 1px solid var(--on-dark-line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--on-dark-line); font-size: 17px; }
  .nav__list .nav__buy { padding-top: 16px; }
  .nav__list .nav__buy a { border: 0; border-bottom: 4px solid var(--tape-edge); color: var(--ink); }
}
@media (min-width: 960px) {
  .nav__buy { display: none; }
}
@media (max-width: 420px) {
  .brand { font-size: 12.5px; }
}

/* --------------------------------------------------------------------------
   Первый экран
   -------------------------------------------------------------------------- */
.hero {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero__grid {
  display: grid; gap: 48px;
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: 56px; }
}
.hero__eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  font-size: 15px; font-weight: 600; color: #D5D9DC;
}
.hero__eyebrow .dot { color: var(--on-dark-muted); font-weight: 400; }
.hero__title {
  margin-top: 28px;
  font: 700 clamp(32px, 6.4vw, 78px)/1.02 var(--f-head);
  letter-spacing: -0.03em;
}
.hero__title em { font-style: normal; color: var(--tape); }
.hero__lead {
  margin-top: 28px;
  max-width: 40ch;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
  color: #E9ECEE;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 36px;
}
.hero__note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--on-dark-muted);
}
.hero__note .ph { font-size: 13px; }
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
}

.hero__visual {
  position: relative;
  max-width: min(420px, 78vw);
  width: 100%;
  margin: 0 auto;
  padding: 0 28px 28px 0;
}
@media (min-width: 960px) {
  .hero__visual { margin: 0 0 0 auto; }
}
.hero__visual::before {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: calc(100% - 28px); height: calc(100% - 28px);
  border: 1px solid #3A4248;
  background: #2C3338;
}
.hero__visual .front { position: relative; border: 1px solid #3A4248; background: #fff; }
.hero__badge {
  position: absolute; z-index: 2;
  left: -12px; bottom: 56px;
  padding: 10px 12px 8px;
  background: var(--tape);
  color: var(--ink);
  font: 800 13px/1.15 var(--f-head);
}
.hero__badge small { display: block; font: 500 12px/1.3 var(--f-body); }

/* Цифры под рулеткой */
.facts {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.facts__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
}
.facts__item {
  padding: 24px 16px 24px 0;
  border-bottom: 1px solid var(--line);
}
.facts__item:nth-child(odd) { border-right: 1px solid var(--line); }
.facts__item:nth-child(even) { padding-left: 16px; }
.facts__item:nth-last-child(-n+2) { border-bottom: 0; }
.facts__num {
  display: block;
  font: 800 clamp(34px, 4.6vw, 52px)/1 var(--f-head);
  letter-spacing: -0.03em;
}
.facts__label { display: block; margin-top: 10px; font-size: 15px; line-height: 1.35; color: var(--muted); }
@media (min-width: 860px) {
  .facts__list { grid-template-columns: repeat(4, 1fr); }
  .facts__item, .facts__item:nth-child(even) { padding: 32px 24px; border-bottom: 0; border-right: 1px solid var(--line); }
  .facts__item:first-child { padding-left: 0; }
  .facts__item:last-child { border-right: 0; }
}

/* --------------------------------------------------------------------------
   Боли → ответы
   -------------------------------------------------------------------------- */
.pains {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
}
@media (min-width: 700px) { .pains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pains { grid-template-columns: repeat(3, 1fr); } }
.pain {
  display: flex; flex-direction: column;
  padding: 28px 24px 24px;
  background: #fff;
}
.pain__q {
  font: 600 19px/1.3 var(--f-head);
  letter-spacing: -0.01em;
}
.pain__text { margin-top: 12px; color: var(--muted); font-size: 16px; }
.pain__a {
  margin-top: auto;
  padding-top: 20px;
}
.pain__a div {
  padding: 12px 14px;
  background: var(--tape-tint);
  border-left: 4px solid var(--tape);
  font-size: 15px; line-height: 1.45;
}
.pain__a b { display: block; font: 700 13px/1.3 var(--f-head); margin-bottom: 4px; }

.thesis {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid; gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--ink);
  color: #fff;
}
@media (min-width: 900px) { .thesis { grid-template-columns: auto 1fr; align-items: center; gap: 40px; } }
.thesis__nums {
  display: flex; gap: 20px;
  font: 800 clamp(56px, 7vw, 88px)/0.9 var(--f-head);
  letter-spacing: -0.04em;
}
.thesis__nums span { display: flex; flex-direction: column; gap: 10px; }
.thesis__nums small { font: 500 14px/1.2 var(--f-body); letter-spacing: 0; color: var(--on-dark-muted); }
.thesis__nums .y { color: var(--tape); }
.thesis__text { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; max-width: 46ch; }
.thesis__text em { font-style: normal; color: var(--tape); }

/* --------------------------------------------------------------------------
   Для кого
   -------------------------------------------------------------------------- */
.fit {
  display: grid; gap: 40px;
}
@media (min-width: 960px) { .fit { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } }
.checks { list-style: none; display: grid; gap: 14px; }
.checks li {
  position: relative;
  padding-left: 36px;
  font-size: 17px;
}
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px;
  border: 1.5px solid var(--ink);
  background: #fff;
}
.checks li::after {
  content: "";
  position: absolute; left: 6px; top: 6px;
  width: 7px; height: 11px;
  border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.checks--yellow li::before { background: var(--tape); border-color: var(--tape); }

.paths { display: grid; gap: 16px; }
@media (min-width: 700px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path {
  display: flex; flex-direction: column;
  padding: 22px 20px 24px;
  border-top: 6px solid var(--sam);
  background: var(--sam-tint);
}
.path--mix { border-color: var(--mix); background: var(--mix-tint); }
.path--brig { border-color: var(--brig); background: var(--brig-tint); }
.path__title { font: 700 20px/1.2 var(--f-head); }
.path--sam .path__title { color: var(--sam); }
.path--mix .path__title { color: var(--mix); }
.path--brig .path__title { color: var(--brig); }
.path p { margin-top: 12px; font-size: 16px; }
.fit__more { margin-top: 20px; font-size: 16px; }
.fit__more a { font-weight: 600; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Карта ремонта: 8 фаз и 3 точки контроля
   -------------------------------------------------------------------------- */
.phases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
}
@media (min-width: 900px) { .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.phase {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 150px;
  padding: 20px 18px 18px;
  background: #fff;
}
.phase__num { font: 800 clamp(30px, 3.4vw, 40px)/1 var(--f-head); letter-spacing: -0.03em; color: var(--example); }
.phase--control .phase__num { color: var(--ink); }
.phase__title { font: 600 clamp(15px, 1.5vw, 17px)/1.3 var(--f-head); letter-spacing: -0.005em; }
.phase__control {
  margin-top: auto;
  align-self: flex-start;
  padding: 6px 9px 5px;
  background: var(--tape);
  font: 800 13px/1.2 var(--f-head);
}
.phases__note { margin-top: 20px; font-size: 16px; color: var(--muted); max-width: 60ch; }

/* --------------------------------------------------------------------------
   Карточка работы: две ветки
   -------------------------------------------------------------------------- */
.branches { display: grid; gap: 40px; }
.branches > *, .fit > *, .faq > *, .program > *, .checkout > * { min-width: 0; }
@media (min-width: 1000px) { .branches { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; } }
.branches__intro .lead { max-width: 38ch; }
.branches__points { margin-top: 28px; display: grid; gap: 14px; }
.levels { margin-top: 40px; }
.levels__title { font: 600 17px/1.3 var(--f-head); }
.levels__scale {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  list-style: none;
}
.levels__scale li {
  padding: 12px 10px 12px;
  min-height: 72px;
  font-size: 14px; font-weight: 600; line-height: 1.3;
  hyphens: auto; -webkit-hyphens: auto;
}
@media (max-width: 480px) {
  .levels__scale li { padding: 10px 7px; font-size: 12.5px; }
}
.levels__scale li:nth-child(1) { background: var(--lvl-1); }
.levels__scale li:nth-child(2) { background: var(--lvl-2); }
.levels__scale li:nth-child(3) { background: var(--sam); color: #fff; }
.levels__scale li:nth-child(4) { background: var(--ink); color: #fff; }
.levels__scale li span { display: block; font: 800 13px/1 var(--f-head); margin-bottom: 8px; opacity: .85; }
.levels__axis {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 13px; color: var(--muted);
}

/* Из чего состоит карточка работы */
.anatomy {
  border: 1px solid var(--ink);
  background: #fff;
}
.anatomy__title {
  padding: 14px 20px;
  background: var(--ink); color: #fff;
  font: 600 15px/1.3 var(--f-head);
}
.anatomy__list { list-style: none; }
.anatomy__list li {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  font-size: 16px; font-weight: 600;
}
.anatomy__list li:first-child { border-top: 0; }
.anatomy__list li span { min-width: 16px; font: 800 13px/1 var(--f-head); color: var(--muted); }
.anatomy__list .is-sam { padding-left: 14px; border-left: 6px solid var(--sam); background: var(--sam-tint); color: var(--sam); }
.anatomy__list .is-brig { padding-left: 14px; border-left: 6px solid var(--brig); background: var(--brig-tint); color: var(--brig); }
.anatomy__list .is-sam span, .anatomy__list .is-brig span { color: inherit; }
.anatomy__caption { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Полоса с призывом купить
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-top: 6px solid var(--tape);
}
.cta-band__inner {
  display: grid; gap: 28px;
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
}
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; } }
.cta-band__title {
  font: 700 clamp(24px, 3.2vw, 38px)/1.12 var(--f-head);
  letter-spacing: -0.025em;
  max-width: 24ch;
}
.cta-band__title em { font-style: normal; color: var(--tape); }
.cta-band__text { margin-top: 14px; max-width: 52ch; font-size: clamp(16px, 1.5vw, 18px); color: #E9ECEE; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .cta-band__actions .btn { width: 100%; } }

/* --------------------------------------------------------------------------
   Что внутри
   -------------------------------------------------------------------------- */
.inside {
  display: grid;
  border-top: 1px solid var(--ink);
  list-style: none;
}
@media (min-width: 720px) { .inside { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1080px) { .inside { grid-template-columns: repeat(3, 1fr); } }
.inside__item {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--line);
}
.inside__num {
  font: 800 clamp(40px, 4.6vw, 56px)/1 var(--f-head);
  letter-spacing: -0.04em;
}
.inside__num small { font: 600 15px/1 var(--f-head); letter-spacing: 0; margin-left: 4px; }
.inside__title { margin-top: 14px; font: 600 18px/1.3 var(--f-head); }
.inside__text { margin-top: 8px; font-size: 16px; color: var(--muted); }
.inside__text ul { margin-top: 8px; padding-left: 18px; }
.inside__text li { margin-top: 4px; }
.inside__item--accent { background: var(--tape-tint); padding-left: 20px; padding-right: 20px; border-bottom-color: var(--tape); }

/* --------------------------------------------------------------------------
   Программа
   -------------------------------------------------------------------------- */
.program { display: grid; gap: 40px; }
@media (min-width: 1000px) { .program { grid-template-columns: 300px 1fr; gap: 64px; align-items: start; } }
.program__aside { position: relative; }
.program__aside .h2 { font-size: clamp(28px, 2.8vw, 36px); }
@media (min-width: 1000px) { .program__aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.program__total {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 28px;
  font: 800 64px/1 var(--f-head); letter-spacing: -0.04em;
}
.program__total small { font: 500 16px/1.2 var(--f-body); letter-spacing: 0; color: var(--muted); }
.parts { list-style: none; margin-top: 20px; display: grid; gap: 6px; }
.parts a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: 15px;
}
.parts a:hover { border-bottom-color: var(--ink); }
.parts span:last-child { color: var(--muted); }

.part + .part { margin-top: 36px; }
.part__label { margin-bottom: 8px; }
.module { border-bottom: 1px solid var(--line); }
.module__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: start;
  padding: 16px 0;
}
.module__num { font: 800 26px/1 var(--f-head); letter-spacing: -0.03em; padding-top: 2px; }
.module__title { font-weight: 600; font-size: 18px; line-height: 1.3; }
.module__desc { display: block; margin-top: 3px; font-size: 15px; color: var(--muted); font-weight: 400; }
.module__pages { font-size: 14px; color: var(--muted); white-space: nowrap; padding-top: 3px; }
.module__toggle {
  position: relative; width: 24px; height: 24px; margin-top: 1px;
  border: 1px solid var(--line);
}
.module__toggle::before, .module__toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 1.5px; background: var(--ink);
  transform: translate(-50%, -50%);
}
.module__toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .15s; }
@media (max-width: 560px) {
  .module__row { grid-template-columns: 40px minmax(0, 1fr); }
  .module__pages { grid-column: 2; padding-top: 0; }
}

/* --------------------------------------------------------------------------
   Как не надо / как надо
   -------------------------------------------------------------------------- */
.compare { display: grid; gap: 0; }
.compare__head { display: none; }
.compare__row { display: grid; gap: 0; margin-bottom: 16px; }
.compare__cell { padding: 16px 18px; font-size: 16px; line-height: 1.5; }
.compare__cell--bad { background: var(--concrete-2); color: #3B4247; }
.compare__cell--good { background: var(--tape-tint); }
.compare__cell::before {
  display: block;
  margin-bottom: 6px;
  font: 700 12.5px/1.2 var(--f-head);
}
.compare__cell--bad::before { content: "Как не надо"; color: var(--example); }
.compare__cell--good::before { content: "Как надо"; color: var(--ink); }
.compare__ref { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
@media (min-width: 760px) {
  .compare__head {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 2px;
    font: 600 15px/1 var(--f-head); color: #fff;
  }
  .compare__head span { padding: 14px 18px; background: var(--ink); }
  .compare__head span:first-child { background: var(--example); }
  .compare__row { grid-template-columns: 1fr 1fr; gap: 0 2px; margin: 0; border-bottom: 2px solid #fff; }
  .compare__cell::before { display: none; }
}

/* --------------------------------------------------------------------------
   Бесплатный чек-лист
   -------------------------------------------------------------------------- */
.freebie {
  background: var(--tape);
  border-bottom: 4px solid var(--tape-edge);
}
.freebie__grid {
  display: grid; gap: 40px;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
@media (min-width: 900px) { .freebie__grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 64px; } }
.freebie .tag { background: var(--ink); color: #fff; }
.freebie__list { margin-top: 28px; }
.freebie__list li::before { background: #fff; }
.freebie__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.freebie__hint { font-size: 14px; max-width: 34ch; }
.freebie__card {
  display: grid; gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--ink); color: #fff;
}
.freebie__big {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  font: 800 clamp(48px, 6vw, 72px)/1 var(--f-head); letter-spacing: -0.04em;
  color: var(--tape);
}
.freebie__big small { font: 500 16px/1.25 var(--f-body); letter-spacing: 0; color: #E9ECEE; }
.freebie__big + .freebie__big { padding-top: 24px; border-top: 1px solid var(--on-dark-line); }

/* --------------------------------------------------------------------------
   Чего пособие не делает
   -------------------------------------------------------------------------- */
.honest { display: grid; gap: 16px; }
@media (min-width: 900px) { .honest { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.honest .note { font-size: 16px; }
.honest .note__label { font-size: 16px; margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   Покупка
   -------------------------------------------------------------------------- */
.buy {
  display: grid;
  border: 1px solid var(--ink);
  background: #fff;
}
@media (min-width: 900px) { .buy { grid-template-columns: 0.42fr 0.58fr; } }
.buy__cover {
  padding: clamp(24px, 4vw, 48px);
  background: var(--concrete);
  display: grid; place-items: center;
}
.buy__cover img { max-width: 300px; width: 100%; border: 1px solid var(--line); }
.buy__body { padding: clamp(24px, 4vw, 48px); }
.buy__title { font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--f-head); letter-spacing: -0.02em; }
.buy__list { margin-top: 24px; }
.buy__list li { font-size: 16px; }
.price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.price__value { font: 800 clamp(40px, 5vw, 56px)/1 var(--f-head); letter-spacing: -0.03em; }
.price__value .ph { font-size: 22px; vertical-align: middle; }
.price__note { font-size: 15px; color: var(--muted); }
.buy__actions { margin-top: 24px; }
.buy__fine { margin-top: 16px; font-size: 14px; color: var(--muted); }
.buy__fine a { color: var(--ink); }

/* --------------------------------------------------------------------------
   Вопросы
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 40px; }
@media (min-width: 1000px) { .faq { grid-template-columns: 0.75fr 1.25fr; gap: 64px; } }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding: 20px 0;
  font: 600 clamp(16px, 1.6vw, 18px)/1.35 var(--f-head);
  letter-spacing: -0.005em;
  list-style: none; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .module__toggle { flex: 0 0 auto; }
.faq__item[open] .module__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item summary:hover .module__toggle { border-color: var(--ink); }
.faq__answer { padding: 0 44px 22px 0; font-size: 16.5px; max-width: 64ch; }

/* --------------------------------------------------------------------------
   Финальный экран и футер
   -------------------------------------------------------------------------- */
.final {
  background: var(--ink);
  color: #fff;
}
.final__inner { padding-top: var(--section-y); padding-bottom: clamp(40px, 6vw, 72px); }
.final__title {
  font: 700 clamp(28px, 4.6vw, 56px)/1.08 var(--f-head);
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.final__title em { font-style: normal; color: var(--tape); }
.final__text { margin-top: 20px; max-width: 48ch; font-size: clamp(17px, 1.6vw, 20px); color: #E9ECEE; }
.final__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.footer {
  background: var(--ink);
  color: #D5D9DC;
  border-top: 1px solid var(--on-dark-line);
  font-size: 15px;
}
.footer__grid {
  display: grid; gap: 32px;
  padding-top: 48px; padding-bottom: 32px;
}
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer h3 { font: 600 14px/1.3 var(--f-head); color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: #D5D9DC; text-underline-offset: 3px; }
.footer a:hover { color: #fff; }
.footer__brand p { margin-top: 14px; max-width: 36ch; color: var(--on-dark-muted); font-size: 14px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  position: relative;
  padding-top: 20px; padding-bottom: 28px;
  font-size: 13.5px; color: var(--on-dark-muted);
}
.footer__bottom::before {
  content: "";
  position: absolute; top: 0;
  left: var(--gutter); right: var(--gutter);
  border-top: 1px solid var(--on-dark-line);
}
.footer__bottom--plain::before { display: none; }

/* Липкая кнопка на телефоне */
.buybar {
  position: fixed; z-index: 40;
  left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: #fff;
  border-top: 1px solid var(--on-dark-line);
  transform: translateY(110%);
  transition: transform .25s;
}
.buybar.is-visible { transform: translateY(0); }
.buybar__info { font-size: 14px; line-height: 1.3; }
.buybar__info b { display: block; font: 700 15px/1.2 var(--f-head); color: #fff; }
.buybar .btn { min-height: 48px; padding: 3px 18px 0; font-size: 14px; flex: 0 0 auto; }
@media (min-width: 960px) { .buybar { display: none; } }

/* Тост для пустых ссылок */
.toast {
  position: fixed; z-index: 90;
  left: 50%; bottom: 84px;
  transform: translate(-50%, 20px);
  max-width: min(92vw, 520px);
  padding: 14px 18px;
  background: var(--ink); color: #fff;
  border-left: 6px solid var(--tape);
  font-size: 15px; line-height: 1.4;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast code { color: var(--tape); font-size: 13.5px; }

/* --------------------------------------------------------------------------
   Внутренние страницы: оплата, политика, оферта
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--concrete);
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
}
.page-head__title { margin-top: 18px; font: 700 clamp(28px, 4.4vw, 52px)/1.1 var(--f-head); letter-spacing: -0.03em; max-width: 20ch; }
.page-head__lead { margin-top: 16px; max-width: 56ch; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }
.back-link { font-size: 15px; font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.checkout {
  display: grid; gap: 32px;
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: var(--section-y);
}
@media (min-width: 960px) { .checkout { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; } }
.checkout__summary { display: grid; gap: 24px; }
@media (min-width: 640px) { .checkout__summary { grid-template-columns: 180px 1fr; } }
.checkout__summary img { border: 1px solid var(--line); width: 100%; max-width: 220px; }
.paycard {
  border: 1px solid var(--ink);
  padding: clamp(20px, 3vw, 32px);
  background: #fff;
}
@media (min-width: 960px) { .paycard { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (max-width: 959px) {
  .paycard { order: -1; }
  .checkout__summary img { max-width: 160px; }
}
.paycard__title { font: 600 18px/1.3 var(--f-head); }
.paycard .price { margin-top: 16px; padding-top: 0; border: 0; }
.paycard__widget { margin-top: 20px; }
.paycard__consent { margin-top: 16px; font-size: 14px; color: var(--muted); }
.paycard__consent a { color: var(--ink); }
.paycard__text { margin-top: 12px; }
.paycard__meta { margin-top: 16px; font-size: 15px; }
.paycard__meta b { font-weight: 700; }
.checking { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); }
.checking::before {
  content: ""; flex: 0 0 auto;
  width: 18px; height: 18px;
  border: 2px solid var(--line); border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .checking::before { animation: none; } }
.steps { list-style: none; display: grid; gap: 20px; margin-top: 24px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.steps li > div { padding-top: 8px; }
.steps b { display: block; font: 600 16px/1.3 var(--f-head); margin-bottom: 4px; }

.doc {
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: var(--section-y);
}
.doc__body { max-width: 760px; }
.doc__body h2 { font: 600 22px/1.3 var(--f-head); margin: 40px 0 12px; }
.doc__body ul { padding-left: 20px; margin-bottom: 1em; }
.doc__body li { margin-top: 6px; }
.doc__meta { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
