/* ============================================================
   Светлая база, короткие блоки, одна кнопка везде.
   Тёмный — только один блок «Гарантии», как акцент.
   ============================================================ */

:root {
  --accent:  #FFB300;          /* чистый янтарь, перезаписывается из config */
  --accent-h:#FFC533;
  --ink:     #14181C;          /* основной текст */
  --ink-2:   #5A646E;          /* вторичный */
  --bg:      #FFFFFF;
  --bg-2:    #F4F6F8;
  --line:    #E3E7EB;
  --line-2:  #D3DBE2;          /* границы карточек: --line на белом тонул, карточка висела в фоне */
  --shadow-1: 0 1px 2px rgba(20,24,28,.04), 0 6px 18px rgba(20,24,28,.05);   /* карточка в покое */
  --shadow-2: 0 4px 10px rgba(20,24,28,.06), 0 18px 40px rgba(20,24,28,.13); /* карточка под курсором */
  --bad:     #D4726A;          /* приглушённый кирпичный: крестики «без плёнки» */
  --ya:      #FC3F1D;          /* фирменный красный Яндекса: только ссылки на Карты */
  --bad-bg:  #FDF6F5;          /* едва тёплая подложка колонки «без плёнки» */
  --dark:    #14181C;
  --on-dark: #F2F4F6;
  --on-dark-2:#9AA4AE;
  --r: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.5;
       -webkit-font-smoothing: antialiased; overflow-x: hidden; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 40px); }

/* ---------- ТИПОГРАФИКА ---------- */
h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800;
     text-align: center; margin-bottom: 12px; }
h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.sub { text-align: center; color: var(--ink-2); font-size: 16px; max-width: 54ch;
       margin: 0 auto 32px; }
.note { color: var(--ink-2); font-size: 14px; }
/* h2 держит 12px до подзаголовка, а отступ до контента даёт сам .sub (32px) — итого 44px.
   Где подзаголовка нет («Гарантии», «Процесс», FAQ), блок прилипал к заголовку.
   Добираем те же 32px на первом элементе после h2, чтобы ритм был общий. */
h2 + .grt, h2 + .steps, h2 + .faq { margin-top: 32px; }

.sec { padding: 66px 0; }
.sec--grey { background: var(--bg-2); }
.sec--dark { background: var(--dark); color: var(--on-dark); }
.sec--dark .sub { color: var(--on-dark-2); }

/* ---------- КНОПКА ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center;
       background: var(--accent); color: #14181C; border: 0; border-radius: 100px;
       padding: 16px 32px; font: 700 16px/1 var(--font); cursor: pointer;
       transition: background .18s, transform .18s; white-space: nowrap; }
.btn:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn--lg { padding: 19px 40px; font-size: 17px; }
.btn--sm { padding: 11px 20px; font-size: 14px; }

/* ---------- CTA-ПЛАШКА В КОНЦЕ БЛОКА ----------
   Кнопка без подложки читалась как «повисшая в воздухе». Плашка инвертирует фон
   секции: на белой — серая, на серой — белая, на тёмной «Гарантии» — подсветка.
   Намеренно легче финального блока: финал остаётся кульминацией страницы.
   Hero и финал сюда не входят — у них своя вёрстка (.hero__cta и .final). */
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 40px;
       background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r);
       padding: 28px 26px; text-align: center; }
.cta .note { max-width: 52ch; font-size: 15px; line-height: 1.55; }
.sec--grey .cta { background: var(--bg); }
.sec--dark .cta { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.sec--dark .cta .note { color: var(--on-dark-2); }
/* Десктоп: плашка растягивается на всю сетку — текст слева, кнопка справа.
   Узкая центрированная коробка (660px) на 1140-й сетке сама висела в воздухе. */
@media (min-width: 1001px) {
  .cta { flex-direction: row; justify-content: space-between; text-align: left;
         gap: 36px; padding: 30px 36px; }
  .cta .note { flex: 1; max-width: 62ch; }
  .cta .btn { flex-shrink: 0; }
}

/* ---------- ЗАГЛУШКА ПОД ФОТО ---------- */
.ph { position: relative; background: repeating-linear-gradient(45deg,
        #EDF0F3 0 12px, #E6EAEE 12px 24px);
      border: 1px dashed #C3CBD3; border-radius: var(--r);
      display: flex; align-items: center; justify-content: center; text-align: center;
      padding: 20px; min-height: 200px; }
.ph span { font-size: 13px; color: #7A848E; font-weight: 600; max-width: 26ch; }
.ph::before { content: '📷'; position: absolute; top: 12px; left: 14px; font-size: 15px; opacity: .5; }
.sec--dark .ph { background: repeating-linear-gradient(45deg,
        #1D2226 0 12px, #22282D 12px 24px); border-color: #333B42; }
.sec--dark .ph span { color: #8D97A1; }

/* ---------- РЕАЛЬНОЕ ФОТО В ТОМ ЖЕ СЛОТЕ ----------
   Занимает ровно ту же геометрию, что и заглушка: подменяя одно другим,
   вёрстку не двигаем. cover — кадр всегда заполняет слот без искажений. */
.shot { display: block; width: 100%; height: 100%; object-fit: cover;
        object-position: center; border-radius: var(--r); }

/* ---------- ШАПКА ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94);
          backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header--scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px;
              min-height: 68px; }
.logo { font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--ink-2); font-weight: 500; font-size: 11px; letter-spacing: .16em;
             text-transform: uppercase; margin-left: 6px; }
.logo img { max-height: 36px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.header__act { display: flex; align-items: center; gap: 18px; }
.header__phone { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px;
                 white-space: nowrap; }
.header__call { display: none; font-weight: 700; font-size: 15px; color: var(--ink);
                text-decoration: none; align-items: center; min-height: 44px; padding: 0 4px; }
/* Мессенджеры в шапке. Пилюля с рамкой, а не заливка акцентом: акцент в шапке
   должен остаться только у одного элемента, иначе оба перестают быть акцентом.
   min-height 44px — тап-таргет, иконки 26px по высоте строки. */
.header__msg { display: flex; align-items: center; gap: 10px; }
.header__msg .msg { display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
                    color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap;
                    padding: 5px 14px 5px 9px; min-height: 44px; border: 1px solid var(--line);
                    border-radius: 999px; transition: border-color .2s, background .2s; }
.header__msg .msg:hover { border-color: var(--accent); background: rgba(255,179,0,.12); }
.header__msg .msg img { width: 26px; height: 26px; display: block; flex: none; }
/* В контактах подпись подчёркнута как ссылка, здесь она внутри пилюли — подчёркивание лишнее */
.header__msg .msg span { border-bottom: 0; }

/* ---------- ГЛАВНЫЙ ЭКРАН ---------- */
.hero { padding: 40px 0 56px; }
.hero__in { display: grid; grid-template-columns: 1.18fr 1fr; gap: 40px; align-items: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
          color: var(--ink-2); margin-bottom: 12px; }
.hero h1 { margin-bottom: 14px; }
.hero__sub { font-size: 17px; color: var(--ink-2); margin-bottom: 18px; max-width: 42ch; }
.hero__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hero__price { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hero__price b { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.hero__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
/* Микрокопия длиннее одной строки: ограничиваем ширину, чтобы она вставала
   в две строки рядом с кнопкой, а не съезжала под неё на всю колонку */
.hero__cta .note { flex: 1 1 210px; max-width: 30ch; line-height: 1.4; }
.hero__media { min-height: 380px; display: flex; }
.hero__media .ph, .hero__media .shot { width: 100%; min-height: 380px; }

/* Плашка бонуса — коротко, без счётчиков мест */
.promo { display: inline-block; background: rgba(255,179,0,.18); border-radius: 100px;
         padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.sec--dark .promo, .final .promo { background: rgba(255,179,0,.2); color: var(--accent); }
.final .promo { margin-bottom: 22px; }

/* Плашки доверия — одна строка, помещаются над сгибом */
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.trust li { font-size: 13px; font-weight: 600; color: var(--ink); background: var(--bg-2);
            border: 1px solid var(--line); border-radius: 100px; padding: 7px 12px;
            display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.trust li::before { content: ''; width: 6px; height: 6px; border-radius: 50%;
                    background: var(--accent); flex-shrink: 0; }

/* ---------- ЦЕНЫ ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
/* Hover приподнимает карточку: страница отвечает на курсор, а не лежит мёртвой */
.price { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
         padding: 28px 24px; display: flex; flex-direction: column; position: relative;
         box-shadow: var(--shadow-1);
         transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: #C2CBD4; }
.price--top { border: 2px solid var(--accent); }
/* У янтарной карточки и тень греет янтарём, не серым */
.price--top:hover { box-shadow: 0 4px 10px rgba(20,24,28,.05), 0 18px 40px rgba(255,179,0,.22); }
.price__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
                background: var(--accent); color: #14181C; font-size: 12px; font-weight: 700;
                padding: 6px 14px; border-radius: 100px; white-space: nowrap; }
.price__name { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.price__note { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.price__val { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.price__list { list-style: none; display: grid; gap: 9px; margin-bottom: 24px; }
.price__list li { font-size: 14.5px; color: var(--ink-2); padding-left: 22px; position: relative; }
/* <strong> в пункте прайса: пункты серые (--ink-2), поэтому одного веса мало —
   поднимаем и цвет до основного, иначе выделение не читается */
.price__list strong { font-weight: 700; color: var(--ink); }
.price__list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 11px; height: 6px;
                          border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
                          transform: rotate(-45deg); }
.price .btn { margin-top: auto; width: 100%; }

/* ---------- БЕЗ ПЛЁНКИ / С ПЛЁНКОЙ ----------
   Боль и решение рядом: читается за три секунды.            */
/* 1000, а не 900: с фото в карточках на узкой колонке не читается паутинка царапин,
   а на ней и держится весь аргумент экрана. */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px;
      margin-inline: auto; }
.vs__col { border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
           box-shadow: var(--shadow-1); transition: transform .22s ease, box-shadow .22s ease; }
.vs__col:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.vs__body { padding: 26px 26px 28px; }
.vs__col--bad  { background: var(--bad-bg); border: 1px solid rgba(212,114,106,.3); }
.vs__col--good { background: var(--ink); color: #fff; }

/* ---------- ФОТО В КАРТОЧКАХ ----------
   Кадр один и тот же (тот же капот, тот же ракурс) — разницу ищет глаз, а не подпись.
   16:10 чуть уже исходного 16:9, поэтому cover срезает по бокам, а object-position
   тянет кадр к капоту: справа у обоих снимков только размытый асфальт.       */
.vs__media { aspect-ratio: 16 / 10; overflow: hidden; }
/* 22% по горизонтали тянет кадр к капоту (справа только размытый асфальт).
   32% по вертикали работает только на мобильных: там кадр жмётся до 2:1 и режется
   по высоте, а центрирование срезало верх капота — ровно там, где паутинка царапин.
   На десктопе слот уже исходника, обрезка идёт по бокам, и Y ни на что не влияет. */
.vs__media .shot { border-radius: 0; object-position: 22% 32%; }
/* Заглушка занимает ту же геометрию, пока фото не положили */
.vs__media .ph { height: 100%; min-height: 0; border: 0; border-radius: 0; }
/* Осветлять «до» нельзя — на нём и держится весь аргумент: паутинка царапин
   видна только за счёт контраста. Поэтому увожу в холод и добавляю контраст. */
.vs__col--bad .shot  { filter: contrast(1.14) saturate(.72) brightness(.97); }
/* «После», наоборот, чуть ярче и насыщеннее — глянец и отражение должны играть */
.vs__col--good .shot { filter: contrast(1.06) saturate(1.1) brightness(1.04); }
/* Тёмное фото на чёрной карточке иначе слипается в одно пятно */
.vs__col--good .vs__media { border-bottom: 1px solid rgba(255,255,255,.12); }
/* Карточка тёмная, а секция вокруг светлая — правило .sec--dark .ph сюда не достаёт,
   и заглушка светилась белым пятном на чёрном. */
.vs__col--good .ph { background: repeating-linear-gradient(45deg,
        #1D2226 0 12px, #22282D 12px 24px); }
.vs__col--good .ph span { color: #8D97A1; }
.vs__head { font-size: 18px; font-weight: 800; margin-bottom: 18px; padding-bottom: 14px;
            border-bottom: 1px solid var(--line); }
.vs__col--good .vs__head { color: var(--accent); border-bottom-color: rgba(255,255,255,.14); }
.vs__list { list-style: none; display: grid; gap: 13px; }
.vs__list li { font-size: 15.5px; line-height: 1.45; padding-left: 30px; position: relative; }
.vs__col--bad li { color: var(--ink-2); }
/* Крестик */
.vs__col--bad li::before, .vs__col--bad li::after { content: ''; position: absolute; left: 4px;
  top: 10px; width: 13px; height: 2px; background: var(--bad); border-radius: 2px; }
.vs__col--bad li::before { transform: rotate(45deg); }
.vs__col--bad li::after  { transform: rotate(-45deg); }
/* Галочка */
.vs__col--good li::before { content: ''; position: absolute; left: 3px; top: 5px; width: 13px;
  height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg); }

/* ---------- РАБОТЫ ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work .ph, .work .shot { min-height: 220px; height: 220px; margin-bottom: 12px;
                         box-shadow: var(--shadow-1);
                         transition: transform .22s ease, box-shadow .22s ease; }
.work .shot { border: 1px solid var(--line-2); }
/* Поднимаем кадр, а не figure целиком: подпись под ним стоит на месте */
.work:hover .ph, .work:hover .shot { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.work__cap { font-size: 14px; color: var(--ink-2); text-align: center; }
/* Ссылка на Яндекс.Карты внутри текста. Красным — только слово «Яндекс»: это его
   узнаваемый фирменный цвет, по нему и считывается, куда ведёт ссылка. «.Картах»
   остаётся цветом текста, иначе красного в строке становится слишком много.
   Больше нигде на странице этот цвет не используется. */
.ya { color: var(--ink); font-weight: 700; }
.ya b { color: var(--ya); font-weight: inherit; }
a.ya { text-decoration: none; border-bottom: 1px solid var(--line-2);
       transition: border-color .18s ease; }
a.ya:hover { border-bottom-color: var(--ya); }
/* Звёзды рейтинга. Недобранные гасим до цвета границы, а не убираем:
   так видно, что шкала из пяти. Оценка рядом — жирная, как в карточке Яндекса. */
.stars { color: var(--accent); font-size: 17px; letter-spacing: 2px;
         white-space: nowrap; vertical-align: -1px; }
.stars i { color: var(--line-2); font-style: normal; }
.rate { color: var(--ink); font-weight: 800; }
.rev-link { display: block; text-align: center; margin: -26px auto 40px; font-size: 15px;
            font-weight: 600; color: var(--ink); text-decoration: none;
            border-bottom: 2px solid var(--accent); width: fit-content; padding-bottom: 2px; }

/* ---------- ГАРАНТИИ ---------- */
.grt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* Рамка была #2A3137 и на тёмном фоне не читалась — карточки сливались с секцией */
.grt__item { background: #1C2126; border: 1px solid #39434C; border-radius: var(--r); padding: 24px;
             transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.grt__item:hover { transform: translateY(-4px); border-color: rgba(255,179,0,.42); background: #20262C; }
.grt__item h3 { margin-bottom: 8px; color: var(--accent); }
.grt__item p { font-size: 14.5px; color: var(--on-dark-2); }

/* ---------- ПРОЦЕСС ---------- */
.steps { list-style: none; counter-reset: s; display: grid;
         grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { counter-increment: s; text-align: center; position: relative; }
/* z-index: кружок обязан лежать ПОВЕРХ связки — она подходит к его центру
   и должна уходить под него, а не упираться в край */
.step::before { content: counter(s); display: flex; align-items: center; justify-content: center;
                width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%;
                background: var(--accent); color: #14181C; font-weight: 800; font-size: 16px;
                position: relative; z-index: 1; }
/* Связка между шагами. Пунктир, а не сплошная: читается как маршрут, а не как
   подчёркивание, и не спорит по весу с самими кружками.
   Десктоп — горизонталь от центра предыдущего кружка к центру текущего:
   16px в расчёте — это зазор сетки, иначе линия обрывается в промежутке. */
.step + .step::after { content: ''; position: absolute; z-index: 0; top: 19px;
                       left: calc(-50% - 16px); width: calc(100% + 16px);
                       border-top: 2px dashed rgba(255,179,0,.5); }
.step h3 { margin-bottom: 5px; }
.step p { font-size: 14px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__i { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
          padding: 18px 40px 18px 0; font: 700 16px/1.4 var(--font); color: var(--ink);
          position: relative; }
.faq__q::after { content: ''; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
                 border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
                 transform: translateY(-70%) rotate(45deg); transition: transform .22s; }
.faq__i.open .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq__a p { padding-bottom: 20px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* ---------- ФИНАЛ ---------- */
.final { background: var(--dark); color: var(--on-dark); padding: 80px 0; text-align: center; }
.final__in { max-width: 620px; margin-inline: auto; display: flex; flex-direction: column;
             align-items: center; }
.final .sub { color: var(--on-dark-2); margin-bottom: 20px; }
.final .note { color: var(--on-dark-2); margin-top: 14px; }

/* ---------- КОНТАКТЫ ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.contacts h2 { text-align: left; }
.clist { margin: 22px 0 26px; }
.clist > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 13px 0;
               border-bottom: 1px solid var(--line); }
.clist dt { color: var(--ink-2); font-size: 15px; }
.clist dd { font-weight: 600; font-size: 15px; }
.clist a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent);
           display: inline-block; padding: 6px 0; }
/* Мессенджеры: иконка + подпись в строку. Иконки круглые и лежат на прозрачном фоне,
   поэтому подложка под них не нужна — на светлом и на тёмном они одинаково чистые. */
.msgs { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
/* Подчёркивание с .clist a снимаем: под иконкой оно тянулось бы через всю ссылку.
   Переносим на текст — линия остаётся ровно под словом. */
/* padding 8px + иконка 28px = 44px по высоте — минимальный размер тапа на мобильных */
.clist .msg { display: inline-flex; align-items: center; gap: 9px; border-bottom: 0; padding: 8px 0; }
.msg img { width: 28px; height: 28px; display: block; flex: none; }
.msg span { border-bottom: 1px solid var(--accent); }

.map { min-height: 340px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map .ph { min-height: 340px; border: 0; border-radius: 0; }

/* ---------- ФУТЕР ---------- */
.footer { background: var(--bg-2); padding: 28px 0; border-top: 1px solid var(--line); }
.footer__in { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
              font-size: 13.5px; color: var(--ink-2); }
.footer a { color: var(--ink-2); }

.demo-badge { position: fixed; right: 14px; bottom: 14px; z-index: 200; background: var(--ink);
              color: #fff; font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 100px;
              text-transform: uppercase; letter-spacing: .08em; }

/* ---------- АДАПТИВ ---------- */
@media (max-width: 1000px) {
  .prices, .works, .grt { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
  .hero__in, .contacts { grid-template-columns: 1fr; }
  .hero__media, .hero__media .ph, .hero__media .shot { min-height: 280px; }
  .nav, .header__phone { display: none; }
  .header__call { display: flex; }
  /* Рядом с «Позвонить» подписи не помещаются — оставляем узнаваемые кружки
     логотипов, имя мессенджера уходит в aria-label (script.js). */
  .header__msg .msg span { display: none; }
  /* padding 7px + иконка 30px = 44px в ширину: тап-таргет квадратный, а не узкий */
  .header__msg .msg { padding: 7px; border-color: transparent; }
  .header__msg .msg img { width: 30px; height: 30px; }
  .sec { padding: 60px 0; }
}
/* 3 колонки на 5 шагов: 4-й открывает новый ряд, связка слева ему не нужна —
   она бы тянулась из пустоты за край строки */
@media (min-width: 641px) and (max-width: 1000px) {
  .step:nth-child(4)::after { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  /* Шапка в одну строку на 360px: логотип + «Позвонить» + два кружка.
     Всё держится на счёт ширины, поэтому и логотип, и зазоры ужимаются вместе. */
  .logo { font-size: 17px; }
  .header__in { gap: 12px; }
  .header__act { gap: 8px; }
  .header__msg { gap: 2px; }
  .header__msg .msg img { width: 28px; height: 28px; }
  .prices, .works, .grt, .vs { grid-template-columns: 1fr; }
  /* В столбик карточки складываются одна под другую: при 16:10 «Без плёнки»
     занимает весь экран и сравнение разваливается — жмём кадр по высоте. */
  .vs__media { aspect-ratio: 2 / 1; }
  .vs__body { padding: 22px 20px 24px; }
  /* Две колонки против столбика: столбик занимал 636px — 1,28 экрана.
     Так блок вдвое короче. Сирота в последнем ряду убрана — 5-й шаг растянут
     на обе колонки, а порядок чтения держит связка-змейка. */
  .steps { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .step:nth-child(5) { grid-column: 1 / -1; }
  /* Змейка: внутри ряда связка горизонтальная (шаги 2 и 4 — базовое правило),
     между рядами — вертикальный спуск по центру сетки на шагах 3 и 5.
     У 3-го и 5-го горизонталь пришлось бы тянуть из-за левого края — им
     тот же ::after переопределён под спуск. */
  .step:nth-child(3)::after, .step:nth-child(5)::after {
    top: -26px; height: 22px; width: 0;
    border-top: 0; border-left: 2px dashed rgba(255,179,0,.5);
    transform: translateX(-1px); }
  /* Центр сетки для шага в первой колонке — его правый край плюс половина зазора.
     5-й растянут на всю ширину, у него центр — это просто 50%. */
  .step:nth-child(3)::after { left: calc(100% + 8px); }
  .step:nth-child(5)::after { left: 50%; }
  /* Заголовок во всю ширину, под ним сразу плотный кружок — 44px десктопа
     здесь читаются теснее, чем на большом экране. Добираем до 52px. */
  h2 + .steps { margin-top: 40px; }
  .trust { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 52px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__cta .btn { width: 100%; }
  /* Колонка = главная ось вертикальная: десктопный flex-basis стал бы высотой
     и растянул заметку. Сбрасываем — на мобильных она во всю ширину. */
  .hero__cta .note { flex: 0 0 auto; max-width: none; }
  .note { text-align: center; }
  .clist > div { grid-template-columns: 1fr; gap: 3px; }
}

/* ---------- ЗАГРУЗКА КВИЗА ----------
   Квиз — iframe с чужого сервиса, на мобильной сети первая загрузка занимает секунды.
   Плашка держит внимание на время ожидания, а не оставляет кнопку как будто зависшей.
   z-index — вровень с оверлеем Marquiz (2147483647, это максимум, который вообще
   принимает CSS). При равном значении выше рисуется тот, кто позже появился в DOM —
   поэтому важен порядок: script.js добавляет плашку уже после quizObj.show(). */
.quiz-loader { position: fixed; inset: 0; z-index: 2147483647; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; background: rgba(20,24,28,.75);
  opacity: 1; transition: opacity .2s ease; }
.quiz-loader_hide { opacity: 0; }
.quiz-loader__spin { width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25); border-top-color: var(--accent);
  animation: quiz-spin .8s linear infinite; }
.quiz-loader p { color: #fff; font: 600 15px/1 var(--font); margin: 0; }
@keyframes quiz-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .quiz-loader__spin { animation-duration: 2s; }
}
