/* =========================================================
   Tensauna — ремонт саун и электрокаменок
   ========================================================= */

:root {
  --ink: #0f1b2d;
  --ink-2: #1a2a42;
  --text: #1f2633;
  --muted: #2e3646;
  --line: #e4e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --accent: #ff6a00;
  --accent-2: #ff8a3d;
  --accent-soft: #fff1e6;
  --max: #3f7bff;
  --max-2: #8a3ffc;
  --tg: #2aabee;
  --ok: #12a150;
  --danger: #d92d20;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(15, 27, 45, .18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 27, 45, .28);
  --header-h: 76px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.accent { color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -8px rgba(255, 106, 0, .6); }
.btn--primary:hover { background: #f25f00; }
.btn--max { background: linear-gradient(135deg, var(--max), var(--max-2)); color: #fff; box-shadow: 0 10px 24px -10px rgba(98, 77, 255, .7); }
.btn--tg { background: var(--tg); color: #fff; box-shadow: 0 10px 24px -10px rgba(42, 171, 238, .7); }
.btn--light { background: #fff; color: var(--ink); }
.btn--lg { padding: 17px 28px; font-size: 17px; }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 27, 45, .5); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo__text { display: flex; flex-direction: column; gap: 5px; line-height: 1.1; }
.logo__img { align-self: flex-start; width: auto; height: 32px; }
.logo__tag { font-size: 13px; color: var(--muted); }
.logo--light .logo__tag { color: rgba(255, 255, 255, .82); }

.nav { display: flex; gap: 20px; margin-right: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text); padding: 6px 0; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.nav a:hover::after { transform: scaleX(1); }

.header__contacts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.header__phone { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(18, 161, 80, .5); animation: pulse 2s infinite; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--bg-alt); border-radius: 12px; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(255, 138, 61, .16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(42, 171, 238, .08), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-areas: "content visual" "form form";
  gap: 40px 48px;
  align-items: center;
}
.hero__content { grid-area: content; }
.hero__visual { grid-area: visual; }
.hero__form { grid-area: form; position: relative; z-index: 2; }

/* широкая форма в первом экране */
.hero__form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0 16px;
  align-items: end;
  padding: 28px 32px;
}
.hero__form-head { grid-column: 1 / 3; align-self: start; }
.hero__form-chips { grid-column: 3 / -1; grid-row: 1; margin-top: 0; }
.hero__form .field { position: relative; }
.hero__form .field__error { position: absolute; top: 100%; margin-top: 4px; }
.hero__form-submit { height: 51px; }
.hero__form .consent { grid-column: 1 / 3; margin: 14px 0 0; }
.hero__form .lead-form__note { grid-column: 3 / -1; justify-content: flex-end; margin-top: 14px; }
.hero__form .lead-form__status { grid-column: 1 / -1; }

.hero__title { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
.hero__title .accent { display: block; }
.hero__lead { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 580px; }
.hero__also { margin-top: 10px; font-size: 17px; color: var(--muted); max-width: 580px; }
.hero__also a { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.hero__also a:hover { text-decoration: underline; }

.hero__features { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 14px 32px; margin-top: 28px; }
.hero__features li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.35; }
.hero__features b { color: var(--ink); }
.hero__features svg { width: 40px; height: 40px; padding: 9px; flex: none; color: var(--accent); background: var(--accent-soft); border-radius: 12px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* hero photo */
.hero__visual { display: flex; justify-content: flex-end; }
.hero__photo { position: relative; width: min(100%, 460px); margin: 0; }
.hero__photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 78% 50%; border-radius: 24px; box-shadow: var(--shadow-lg); }

.hero__badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 10px 14px;
  box-shadow: var(--shadow); font-size: 14px; line-height: 1.25; color: var(--muted);
  animation: float 5s ease-in-out infinite;
}
.hero__badge b { display: block; color: var(--ink); font-size: 15px; }
.hero__badge svg { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }
.hero__badge--top { top: 24px; left: 20px; }
.hero__badge--bottom { bottom: 26%; right: -20px; animation-delay: -2.5s; }
.hero__badge-num { font-size: 26px; font-weight: 800; color: var(--accent); }

/* ---------- Cards & forms ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card--dark { background: var(--ink); color: rgba(255, 255, 255, .9); border-color: var(--ink); }
.card--dark h3 { color: #fff; }

.lead-form { padding: 28px; }
.lead-form__title { font-size: 24px; font-weight: 800; }
.lead-form__sub { margin-top: 6px; font-size: 16px; color: var(--muted); }
.lead-form__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 15px; color: var(--accent); font-weight: 600; }
.lead-form__note svg { width: 18px; height: 18px; }
.lead-form__status:empty { display: none; }
.lead-form__status { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 15px; line-height: 1.45; }
.lead-form__status.is-ok { background: #e9f8ef; color: #0b6b37; }
.lead-form__status.is-error { background: #fdecea; color: #a1201a; }
.lead-form__status a { font-weight: 700; }
.lead-form.is-sending [type="submit"] { opacity: .6; pointer-events: none; }

.field { margin-top: 16px; }
.field label, .field__label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg-alt); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  transition: border-color .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--accent); }
.field__error { display: none; margin-top: 6px; font-size: 14px; color: var(--danger); }
.field.is-invalid input { border-color: var(--danger); background: #fff; }
.field.is-invalid .field__error { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; font-size: 15px; font-weight: 500;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--text);
  transition: all .15s;
}
.chip:hover { border-color: var(--accent-2); }
.chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: #c24f00; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 14px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.consent.is-invalid { color: var(--danger); }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: #fff; padding: 36px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; }
.stat__num { font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__suffix { font-size: 22px; font-weight: 800; color: var(--accent-2); }
.stat__label { flex-basis: 100%; font-size: 16px; color: rgba(255, 255, 255, .88); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .9); }
.section--dark .section__title, .section--dark h3 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.section__lead { margin-top: 14px; font-size: 18px; color: var(--muted); }
.section--dark .section__lead { color: rgba(255, 255, 255, .86); }

/* ---------- Problems ---------- */
.problems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.problem {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s; color: inherit;
}
.problem:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.problem__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; transition: background-color .2s, color .2s; }
.problem__icon svg { width: 26px; height: 26px; }
.problem:hover .problem__icon { background: var(--accent); color: #fff; }
.problem__kind { margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.problem__title { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.problem__text { margin-top: 8px; font-size: 16px; color: var(--muted); line-height: 1.5; flex: 1; }
.problem__cta { margin-top: 16px; font-size: 16px; font-weight: 700; color: var(--accent); }


/* ---------- Prices ---------- */
.prices { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "tabs tabs" "list aside"; gap: 20px 28px; align-items: start; }
.price-tabs { grid-area: tabs; display: flex; flex-wrap: wrap; gap: 8px; }
.price-tab { padding: 10px 18px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--text); transition: all .15s; }
.price-tab:hover { border-color: var(--accent-2); }
.price-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.price-list { grid-area: list; padding: 8px 28px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row[hidden] { display: none; }
.price-row__name { color: var(--ink); }
.price-row__val { font-weight: 800; color: var(--ink); white-space: nowrap; font-size: 18px; }
.price-row__val small { font-weight: 500; color: var(--muted); font-size: 15px; }
.price-row__val--free { color: var(--ok); }

.price-aside { grid-area: aside; padding: 32px; position: sticky; top: calc(var(--header-h) + 20px); overflow: hidden; }
.price-aside::before { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 0, .55), transparent 70%); }
.price-aside h3 { font-size: 30px; font-weight: 800; position: relative; }
.price-aside p { margin-top: 12px; font-size: 16px; position: relative; }
.ticks { margin: 20px 0 24px; display: grid; gap: 10px; font-size: 16px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--bg-alt); }
.step::after { content: ""; position: absolute; top: 52px; right: -20px; width: 20px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px); }
.step:last-child::after { display: none; }
.step__num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 18px; }
.step__title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 16px; color: var(--muted); }

/* ---------- Why ---------- */
.section--dark#why { background: radial-gradient(800px 400px at 100% 0%, rgba(255, 106, 0, .18), transparent 60%), var(--ink); }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__item { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: background-color .2s; }
.why__item:hover { background: rgba(255, 255, 255, .08); }
.why__item svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent); color: #fff; margin-bottom: 18px; }
.why__item h3 { font-size: 20px; margin-bottom: 8px; }
.why__item p { font-size: 16px; }

/* ---------- Services ---------- */
.services__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.services__top .section__head { margin-bottom: 0; }
.services__top .btn { flex: none; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-group { padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, border-color .2s; }
.service-group:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.service-group__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: #fff; margin-bottom: 18px; }
.service-group__icon svg { width: 26px; height: 26px; }
.service-group__title { font-size: 21px; font-weight: 800; margin-bottom: 18px; }
.services__list { display: grid; gap: 10px; }
.services__item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left;
  background: var(--bg-alt); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font-weight: 500; color: var(--ink); font-size: 16px; line-height: 1.35;
  transition: background-color .15s, border-color .15s;
}
.services__item::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.services__item::after { content: "→"; margin-left: auto; padding-left: 8px; font-weight: 700; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.services__item:hover { background: #fff; border-color: var(--accent-2); }
.services__item:hover::after, .services__item:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .services__item::after { opacity: .7; transform: none; } }

/* ---------- Heaters ---------- */
.heater { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.heater__media { position: relative; margin: 0; }
.heater__media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 56% 50%; border-radius: 24px; box-shadow: var(--shadow-lg); }
.heater__badge {
  position: absolute; left: -24px; bottom: 32px; display: flex; align-items: center; gap: 10px; max-width: 300px;
  background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.3; color: var(--muted); animation: float 5s ease-in-out infinite;
}
.heater__badge b { display: block; color: var(--ink); font-size: 15px; }
.heater__badge svg { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }
.heater .section__head { margin-bottom: 28px; }
.heater__subtitle { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.reasons { display: grid; gap: 12px; }
.reasons li { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 16px; line-height: 1.45; color: var(--muted); }
.reasons b { display: block; margin-bottom: 2px; font-size: 17px; color: var(--ink); }
.reasons__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.reasons__icon svg { width: 22px; height: 22px; }

.heater__cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 48px; padding: 32px 36px; }
.heater__cta::before { content: ""; position: absolute; width: 260px; height: 260px; left: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 0, .5), transparent 70%); }
.heater__cta > * { position: relative; }
.heater__cta h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 800; max-width: 620px; }
.heater__cta p { margin-top: 8px; font-size: 16px; max-width: 620px; }
.heater__cta-actions { display: flex; gap: 12px; flex: none; }

/* ---------- Gallery ---------- */
.gallery-section { overflow: hidden; background: radial-gradient(800px 400px at 0% 100%, rgba(255, 106, 0, .16), transparent 60%), var(--ink); }
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.gallery__head .section__head { margin-bottom: 0; }
.gallery__nav { display: flex; gap: 10px; flex: none; }
.gallery__arrow {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff;
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.gallery__arrow svg { width: 22px; height: 22px; }
.gallery__arrow--prev svg { transform: rotate(180deg); }
.gallery__arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.gallery__arrow:disabled { opacity: .3; cursor: default; }

.gallery__track {
  --edge: max(24px, calc(50% - var(--container) / 2 + 24px));
  display: flex; gap: 20px;
  padding: 4px var(--edge) 8px; scroll-padding-inline: var(--edge);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { flex: none; width: clamp(270px, 33vw, 440px); scroll-snap-align: start; }
.gallery__link {
  display: block; position: relative; width: 100%; aspect-ratio: 3 / 2; padding: 0; overflow: hidden;
  border: 0; border-radius: var(--radius); background: var(--ink-2); color: #fff; text-align: left; cursor: zoom-in;
}
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 19, 34, .88)); }
.gallery__link:hover img { transform: scale(1.05); }
.gallery__cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; line-height: 1.3; }
.gallery__cap b { display: block; margin-top: 4px; font-size: 18px; color: #fff; }
.gallery__tag { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }

.gallery__progress { position: relative; height: 3px; margin-top: 28px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.gallery__progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; border-radius: 3px; background: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 19, 34, .95); color: #fff; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: fade .25s ease; }
.lightbox::backdrop { background: transparent; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1280px, calc(100% - 176px)); }
.lightbox__img { width: auto; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__cap { text-align: center; font-size: 16px; line-height: 1.35; }
.lightbox__cap b { display: block; margin-top: 2px; font-size: 18px; }
.lightbox__close {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 30px; line-height: 1; transition: background-color .2s;
}
.lightbox__arrow {
  position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .2s;
}
.lightbox__arrow svg { width: 24px; height: 24px; }
.lightbox__arrow--prev { left: 24px; }
.lightbox__arrow--prev svg { transform: rotate(180deg); }
.lightbox__arrow--next { right: 24px; }
.lightbox__close:hover, .lightbox__arrow:hover { background: var(--accent); }
.lightbox__count { position: absolute; top: 28px; left: 24px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .82); font-variant-numeric: tabular-nums; }

/* ---------- Brands & areas ---------- */
.filter { position: relative; max-width: 420px; margin-bottom: 24px; }
.filter svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); }
.filter input { width: 100%; padding: 14px 16px 14px 46px; font: inherit; font-size: 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.filter input:focus { outline: none; border-color: var(--accent); }
.filter__empty { margin-top: 12px; color: var(--muted); }
.filter__empty a { color: var(--accent); font-weight: 700; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tiles li {
  display: grid; place-items: center; height: 72px; padding: 0 12px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -.01em;
  transition: border-color .15s, color .15s, transform .15s;
}
.tiles li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 9px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 16px; color: var(--ink); }
.tags li:first-child { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.tiles li[hidden], .tags li[hidden] { display: none; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { padding: 28px; display: flex; flex-direction: column; }
.review__stars { color: #ffb020; font-size: 18px; letter-spacing: 2px; }
.review__text { margin: 14px 0 22px; flex: 1; color: var(--text); }
.review__author { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); line-height: 1.3; }
.review__author b { display: block; color: var(--ink); font-size: 16px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; flex: none; }

/* ---------- CTA banner ---------- */
.cta-banner { padding: 0; }
.cta-banner__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 48px; border-radius: 28px; color: rgba(255, 255, 255, .9);
  background: linear-gradient(120deg, #ff6a00, #ff9a3d);
  box-shadow: 0 30px 60px -30px rgba(255, 106, 0, .8);
  max-width: calc(var(--container) - 48px);
}
.cta-banner h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.cta-banner p { margin-top: 8px; font-size: 17px; }
.cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq .section__head { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 0 24px; transition: background-color .2s; }
.faq__item[open] { background: #fff; box-shadow: var(--shadow); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 700; font-size: 17px; color: var(--ink); cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: var(--accent); font-size: 22px; font-weight: 500; transition: transform .2s, background-color .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--accent-soft); }
.faq__item p { padding-bottom: 22px; color: var(--muted); font-size: 17px; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; }
.contacts__list { margin-top: 32px; display: grid; gap: 16px; }
.contacts__list li { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.contacts__list svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--accent-2); flex: none; }
.contacts__list a { color: #fff; text-decoration: none; font-weight: 600; }
.contacts__list a:hover { color: var(--accent-2); }
.contacts .lead-form { color: var(--text); }

/* ---------- Footer ---------- */
.footer { background: #0a1322; color: rgba(255, 255, 255, .82); padding: 48px 0 24px; font-size: 15px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__legal { margin-top: 14px; max-width: 360px; }
.footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: #fff; }
.footer__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer__phone { font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; }
.footer__bottom { padding-top: 20px; font-size: 14px; }
.payments { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-top: 14px; }
.payments__title { font-size: 14px; font-weight: 600; color: #fff; }
.payments__list { display: flex; gap: 8px; }
.pay { display: grid; place-items: center; width: 54px; height: 34px; border-radius: 6px; background: #fff; }
.pay svg { width: 46px; height: 25px; }

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Modal ---------- */
.modal {
  width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 22px;
  box-shadow: var(--shadow-lg); color: var(--text);
}
.modal::backdrop { background: rgba(10, 19, 34, .6); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .25s ease; }
.modal .lead-form { position: relative; padding: 32px; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-alt); font-size: 26px; line-height: 1; color: var(--muted); }
.modal__close:hover { color: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 161, 80, .5); }
  70% { box-shadow: 0 0 0 8px rgba(18, 161, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 161, 80, 0); }
}
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .header__cta { display: none; }
  .heater__badge { left: 16px; }
}
@media (max-width: 1180px) {
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .hero__form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .hero__form-head, .hero__form-chips { grid-column: 1 / -1; grid-row: auto; }
  .hero__form-chips { margin-top: 16px; }
  .hero__form .field:last-of-type { grid-column: 1 / -1; }
  .hero__form-submit { grid-column: 1 / -1; margin-top: 18px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .header__inner { gap: 16px; }
  .header__contacts { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; gap: 0; padding: 8px 24px 24px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(15, 27, 45, .4);
    transform: translateY(-110%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }

  .hero__inner { grid-template-columns: 1fr; grid-template-areas: "content" "form"; }
  .hero__visual { display: none; }

  .problems { grid-template-columns: repeat(2, 1fr); }
  .heater { grid-template-columns: 1fr; gap: 36px; }
  .heater__media img { aspect-ratio: 16 / 9; object-position: 50% 50%; }
  .heater__badge { left: 16px; bottom: 16px; }
  .heater__cta { flex-direction: column; align-items: flex-start; }
  .steps, .why { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .prices { grid-template-columns: 1fr; grid-template-areas: "tabs" "list" "aside"; }
  .price-aside { position: relative; top: 0; }
  .faq, .contacts { grid-template-columns: 1fr; gap: 36px; }
  .services__top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .faq .section__head { position: static; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 17px; padding-bottom: 72px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .section__lead { font-size: 17px; }

  .logo__tag { display: none; }
  .logo__img { height: 28px; }
  .header__contacts { display: none; }
  .burger { margin-left: auto; }

  .hero { padding: 32px 0 48px; }
  .hero__lead { font-size: 17px; }
  .hero__features { grid-template-columns: 1fr; gap: 12px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__actions .btn--primary { flex-basis: 100%; }
  .lead-form { padding: 22px; }
  .hero__form { grid-template-columns: 1fr; padding: 22px; }
  .hero__form .consent, .hero__form .lead-form__note { grid-column: 1 / -1; justify-content: center; }
  .hero__form .field__error { position: static; }

  .problems, .steps, .why, .reviews { grid-template-columns: 1fr; }
  .problem { padding: 20px; }
  .services__top { margin-bottom: 32px; }
  .services { grid-template-columns: 1fr; }
  .heater__media img { border-radius: var(--radius); }
  .heater__badge { position: relative; left: auto; bottom: auto; max-width: none; margin: -28px 12px 0; animation: none; }
  .reasons li { padding: 14px; gap: 12px; }
  .heater__cta { margin-top: 32px; padding: 24px 20px; }
  .heater__cta-actions { flex-direction: column; width: 100%; }
  .heater__cta-actions .btn { width: 100%; }
  .service-group { padding: 22px 18px 18px; }

  .gallery__head { margin-bottom: 28px; }
  .gallery__nav { display: none; }
  .gallery__track { --edge: 16px; gap: 12px; }
  .gallery__item { width: 82vw; }
  .gallery__cap { left: 16px; right: 16px; bottom: 14px; }
  .gallery__progress { margin-top: 20px; }

  .lightbox__figure { max-width: calc(100% - 24px); }
  .lightbox__img { max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); }
  .lightbox__arrow { top: auto; bottom: 24px; margin-top: 0; width: 52px; height: 52px; }
  .lightbox__arrow--prev { left: calc(50% - 64px); }
  .lightbox__arrow--next { right: calc(50% - 64px); }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__count { top: 26px; left: 16px; }
  .price-list { padding: 4px 18px; }
  .price-row { flex-direction: column; gap: 4px; padding: 14px 0; }
  .price-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .price-tabs::-webkit-scrollbar { display: none; }
  .price-tab { flex: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles li { height: 60px; font-size: 16px; }
  .cta-banner__inner { margin: 0 16px; padding: 32px 24px; max-width: none; width: auto; }
  .cta-banner__actions, .cta-banner__actions .btn { width: 100%; }
  .footer__contact, .payments { align-items: flex-start; }
  .footer__nav { grid-template-columns: 1fr; }

  .mobile-bar {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(15, 27, 45, .5);
  }
  .mobile-bar__btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 48px; border: 0; border-radius: 14px; background: var(--bg-alt);
    color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
  }
  .mobile-bar__btn svg { width: 18px; height: 18px; }
  .mobile-bar__btn--call { background: var(--accent); color: #fff; }
  .mobile-bar__btn--max { background: linear-gradient(135deg, var(--max), var(--max-2)); color: #fff; }
}
