/* =========================================================
   Собственная вёрстка реплики bani-mobilnie1.ru
   ========================================================= */

:root {
    --green: rgba(39, 99, 19, .9);
    --green-solid: #276313;
    --green-dark: rgba(14, 41, 5, .9);
    --yellow: #f0dc24;
    --text: #060607;
    --bg-base: #f2f0ee;
    --bg-pink: #ede6e6;
    --bg-greygreen: #c4c9c3;
    --footer-bg: #050607;
    --blue: #1b4d8c; --price-blue: #061a9e;
    --error: #ff714d;
    --radius: 10px;
    --font: 'Cuprum', 'Roboto-Ruble', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
section { scroll-margin-top: 190px; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    font-size: 20px;
    line-height: 1.35;
    color: var(--text);
    background: var(--bg-base);
    -webkit-text-size-adjust: 100%;
}
body.no-scroll { overflow: hidden; padding-right: var(--sbw, 0); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(1375px, 100%); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 900px; }
.center { text-align: center; }
.h2 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 28px;
}
.h2--center { text-align: center; }
.h2--left { text-align: left; }
.text-blue { color: var(--blue); }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
    padding: 14px 44px;
    transition: filter .2s, transform .12s;
    white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn:hover { filter: brightness(1.05); }
.btn--yellow { background: var(--yellow); color: #000; }
.btn--green { background: var(--green); color: #fff; font-weight: 700; font-size: 16px; padding: 12px 26px; }
.btn--sm { font-size: 15px; padding: 12px 24px; }
.btn--wide { padding: 14px 64px; }
.btn[disabled] { opacity: .65; cursor: default; }

/* ---------- Единый ввод телефона: маска +7 (___) ___-__-__ ---------- */
.ff__input[type="tel"] { letter-spacing: .02em; }
.ff__input[type="tel"].phone-active { background: #fffbea; transition: background .15s; }
.phone-hint { font-size: 13px; line-height: 1.3; margin-top: 5px; color: #8a7a2a; }
.phone-hint--err { color: #c0392b; font-weight: 700; }
.btn .spinner {
    width: 18px; height: 18px; margin-right: 10px; flex: 0 0 auto;
    border: 2px solid rgba(0,0,0,.25); border-top-color: #000; border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Шапка ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--bg-base);
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header__in {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr;
    align-items: start;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 10px;
}
.header__brand { display: flex; align-items: center; gap: 12px; }
.header__logo { display: inline-block; width: 74px; height: 74px; border-radius: 6px; overflow: hidden; background: #fff; flex: 0 0 auto; }
.header__logo img { width: 100%; height: 100%; object-fit: contain; }
.header__logo--mobile { display: none; }
.header__brand-text { display: flex; flex-direction: column; min-width: 0; }
.header__name { display: block; font-size: 24px; font-weight: 700; margin: 0; white-space: nowrap; }
.header__sub { display: block; font-size: 15px; margin-top: 6px; line-height: 1.3; }
.header__info { text-align: center; font-size: 19px; line-height: 1.45; padding-top: 10px; }
.header__right { display: flex; align-items: flex-start; justify-content: flex-end; gap: 14px; padding-top: 10px; }
.header__phone { text-align: right; line-height: 1.25; white-space: nowrap; }
.header__phone .ico-phone { width: 26px; height: 26px; display: inline-block; vertical-align: -4px; margin-right: 6px; }
.header__phone-num { font-size: 22px; font-weight: 700; white-space: nowrap; }
.header__city { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; }
.header__phone-mobile { display: none; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; white-space: nowrap; }
.header__phone-mobile .ico-phone { width: 22px; height: 22px; }

/* ---------- Герой главной ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: rgba(56, 18, 18, .55); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__in {
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 40px;
    align-items: center;
    padding-top: 46px;
    padding-bottom: 40px;
    min-height: 537px;
}
/* фон под заголовком и подзаголовком — одинаковые плашки на десктопе и мобильных (06.11) */
.hero__title { font-size: 44px; line-height: 1.12; font-weight: 700; margin: 0 0 14px; background: rgba(15, 15, 15, 0.55); padding: 10px 12px; border-radius: 10px; }
/* Подзаголовок героя — одного размера с заголовком (по заданию владельца) */
.hero__subtitle { font-size: 44px; line-height: 1.2; font-weight: 700; margin: 0 0 30px; background: rgba(15, 15, 15, 0.55); padding: 10px 12px; border-radius: 10px; }
.hero__subtitle--mobile { display: none; }
.hero__features { list-style: none; display: flex; gap: 40px; margin: 0; padding: 0; }
.hero__features li { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 600; max-width: 170px; }
.hero__feature-ico .ico-home { width: 30px; height: 30px; }
.hero__right { display: flex; flex-direction: column; gap: 18px; max-width: 470px; justify-self: end; width: 100%; }
.hero__quizcard {
    background: var(--green-dark);
    border-radius: var(--radius);
    padding: 22px 26px 26px;
    text-align: center;
}
.hero__quiz-note { font-size: 20px; margin-bottom: 8px; }
.hero__quiz-title { color: var(--yellow); font-size: 27px; font-weight: 700; letter-spacing: .2px; margin-bottom: 8px; }
.hero__quiz-sub { font-size: 19px; margin-bottom: 18px; }
.hero__catalog {
    background: #fff;
    color: var(--text);
    border-radius: 6px;
    padding: 14px 22px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

/* ---------- Квиз (главная) ---------- */
.quiz-intro { background: #fff; padding: 40px 0 8px; }
.quiz-intro .h2 { margin-bottom: 8px; }
.quiz-block { background: var(--bg-pink); padding: 30px 0 44px; }
.quiz { position: relative; }
.quiz__progress { max-width: 560px; margin: 0 auto 34px; }
.quiz__bar { position: relative; height: 3px; background: #cfc8c2; border-radius: 2px; }
.quiz__bar-fill { position: relative; height: 3px; background: var(--green-solid); border-radius: 2px; transition: width .4s ease; }
.quiz__runner {
    position: absolute;
    right: -18px;
    top: -24px;
    background: var(--green-solid);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.quiz__runner::after {
    content: ''; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
    border: 4px solid transparent; border-top-color: var(--green-solid); border-bottom: 0;
}
.quiz__body { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.quiz__body > .quiz__steps { min-width: 0; }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.quiz__title { font-size: 30px; font-weight: 600; text-align: center; margin: 0 0 34px; }
.quiz__variants { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 50px; }
.quiz__variant { position: relative; width: calc(25% - 37.5px); min-width: 180px; cursor: pointer; display: block; }
.quiz__variant-img {
    position: relative; display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 100 / 62; background: #dcd6d0;
}
.quiz__variant-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.quiz__variant:hover .quiz__variant-img img { transform: scale(1.03); }
.quiz__variant input { position: absolute; opacity: 0; pointer-events: none; }
.quiz__variant-check {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; color: var(--green-solid);
}
.quiz__variant-check svg { width: 44px; height: 44px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.quiz__variant-check svg path { fill: #fff; }
.quiz__variant input:checked ~ .quiz__variant-img .quiz__variant-check { opacity: 1; }
.quiz__variant-text { display: block; text-align: center; margin-top: 10px; font-size: 19px; font-weight: 600; }
.quiz__aside { padding-top: 4px; }
.quiz__aside-title { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.quiz__badge {
    display: block; background: var(--green-solid); color: #fff; text-align: center;
    font-size: 20px; padding: 10px 14px; border-radius: 6px; margin-bottom: 10px;
}
.quiz__actions { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; }
.quiz__btn-prev {
    width: 50px; height: 50px; border-radius: 50%; border: 0; background: #d9d2cc; color: #333;
    display: inline-flex; align-items: center; justify-content: center;
}
.quiz__btn-prev svg { width: 22px; height: 22px; }
.quiz__btn-prev[disabled] { opacity: .5; cursor: default; }
.quiz__btn-next { background: var(--green-solid); color: #fff; font-weight: 700; font-size: 18px; padding: 13px 40px; }
.quiz__hint { color: #8f8880; font-size: 16px; }

/* ---------- Поля формы ---------- */
.ff { margin-bottom: 18px; }
.ff__label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.ff__label--q { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.ff__input {
    width: 100%; font-family: var(--font); font-size: 19px; color: var(--text);
    padding: 12px 14px; border: 1px solid #d7d2cc; border-radius: 4px; background: #fff; outline: none;
}
.ff__input:focus { border-color: var(--green-solid); }
.ff__error { color: var(--error); font-size: 13px; margin-top: 5px; }
.ff__radios { display: flex; flex-direction: column; gap: 10px; }
.ff__radio { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 19px; }
.ff__radio input { position: absolute; opacity: 0; }
.ff__radio-box {
    width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9c2bb; background: #fff;
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: border-color .2s;
}
.ff__radio-box i { width: 11px; height: 11px; border-radius: 50%; background: transparent; transition: background .2s; }
.ff__radio input:checked + .ff__radio-box { border-color: #333; }
.ff__radio input:checked + .ff__radio-box i { background: #1a1a1a; }
.ff__checks { display: flex; flex-direction: column; gap: 10px; }
.ff__check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 19px; }
.ff__check-box {
    width: 22px; height: 22px; border-radius: 5px; border: 2px solid #c9c2bb; background: #fff;
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.ff__check-box i { color: transparent; font-size: 15px; line-height: 1; font-weight: 900; }
.ff__check input:checked + .ff__check-box { border-color: #333; background: #1a1a1a; }
.ff__check input:checked + .ff__check-box i { color: #fff; }
.ff__check input:checked + .ff__check-box i::before { content: '✓'; }

/* ---------- Популярные проекты: 3 карточки в ряду, как в оригинале ---------- */
.projects { background: #fff; padding: 44px 0 50px; }
.projects__grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 60px 68px; max-width: 1150px; margin: 0 auto;
}
.pcard { width: 300px; display: flex; flex-direction: column; }
.pcard__title { text-align: center; font-size: 20px; font-weight: 700; margin: 12px 0 14px; }
.pcard__btn { margin: 0 auto; padding: 12px 60px; font-size: 18px; }
.pcard .slider__viewport { border-radius: 4px; }
.pcard .slider__dot { background: transparent; }
.pcard .slider__dot.is-active { background: #111; }
.pcard .slider__dots { margin-top: 8px; }
.pcard .slider__arrow { width: 48px; height: 48px; }

/* ---------- Преимущества ---------- */
.advantages { background: var(--bg-greygreen); padding: 50px 0 56px; }
.advantages__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px; }
.advcard { background: #fff; border-radius: var(--radius); padding: 28px 26px 30px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.advcard__img { width: 200px; height: 170px; margin: 0 auto 20px; border-radius: 20px; overflow: hidden; }
.advcard__img img { width: 100%; height: 100%; object-fit: cover; }
.advcard__t { font-size: 26px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.advcard__d { font-size: 20px; font-weight: 600; }

/* ---------- Комплектация (схема с привязанными подписями) ---------- */
.komplekt { background: #ede6e6; padding: 50px 0 56px; overflow-x: clip; }
.komplekt__img { position: relative; width: min(832px, 100%); margin: 0 auto 66px; }
/* Кадрирование как в оригинале: 832×406 (cover), координаты подписей совпадают с донором */
.komplekt__img > img { width: 100%; aspect-ratio: 832 / 406; object-fit: cover; }
.komplekt__pin { position: absolute; display: block; }
.komplekt__plus { position: absolute; left: -24px; top: 0; color: #ffdf00; width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.komplekt__plus svg { width: 100%; height: 100%; }
.komplekt__pin-text { flex: 1 1 auto; min-width: 0; display: inline; font-size: 16px; font-weight: 400; line-height: 24px; color: var(--text); background: #fff; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.komplekt__text { max-width: 1100px; margin: 0 auto 44px; font-size: 22px; line-height: 1.45; color: #060607; }

/* ---------- Слайдер ---------- */
.slider { position: relative; --pv: 1; }
.slider__viewport { overflow: hidden; border-radius: 6px; }
.slider__track { display: flex; height: 100%; transition: transform .45s ease; will-change: transform; }
.slider--fade .slider__track { display: block; position: relative; transition: none; }
.slider__slide { flex: 0 0 calc(100% / var(--pv)); min-width: 0; position: relative; }
.slider--fade .slider__slide { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.slider--fade .slider__slide.is-active { position: relative; opacity: 1; pointer-events: auto; }
.slider__img { width: 100%; height: 100%; object-fit: cover; }
.slider__img--contain { object-fit: contain; background: #fff; }
.slider__zoom { display: block; height: 100%; }
.slider__zoom img { cursor: zoom-in; }
.slider__arrow {
    position: absolute; top: calc(50% - 12px); transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: rgba(15, 15, 15, .82); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; z-index: 5;
    transition: background .2s;
}
.slider__arrow:hover { background: rgba(0, 0, 0, .95); }
.slider__arrow svg { width: 20px; height: 20px; }
.slider__arrow--prev { left: 10px; }
.slider__arrow--next { right: 10px; }
.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.slider__dot {
    width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #b9b2ab; transition: background .2s, transform .2s;
}
.slider__dot.is-active { background: #111; }
/* стрелки снаружи (отзывы WA): не перекрывают карточки */
.slider--outside .slider__arrow--prev { left: -8px; }
.slider--outside .slider__arrow--next { right: -8px; }

/* ---------- Галереи ---------- */
.gallery { padding: 46px 0 50px; background: var(--bg-pink); }
.gallery__sub { display: block; margin-top: 8px; font-size: 24px; }
.gallery .slider__viewport { border-radius: 0; }
.gallery .slider__slide { padding: 0 12.5px; }
.gallery .slider__track { margin: 0 -12.5px; }
.gallery__btn { margin-top: 26px; }

/* ---------- Видео ---------- */
.videos { background: #fff; padding: 48px 0 54px; }
.videos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 34px; }
.videos__item { border-radius: 8px; overflow: hidden; background: #111; }
.videos__item video { width: auto; max-width: 100%; height: auto; max-height: 480px; display: block; margin: 0 auto; }

/* ---------- Фото Отзывы ---------- */
.foto-otzyvy { background: var(--bg-pink); padding: 46px 0 52px; }
.foto-otzyvy__slider { max-width: 700px; margin: 0 auto; }
.foto-otzyvy__btn { margin-top: 30px; }

/* ---------- Бани, которые мы построили ---------- */
.built { background: var(--bg-base); padding: 46px 0 40px; }
.built__row {
    display: flex; flex-direction: column; gap: 30px; margin-bottom: 30px;
}
.bcard {
    display: grid; grid-template-columns: 47% 1fr; gap: 34px; align-items: start;
    background: #f0f9ff; border-radius: 10px; padding: 18px;
    width: min(900px, 100%); margin: 0 auto;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}
.bcard__slider .slider__viewport { border-radius: 6px; }
.bcard__btn { margin-top: 14px; width: 100%; padding: 13px 20px; font-size: 18px; }
.bcard__title { font-size: 27px; font-weight: 700; margin: 0 0 16px; }
.bcard__specs { list-style: none; margin: 0 0 18px; padding: 0; }
.bcard__specs li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 17px; font-weight: 600; }
.bcard__specs svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; }
.bcard__price {
    background: #fff; border-radius: 10px; padding: 14px 20px; text-align: center;
    color: var(--price-blue); font-size: 21px; font-weight: 400;
}
.bcard__price b { font-size: 23px; }

/* ---------- Ещё отзывы (WhatsApp) ---------- */
.otzyvy-wa { background: #fff; padding: 46px 0 52px; overflow-x: clip; }
.otzyvy-wa__slider .slider__viewport { overflow: visible; }
.otzyvy-wa__slider .slider__slide { padding: 0 25px; }
.otzyvy-wa__slider .slider__track { margin: 0 -25px; }
.otzyvy-wa__slider .slider__img { border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.otzyvy-wa__btn { margin-top: 40px; }

/* ---------- Комплектация таблица ---------- */
.ktabs { background: var(--bg-base); padding: 48px 0 54px; }
.ktabs__sub { font-weight: 700; }
.bath-equipment-container { width: 100%; max-width: 1100px; margin: 0 auto 30px; padding: 0; overflow-x: auto; }
.bath-equipment-table {
    width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); font-size: 18px;
}
.bath-equipment-table th { background: #27ae60; color: #fff; padding: 12px 10px; text-align: center; font-weight: 600; font-size: 20px; }
.bath-equipment-table td { padding: 10px; border-bottom: 1px solid #eaeaea; vertical-align: top; line-height: 1.5; }
.bath-equipment-table td:first-child { width: 180px; background-color: #f8f9fa; font-weight: 600; color: #2c3e50; border-right: 1px solid #eaeaea; }
.bath-equipment-table tr:hover td { background-color: #f9f9f9; }
.bath-equipment-table tr:nth-child(even) td:first-child { background-color: #f1f3f5; }
.gifts-row td { background: #fff; color: #2c3e50; font-weight: 700; text-align: center; border: none; border-top: 2px solid #27ae60; }
.gifts-row td:first-child { background: #fff; }

/* ---------- Доп опции ---------- */
.dop { background: #fff; padding: 46px 0 52px; }
.additional-services-container { max-width: 800px; margin: 0 auto 26px; }
.additional-services-list { list-style: none; padding: 0; margin: 0; }
.service-item { display: flex; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #eaeaea; }
.service-item::before { content: '✓'; color: #27ae60; font-weight: bold; font-size: 26px; margin-right: 12px; margin-top: 0; flex-shrink: 0; }
.service-item p { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.5; }

/* ---------- Чем лучше ---------- */
.luchshe { background: var(--bg-pink); padding: 46px 0 52px; }
.luchshe__img { margin: 0 auto 30px; }
.luchshe__img img { width: 100%; }
.luchshe__img--desktop { max-width: 990px; }
.luchshe__img--mobile { display: none; }

/* ---------- Производство ---------- */
.prod { background: #fff; padding: 46px 0 52px; }
.prod__text { text-align: center; max-width: 900px; margin: 0 auto 30px; font-size: 22px; }
.prod__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1130px; margin: 0 auto 32px; }
.prod__img { border-radius: 8px; overflow: hidden; }
.prod__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-pink); padding: 48px 0 54px; }
.faq__item { border-bottom: 1px solid #d8d0ca; }
.faq__q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: none; border: 0; text-align: left; padding: 18px 2px;
    font-family: var(--font); font-size: 21px; font-weight: 700; color: var(--text);
}
.faq__plus { position: relative; width: 20px; height: 20px; flex: 0 0 auto; }
.faq__plus::before, .faq__plus::after {
    content: ''; position: absolute; background: #333; left: 50%; top: 50%; transform: translate(-50%, -50%);
    transition: transform .25s;
}
.faq__plus::before { width: 20px; height: 2px; }
.faq__plus::after { width: 2px; height: 20px; }
.faq__item.is-open .faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__a { padding: 0 2px 18px; font-size: 19px; }
.faq__a p { margin: 0; }
.faq__btn { margin-top: 70px; }

/* ---------- Эксперт ---------- */
.expert { background: #fff; padding: 46px 0 40px; }
.expert__grid { display: grid; grid-template-columns: 370px 1fr; gap: 50px; max-width: 950px; margin: 0 auto; align-items: start; }
.expert__person { text-align: center; }
.expert__photo { width: 275px; height: 235px; margin: 0 auto 16px; overflow: hidden; }
.expert__photo img { width: 100%; height: 100%; object-fit: cover; }
.expert__name { font-size: 24px; font-weight: 700; }
.expert__role { font-size: 20px; }
.expert__formwrap { padding-top: 4px; }
.expert__form { max-width: 420px; }
.expert__form .btn { margin-top: 8px; }
.expert__note { font-size: 19px; margin-top: 26px; }
.expert__heading { text-align: center; font-size: 30px; font-weight: 700; margin-bottom: 34px; }
.expert__note2 { display: none; }
.mform__msg { color: var(--error); font-size: 15px; margin-top: 12px; }

/* ---------- Контакты ---------- */
.contacts { background: var(--bg-pink); padding: 50px 0 56px; }
.contacts__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; margin-bottom: 34px; }
.contacts__hours { font-size: 21px; margin: 0 0 26px; }
.contacts__hr { border: 0; border-top: 1px solid #b9b1aa; margin: 0; }
.contacts__line { font-size: 19px; font-weight: 600; padding: 18px 0; margin: 0; }
.contacts__info .socials { margin-top: 26px; }
.contacts__map { border-radius: 4px; overflow: hidden; }
.contacts__map img { width: 100%; }

/* ---------- Соцсети ---------- */
.socials { display: flex; gap: 12px; }
.social { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: inline-flex; background: #fff; }
.social img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Футер ---------- */
.footer { background: var(--footer-bg); color: #fff; margin-top: 0; }
.footer__in {
    display: grid; grid-template-columns: 1.1fr 1fr 1.1fr 1.2fr auto; gap: 24px;
    padding-top: 40px; padding-bottom: 40px; align-items: start;
}
.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__logo { width: 46px; height: 46px; overflow: hidden; border-radius: 4px; background: #fff; }
.footer__logo img { width: 100%; height: 100%; object-fit: cover; }
.footer__logo--mobile { display: none; }
.footer__name { font-size: 21px; font-weight: 700; }
.footer__menu { display: flex; gap: 34px; }
.footer__menu ul { list-style: none; margin: 0; padding: 0; }
.footer__menu li { margin-bottom: 12px; font-size: 18px; font-weight: 600; }
.footer__menu a:hover { text-decoration: underline; }
.footer__contact { display: flex; gap: 12px; font-size: 18px; line-height: 1.4; }
.footer__contact .ico-phone { width: 22px; height: 22px; margin-top: 3px; }
.footer__contact b { display: block; }
.footer__contact span { display: block; }
.footer .socials .social { background: #fff; }
.footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 18px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.18); }
.footer__legal a { font-size: 14px; font-weight: 400; color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 2px; }
.footer__legal a:hover { color: #fff; }

/* ---------- Модалки ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10, 10, 10, .6); }
.modal__box {
    position: relative; background: #fff; border-radius: 14px; padding: 30px 26px 26px;
    width: min(430px, 100%); max-height: calc(100vh - 32px); overflow: auto;
    box-shadow: 0 18px 60px rgba(0,0,0,.3);
}
.modal__box--wide { width: min(980px, 100%); }
.modal__close {
    position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: #f0ece8; color: #333; display: inline-flex; align-items: center; justify-content: center; z-index: 2;
}
.modal__close svg { width: 18px; height: 18px; }
.modal__title { font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 20px; }
.mform__actions { text-align: center; margin-top: 8px; }

/* Квиз в модалке: компактнее */
.modal--quiz .modal__box { padding-top: 46px; }
.modal--quiz .quiz__progress { max-width: 460px; margin-bottom: 24px; }
.modal--quiz .quiz__title { font-size: 24px; margin-bottom: 22px; }
.modal--quiz .quiz__body { grid-template-columns: 1fr; }
.modal--quiz .quiz__variants { gap: 18px 20px; }
.modal--quiz .quiz__variant { width: calc(33.333% - 16px); min-width: 150px; }
.modal--quiz .quiz__actions { margin-top: 24px; }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .82); }
.lightbox__img {
    position: relative; max-width: calc(100vw - 140px); max-height: calc(100vh - 60px);
    width: auto; height: auto; object-fit: contain; background: transparent; box-shadow: 0 10px 50px rgba(0,0,0,.5);
}
.lightbox__close {
    position: absolute; top: 14px; right: 16px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
}
.lightbox__arrow svg { width: 24px; height: 24px; }
.lightbox__arrow--prev { left: 18px; }
.lightbox__arrow--next { right: 18px; }

/* ---------- Страница «Спасибо» (синее оформление оригинала) ---------- */
.page--thanks {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-base);
    padding: 24px 14px;
}
.thanks__box {
    background: #fff; border-radius: 14px; width: min(440px, 100%);
    padding: 42px 30px 30px; text-align: center; box-shadow: 0 18px 60px rgba(0,0,0,.18);
    margin: auto;
}
.thanks__ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.thanks__ico--blue { background: #4d7df2; }
.thanks__title { font-size: 28px; margin: 0 0 12px; }
.thanks__text { font-size: 18px; margin: 0 0 4px; color: #333; }
.thanks__test { font-size: 13px; color: #8f8880; margin: 22px 0 0; }
@media (max-height: 560px) {
    .page--thanks { align-items: flex-start; }
    .thanks__box { margin-top: 20px; margin-bottom: 20px; }
}

/* ---------- Герой страницы бани ---------- */
.bhero { background: #fff; padding: 40px 0 46px; }
.bhero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0 44px; align-items: start; }
.bhero__col-slider { grid-column: 1; }
.bhero__col-info { grid-column: 2; }
.bhero__title { font-size: 34px; font-weight: 700; margin: 0 0 24px; }
.bhero__slider-mobile { display: none; }
.bhero__area, .bhero__term { font-size: 21px; margin: 0 0 8px; }
.bhero__term { margin-bottom: 10px; }
.bhero__list { list-style: none; margin: 0 0 26px; padding: 0; font-size: 21px; }
.bhero__list li { margin-bottom: 6px; }
.bhero__prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.bhero__price-t { font-size: 22px; font-weight: 700; }
.bhero__price-v { font-size: 24px; }
.bhero__price-v i { font-weight: 400; font-style: italic; }
.bhero__price-v u { color: var(--price-blue); font-weight: 700; }
.bhero__delivery { font-size: 21px; text-decoration: underline; margin: 0 0 12px; }
.bhero__fund { font-size: 21px; text-decoration: underline; margin: 0 0 12px; }
.bhero__note { font-size: 17px; font-weight: 400; line-height: 1.5; margin: 22px 0 0; }
.bhero__note2 { text-decoration: underline; }
.bhero__note2-more { display: none; }
.bhero__btnwrap { margin-top: 10px; }

/* =========================================================
   Планшет ≤1200px
   ========================================================= */
@media (max-width: 1200px) {
    .h2 { font-size: 36px; }
    .hero__title { font-size: 36px; }
    .hero__subtitle { font-size: 36px; }
    .hero__right { max-width: 420px; }
    .projects__grid { gap: 48px 44px; }
    .pcard { width: 300px; }
    .komplekt__pin-text { font-size: 13px; }
    .komplekt__plus { width: 13px; height: 13px; }
    .footer__in { grid-template-columns: 1fr 1fr 1fr; }
}

/* =========================================================
   Малые десктопы/планшеты ≤1024px
   ========================================================= */
@media (max-width: 1024px) {
    .header__info { font-size: 16px; }
    .header__sub { font-size: 14px; }
    .hero__in { grid-template-columns: 1.2fr 1fr; gap: 24px; }
    .quiz__body { grid-template-columns: 1fr 240px; gap: 24px; }
    .quiz__variant { width: calc(33.333% - 33.3px); }
    .pcard { width: calc(33.333% - 30px); }
    .advantages__grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .komplekt__pin { display: none; }
    .bcard { grid-template-columns: 1fr; }
    .videos__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto 34px; }
    .expert__grid { grid-template-columns: 1fr; gap: 30px; max-width: 520px; }
    .contacts__grid { grid-template-columns: 1fr; gap: 34px; }
    .footer__in { grid-template-columns: 1fr 1fr; }
}

/* Планшет 768–900px: десктопная шапка не помещается — включаем мобильную шапку */
@media (max-width: 900px) and (min-width: 768px) {
    .header__info, .header__right { display: none; }
    .header__phone-mobile { display: inline-flex; font-size: 16px; }
}

/* =========================================================
   Мобильный ≤767px (как мобильная версия оригинала)
   ========================================================= */
@media (max-width: 767px) {
    .hero__subtitle--mobile { font-size: 19px; line-height: 1.35; }
    .hero__quiz-note .q5 { display: none; }
    .hero__quiz-note .q4 { display: inline; }
    .hero__subtitle--mobile { font-size: 19px; line-height: 1.35; }
    .expert__heading { font-size: 22px; margin-bottom: 22px; }
    body { font-size: 18px; }
    .h2 { font-size: 30px; margin-bottom: 20px; }
    .container { padding: 0 14px; }

    /* шапка: мобильные логотипы как были на страницах */
    .header__in { grid-template-columns: 1fr auto; align-items: center; padding-top: 14px; padding-bottom: 10px; }
    .header__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .header__logo { width: 44px; height: 44px; margin: 0; flex: 0 0 auto; }
    .header__logo--desktop { display: none; }
    .header__logo--mobile { display: inline-block; }
    /* v43: текст и телефон чуть больше и жирнее, отступ сверху увеличен */
    .header__name { font-size: 19px; font-weight: 800; margin: 0; white-space: nowrap; }
    .header__sub, .header__info, .header__right { display: none; }
    .header__phone-mobile { display: inline-flex; font-size: 18px; font-weight: 800; }

    /* герой */
    /* v40: minmax(0,1fr) + min-width:0 — колонка не разрастается от неразрывной строки,
       плашки точно по ширине контейнера, отступы по бокам равные на всех мобильных */
    .hero__in { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 30px; min-height: 0; }
    .hero__left { min-width: 0; }
    /* Заголовок героя: размер от ширины экрана; перенос строк разрешён (nowrap раздвигал
       колонку на широких мобильных и убивал правый отступ — убран по скрину Realme 13) */
    .hero__title { font-size: clamp(19px, 6vw, 27px); }
    /* фон под заголовком — такой же, как под подзаголовком; обе плашки блочные на всю ширину
       контейнера, поэтому ширина двух фонов одинаковая */
    .hero__title { background: rgba(15, 15, 15, 0.55); padding: 10px 12px; border-radius: 10px; }
    .hero__subtitle--desktop { display: none; }
    .hero__subtitle--mobile { display: block; font-size: clamp(18px, 5.2vw, 24px); font-weight: 700; margin: 0 0 22px; background: rgba(15, 15, 15, 0.55); padding: 10px 12px; border-radius: 10px; }
    .hero__features { display: none; }
    .hero__right { max-width: none; justify-self: stretch; }
    .hero__quiz-title { font-size: 24px; }
    .hero__quizcard { padding: 18px 16px 20px; }

    /* квиз: горизонтальная лента вариантов */
    .quiz-intro { padding: 26px 0 4px; }
    .quiz-block { padding: 20px 0 30px; }
    .quiz__body { grid-template-columns: 1fr; }
    .quiz__title { font-size: 22px; margin-bottom: 20px; }
    .quiz__variants {
        flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
        gap: 12px; padding-bottom: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
        touch-action: pan-x pan-y;
    }
    .quiz__variant { flex: 0 0 62%; min-width: 0; width: auto; }
    .quiz__aside { order: 2; margin-top: 20px; }
    .quiz__aside-title { text-align: center; }
    .quiz__actions { flex-wrap: wrap; }

    /* проекты: одна колонка, порядок как в мобильном оригинале */
    .projects { padding: 30px 0 34px; }
    .projects__grid { display: flex; flex-direction: column; gap: 26px; max-width: none; }
    .pcard { width: 100%; }

    .advantages { padding: 30px 0 36px; }
    .komplekt { padding: 30px 0 36px; }
    .komplekt__mobile-labels { grid-template-columns: 1fr; }
    .gallery { padding: 30px 0 34px; }
    .videos { padding: 30px 0 34px; }
    
    .foto-otzyvy { padding: 30px 0 34px; }
    .foto-otzyvy__slider { max-width: none; }

    .built { padding: 30px 0 26px; }
    .bcard { grid-template-columns: 1fr; padding: 16px; }
    .bcard__title { font-size: 22px; }
    .bcard__specs li { font-size: 16px; }
    .bcard__btn { width: 100%; padding: 12px 16px; }
    .bcard__price { font-size: 19px; }
    .bcard__price b { font-size: 21px; }

    .otzyvy-wa { padding: 30px 0 34px; }
    .otzyvy-wa__slider .slider__viewport { overflow: visible; }
    .otzyvy-wa__slider .slider__slide { padding: 0 6px; }
    .otzyvy-wa__slider .slider__track { margin: 0 -6px; }
    .otzyvy-wa__slider .slider__arrow { top: 42%; }
    .ktabs { padding: 30px 0 34px; }
    .bath-equipment-table { min-width: 640px; }
    .dop { padding: 30px 0 34px; }
    .luchshe { padding: 30px 0 34px; }
    .luchshe__img--desktop { display: none; }
    .luchshe__img--mobile { display: block; }
    .prod { padding: 30px 0 34px; }
    .prod__grid { grid-template-columns: 1fr; }
    .faq { padding: 30px 0 34px; }
    .faq__q { font-size: 19px; }
    .expert { padding: 30px 0 28px; }
    .expert__form { max-width: none; }
    .contacts { padding: 30px 0 34px; }

    /* скрытые на мобильных блоки (есть в десктопной версии) */
    .komplekt, .dop, .faq, .prod, .ktabs { display: none; }

    /* мобильные кнопки — заметно крупнее и почти на всю ширину экрана (как в оригинале) */
    .btn { min-height: 60px; }
    .btn--wide { display: block; width: 100%; padding: 14px 18px; white-space: normal; text-align: center; font-size: 19px; }
    .pcard__btn { width: 100%; }
    .btn--green.btn--sm { min-height: 44px; }

    /* футер: мобильный логотип и кнопки мессенджеров */
    .footer__logo { display: none; }
    .footer__logo--mobile { display: block; width: 56px; height: 56px; }
    .footer .socials { gap: 14px; }
    .footer .social { width: 56px; height: 56px; }

    /* футер */
    .footer__in { grid-template-columns: 1fr; gap: 22px; padding-top: 26px; padding-bottom: 26px; }
    .footer__menu { flex-direction: column; gap: 0; }
    .footer__menu li { margin-bottom: 10px; }

    /* стрелки слайдеров: не вылезают за экран */
    .btn { max-width: 100%; }
    .slider__arrow { width: 40px; height: 40px; }
    .slider__arrow--prev { left: 6px; }
    .slider__arrow--next { right: 6px; }
    .slider--outside .slider__arrow--prev { left: 2px; }
    .slider--outside .slider__arrow--next { right: 2px; }

    /* модалки и лайтбокс */
    /* v41: окно прижато к верху видимой области (dvh), крестик fixed — всегда виден
       в правом верхнем углу экрана и не уезжает при прокрутке формы (скрин Realme 13) */
    .modal { padding: 8px; align-items: flex-start; }
    .modal__box { padding: 44px 16px 20px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
    .modal__close { position: fixed; top: 18px; right: 18px; }
    .lightbox__img { max-width: calc(100vw - 24px); max-height: calc(100vh - 90px); }
    .lightbox__arrow { width: 42px; height: 42px; }
    .lightbox__arrow--prev { left: 6px; }
    .lightbox__arrow--next { right: 6px; }

    /* герой бани: порядок и жирность как в мобильном оригинале */
    .bhero { padding: 24px 0 30px; }
    .bhero__grid { display: flex; flex-direction: column; gap: 0; }
    .bhero__col-slider, .bhero__col-info { display: contents; }
    .bhero__title { order: 1; font-size: 25px; margin: 0 0 16px; }
    .bhero__slider-desktop { display: none; }
    .bhero__slider-mobile { order: 2; display: block; width: 100%; }
    .bhero__area { order: 3; margin: 20px 0 4px; font-weight: 700; }
    .bhero__term { order: 4; margin: 0 0 10px; font-weight: 700; }
    .bhero__list { order: 5; margin: 0 0 18px; font-size: 20px; }
    .bhero__list li { font-weight: 700; margin-bottom: 8px; }
    /* Цены на мобильных показываются (как в оригинале), колонкой */
    .bhero__prices { order: 6; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
    .bhero__price-t { font-size: 19px; }
    .bhero__price-v { font-size: 23px; font-weight: 700; }
    /* На мобильных перед ценой только «от/то», без «Стандарт» */
    .bhero__price-v i { display: none; }

    .bhero__delivery { order: 7; font-weight: 400; text-decoration: none; margin: 0 0 14px; }
    .bhero__delivery b { font-weight: 400; }
    .bhero__fund { display: none; }
    .bhero__note1 { order: 8; font-size: 18px; font-weight: 700; margin: 6px 0 0; }
    .bhero__note2 { order: 9; font-size: 18px; font-weight: 700; text-decoration: underline; margin: 14px 0 0; }
    .bhero__note2-more { display: inline; }
    .bhero__btnwrap { margin-top: 22px; }
}

/* Очень узкие ≤430px */
@media (max-width: 430px) {
    .header__name { font-size: 17px; font-weight: 800; }
    .header__logo { width: 40px; height: 40px; }
    .header__phone-mobile { font-size: 17px; font-weight: 700; gap: 5px; }
    .header__phone-mobile .ico-phone { width: 18px; height: 18px; }
}

/* Очень узкие ≤370px */
@media (max-width: 370px) {
    .hero__title { font-size: clamp(18px, 6vw, 24px); }
    .h2 { font-size: 26px; }    .btn--wide { padding: 12px 18px; font-size: 18px; }
    .bcard__title { font-size: 20px; }
    .header__logo { width: 38px; height: 38px; }
    .header__in { gap: 6px; }
    /* v43: текст 16px (лимит 100vw-210px не обрезает слово на 345-370px) */
    .header__name { font-size: 16px; }
}

/* --- Кнопка «Блог» в шапке и подвале --- */
.header__brandwrap { display: contents; }
.header__blog-m { display: none; }
.header__blog.btn { display: inline-flex; align-items: center; }
.footer__contact { flex-wrap: wrap; }
.footer__blog-row { display: flex; justify-content: center; margin-top: 10px; }
@media (max-width: 767px) {
    .header__brandwrap { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
    .header__blog-m { display: inline-flex; align-items: center; justify-content: center; background: var(--yellow); color: #000; font-size: 12px; font-weight: 900; padding: 6px 10px; border-radius: 50px; text-decoration: none; margin-top: 2px; }
    .header__in { align-items: start; }
    .header__phone-mobile { margin-top: 10px; }
    .footer__blog-row { justify-content: center; }
}
/* --- Кнопки «Блог»: размеры по замеру headless-браузера 01.11.2026.
   Соседняя «ЗАКАЗАТЬ ЗВОНОК» (btn--green btn--sm) = 195x41 px.
   Блог (десктоп, шапка и подвал): высота 41 (как у соседа), ширина 130 (2/3 от 195). --- */
.header__blog.btn, .footer__blog.btn { width: 130px; height: 41px; padding: 0; min-height: 0; font-size: 13px; line-height: 1; justify-content: center; }
@media (max-width: 767px) {
    /* мобильная кнопка шапки: v42 — ширина меньше текста «СК Мобильные Бани» (~150px),
       левый край = левый край текста (логотип 44 + отступ 10), кнопка не вылезает ни вправо, ни влево */
    .header__blog-m { margin-left: 54px; width: 149px; }
    /* мобильная кнопка подвала: заметно шире шапочной */
    .footer__blog.btn { width: 100%; max-width: 240px; height: 30px; font-size: 12px; }
}
@media (max-width: 430px) {
    .header__blog-m { width: 122px; margin-left: 38px; }
    .header__in { gap: 8px; }
    .header__brand { gap: 8px; }
}
@media (max-width: 370px) {
    /* v42/v43: текст 16px (~135px) — кнопка короче и по левому краю текста (лого 34 + отступ 4);
       min() не даёт кнопке стать шире обрезанного текста на самых узких экранах */
    .header__blog-m { width: min(110px, calc(100vw - 215px)); margin-left: 38px; }
}
/* <=410px: телефон аккуратно переносится под шапку (одна колонка) */
@media (max-width: 430px) {
    /* телефон прибит к правому верхнему углу шапки — перенос исключён физически */
    /* v43: отступ сверху 12px; текст 17px/800, телефон 17px/700; лимит текста 100vw-210px,
       чтобы при увеличенных шрифтах телефон (абсолютный, справа) не наезжал на текст на 320px */
    .header__in { position: relative; display: block; padding: 12px 6px 8px; }
    .header__logo--mobile { width: 34px; height: 34px; }
    .header__brand { gap: 4px; }
    /* v44: без многоточия — где не влезает, «Бани» переносится под «СК Мобильные» */
    .header__name { font-size: 17px; font-weight: 800; max-width: calc(100vw - 215px); white-space: normal; }
    .header__phone-mobile { position: absolute; right: 6px; top: 15px; margin: 0; white-space: nowrap; font-weight: 700; font-size: 17px; }
    .header__phone-mobile { position: absolute; right: 10px; top: 17px; margin: 0; }
}
/* v43: на <=370px текст 16px — без обрезки многоточием на 350-370px */
@media (max-width: 370px) {
    .header__name { font-size: 16px; }
}
}


/* ===== v23: мобильная устойчивость (320px+) — без изменения десктопа ===== */
html, body { overflow-x: clip; } /* запрет гор.скролла; clip не ломает sticky-шапку */
img, video { max-width: 100%; height: auto; }
@media (max-width: 767px) {
    .hero .container, .hero__grid, .hero__left, .hero__right,
    .hero__quizcard, .hero__catalog { max-width: 100%; width: 100%; margin-left: 0; margin-right: 0; }
}

@media (min-width: 768px) { .hero__quiz-note .q4 { display: none; } .hero__quiz-note .q5 { display: inline; } }
