/* =============================================================
   Razgonin.ru — main.css
   ============================================================= */

/* ── Переменные ───────────────────────────────────────────────── */
:root {
  /* ЦВЕТ: основная палитра */
  --dark:    #1E3A5F;
  --blue:    #0066CC;
  --red:     #E8304A;
  --orange:  #F5821F;
  --violet:  #6C3EC8;
  --gray:    #F5F6F8;
  --border:  #D8DCE2;
  --muted:   #6B7280;
  --white:   #FFFFFF;
  --price:   #e85668;

  /* ЦВЕТ: градиенты кнопок */
  --grad-lead:       linear-gradient(0.5turn, rgba(255,106,40,1) 0%, rgba(254,47,87,1) 100%);
  --grad-commercial: linear-gradient(0.5turn, rgba(255,148,21,1) 0%, rgba(255,199,9,1) 100%);
  --grad-info:       linear-gradient(0.5turn, rgba(142,45,226,1) 0%, rgba(74,0,224,1) 100%);
  --grad-nav:        linear-gradient(0.5turn, rgba(0,114,255,1)  0%, rgba(0,198,255,1) 100%);
  --grad-header:     linear-gradient(96deg, #5B1FC4 0%, #7A25CF 45%, #B4239E 100%);

  /* Сетка */
  --max-w: 1200px;
  --px:    24px;

  /* Радиусы */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Переходы */
  --tr: 0.2s ease;

  /* Шрифты */
  --font-base:     'Rubik', Arial, sans-serif;
  --font-headings: 'Rubik', Arial, sans-serif;

  /* Типографическая шкала */
  --fs-xs:   12px;                          /* подписи, бейджи, лейблы */
  --fs-sm:   14px;                          /* теги, вторичный текст    */
  --fs-base: 16px;                          /* основной текст, меню     */
  --fs-md:   18px;                          /* заголовки карточек       */
  --fs-lg:   clamp(18px, 2.2vw, 22px);     /* лид под заголовком секции*/
  --fs-xl:   clamp(26px, 3vw, 38px);       /* H2 секций                */
  --fs-2xl:  clamp(36px, 4.5vw, 56px);     /* H1 hero                  */
}

/* ── Сброс ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Rubik', Arial, sans-serif;
  color: var(--dark);
  background: #0d1a30; /* тёмный фон чтобы не просвечивало за шапкой при скролле */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
}

/* ── Контейнер ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  padding-inline: var(--px);
  margin: 0 auto;
}

/* ── Кнопки ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  transition: opacity var(--tr), transform var(--tr), box-shadow var(--tr);
  text-decoration: none;
}
.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 1; }

.btn-lead       { background: var(--grad-lead); }
.btn-commercial { background: var(--grad-commercial); color: #fff; }
.btn-info       { background: var(--grad-info); }
.btn-nav        { background: var(--grad-nav); }

.btn--sm  { padding: 10px 18px; font-size: var(--fs-sm); }
.btn--lg  { padding: 18px 36px; font-size: var(--fs-md); font-weight: 700; }

/* ── Попап ────────────────────────────────────────────────────── */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup-overlay.is-open { display: flex; }
.popup {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.popup__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray);
  border: none;
  border-radius: 50%;
  color: var(--muted);
  transition: background var(--tr);
}
.popup__close:hover { background: var(--border); }
.popup__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.popup__sub {
  font-size: var(--fs-base);
  color: var(--muted);
  text-align: center;
}

/* ══════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  /* фон на ::before чтобы можно было fade через CSS-переменную */
  background: transparent;
  overflow: visible; /* нужен для position: absolute у .mobile-menu */
}
/* Градиентный фон — всегда на месте, лого едет внутри него */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-header);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  pointer-events: none;
}

/* Одна строка — overflow: hidden клипает логотип когда он уезжает вправо */
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding-block: 10px;
  overflow: hidden; /* логотип уходит вправо и клипается здесь */
}

/* Навигация — центральный flex-элемент */
.header__inner > nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.header__menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.header__menu-link {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  padding: 10px 20px;
  display: block;
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
.header__menu-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Логотип — JS двигает через inline transform */
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 10px;
}
.header__logo-icon {
  height: 56px;
  width: auto;
  display: block;
}
.header__logo-text {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}

/* Телефон в хедере (только десктоп) */
.header__phone {
  font-family: 'Rubik', Arial, sans-serif;
  font-size: var(--fs-base);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  transition: opacity var(--tr);
}
.header__phone:hover { opacity: 0.85; }

/* Телефон в мобильном меню */
.mobile-menu__phone {
  display: block;
  padding: 18px var(--px);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: opacity var(--tr);
}
.mobile-menu__phone:hover { opacity: 0.8; }

/* Правый блок */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__social-link {
  display: flex;
  align-items: center;
  transition: opacity var(--tr);
}
.header__social-link:hover { opacity: 1; }
.header__social-link svg { opacity: 0.75; transition: opacity var(--tr); }
.header__social-link:hover svg { opacity: 1; }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: var(--r-sm);
  padding: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr), width var(--tr);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #0d2240;
  background-image:
    radial-gradient(rgba(255,255,255,0.18) 0.4px, transparent 0.4px),
    radial-gradient(rgba(255,255,255,0.10) 0.4px, transparent 0.4px),
    radial-gradient(rgba(255,255,255,0.06) 0.4px, transparent 0.4px);
  background-size: 1px 1px, 2px 2px, 3px 3px;
  background-position: 0 0, 0.5px 0.5px, 1px 1.5px;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 199;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__list { padding: 8px 0; }
.mobile-menu__link {
  display: block;
  padding: 14px var(--px);
  font-size: var(--fs-base);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--tr), color var(--tr);
}
.mobile-menu__link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px var(--px);
}

/* ══════════════════════════════════════════
   HERO ✅
════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: #0e1f38;
  background-image: url('/assets/img/photos/filters.png');
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14,31,56,1)    0%,
    rgba(14,31,56,0.85) 40%,
    rgba(14,31,56,0.2)  75%,
    rgba(14,31,56,0)    100%
  );
}

/* асфальт-шум поверх hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.18) 0.4px, transparent 0.4px),
    radial-gradient(rgba(255,255,255,0.10) 0.4px, transparent 0.4px),
    radial-gradient(rgba(255,255,255,0.06) 0.4px, transparent 0.4px);
  background-size: 1px 1px, 2px 2px, 3px 3px;
  background-position: 0 0, 0.5px 0.5px, 1px 1.5px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 100px 80px;
}

.hero__content {
  max-width: 680px;
}

.hero__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: var(--fs-lg);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-base);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.hero__trust-icon { flex-shrink: 0; }

/* ══════════════════════════════════════════
   СЕКЦИИ (общие)
════════════════════════════════════════════ */
.section {
  padding-block: 80px;
}
.section--gray  { background: var(--gray); }
.section--beige { background: #F4F1EA; }
.section--dark { background: var(--dark); color: var(--white); }

.section__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section__sub {
  font-size: var(--fs-lg);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 600px;
}

/* ══════════════════════════════════════════
   CATALOG ✅
════════════════════════════════════════════ */
.catalog-head {
  max-width: 720px;
  margin-bottom: 28px;
}
.catalog-head .section__sub {
  margin-bottom: 0;
}

/* Сетка карточек */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* Карточка */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--tr), transform var(--tr);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(30,58,95,0.12);
  transform: translateY(-3px);
}

/* Обёртка фото */
.card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray);
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card__img { transform: scale(1.04); }

/* Бейдж */
.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--grad-lead);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-sm);
}

/* Тело карточки */
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 24px;
  gap: 14px;
}

.card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

/* Теги конфигурации */
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 102, 204, 0.08);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  white-space: nowrap;
}

/* Проблемы */
.card__problems {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 0;
}
.card__problems li {
  font-size: 17px;
  color: #374151;
  padding-left: 24px;
  position: relative;
}
/* Зелёный кружок с галочкой — как в hero trust */
.card__problems li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7l3 3 5-6' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;
  border-radius: 50%;
}

/* Футер карточки */
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card__price {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.card__price-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}
.card__price-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--price);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.1;
}

/* CTA под сеткой */
.catalog-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: var(--gray);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.catalog-cta p {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--dark);
  flex: 1;
}

/* ══════════════════════════════════════════
   HOW IT WORKS ✅
════════════════════════════════════════════ */

/* Шапка блока */
.how__head {
  margin-bottom: 48px;
}
.how__head .section__sub {
  margin-bottom: 0;
}

/* Обёртка шагов — мобайл: вертикальная стопка */
.how__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Один шаг */
.how__step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
}

/* Левая колонка: номер + иконка */
.how__step-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

/* Большой номер шага */
.how__step-num {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-info);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Круглая иконка */
.how__icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--blue);
  flex-shrink: 0;
}

/* Текстовая часть шага */
.how__step-body {
  padding-top: 4px;
}

.how__step-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

/* Срок — акцентный */
.how__step-time {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.how__step-desc {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.6;
}

/* Вертикальный коннектор между шагами (мобайл) */
.how__connector {
  width: 2px;
  height: 28px;
  background: repeating-linear-gradient(
    to bottom,
    var(--border) 0px,
    var(--border) 6px,
    transparent 6px,
    transparent 12px
  );
  margin-left: 25px; /* выровнять под центром иконки */
}

/* ── Адаптив ─────────────────────────────────────────────────── */
/* ── HOW: десктоп — горизонтальные шаги ──────────────────────── */
@media (min-width: 768px) {
  /* Шаги в ряд */
  .how__steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  /* Каждый шаг занимает равную долю */
  .how__step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    gap: 12px;
  }

  /* Иконка горизонтально — номер над иконкой */
  .how__step-icon {
    align-items: center;
  }

  /* Горизонтальный коннектор */
  .how__connector {
    width: 40px;
    height: 2px;
    margin: 0;
    align-self: center;
    margin-top: -48px; /* поднять до уровня иконок */
    background: repeating-linear-gradient(
      to right,
      var(--border) 0px,
      var(--border) 6px,
      transparent 6px,
      transparent 12px
    );
    flex-shrink: 0;
  }
}

/* ──────────────────────────────────────────
   ABOUT — О компании
────────────────────────────────────────── */
.about__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about__fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about__fact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray);
  border-radius: var(--r-md);
  color: var(--blue);
}

.about__fact-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about__fact-num {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.about__fact-label {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.4;
}

.about__quote {
  font-size: var(--fs-base);
  color: #374151;
  line-height: 1.65;
  border-left: 3px solid var(--blue);
  padding-left: 16px;
  margin: 0;
}

.about__btn {
  align-self: flex-start;
}

.about__photo-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray);
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 992px) {
  .about__inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .about__content {
    flex: 1;
    min-width: 0;
  }

  .about__photo-wrap {
    flex: 0 0 380px;
    aspect-ratio: 3/4;
  }
}

/* ──────────────────────────────────────────
   CHAT SECTION — Подбор через чат
────────────────────────────────────────── */
.chat-section__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.chat-section__lead {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-section__hints {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-section__hints li {
  font-size: var(--fs-sm);
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}

.chat-section__hints li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.5;
}

/* ── Окно чата ── */
.chat-window {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.chat-window__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f4f4f4;
  background: var(--white);
}

.chat-window__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #f0f0f0;
  flex-shrink: 0;
}

.chat-window__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-window__agent-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chat-window__agent-name {
  font-size: var(--fs-base);
  font-weight: 700;
  color: #2e3752;
  line-height: 1.2;
}

.chat-window__agent-role {
  font-size: 11px;
  color: #7f00ff;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.chat-window__status {
  font-size: var(--fs-xs);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-window__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.chat-window__messages {
  flex: 1;
  padding: 20px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}

.chat-msg--bot {
  display: flex;
  justify-content: flex-start;
}

.chat-msg__bubble {
  background: #f5f5f5;
  color: #2e3752;
  border-radius: 6px 6px 6px 0;
  padding: 12px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.55;
  max-width: 85%;
}

.chat-window__quick {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.chat-quick-btn {
  background: #f0f0f0;
  border: none;
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  font-family: var(--font-base);
  color: #2e3752;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background var(--tr);
}

.chat-quick-btn:hover {
  background: #e0e0e0;
}

.chat-window__input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #f4f4f4;
}

.chat-window__attach {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: color var(--tr), background var(--tr);
}

.chat-window__attach:hover {
  color: var(--blue);
  background: var(--gray);
}

.chat-window__input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-size: var(--fs-sm);
  font-family: var(--font-base);
  color: #2e3752;
  background: var(--white);
  outline: none;
  transition: border-color var(--tr);
}

.chat-window__input:focus {
  border-color: var(--blue);
}

.chat-window__send {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--white);
  transition: opacity var(--tr);
}

.chat-window__send:hover {
  opacity: 0.85;
}

@media (min-width: 992px) {
  .chat-section__inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .chat-section__lead {
    flex: 1;
    min-width: 0;
  }

  .chat-window {
    flex: 0 0 420px;
  }
}

/* ──────────────────────────────────────────
   FAQ — Частые вопросы
────────────────────────────────────────── */
.faq__head {
  margin-bottom: 32px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item:first-child {
  border-top: 1px solid var(--border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--tr);
}

/* убираем дефолтный маркер в Safari/Firefox */
.faq__question::-webkit-details-marker { display: none; }

.faq__item[open] .faq__question {
  color: var(--blue);
}

.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  position: relative;
  transition: border-color var(--tr), background var(--tr);
}

/* крестик/плюсик через псевдоэлементы */
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--muted);
  border-radius: 2px;
  transition: transform var(--tr), background var(--tr);
}

.faq__icon::before {
  width: 10px;
  height: 2px;
}

.faq__icon::after {
  width: 2px;
  height: 10px;
}

.faq__item[open] .faq__icon {
  border-color: var(--blue);
  background: var(--blue);
}

.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after {
  background: var(--white);
}

.faq__item[open] .faq__icon::after {
  transform: rotate(90deg);
}

.faq__answer {
  padding: 0 0 20px;
}

.faq__answer p {
  font-size: var(--fs-base);
  color: #374151;
  line-height: 1.65;
  margin: 0;
}

@media (min-width: 768px) {
  .faq__question {
    font-size: var(--fs-md);
    padding: 22px 0;
  }
}

/* ──────────────────────────────────────────
   CTA — Финальный призыв
────────────────────────────────────────── */
.cta {
  background: var(--dark);
  color: var(--white);
}

.cta__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.cta__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin: 0;
}

.cta__sub {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.7);
  margin: 8px 0 0;
}

.cta__form {
  width: 100%;
}

.cta__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta__input {
  width: 100%;
  padding: 14px 18px;
  font-size: var(--fs-base);
  font-family: var(--font-base);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  outline: none;
  transition: border-color var(--tr);
  box-sizing: border-box;
}

.cta__input::placeholder {
  color: rgba(255,255,255,0.35);
}

.cta__input:focus {
  border-color: rgba(255,255,255,0.5);
}

.cta__messengers {
  display: flex;
  gap: 8px;
}

.cta__messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  cursor: pointer;
  font-size: 18px;
  transition: background var(--tr), border-color var(--tr);
  position: relative;
}

.cta__messenger-btn span {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  pointer-events: none;
}

.cta__messenger-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cta__messenger-btn:has(input:checked) {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
}

.cta__submit {
  width: 100%;
}

.cta__privacy {
  margin: 12px 0 0;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}

.cta__privacy-link {
  color: rgba(255,255,255,0.55);
}

.cta__success {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--r-md);
  color: #86efac;
  font-size: var(--fs-base);
  font-weight: 600;
}

@media (min-width: 768px) {
  .cta__inner {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }

  .cta__text {
    flex: 0 0 260px;
  }

  .cta__form {
    flex: 1;
    min-width: 0;
  }

  .cta__fields {
    flex-direction: row;
    align-items: center;
  }

  .cta__input {
    flex: 1;
    min-width: 0;
  }

  .cta__submit {
    width: auto;
    flex-shrink: 0;
  }
}

/* ──────────────────────────────────────────
   FOOTER — Подвал
────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: var(--white);
  padding-block: 56px 32px;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  height: 44px;
  width: auto;
  display: block;
}

.footer__since {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}

.footer__col-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--tr);
}

.footer__link:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
}

.footer__copy {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
  margin: 0;
}

.footer__policy {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--tr);
}

.footer__policy:hover {
  color: rgba(255,255,255,0.7);
}

@media (min-width: 768px) {
  .footer__nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) {
  .footer__top {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }

  .footer__brand {
    flex: 0 0 160px;
  }

  .footer__nav {
    flex: 1;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 1024px) {
  .header__inner > nav { display: none; }
  .header__actions .btn--sm { display: none; }
  .header__phone { display: none; }
  .burger { display: flex; }

  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* мобильная картинка hero — только на мобиле */
.hero__mobile-img-wrap {
  display: none;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 28px;
}

.hero__mobile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero__mobile-img-wrap { display: block; }

  .header__socials { display: none; }
  .header__logo-icon { height: 44px; }
  .header__logo-text { height: 32px; }
  .header__inner { gap: 10px; }

  .hero__bg { background-image: none; }

  .hero__inner { padding-block: 20px 60px; }
  .hero__trust { gap: 14px; }
  .hero__trust-item { font-size: 17px; font-weight: 400; }

  .section { padding-block: 56px; }

  .catalog-cta { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 20px; }

}

@media (max-width: 480px) {
  .hero { min-height: 520px; }
  .hero__inner { padding-block: 60px 50px; }
  .btn--lg { padding: 16px 28px; font-size: var(--fs-md); }

  .section { padding-block: 40px; }

  .catalog-grid { grid-template-columns: 1fr; }
}
