/* =====================================================================
   css/theme2.css
   "Тема 2" — второй, полностью самостоятельный дизайн сайта. Специально
   НЕ подключает css/tokens.css / css/palettes.css / css/styles.css и не
   переиспользует их классы — все переменные и компоненты объявлены здесь
   же, со своим префиксом ".t2-", чтобы дизайны никогда не смешивались в
   одном проекте (см. global.designTheme в конструкторе). Растёт
   постепенно: пока стилями покрыты только шапка и Hero — остальные блоки
   в этом дизайне на сайте пока недоступны для добавления (см.
   window.APPLIANCE_PAGE_BLOCK_TYPES_THEME2 в configurator/schema.js).

   Цвета/пропорции сняты с референса (тёмно-синий/чёрный фон, синий
   акцент, жирный капс в заголовках) — не пиксель-в-пиксель на первой
   итерации, уточняются по ходу добавления следующих блоков.
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --t2-bg: #050b12;
  --t2-bg-card: #101d27;
  --t2-accent: #2f80ed;
  --t2-accent-dark: #1f66c4;
  --t2-text: #ffffff;
  --t2-text-secondary: rgba(255, 255, 255, .68);
  --t2-border: rgba(255, 255, 255, .12);

  --t2-radius-sm: 8px;
  --t2-radius: 14px;
  --t2-radius-pill: 999px;

  --t2-space-1: 4px;
  --t2-space-2: 8px;
  --t2-space-3: 12px;
  --t2-space-4: 16px;
  --t2-space-5: 24px;
  --t2-space-6: 32px;
  --t2-space-7: 48px;
  --t2-space-8: 64px;

  --t2-container-width: 1180px;
  --t2-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t2-shadow-glow: 0 10px 28px rgba(47, 128, 237, .35);
}

body.t2-body {
  background: var(--t2-bg);
  color: var(--t2-text);
  font-family: var(--t2-font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.t2-container { max-width: var(--t2-container-width); margin: 0 auto; padding: 0 var(--t2-space-4); }

.t2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--t2-space-2);
  font-family: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: none; border-radius: var(--t2-radius-pill); padding: 15px 28px;
  background: var(--t2-accent); color: #fff; box-shadow: var(--t2-shadow-glow);
  transition: background .15s ease, transform .15s ease;
}
.t2-btn:hover { background: var(--t2-accent-dark); transform: translateY(-1px); }
.t2-btn svg { width: 18px; height: 18px; flex: none; }

/* ---- Кнопки мессенджеров (messengerButtonsHtml() в js/render.js) — те же
   классы .btn/.btn--telegram/.btn--max/.btn__label/.icon-badge, что и в
   классике (см. css/styles.css), здесь свой вид под Тему 2 — используются
   и в Hero, и в "Зоне выезда" (см. .t2-hero__contacts-row/
   .t2-servicearea__contacts ниже). ---- */
.btn { display: inline-flex; align-items: center; gap: var(--t2-space-2); text-decoration: none; border-radius: var(--t2-radius); padding: var(--t2-space-3) var(--t2-space-4); font-weight: 700; font-size: 14px; color: #fff; }
.btn__label { white-space: nowrap; }
.btn--telegram { background: #229ed9; }
.btn--max { background: #7c3aed; }
.icon-badge { width: 20px; height: 20px; stroke: currentColor; fill: none; flex: none; }
.icon-badge[src] { stroke: none; }

/* ---- Шапка ---- */
.t2-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--t2-bg);
  border-bottom: 1px solid var(--t2-border);
}
.t2-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--t2-space-4);
  padding: var(--t2-space-3) var(--t2-space-4);
  max-width: var(--t2-container-width); margin: 0 auto;
}
.t2-header__brand { display: flex; align-items: center; gap: var(--t2-space-2); text-decoration: none; flex: none; }
.t2-header__brand-icon {
  width: 36px; height: 36px; border-radius: var(--t2-radius-sm); flex: none;
  background: linear-gradient(135deg, var(--t2-accent), #1a4f9c);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.t2-header__brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.t2-header__brand-icon svg { width: 18px; height: 18px; stroke: #fff; fill: none; }
.t2-header__brand-name { font-weight: 800; font-size: 16px; color: var(--t2-accent); white-space: nowrap; }
.t2-header__phone {
  display: flex; align-items: center; gap: var(--t2-space-2);
  color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.t2-header__phone svg { width: 16px; height: 16px; stroke: var(--t2-accent); fill: none; flex: none; }
.t2-header__burger {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 36px; height: 36px; flex: none; background: none; border: none; cursor: pointer; padding: 0;
}
.t2-header__burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }
@media (max-width: 380px) {
  .t2-header__brand-name { display: none; }
}
.t2-header__nav {
  flex-basis: 100%; order: 10; max-height: 0; overflow: hidden; background: var(--t2-bg-card);
  transition: max-height .2s ease;
}
.t2-header__nav.is-open { max-height: 320px; }
.t2-header__nav a {
  display: block; padding: var(--t2-space-3) var(--t2-space-4);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
  border-top: 1px solid var(--t2-border);
}
.t2-header__btn {
  display: none; flex: none; align-items: center; justify-content: center;
  background: var(--t2-accent); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
  border-radius: var(--t2-radius-pill); padding: 10px 20px; white-space: nowrap;
}
/* ---- ПК: пункты меню видны сразу в строку рядом с телефоном (между лого
   и телефоном — flex-basis:100%/order выше отменяются), гамбургер и
   раскрывающийся список скрыты — как в референсе для "Темы 2". ---- */
@media (min-width: 901px) {
  .t2-header__inner { flex-wrap: nowrap; gap: var(--t2-space-6); }
  .t2-header__nav {
    flex-basis: auto; order: 0; flex: 1;
    max-height: none; overflow: visible; background: none;
    display: flex; align-items: center; gap: var(--t2-space-5);
  }
  .t2-header__nav a { display: inline; padding: 0; border-top: none; font-size: 14px; }
  .t2-header__nav a:hover { color: var(--t2-accent); }
  .t2-header__burger { display: none; }
  .t2-header__btn { display: inline-flex; }
}

/* ---- Hero ---- */
.t2-hero {
  position: relative; overflow: hidden;
  background: var(--t2-bg) no-repeat center / cover;
  padding: var(--t2-space-6) 0;
}
.t2-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 18, .78) 0%, rgba(5, 11, 18, .94) 100%);
}
.t2-hero__inner { position: relative; z-index: 1; max-width: var(--t2-container-width); margin: 0 auto; padding: 0 var(--t2-space-4); }
.t2-hero__eyebrow { display: block; color: var(--t2-accent); font-weight: 700; font-size: 14px; margin-bottom: var(--t2-space-3); text-transform: uppercase; letter-spacing: .04em; }
.t2-hero__title {
  margin: 0 0 var(--t2-space-3); color: #fff;
  font-weight: 800; font-size: clamp(26px, 4.2vw, 38px); line-height: 1.2; letter-spacing: -.01em;
}
.t2-hero__lines { display: flex; flex-direction: column; gap: var(--t2-space-1); margin: 0 0 var(--t2-space-4); max-width: 640px; }
.t2-hero__line { color: var(--t2-text-secondary); font-size: 16px; }
.t2-hero__line strong { color: #fff; }
.t2-hero__cta-row { display: flex; flex-wrap: wrap; gap: var(--t2-space-3); }
.t2-btn--outline { background: rgba(255, 255, 255, .08); box-shadow: none; border: 1px solid rgba(255, 255, 255, .3); }
.t2-btn--outline:hover { background: rgba(255, 255, 255, .16); }
.t2-hero__contacts-row, .t2-hero__status { display: none; }
.t2-hero__contacts-row .btn { flex-direction: column; gap: 6px; text-align: center; border-radius: var(--t2-radius); padding: var(--t2-space-3) var(--t2-space-4); font-size: 12px; }
.t2-hero__contacts-row .btn svg { width: 22px; height: 22px; }

/* ---- Hero — компактные преимущества/плашка акции (только ПК, тянутся из
   соседних блоков "Преимущества"/"Заявка с таймером", см. hero() и
   t2HeroPerksHtml()/t2HeroPromoHtml() в js/render.js). На мобильном не
   показываются — та же информация уже есть отдельными блоками ниже по
   странице, дублировать там мало места незачем. ---- */
.t2-hero__perks, .t2-hero__promo { display: none; }
@media (min-width: 901px) {
  .t2-hero__content { max-width: 640px; }
  .t2-hero__overlay {
    background: linear-gradient(90deg, rgba(5, 11, 18, .93) 0%, rgba(5, 11, 18, .86) 45%, rgba(5, 11, 18, .35) 75%, rgba(5, 11, 18, 0) 100%);
  }
  .t2-hero__perks {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--t2-space-3) var(--t2-space-5);
    margin: 0 0 var(--t2-space-4);
  }
  .t2-hero__perk { display: flex; align-items: flex-start; gap: var(--t2-space-2); }
  .t2-hero__perk-icon { display: flex; flex: none; color: var(--t2-accent); margin-top: 2px; }
  .t2-hero__perk-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
  .t2-hero__perk-title { display: block; color: #fff; font-size: 14px; font-weight: 700; }
  .t2-hero__perk-text { display: block; color: var(--t2-text-secondary); font-size: 13px; }
  .t2-hero__promo {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--t2-space-4);
    background: rgba(16, 29, 39, .85); border: 1px solid var(--t2-border); border-radius: var(--t2-radius);
    padding: var(--t2-space-4); margin-bottom: var(--t2-space-4);
  }
  .t2-hero__promo-cd { display: flex; gap: var(--t2-space-2); }
  .t2-hero__promo-cd-cell { text-align: center; background: rgba(255, 255, 255, .06); border-radius: var(--t2-radius-sm); padding: 8px 10px; }
  .t2-hero__promo-cd-cell span { display: block; color: #fff; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .t2-hero__promo-cd-cell small { color: var(--t2-text-secondary); font-size: 10px; text-transform: uppercase; }
  .t2-hero__promo-text { display: flex; flex-direction: column; gap: 2px; }
  .t2-hero__promo-date { color: var(--t2-accent); font-weight: 700; font-size: 13px; }
  .t2-hero__promo-text strong { color: #fff; font-size: 15px; }
  .t2-hero__promo .t2-hero__cta-row { flex: 1 1 auto; }
  .t2-hero__cta-row--has-promo { display: none; }
  .t2-hero__contacts-row { display: flex; flex-wrap: wrap; gap: var(--t2-space-3); margin-top: var(--t2-space-4); }
  .t2-hero__contacts-row:empty { display: none; margin: 0; }
  .t2-hero__status { display: block; margin: var(--t2-space-3) 0 0; color: var(--t2-text-secondary); font-size: 13px; }
}

/* ---- Общий заголовок секции ---- */
.t2-section-title {
  margin: 0 0 var(--t2-space-5); color: #fff;
  font-weight: 800; font-size: clamp(22px, 3.5vw, 30px); letter-spacing: -.01em;
}

/* ---- "Мои преимущества" — светлая секция (как "Поломки и цены"/"Как
   проходит ремонт" ниже), карточки внутри остаются тёмными — хорошо
   контрастируют сами по себе, менять их не нужно. ---- */
.t2-advantages { background: #f4f6f8; padding: var(--t2-space-6) 0 var(--t2-space-8); }
.t2-advantages .t2-section-title { color: #0b141c; }
.t2-advantages__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--t2-space-4); }
@media (max-width: 360px) { .t2-advantages__grid { grid-template-columns: 1fr; } }
.t2-advantages-card {
  background: var(--t2-bg-card); border-radius: var(--t2-radius); padding: var(--t2-space-5);
  border: 1px solid var(--t2-border); box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.t2-advantages-card__head { display: flex; align-items: flex-start; gap: var(--t2-space-2); margin-bottom: var(--t2-space-2); }
.t2-advantages-card__icon { display: flex; flex: none; color: var(--t2-accent); margin-top: 3px; }
.t2-advantages-card__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.t2-advantages-card__title { margin: 0; color: #fff; font-size: 17px; font-weight: 700; }
.t2-advantages-card__text { margin: 0; color: var(--t2-text-secondary); font-size: 14px; }

/* ---- "Мои преимущества" — вариант с фото (все пункты с заполненным
   фото, см. advantages() в js/render.js) — фото сверху, цветная плашка с
   заголовком и текстом снизу, чередование двух цветов плашки. ---- */
.t2-advantages__grid--photo { grid-template-columns: repeat(2, 1fr); gap: var(--t2-space-4); }
@media (min-width: 640px) { .t2-advantages__grid--photo { grid-template-columns: repeat(4, 1fr); } }
.t2-advantages-card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.t2-advantages-card__img { aspect-ratio: 4 / 3; }
.t2-advantages-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t2-advantages-card__band { flex: 1; padding: var(--t2-space-4); background: #3a4550; }
.t2-advantages-card__band--alt { background: var(--t2-accent-dark); }
.t2-advantages-card--photo .t2-advantages-card__title { margin-bottom: 4px; }
.t2-advantages-card--photo .t2-advantages-card__text { color: rgba(255, 255, 255, .82); }

/* ---- Плашка "До конца акции" (под карточками преимуществ) ---- */
.t2-promo {
  display: flex; flex-wrap: wrap; margin-top: var(--t2-space-4);
  border-radius: var(--t2-radius); overflow: hidden; box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.t2-promo__timer {
  flex: 1 1 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(135deg, #1e90c9, #146aa1); padding: var(--t2-space-4);
}
.t2-promo__timer-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.t2-promo__timer-digits { font-size: 32px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.t2-promo__timer-units { display: flex; gap: var(--t2-space-4); font-size: 11px; color: rgba(255, 255, 255, .75); text-transform: uppercase; }
.t2-promo__text { flex: 2 1 260px; background: var(--t2-bg-card); padding: var(--t2-space-4) var(--t2-space-5); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.t2-promo__date { color: var(--t2-accent); font-weight: 700; font-size: 15px; }
.t2-promo__desc { color: #fff; font-weight: 700; font-size: 16px; }

/* ---- Полоса цифр — каждая цифра на отдельной плашке ---- */
.t2-stats { background: #f4f6f8; }
.t2-stats__inner { display: flex; flex-wrap: wrap; gap: var(--t2-space-3); padding: var(--t2-space-6) var(--t2-space-4); }
.t2-stats__item {
  flex: 1 1 25%; min-width: 130px; text-align: center; padding: var(--t2-space-4) var(--t2-space-3);
  background: #fff; border-radius: var(--t2-radius); box-shadow: 0 4px 14px rgba(11, 20, 28, .08);
}
.t2-stats__value { font-size: clamp(20px, 5vw, 30px); font-weight: 800; color: #0b141c; }
.t2-stats__label { font-size: clamp(10px, 2.6vw, 13px); color: #5b6470; margin-top: var(--t2-space-1); }
@media (max-width: 360px) {
  .t2-stats__item { flex: 1 1 45%; }
}
/* ---- ПК: одна строка из 4 ячеек с разделителями на сплошном сером фоне,
   без отдельных белых карточек — как в референсе для "Темы 2". ---- */
@media (min-width: 901px) {
  .t2-stats__inner { flex-wrap: nowrap; gap: 0; padding: var(--t2-space-5) var(--t2-space-4); }
  .t2-stats__item {
    flex: 1 1 0; background: none; border-radius: 0; box-shadow: none;
    padding: var(--t2-space-3) var(--t2-space-5); border-left: 1px solid rgba(11, 20, 28, .12);
  }
  .t2-stats__item:first-child { border-left: none; }
}

/* ---- Плашка-надпись над заголовком секции ---- */
.t2-eyebrow {
  display: inline-block; margin-bottom: var(--t2-space-3);
  background: rgba(47, 128, 237, .16); color: var(--t2-accent);
  font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--t2-radius-pill);
}
.t2-section-subtitle { margin: calc(-1 * var(--t2-space-3)) 0 var(--t2-space-5); color: var(--t2-text-secondary); font-size: 15px; max-width: 640px; }

/* ---- Общий каркас карусели (carouselHtml/wireCarousels) для Темы 2 ----
   Разметка полностью переиспользуется из js/render.js (те же классы
   .carousel/.carousel__*, что и в классике), но стилизация здесь своя —
   классический styles.css в Теме 2 не подключается, коллизий нет. */
.carousel__track {
  display: flex; gap: var(--t2-space-4); overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { scroll-snap-align: start; flex: 0 0 auto; width: min(300px, 82vw); }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: var(--t2-space-4); margin-top: var(--t2-space-5); }
.carousel__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: none; background: #fff;
  display: flex; align-items: center; justify-content: center; flex: none; color: var(--t2-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3); cursor: pointer;
}
.carousel__arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.carousel__dots { display: flex; align-items: center; gap: 6px; }
.carousel__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--t2-border); border: none; padding: 0; cursor: pointer; }
.carousel__dot.is-active { background: var(--t2-accent); width: 22px; transition: width .2s ease; }
@media (min-width: 901px) {
  .carousel--grid-desktop .carousel__track {
    display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; scroll-snap-type: none;
  }
  .carousel--grid-desktop .carousel__slide { width: auto; scroll-snap-align: none; }
  .carousel--grid-desktop .carousel__nav { display: none; }
}

/* ---- "Поломки и цены" (featureGrid) ----
   Секция на светлом фоне (как и .t2-stats выше) — тёмные карточки
   выступают на нём контрастными плашками, как в референсе. */
.t2-problems { background: #f4f6f8; padding: var(--t2-space-6) 0 var(--t2-space-8); }
.t2-problems .t2-section-title { color: #0b141c; }
.t2-problems .t2-section-subtitle { color: #5b6470; }
.t2-problems .carousel__dot { background: rgba(11, 20, 28, .15); }
.t2-problem-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--t2-bg-card); border-radius: var(--t2-radius); border: 1px solid var(--t2-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.t2-problem-card__photo {
  position: relative; aspect-ratio: 4 / 3; flex: none;
  background: linear-gradient(135deg, #14283a, #0a1622) no-repeat center / cover;
  display: flex; align-items: center; justify-content: center;
}
.t2-problem-card__icon { display: flex; color: var(--t2-accent); }
.t2-problem-card__icon svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.t2-problem-card__body { display: flex; flex-direction: column; gap: var(--t2-space-1); padding: var(--t2-space-4) var(--t2-space-4) var(--t2-space-5); flex: 1; }
.t2-problem-card__title { margin: 0; color: #fff; font-size: 17px; font-weight: 700; }
.t2-problem-card__price { color: #fff; font-size: 20px; font-weight: 800; }
.t2-problem-card__text { margin: 0; color: var(--t2-text-secondary); font-size: 14px; }
.t2-problem-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--t2-space-2); }
.t2-problem-card__tag {
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: var(--t2-radius-pill);
}
.t2-problem-card__cta {
  display: inline-flex; align-items: center; justify-content: center; margin-top: var(--t2-space-3);
  background: #fff; color: var(--t2-accent); font-weight: 700; font-size: 14px; text-decoration: none;
  border-radius: var(--t2-radius-pill); padding: 12px 20px;
}

/* ---- Поясняющая плашка перед квизом (светлая, продолжает фон предыдущей
   секции — обычно "Поломки и цены") ---- */
.t2-quiz-note-section { background: #f4f6f8; padding: 0 0 var(--t2-space-6); }
.t2-quiz-note {
  background: #fff; border-radius: var(--t2-radius); padding: var(--t2-space-4) var(--t2-space-5);
  color: #333c44; font-size: 14px; line-height: 1.6; box-shadow: 0 4px 14px rgba(11, 20, 28, .08);
}

/* ---- Квиз "Узнать стоимость ремонта" (priceQuiz) ----
   Тёмная секция на всю ширину, внутри — приподнятая карточка квиза.
   Переключение шагов/подсчёт цены — общий wireQuiz() (см. описание в
   js/render.js), classes .quiz/.quiz__step/.quiz__option/.quiz__data
   обязательны для его работы, остальные (t2-*) — только оформление. */
.t2-quiz-section { background: var(--t2-bg); padding: var(--t2-space-8) 0; }
.t2-quiz__card { background: var(--t2-bg-card); border-radius: var(--t2-radius); border: 1px solid var(--t2-border); padding: var(--t2-space-5) var(--t2-space-4) var(--t2-space-6); }
/* Переключение шагов делает wireQuiz() через класс is-active — сама
   видимость шагов зависит от этого правила (без него показались бы все
   шаги квиза сразу друг под другом). */
.quiz__step { display: none; }
.quiz__step.is-active { display: block; }
.t2-quiz__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--t2-space-3); flex-wrap: wrap; margin-bottom: var(--t2-space-5); }
.t2-quiz__title { margin: 0; color: #fff; font-size: clamp(20px, 3.5vw, 26px); font-weight: 800; }
.t2-quiz__progress { color: var(--t2-text-secondary); font-size: 14px; white-space: nowrap; }
.t2-quiz__question { margin: 0 0 var(--t2-space-4); color: #fff; font-size: 18px; font-weight: 700; }
.t2-quiz__options { display: flex; flex-direction: column; gap: var(--t2-space-3); }
.t2-quiz__option {
  display: flex; align-items: center; gap: var(--t2-space-3); width: 100%; text-align: left;
  background: #fff; border: none; border-radius: var(--t2-radius); padding: var(--t2-space-4) var(--t2-space-4);
  font: inherit; font-size: 16px; color: #14202b; cursor: pointer; transition: transform .1s ease;
}
.t2-quiz__option:hover { transform: translateY(-1px); }
.t2-quiz__option-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c7cdd3; flex: none; }
.t2-quiz__step--result { text-align: center; }
.t2-quiz__result-price { color: var(--t2-accent); font-size: 28px; font-weight: 800; margin-bottom: var(--t2-space-3); }
.t2-quiz__result-text { color: var(--t2-text-secondary); font-size: 15px; max-width: 480px; margin: 0 auto var(--t2-space-5); }

/* ---- "Как проходит ремонт" (howItWorks) ----
   Та же светлая секция + тёмные карточки в carouselHtml(), что и у
   "Поломки и цены" выше — см. .t2-problems. */
.t2-steps { background: #f4f6f8; padding: var(--t2-space-6) 0 var(--t2-space-8); }
.t2-steps .t2-section-title { color: #0b141c; }
.t2-steps .t2-section-subtitle { color: #5b6470; }
.t2-steps .carousel__dot { background: rgba(11, 20, 28, .15); }
.t2-step-card {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: var(--t2-space-5) var(--t2-space-4) var(--t2-space-4);
  background: var(--t2-bg-card); border-radius: var(--t2-radius); border: 1px solid var(--t2-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
/* ---- Вариант с фото (шаг с заполненным полем "Фон шага", s.image в
   howItWorks() в js/render.js) — фото на весь фон карточки, текст поверх
   затемняющего градиента снизу. ---- */
.t2-step-card--photo { background: #0b141c no-repeat center / cover; min-height: 340px; }
.t2-step-card__overlay {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(5, 11, 18, .15) 0%, rgba(5, 11, 18, .55) 55%, rgba(5, 11, 18, .92) 100%);
}
.t2-step-card--photo > * { position: relative; z-index: 1; }
.t2-step-card--photo .t2-step-card__tag { background: rgba(0, 0, 0, .35); backdrop-filter: blur(2px); }
.t2-step-card__icon-wrap { position: relative; width: 72px; height: 72px; flex: none; margin-bottom: var(--t2-space-5); }
.t2-step-card__icon {
  display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%;
  background: #fff; color: var(--t2-accent);
}
.t2-step-card__icon svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.t2-step-card__number {
  position: absolute; left: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--t2-accent); color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; border: 3px solid var(--t2-bg-card);
}
.t2-step-card__title { margin: 0 0 var(--t2-space-2); color: #fff; font-size: 19px; font-weight: 700; }
.t2-step-card__text { margin: 0; color: var(--t2-text-secondary); font-size: 14px; flex: 1; }
.t2-step-card__tag {
  display: flex; align-items: center; gap: var(--t2-space-3); margin-top: var(--t2-space-4);
  background: rgba(255, 255, 255, .06); border-radius: var(--t2-radius-sm); padding: var(--t2-space-3);
}
.t2-step-card__tag-icon { display: flex; flex: none; color: #fff; }
.t2-step-card__tag-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.t2-step-card__tag-text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--t2-text-secondary); }
.t2-step-card__tag-text strong { color: #fff; font-size: 14px; font-weight: 700; }
.t2-step-callout {
  display: flex; align-items: flex-start; gap: var(--t2-space-4); margin-top: var(--t2-space-6);
  background: #e7f5fc; border-radius: var(--t2-radius); padding: var(--t2-space-5);
}
.t2-step-callout__icon { display: flex; flex: none; color: var(--t2-accent); }
.t2-step-callout__icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.t2-step-callout__title { margin: 0 0 4px; color: #0b141c; font-size: 17px; font-weight: 700; }
.t2-step-callout__text { margin: 0; color: #4c5560; font-size: 14px; }

/* ---- "Отзывы клиентов" (reviewsChat) — мокап телефона с перепиской ----
   Тёмная секция (как Hero/advantages), сама карусель — carouselHtml() как
   и у остальных карусельных блоков Темы 2; каждый слайд — целый мокап. */
.t2-reviewschat { background: var(--t2-bg); padding: var(--t2-space-6) 0 var(--t2-space-8); }
.t2-chatphone {
  max-width: 320px; margin: 0 auto; background: #0d1420; border: 8px solid #0d1420;
  border-radius: 34px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 48px rgba(0, 0, 0, .5);
  overflow: hidden; display: flex; flex-direction: column;
}
.t2-chatphone__notch { width: 120px; height: 22px; margin: 0 auto; background: #0d1420; border-radius: 0 0 14px 14px; flex: none; }
.t2-chatphone__statusbar {
  display: flex; align-items: center; justify-content: space-between; padding: 4px var(--t2-space-4) var(--t2-space-2);
  background: #0a1b36; color: #fff; font-size: 13px; font-weight: 700;
}
.t2-chatphone__signal { width: 40px; height: 10px; background: repeating-linear-gradient(90deg, #fff 0 6px, transparent 6px 10px); opacity: .8; }
.t2-chatphone__header {
  display: flex; align-items: center; gap: var(--t2-space-2); padding: var(--t2-space-2) var(--t2-space-4) var(--t2-space-3);
  background: #0a1b36; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.t2-chatphone__back { display: flex; flex: none; color: rgba(255, 255, 255, .8); }
.t2-chatphone__back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.t2-chatphone__avatar {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: #146a8c; color: #fff; font-size: 12px; font-weight: 800;
}
.t2-chatphone__contact { flex: 1; min-width: 0; }
.t2-chatphone__name { color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t2-chatphone__status { color: var(--t2-accent); font-size: 11px; font-weight: 600; }
.t2-chatphone__hicon { display: flex; flex: none; color: rgba(255, 255, 255, .55); }
.t2-chatphone__hicon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.t2-chatphone__messages { display: flex; flex-direction: column; gap: var(--t2-space-3); padding: var(--t2-space-4); background: #0a1b36; }
.t2-chatphone__msg { display: flex; }
.t2-chatphone__msg--in { justify-content: flex-start; }
.t2-chatphone__msg--out { justify-content: flex-end; }
.t2-chatphone__bubble {
  max-width: 84%; border-radius: 14px; padding: var(--t2-space-3) var(--t2-space-3) 18px; position: relative;
  font-size: 13px; line-height: 1.4; color: #dfe6ee;
}
.t2-chatphone__msg--in .t2-chatphone__bubble { background: #1a2a3b; border-bottom-left-radius: 4px; }
.t2-chatphone__msg--out .t2-chatphone__bubble { background: linear-gradient(135deg, #6d42e0, #4522b4); border-bottom-right-radius: 4px; color: #fff; }
.t2-chatphone__time { position: absolute; right: 12px; bottom: 6px; font-size: 10px; color: rgba(255, 255, 255, .5); white-space: nowrap; }
.t2-chatphone__ticks { color: #9fd8ff; }
.t2-chatphone__inputbar {
  display: flex; align-items: center; gap: var(--t2-space-2); margin: 0 var(--t2-space-3) var(--t2-space-3);
  background: #142236; border-radius: var(--t2-radius-pill); padding: var(--t2-space-2) var(--t2-space-3);
}
.t2-chatphone__inputicon { display: flex; flex: none; color: rgba(255, 255, 255, .45); }
.t2-chatphone__inputicon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.t2-chatphone__placeholder { flex: 1; color: rgba(255, 255, 255, .4); font-size: 13px; }

/* ---- "Марки техники" (brandLogos) ---- */
.t2-brands { background: #f4f6f8; padding: var(--t2-space-6) 0 var(--t2-space-8); }
.t2-brands .t2-section-title { color: #0b141c; }
.t2-brands .t2-section-subtitle { color: #5b6470; }
.t2-brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--t2-space-3); }
@media (min-width: 640px) { .t2-brand-grid { grid-template-columns: repeat(3, 1fr); } }
.t2-brand-card {
  display: flex; align-items: center; justify-content: center; min-height: 84px; padding: var(--t2-space-3);
  background: #fff; border-radius: var(--t2-radius); box-shadow: 0 4px 14px rgba(11, 20, 28, .08);
}
.t2-brand-card img { max-width: 100%; max-height: 42px; object-fit: contain; }
.t2-brand-card__name { color: #14202b; font-weight: 700; font-size: 15px; text-align: center; }
.t2-brand-other {
  display: flex; align-items: center; justify-content: center; gap: var(--t2-space-2); margin-top: var(--t2-space-5);
  color: #5b6470; font-size: 14px;
}
.t2-brand-other__icon { display: flex; color: #9aa3ac; }
.t2-brand-other__icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* ---- "Частые вопросы" (faq) ----
   Раскрытие/сворачивание — общий wireFaq() (классы .faq-item/.faq-item__q/
   is-open обязательны для него, см. описание в js/render.js), t2-* классы
   рядом — только оформление. */
.t2-faq { background: #fff; padding: var(--t2-space-6) 0 var(--t2-space-8); }
.t2-faq .t2-section-title { color: #0b141c; }
.t2-faq-list { display: flex; flex-direction: column; gap: var(--t2-space-3); }
.t2-faq-item { background: #fff; border-radius: var(--t2-radius); overflow: hidden; box-shadow: 0 4px 14px rgba(11, 20, 28, .08); }
.t2-faq-item__q {
  display: flex; align-items: flex-start; gap: var(--t2-space-4); width: 100%; text-align: left;
  background: none; border: none; padding: var(--t2-space-5); font: inherit; cursor: pointer;
}
.t2-faq-item__num { flex: none; width: 32px; color: #b7bec5; font-size: 20px; font-weight: 800; }
.t2-faq-item__question { flex: 1; color: #0b141c; font-size: 17px; font-weight: 700; }
.t2-faq-item.is-open .t2-faq-item__question { color: var(--t2-accent); }
.t2-faq-item__icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d8dde2;
  display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; color: #333c44;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.t2-faq-item.is-open .t2-faq-item__icon { background: #e7f5fc; border-color: transparent; color: var(--t2-accent); transform: rotate(45deg); }
.t2-faq-item__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.t2-faq-item__a p { margin: 0; padding: 0 var(--t2-space-5) var(--t2-space-5) calc(32px + var(--t2-space-4) + var(--t2-space-5)); color: #5b6470; font-size: 15px; line-height: 1.6; }
.t2-faq-item.is-open .t2-faq-item__a { max-height: 400px; }

/* ---- "Зона выезда" (карта, serviceArea) ----
   grid — 1 колонка (карта+контакты, затем карточка заявки, если она есть —
   см. serviceArea() в js/render.js), на ПК становится 2 колонками рядом
   (см. media-запрос ниже). ---- */
.t2-servicearea { background: #f4f6f8; padding: var(--t2-space-6) 0 var(--t2-space-8); }
.t2-servicearea .t2-section-title { color: #0b141c; }
.t2-servicearea__grid { display: flex; flex-direction: column; gap: var(--t2-space-5); }
.t2-servicearea__col { display: flex; flex-direction: column; gap: 0; border-radius: var(--t2-radius); overflow: hidden; }
.t2-servicearea__map { position: relative; height: 360px; background: #dfe4e8; }
.t2-servicearea__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.t2-servicearea__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; padding: var(--t2-space-4); text-align: center; color: #7b848d; font-size: 14px; }
.t2-servicearea__contacts {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--t2-space-4);
  background: var(--t2-bg); padding: var(--t2-space-4) var(--t2-space-5);
}
.t2-servicearea__contacts-label { color: var(--t2-text-secondary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; flex: none; }
.t2-servicearea__contact-link { display: inline-flex; align-items: center; gap: var(--t2-space-2); color: #fff; font-weight: 700; text-decoration: none; }
.t2-servicearea__contact-link svg { width: 18px; height: 18px; stroke: var(--t2-accent); fill: none; flex: none; }
.t2-servicearea__contacts .btn { padding: var(--t2-space-2) var(--t2-space-4); }
.t2-servicearea__lead .t2-leadform__card { max-width: none; margin: 0; height: 100%; }
@media (min-width: 901px) {
  .t2-servicearea__grid { flex-direction: row; align-items: stretch; }
  .t2-servicearea__col { flex: 1 1 60%; }
  .t2-servicearea__lead { flex: 1 1 40%; }
  .t2-servicearea__map { flex: 1; height: auto; min-height: 300px; }
}

/* ---- Промо-карточка "Оставить заявку" (leadForm) ----
   Таймер — общий wireCountdowns()/data-countdown, та же атрибутика, что и
   у промо-плашки advantages (t2PromoTimerHtml), просто другая вёрстка
   (3 отдельные карточки часы/минуты/секунды вместо строки цифр). Кнопка —
   обычный клик-звонок (см. комментарий у leadForm в js/render.js). */
.t2-leadform-section { background: #eef1f4; padding: var(--t2-space-8) 0; }
.t2-leadform__card {
  position: relative; overflow: hidden; max-width: 640px; margin: 0 auto;
  background: #fff; border-radius: var(--t2-radius); padding: var(--t2-space-6) var(--t2-space-5);
  box-shadow: 0 20px 48px rgba(11, 20, 28, .12);
}
.t2-leadform__deco {
  position: absolute; top: var(--t2-space-5); right: var(--t2-space-5); font-size: 64px; font-weight: 800;
  color: var(--t2-accent); opacity: .18; line-height: 1; pointer-events: none;
}
.t2-leadform__title { position: relative; margin: 0 0 var(--t2-space-2); color: #0b141c; font-size: clamp(24px, 4vw, 32px); font-weight: 800; }
.t2-leadform__subtitle { position: relative; margin: 0 0 var(--t2-space-5); color: #5b6470; font-size: 15px; max-width: 420px; }
.t2-leadform__countdown-intro { margin: 0 0 var(--t2-space-3); color: #14202b; font-size: 15px; font-weight: 600; }
.t2-leadform__countdown { display: flex; gap: var(--t2-space-3); margin-bottom: var(--t2-space-4); }
.t2-leadform__cd-cell {
  flex: 1; text-align: center; background: #eef5fc; border-radius: var(--t2-radius-sm); padding: var(--t2-space-3) var(--t2-space-2);
}
.t2-leadform__cd-cell span { display: block; color: var(--t2-accent); font-size: clamp(22px, 5vw, 30px); font-weight: 800; font-variant-numeric: tabular-nums; }
.t2-leadform__cd-cell small { color: #5b7080; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.t2-leadform__urgency {
  margin-bottom: var(--t2-space-4); background: #fdf3dc; border: 1px solid #f0d99a; border-radius: var(--t2-radius-sm);
  padding: var(--t2-space-3) var(--t2-space-4); color: #92680a; font-weight: 700; font-size: 14px;
}
.t2-leadform__consent { margin: 0 0 var(--t2-space-4); color: #7b848d; font-size: 13px; line-height: 1.6; }
.t2-leadform__consent a { color: var(--t2-accent); }
.t2-leadform__cta { width: 100%; }
.t2-leadform__note { margin: var(--t2-space-3) 0 0; text-align: center; color: #9aa3ac; font-size: 13px; }

/* ---- Подвал (footer) ---- */
.t2-footer__top { background: #f4f6f8; padding: var(--t2-space-6) 0; }
.t2-footer__grid { display: grid; gap: var(--t2-space-6); grid-template-columns: 1fr; }
@media (min-width: 720px) { .t2-footer__grid { grid-template-columns: 2fr 1fr; } }
.t2-footer__about { display: flex; gap: var(--t2-space-3); color: #5b6470; font-size: 14px; line-height: 1.6; }
.t2-footer__about-icon { display: flex; flex: none; color: #9aa3ac; }
.t2-footer__about-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.t2-footer__contacts h4 { margin: 0 0 var(--t2-space-2); color: #0b141c; font-size: 17px; font-weight: 800; }
.t2-footer__contacts p { margin: 0 0 4px; color: #5b6470; font-size: 14px; }
.t2-footer__contacts a { color: var(--t2-accent); font-weight: 700; font-size: 15px; text-decoration: none; }
.t2-footer__bottom { background: var(--t2-bg); padding: var(--t2-space-4) 0; }
.t2-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: var(--t2-space-2) var(--t2-space-5); justify-content: space-between; color: rgba(255, 255, 255, .5); font-size: 13px; }
.t2-footer__bottom-inner a { color: rgba(255, 255, 255, .5); }

/* ---- Нижняя плавающая панель (mobileActionBar) — те же классы/данные,
   что и в классике (см. BLOCKS_THEME2.mobileActionBar в js/render.js). ---- */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .mobile-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--t2-bg); border-top: 1px solid var(--t2-border);
    padding: var(--t2-space-2) var(--t2-space-2) calc(var(--t2-space-2) + env(safe-area-inset-bottom, 0px));
  }
  .mobile-bar__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .mobile-bar__btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 9px 4px; border-radius: var(--t2-radius-sm); background: rgba(255, 255, 255, .08); color: #fff;
    font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2; text-decoration: none;
  }
  .mobile-bar__btn svg, .mobile-bar__btn img { width: 20px; height: 20px; flex: none; }
  .mobile-bar__btn--call { background: var(--t2-accent); }
  .mobile-bar__btn--max { background: #7c3aed; }
  .mobile-bar__btn--telegram { background: #229ed9; }
  .mobile-bar__status { display: flex; flex-wrap: wrap; gap: var(--t2-space-3); justify-content: center; margin-top: var(--t2-space-2); font-size: 11px; color: rgba(255, 255, 255, .55); }
  .mobile-bar__status-item { display: flex; align-items: center; gap: 5px; }
  .mobile-bar__dot { width: 6px; height: 6px; border-radius: 50%; background: #3ecf6e; flex: none; }
  body.has-mobile-bar { padding-bottom: 78px; }
}

