/* ============================================================
   KEYWAY — листовочный лендинг
   Все значения взяты из tokens.md (снято с keyway.online).
   Мобильная вёрстка первична, десктоп — прогрессивное расширение.
   ============================================================ */

/* ---------- Шрифт ---------- */
/* Manrope, SIL Open Font License 1.1 — самостоятельный хостинг разрешён.
   Файлы — вариативные (ось wght 200…800), один файл на подмножество. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-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;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Токены ---------- */

:root {
  /* Палитра */
  --bg:            #020508;   /* фон всех секций */
  --fg:            #ffffff;   /* основной текст */
  --line:          #3f3f3f;   /* разделители FAQ, дорожка прогресса */
  --border-input:  #7b7b7b;   /* рамка полей формы */
  --muted:         #7b7b7b;   /* вторичные подписи */
  --hover-link:    #efefef;   /* ховер ссылок */
  --hover-text:    #b4b4b4;   /* ховер текстовых кнопок */
  --error:         #ff6b6b;   /* ошибка формы */
  --plate:         rgba(255, 255, 255, .21);  /* плашка-бейдж */

  /* Акцент счётчика. В текущей палитре сайта отдельного акцента нет —
     заполненная часть шкалы и цифры остаются белыми.
     Если заказчик выберет цвет, менять только эти две переменные. */
  --accent:        #ffffff;
  --accent-on:     #020508;

  /* Радиусы */
  --r-btn:    30px;
  --r-input:  50px;
  --r-plate:  60px;
  --r-price:  9px;

  /* Ритм */
  --pad-x:      16px;
  --sec-gap:    48px;
  --wrap-max:  1200px;

  --speed: .2s;
}

/* ---------- Сброс ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; transition: color var(--speed) ease-in-out; }
a:hover { color: var(--hover-link); }

button, input { font: inherit; color: inherit; }

/* Фокус виден всегда и на тёмном фоне */
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-200%);
  z-index: 100;
  padding: 12px 16px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 0 0 var(--r-btn) 0;
}
.skip-link:focus { transform: none; color: var(--bg); }

/* ---------- Каркас ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-title {
  font-size: 22px;
  line-height: 1.55;
  font-weight: 600;
  margin-bottom: 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--speed) ease-in-out,
              color var(--speed) ease-in-out,
              border-color var(--speed) ease-in-out;
}

.btn--solid {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn--solid:hover { background: var(--hover-link); color: var(--bg); }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn--ghost:hover { background: var(--fg); color: var(--bg); }

/* ---------- 1. Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.header__logo img { width: 116px; height: auto; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Круглая кнопка вызова */
.header__call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  transition: background-color var(--speed) ease-in-out, opacity var(--speed) ease-in-out;
}
.header__call:hover { background: rgba(255, 255, 255, .22); }
.header__call img { width: 24px; height: 24px; }

/* При открытом меню трубка сверху не нужна — номер есть в самом меню */
body.is-menu-open .header__call {
  opacity: 0;
  pointer-events: none;
}

/* Бургер */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger__line {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--fg);
  transition: transform var(--speed) ease-in-out, opacity var(--speed) ease-in-out;
}

/* Три полоски складываются в крестик */
body.is-menu-open .burger__line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.is-menu-open .burger__line:nth-child(2) { opacity: 0; }
body.is-menu-open .burger__line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Меню ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 88px var(--pad-x) 48px;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  transition: opacity var(--speed) ease-in-out;
}
.menu[hidden] { display: none; }
.menu.is-visible { opacity: 1; }

.menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.menu__list a {
  display: inline-block;
  padding: 4px 8px;
  font-size: 20px;
  line-height: 1.3;
}

.menu__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 32px;
  border-radius: var(--r-btn);
  background: rgba(255, 255, 255, .21);
  font-size: 18px;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color var(--speed) ease-in-out;
}
.menu__phone:hover { background: rgba(255, 255, 255, .32); color: var(--fg); }

/* Пока меню открыто, страница под ним не скроллится */
body.is-menu-open { overflow: hidden; }

/* ---------- Внутренняя страница (гарантия) ---------- */

.page { padding: 32px 0 var(--sec-gap); }

.page__back {
  display: inline-block;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  line-height: 1.55;
}

.page__title {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 28px;
}

.page__subtitle {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 14px;
}

.page__section { margin-bottom: 36px; }

.page__section p {
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.55;
}
.page__section p + p,
.page__section ul + p,
.page__section p + ul { margin-top: 14px; }

.page__section strong { color: var(--fg); font-weight: 600; }

.page__list { margin-top: 14px; }
.page__list li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.55;
}
.page__list li + li { margin-top: 10px; }
.page__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.page__contact a { text-decoration: underline; color: var(--fg); }
.page__muted { color: rgba(255, 255, 255, .5); }

.page__cta { display: flex; width: 100%; margin-top: 8px; }

@media (min-width: 768px) {
  .page { padding: 48px 0 var(--sec-gap); }
  .page__title { font-size: 48px; }
  .page__subtitle { font-size: 28px; }
  .page__section { max-width: 780px; }
  .page__cta { display: inline-flex; width: auto; min-width: 245px; }
}

/* ---------- 2. Первый экран ---------- */

.hero {
  position: relative;
  padding: 28px 0 40px;
  background: var(--bg) url('assets/img/hero-door.jpg') no-repeat 73% top;
  background-size: 340%;
}

/* Затемнение, чтобы текст читался поверх фото двери */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 5, 8, .35) 0%, rgba(2, 5, 8, .85) 55%, var(--bg) 100%);
}

.hero .wrap { position: relative; }

.hero__sub {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 8px;
}

.hero__title {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero__cta {
  display: flex;
  width: 100%;
  margin-top: 20px;
}

/* ---------- 3. Счётчик заявок ---------- */

.counter {
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: var(--plate);
  backdrop-filter: blur(2px);
}

.counter__address {
  font-size: 12px;
  line-height: 1.35;
  color: var(--fg);
  opacity: .75;
  margin-bottom: 10px;
}

.counter__headline {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
}

.counter__headline b {
  font-weight: 800;
  color: var(--accent);
}

.counter__status {
  font-size: 16px;
  line-height: 1.55;
  margin-top: 2px;
}

.counter__bar {
  height: 8px;
  margin: 14px 0 12px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.counter__fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--accent);
  transition: width .4s ease-out;
}

.counter__hint {
  font-size: 14px;
  line-height: 1.35;
}

.counter.is-reached .counter__status { font-weight: 600; }

.counter.is-error .counter__headline { font-size: 16px; font-weight: 400; }

/* ---------- Карточка товара (всплывающая) ---------- */

.modal {
  width: min(100%, 900px);
  max-width: 100%;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(0, 0, 0, .75); }

.modal__inner { padding: 20px var(--pad-x) 40px; }

.modal__close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--plate);
  color: var(--fg);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { background: rgba(255, 255, 255, .32); }

.modal__badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: var(--r-plate);
  background: var(--plate);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.modal__title {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 14px;
}

.modal__price {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.modal__stock {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 22px;
}

.modal__cta { display: flex; width: 100%; height: 56px; font-size: 18px; }
.modal__cta--bottom { margin-top: 32px; }

.modal__text {
  font-size: 16px;
  line-height: 1.55;
  margin-top: 16px;
}

.modal__subtitle {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 600;
  margin: 32px 0 16px;
}

/* Галерея */
.gallery { margin: 28px 0 8px; }

.gallery__stage { position: relative; }

.gallery__main {
  width: 100%;
  border-radius: 16px;
  background: #f0f0f0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(2, 5, 8, .55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--speed) ease-in-out;
}
.gallery__nav:hover { background: rgba(2, 5, 8, .8); }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }

.gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 4px;
}

.gallery__thumb {
  flex: 0 0 84px;
  width: 84px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
  cursor: pointer;
  transition: border-color var(--speed) ease-in-out;
}
.gallery__thumb.is-active { border-color: var(--fg); }
.gallery__thumb img { width: 100%; }

/* Характеристики */
.specs { margin: 0; }
.specs > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt { flex: 1 1 auto; font-size: 14px; line-height: 1.35; color: var(--muted); }
.specs dd { flex: 0 1 auto; margin: 0; font-size: 14px; line-height: 1.35; text-align: right; }

/* Комплектация */
.kit li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.55;
}
.kit li + li { margin-top: 8px; }
.kit li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg);
}

@media (min-width: 768px) {
  .modal { border-radius: 24px; max-height: 92dvh; }
  .modal__inner { padding: 24px 40px 48px; }
  .modal__title { font-size: 34px; }
  .modal__price { font-size: 32px; }
  .modal__cta { width: 320px; }
  .gallery__thumb { flex-basis: 104px; width: 104px; }
}

/* ---------- 5. Модели ---------- */

.models { padding: var(--sec-gap) 0 0; }

.model + .model { margin-top: 40px; }

/* В оригинале фото замка — это фон карточки: тёмная скруглённая плашка,
   замок прижат к правому краю, весь текст лежит поверх неё.
   Высота идёт от содержимого: пустого места под последним пунктом быть не должно. */
.model__card {
  position: relative;
  padding: 22px 42% 26px 20px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #06090d;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}
.model__card--sl300 { background-image: url('assets/img/lock-sl300.jpg'); }
.model__card--sl500 { background-image: url('assets/img/lock-sl500.jpg'); }

/* На узких экранах текстовой колонке нужно больше места, иначе она наезжает на замок */
@media (max-width: 359px) {
  .model__card { padding: 18px 34% 22px 14px; }
  .model__badge { padding: 5px 14px; font-size: 14px; }
  .model__title { font-size: 18px; }
  .model__features li { font-size: 13px; gap: 10px; }
  .model__ico { flex-basis: 38px; width: 38px; height: 38px; }
  .model__ico img { width: 22px; height: 22px; }
}

.model__badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: var(--r-plate);
  background: var(--plate);
  font-size: 16px;
  line-height: 1.55;
  white-space: nowrap;
  margin-bottom: 12px;
}

.model__title {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 12px;
}

.model__price {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--fg);
  border-radius: var(--r-price);
  font-size: 16px;
  line-height: 1;
  margin-bottom: 20px;
}

.model__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.25;
}
.model__features li + li { margin-top: 14px; }

/* Плашка под иконкой уже вшита в сам файл иконки (rect opacity .4),
   поэтому своей подложки здесь быть не должно — иначе получается двойная. */
.model__ico {
  flex: 0 0 44px;
  display: block;
  width: 44px;
  height: 44px;
}
.model__ico img { width: 100%; height: 100%; }

.model__btn {
  display: flex;
  width: 100%;
  margin-top: 20px;
}

/* ---------- 7. Форма ---------- */

.lead { padding: var(--sec-gap) 0 0; scroll-margin-top: 72px; }

/* ---------- Зернистая плашка ---------- */
/* В оригинале это PNG на 800 КБ; здесь то же самое собрано из градиентов и шума
   (SVG feTurbulence в data-URI, пара сотен байт) — выглядит так же, тянется
   на любую высоту и не добавляет ни одного запроса.
   Одна и та же подложка под формой и под карточками преимуществ. */
.lead__panel,
.advantage {
  position: relative;
  overflow: hidden;
  background-color: #0a0d10;
  background-image:
    radial-gradient(120% 90% at 8% 0%,    rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(110% 80% at 100% 4%,  rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(120% 90% at 100% 100%, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 55%);
}

/* Само зерно */
.lead__panel::before,
.advantage::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: screen;
}

.lead__panel > *,
.advantage > * { position: relative; }

.lead__panel {
  padding: 28px 18px 32px;
  border-radius: 24px;
}

/* В оригинале подзаголовок формы — белый с прозрачностью 0.6 */
.lead__sub {
  color: rgba(255, 255, 255, .6);
  font-size: 16px;
  line-height: 1.55;
  margin: -12px 0 24px;
}

.field { margin-bottom: 18px; }

.field__input {
  width: 100%;
  height: 60px;
  padding: 0 24px;
  background: transparent;
  border: 1px solid var(--border-input);
  border-radius: var(--r-input);
  font-size: 16px;
  line-height: 1.55;
  transition: border-color var(--speed) ease-in-out,
              box-shadow var(--speed) ease-in-out;
}
/* Подписи полей живут внутри самих полей, бледным — как в оригинале */
.field__input::placeholder { color: rgba(255, 255, 255, .45); opacity: 1; }

.field__input[aria-invalid='true'] {
  border-color: var(--error);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, .3);
}

.field__error {
  margin-top: 6px;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--error);
}

.form__submit {
  width: 100%;
  height: 60px;
  margin-top: 12px;
  font-size: 20px;
}
.form__submit[disabled] { opacity: .6; cursor: default; }

.form__result {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.55;
}
.form__result.is-error { color: var(--error); }

/* В оригинале сноска — белая с прозрачностью 0.4 */
.form__note {
  margin-top: 16px;
  color: rgba(255, 255, 255, .4);
  font-size: 14px;
  line-height: 1.55;
}
.form__note a { text-decoration: underline; }

/* ---------- 8. Гарантия и поддержка ---------- */

.advantages { padding: var(--sec-gap) 0 0; }

/* Плашка карточки — та же зернистая подложка, что под формой */
.advantage {
  padding: 20px 18px 24px;
  border-radius: 16px;
}

.advantage + .advantage { margin-top: 16px; }

.advantage__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.advantage__head img { width: 44px; height: 44px; flex: 0 0 44px; }

.advantage__title {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 600;
}

/* В оригинале пояснение — белое с прозрачностью 0.7, заголовок остаётся белым */
.advantage__text {
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- 9. О нас ---------- */

.about { padding: var(--sec-gap) 0 0; }
.about__img { width: 100%; border-radius: 12px; margin-bottom: 20px; }
.about__text + .about__text { margin-top: 16px; }

/* ---------- 10. FAQ ---------- */

.faq { padding: var(--sec-gap) 0 0; }

.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-of-type { border-bottom: 1px solid var(--line); }

.faq__q {
  position: relative;
  display: block;
  padding: 20px 48px 20px 0;
  color: #e4e4e4;          /* цвет вопросов в оригинале */
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }

/* Плюс без подложки. Кружок появляется только у раскрытого вопроса — как в оригинале. */
.faq__q::after {
  content: '';
  position: absolute;
  right: 0;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: transparent;
  background-image:
    linear-gradient(#c8c8c8, #c8c8c8),
    linear-gradient(#c8c8c8, #c8c8c8);
  background-size: 16px 1px, 1px 16px;
  background-position: center, center;
  background-repeat: no-repeat;
  transition: background-color var(--speed) ease-in-out;
}

.faq__item[open] .faq__q::after {
  background-color: #626262;
  background-size: 16px 1px, 1px 0;   /* вертикальная палочка уходит — остаётся минус */
}

/* Ответы в оригинале заметно бледнее вопросов.
   Отступ снизу — на последнем потомке, а не на самом блоке: при height:0
   собственный padding никуда не делся бы и раскрытие начиналось бы рывком. */
.faq__a {
  padding: 0;
  color: #b1b1b1;
  font-size: 16px;
  line-height: 1.55;
  overflow: hidden;   /* нужно, чтобы анимировать высоту */
}
.faq__a > *:last-child { margin-bottom: 20px; }
.faq__a p + p, .faq__a ul + p, .faq__a p + ul { margin-top: 12px; }
.faq__a ul li {
  position: relative;
  padding-left: 18px;
}
.faq__a ul li + li { margin-top: 8px; }
.faq__a ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- 11. Мессенджеры ---------- */

/* В оригинале блок мессенджеров лежит на том же фото двери, что и первый экран */
.messengers {
  position: relative;
  padding: var(--sec-gap) 0 40px;
  background: var(--bg) url('assets/img/hero-door.jpg') no-repeat 30% center;
  background-size: cover;
}
.messengers::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(2, 5, 8, .6) 40%, rgba(2, 5, 8, .8) 100%);
}
.messengers .wrap { position: relative; }
.messengers__title { text-align: center; }

.messengers__buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.messengers__or { text-align: center; font-size: 14px; }

/* ---------- 12. Подвал ---------- */

.footer {
  margin-top: var(--sec-gap);
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
}

.footer__phone {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.footer__muted {
  font-size: 14px;
  line-height: 1.25;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer__link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.25;
  text-decoration: underline;
  margin-bottom: 20px;
}

.footer__logo { width: 116px; margin-bottom: 20px; }

.footer__social {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.footer__social img { width: 29px; height: 29px; }

.footer__copy {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.25;
  color: var(--muted);
}

/* ============================================================
   Десктоп — минимальная адаптация.
   По брифу приоритет мобильный; полноценный десктоп — отдельная задача.
   ============================================================ */

@media (min-width: 768px) {
  :root { --pad-x: 40px; --sec-gap: 75px; }

  .hero {
    padding: 90px 0 75px;
    background-position: center center;
    background-size: cover;
  }
  .hero__title { font-size: 54px; }
  .hero__sub { font-size: 18px; }
  .hero__cta { display: inline-flex; width: auto; min-width: 245px; font-size: 20px; }

  .counter { max-width: 520px; padding: 24px; }
  .counter__headline { font-size: 28px; }

  .section-title { font-size: 40px; }

  .models .wrap { display: flex; gap: 40px; }
  .model { flex: 1 1 0; display: flex; flex-direction: column; }
  .model + .model { margin-top: 0; }
  .model__card { padding: 32px 44% 32px 32px; }
  .model__title { font-size: 36px; }
  .model__price { font-size: 32px; }
  .model__badge { font-size: 22px; }
  .model__features { flex: 1 1 auto; }
  .model__features li { font-size: 16px; }
  .model__btn { width: auto; align-self: flex-start; min-width: 234px; font-size: 20px; }


  .form { max-width: 560px; }
  .form__submit { width: 400px; max-width: 100%; }

  .advantages__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
  .advantage + .advantage { margin-top: 0; }

  .about__img { max-width: 560px; }

  .messengers__buttons { flex-direction: row; align-items: center; justify-content: flex-start; }
  .messengers__or { margin: 0 4px; }
}

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