/* ===== Базовые переменные (фирменный стиль promtex-21.ru) ===== */
:root {
  --accent: #d2334d;           /* базовый фирменный цвет клиента */
  --accent-hover: #b92a42;
  --accent-soft: #d2334d1a;
  --dark: #1b1f26;
  --dark-2: #262c36;
  --text: #2a2f38;
  --muted: #6b7280;
  --light: #f5f6f8;
  --white: #fff;
  --radius: 4px;               /* фирменный радиус */
  --shadow: 0 6px 24px rgba(27, 31, 38, .10);
  --font: "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; } /* атрибут hidden сильнее любых display-правил */
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.55; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h2 { font-size: clamp(24px, 4vw, 36px); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }

section { padding: 56px 0; }

/* ===== Кнопки ===== */
.btn {
  display: inline-block; border: none; cursor: pointer; text-align: center;
  font: 600 16px/1 var(--font); padding: 14px 24px; border-radius: var(--radius);
  transition: background .18s, color .18s, border-color .18s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--accent:disabled { background: #cbd0d6; cursor: not-allowed; }
.btn--lg { padding: 18px 32px; font-size: 17px; }
.btn--outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--white); }
.btn--ghost { background: transparent; color: var(--muted); border: 1px solid #d5d9de; }
.btn--ghost:hover { color: var(--text); border-color: var(--muted); }

/* ===== Шапка ===== */
.header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.07);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.header__brand { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.logo { font-size: 22px; font-weight: 800; color: var(--dark); white-space: nowrap; }
.logo span { color: var(--accent); }
.header__descriptor { font-size: 13px; color: var(--muted); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__contacts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.header__phone { font-weight: 700; color: var(--dark); white-space: nowrap; }
.header__phone:hover { color: var(--accent); }
.header__email { font-size: 13px; color: var(--muted); white-space: nowrap; }
.header__email:hover { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 60%, #33212a 100%);
  color: var(--white); padding: 64px 0; overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; align-items: center; }
.hero__content { position: relative; z-index: 2; } /* текст поверх наезжающего изображения */
.hero__title { font-size: clamp(26px, 4.2vw, 42px); }
.hero__subtitle { margin: 18px 0 14px; font-size: 18px; color: #c9cdd4; }
.hero__benefits { margin-bottom: 26px; }
.hero__benefits li { padding: 5px 0 5px 28px; position: relative; color: #e6e8eb; }
.hero__benefits li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px;
  background: var(--accent); border-radius: 50%;
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 4%, 40% 70%);
}
.hero__badges { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.badge strong { display: block; font-size: 18px; color: var(--white); }
.badge span { font-size: 13px; color: #9aa0a9; }
.hero__media { position: relative; }
/* мягкое фирменное свечение позади станка */
.hero__media::before {
  content: ""; position: absolute; inset: 12% 4%;
  background: radial-gradient(ellipse at center, rgba(210, 51, 77, .35) 0%, transparent 65%);
  filter: blur(12px);
}
.hero__media img {
  position: relative; width: 138%; max-width: none; margin-left: -24%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
}

/* ===== Квиз ===== */
.quiz { background: var(--light); }
.quiz__box {
  max-width: 720px; margin: 0 auto; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px 24px;
}
.quiz__progress { height: 6px; background: #e8eaee; border-radius: 3px; overflow: hidden; margin-bottom: 26px; }
.quiz__progress-bar { height: 100%; width: 16%; background: var(--accent); transition: width .3s; }
.quiz__question { font-size: 21px; margin-bottom: 18px; }
.quiz__question small { font-weight: 400; color: var(--muted); font-size: 14px; }
.quiz__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz__option {
  padding: 18px 16px; font: 500 16px var(--font); text-align: left; cursor: pointer;
  background: var(--light); border: 2px solid transparent; border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.quiz__option:hover { border-color: #d5d9de; }
.quiz__option.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz__nav .btn--accent { margin-left: auto; }
.quiz__bonus { color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.quiz__step--thanks p { color: var(--muted); }

/* ===== Формы ===== */
.lead-form { display: grid; gap: 12px; }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form input[type=email] {
  padding: 15px 16px; font: 400 16px var(--font); border: 1px solid #d5d9de;
  border-radius: var(--radius); width: 100%;
}
.lead-form input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.lead-form__honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.agree { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.agree input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.agree span { flex: 1; } /* весь текст одним блоком, иначе flex рвёт его на колонки */
.agree--light { color: #c9cdd4; }
.lead-form__error { color: #d2334d; font-size: 14px; }
.lead-form__ok { color: #1f9d55; font-weight: 600; }

/* ===== Каталог ===== */
.catalog__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid #e8eaee; border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow); }
.card__img { border-radius: var(--radius); background: var(--light); width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.card__title { font-size: 18px; }
.card__specs { flex: 1; }
.card__specs li { font-size: 14px; color: var(--muted); padding: 3px 0 3px 16px; position: relative; }
.card__specs li::before { content: "•"; position: absolute; left: 2px; color: var(--accent); }
.card__btn { width: 100%; }

/* ===== Преимущества ===== */
.features { background: var(--light); }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature__icon { font-size: 30px; margin-bottom: 10px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--muted); }

/* ===== Шаги ===== */
.steps__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.steps__list li { counter-increment: step; position: relative; padding-top: 54px; }
.steps__list li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.steps__list strong { display: block; margin-bottom: 4px; }
.steps__list span { font-size: 14px; color: var(--muted); }

/* ===== Финальный CTA ===== */
.final-cta { background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 100%); color: var(--white); }
.final-cta__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.final-cta p { color: #c9cdd4; margin-top: 10px; }

/* ===== Подвал ===== */
.footer { background: #14171d; color: #9aa0a9; padding: 40px 0 20px; font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer a { color: #c9cdd4; }
.footer a:hover { color: var(--white); }
.logo--footer { margin-bottom: 8px; color: var(--white); }
.footer__note { margin-top: 28px; padding-top: 16px; border-top: 1px solid #262c36; font-size: 12px; }

/* ===== Cookie-баннер ===== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 20px; z-index: 200;
  max-width: 880px; margin: 0 auto;
  background: var(--white); border: 1px solid #e8eaee; border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(27, 31, 38, .35);
  padding: 22px 26px; display: flex; align-items: center; gap: 24px;
}
.cookie-banner__text { font-size: 16px; line-height: 1.5; color: var(--text); }
.cookie-banner__actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.cookie-banner__actions .btn { padding: 12px 18px; font-size: 14px; white-space: nowrap; }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { flex-direction: row; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
}
@media (max-width: 768px) {
  section { padding: 40px 0; }
  .hero__inner, .final-cta__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; text-align: center; }
  /* картинка уже — занимает меньше высоты первого экрана */
  .hero__media img { width: 74%; max-width: 360px; margin: 0 auto; }
  /* социальные доказательства по центру */
  .hero__badges { justify-content: center; text-align: center; }
  .features__grid { grid-template-columns: 1fr; }
  .header__brand { display: none; }   /* на мобильных шапка: телефон + email + CTA */
  .header__inner { justify-content: center; }
  /* контакты прижаты к кнопке, а не к левому краю */
  .header__actions { width: 100%; justify-content: flex-end; gap: 14px; }
  .header__contacts { align-items: flex-end; }
  .quiz__options { grid-template-columns: 1fr; }
  /* этапы покупки: номер и текст по центру */
  .steps__list { grid-template-columns: 1fr; }
  .steps__list li { text-align: center; padding-top: 52px; }
  .steps__list li::before { left: 50%; transform: translateX(-50%); }
  .footer__inner { grid-template-columns: 1fr; }

  /* каталог — горизонтальный слайдер */
  .catalog__grid {
    display: flex; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px; padding: 4px 16px 16px;
    scrollbar-width: thin;
  }
  .card { flex: 0 0 82%; max-width: 320px; scroll-snap-align: center; }
}
@media (max-width: 480px) {
  .header__phone { font-size: 15px; }
  .header__email { font-size: 12px; }
  .header__cta { padding: 12px 14px; font-size: 14px; }
  .btn--lg { width: 100%; }
  .quiz__box { padding: 22px 16px 16px; }
}
