/* Токены из Figma: коллекция «СауныМонтаж · цвета» и текстовые стили H1–Caption */

@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url("../fonts/unbounded-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url("../fonts/unbounded-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("../fonts/unbounded-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("../fonts/unbounded-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("../fonts/manrope-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("../fonts/manrope-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  /* Цвета */
  --orange: #FF9100;
  --orange-dark: #E07A00;
  --orange-soft: #FFF1DD;
  --ink: #1F1B17;
  --ink-2: #5E5650;
  --white: #FFFFFF;
  --warm: #F6F1EB;
  --dark: #172036;
  --dark-2: #26324F;
  --line: #E7DFD6;
  --success: #2E9E5B;
  --overlay: rgba(13, 19, 36, 0.8);
  --glass: rgba(13, 19, 36, 0.62);
  --scrim: rgba(13, 19, 36, 0.78);

  --ff-head: "Unbounded", "Arial", sans-serif;
  --ff-body: "Manrope", "Arial", sans-serif;

  /* Сетка: 1200 контент, поля 120 на 1440, 40 на 1280 и 768, 16 на 393 */
  --content: 1200px;
  --gutter: 40px;
  --section-y: 112px;

  --r-btn: 40px;
  --r-card: 24px;
  --r-card-s: 20px;
  --r-field: 12px;
}

@media (max-width: 1023px) {
  :root { --section-y: 72px; }
}
@media (max-width: 599px) {
  :root { --gutter: 16px; --section-y: 56px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--ff-body); font-size: 16px; line-height: 26px; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.container { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Типографика — стили из Figma */
.h1 { font-family: var(--ff-head); font-weight: 600; font-size: 46px; line-height: 54px; letter-spacing: -0.015em; }
.h2 { font-family: var(--ff-head); font-weight: 600; font-size: 40px; line-height: 48px; letter-spacing: -0.01em; }
.h3 { font-family: var(--ff-head); font-weight: 500; font-size: 24px; line-height: 32px; letter-spacing: -0.005em; }
.h3-sm { font-family: var(--ff-head); font-weight: 500; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
.h4 { font-family: var(--ff-body); font-weight: 700; font-size: 20px; line-height: 28px; }
.body-l { font-size: 18px; line-height: 28px; }
.body { font-size: 16px; line-height: 26px; }
.body-b { font-size: 16px; line-height: 26px; font-weight: 700; }
.caption { font-size: 14px; line-height: 20px; font-weight: 500; }
.overline { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.price { font-family: var(--ff-head); font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.005em; }
.nav-text { font-size: 15px; line-height: 20px; font-weight: 600; }

.c-orange { color: var(--orange); }
.c-orange-dark { color: var(--orange-dark); }
.c-muted { color: var(--ink-2); }
.c-white { color: var(--white); }

@media (max-width: 1023px) {
  .h1 { font-size: 40px; line-height: 48px; letter-spacing: -0.01em; }
  .h2 { font-size: 32px; line-height: 40px; }
}
@media (max-width: 599px) {
  .h1 { font-size: 28px; line-height: 34px; }
  .h2 { font-size: 24px; line-height: 30px; }
  .h3 { font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
}

/* ===== Кнопки: состояния из листа «Ревью 06.11 · кнопки, карточки, анимации» в Figma =====
   Наведение только на устройствах с мышью; на телефоне касание = pressed (масштаб 97 %) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 32px; border-radius: var(--r-btn); font-size: 16px; line-height: 20px; font-weight: 700; white-space: nowrap; transition: background-color .2s, box-shadow .2s, color .2s, border-color .2s, transform .15s; touch-action: manipulation; }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(255, 145, 0, .55); }
.btn:disabled { opacity: .4; pointer-events: none; }
/* Стрелка, которая выезжает при наведении: только акцентная кнопка с классом btn--arrow
   («Рассчитать стоимость» в первом экране главной). На остальных кнопках стрелки нет (решение 10.11):
   рядом стоящие кнопки не толкают друг друга, когда стрелка выезжает */
.btn--arrow::after { content: "→"; display: inline-block; max-width: 0; margin-left: -10px; opacity: 0; overflow: hidden; transition: max-width .25s, margin .25s, opacity .2s; }

.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:active { background: #C96A00; box-shadow: none; }
.btn--dark { background: var(--dark); color: var(--white); padding: 16px 28px; }
.btn--dark:active { background: var(--orange-dark); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); padding: 16px 28px; }
.btn--ghost:active { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn--ghost-light { border: 1.5px solid var(--white); color: var(--white); padding: 12px 28px 12px 14px; }
.btn--ghost-light:active { background: rgba(255, 255, 255, .85); color: var(--ink); }

@media (hover: hover) {
  /* Оранжевая (выбран вариант 2 на ревью 06.11): светлее, подъём на 2 px; стрелка — только у btn--arrow */
  .btn--primary:hover { background: #FFA526; box-shadow: 0 10px 24px rgba(255, 145, 0, .5); transform: translateY(-2px); }
  .btn--arrow:hover::after { max-width: 1.2em; margin-left: 0; opacity: 1; }
  .btn--primary:active { transform: scale(.97); }
  .btn--dark:hover { background: var(--orange); box-shadow: 0 6px 16px rgba(255, 145, 0, .35); }
  .btn--ghost:hover { color: var(--orange-dark); background: rgba(255, 145, 0, .1); border-color: var(--orange); }
  .btn--ghost-light:hover { background: var(--white); color: var(--ink); }
}
.btn--sm { padding: 12px 20px; }
.btn--block { width: 100%; }
.btn .msg { width: 32px; height: 32px; }
.btn .msg svg { width: 18px; height: 18px; }

/* ===== Мессенджеры: компонент «Мессенджер» default/hover ===== */
.msg { --brand: var(--orange); transition: background-color .2s, color .2s, box-shadow .2s, transform .1s; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--brand); flex: none; }
.msg svg { width: 22px; height: 22px; fill: currentColor; }
.msg--max { --brand: #471AFF; }
.msg--tg { --brand: #2AABEE; }
.msg--vk { --brand: #0077FF; }
.msg--vk svg { width: 20px; height: 20px; }
@media (hover: hover) { a.msg:hover { background: var(--brand); color: var(--white); box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 45%, transparent); } }
a.msg:active { transform: scale(.94); }

/* ===== Метки ===== */
.tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 14px; font-size: 14px; line-height: 20px; font-weight: 500; background: var(--orange-soft); color: var(--orange-dark); }
.tag--dark { background: var(--dark); color: var(--white); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 20px; background: var(--warm); font-size: 15px; line-height: 20px; font-weight: 600; transition: background-color .2s, color .2s; }
.chip.is-active, .chip:hover { background: var(--dark); color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== Секции ===== */
.section { padding-block: var(--section-y); }
.section--warm { background: var(--warm); }
.section--dark { background: var(--dark); color: var(--white); }
.section--orange { background: var(--orange); color: var(--white); }
.section--soft { background: var(--orange-soft); }
.section > .container { display: flex; flex-direction: column; gap: 48px; }

.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head .h2 { max-width: 900px; }
.section-head .lead { max-width: 760px; color: var(--ink-2); }
.section--dark .section-head .lead, .section--orange .section-head .lead { color: inherit; }
.section--orange .overline { color: rgba(255, 255, 255, .8); }
.section-head--row { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ===== Сетки: колонки на десктопе, планшете (t-), мобильном (m-) ===== */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.cols-2 { --cols: 2; } .cols-3 { --cols: 3; } .cols-4 { --cols: 4; } .cols-5 { --cols: 5; }
@media (max-width: 1023px) {
  .grid { gap: 16px; }
  .t-cols-1 { --cols: 1; } .t-cols-2 { --cols: 2; } .t-cols-3 { --cols: 3; }
}
@media (max-width: 599px) {
  .m-cols-1 { --cols: 1; } .m-cols-2 { --cols: 2; }
  .grid.m-gap-s { gap: 10px; }
}

/* ===== Карточки ===== */
.card { display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden; background: var(--warm); }
.card--white { background: var(--white); }
.card__img { width: 100%; height: var(--img-h, 280px); object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 28px; flex: 1; }
.card__body > .grow { flex: 1; }
@media (max-width: 599px) { .card__body { padding: 20px 20px 24px; } }

.num-card { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border-radius: var(--r-card-s); background: var(--white); }
.num-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; font-weight: 700; }

/* Список с оранжевыми точками */
.dots { display: flex; flex-direction: column; gap: 8px; }
.dots li { position: relative; padding-left: 20px; }
.dots li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ===== Поля формы ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); }
.input { width: 100%; padding: 16px 18px; border-radius: var(--r-field); border: 1px solid var(--line); background: var(--white); font-size: 16px; line-height: 26px; color: var(--ink); }
.input::placeholder { color: var(--ink-2); }
.input:focus { outline: none; border-color: var(--orange); }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border-radius: 16px; padding: 24px 28px; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 20px; line-height: 28px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--ff-head); font-weight: 500; font-size: 24px; line-height: 32px; color: var(--orange); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-2); }
@media (max-width: 599px) { .faq details { padding: 20px; } .faq summary { font-size: 18px; line-height: 26px; } }

/* ===== Излом и стрелки (блок Tilda t796) ===== */
.edge { position: absolute; left: 0; right: 0; width: 100%; bottom: -1px; height: min(8vw, 115px); fill: var(--white); pointer-events: none; }
.scroll-arrows { position: absolute; left: 50%; transform: translateX(-50%); width: 80px; height: 28px; stroke: rgba(255, 255, 255, .9); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Согласие на обработку ПДн: чекбокс, по умолчанию не отмечен; без него форма не отправляется ===== */
.consent { position: relative; }
.consent__label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.consent__box { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.consent__mark { width: 22px; height: 22px; flex: none; margin-top: -1px; border-radius: 6px; border: 1.5px solid currentColor; display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.consent__mark::after { content: ""; width: 11px; height: 6px; margin-top: -3px; border-left: 2.5px solid var(--white); border-bottom: 2.5px solid var(--white); transform: rotate(-45deg) scale(0); transition: transform .15s; }
.consent__box:checked + .consent__mark { background: var(--orange); border-color: var(--orange); }
.consent__box:checked + .consent__mark::after { transform: rotate(-45deg) scale(1); }
.consent__box:focus-visible + .consent__mark { box-shadow: 0 0 0 4px rgba(255, 145, 0, .45); }
.consent__text a { text-decoration: underline; }
.consent.is-error .consent__mark { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 145, 0, .35); animation: consent-shake .35s; }
.consent__tip { position: relative; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--orange); color: var(--white); }
.consent__tip::before { content: ""; position: absolute; left: 6px; top: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--orange); }
@keyframes consent-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.form-final .consent { color: rgba(255, 255, 255, .85); }
.form-final .consent__text a { color: var(--white); }
.excursion .consent { color: var(--ink-2); }

/* ===== Подпись студии в подвале ===== */
.studio { display: inline-flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .55); transition: color .2s; }
.studio__logo { width: 80px; height: 28px; flex: none; color: rgba(255, 255, 255, .75); transition: color .2s; }
@media (hover: hover) { .studio:hover, .studio:hover .studio__logo { color: var(--white); } }

/* ===== Формы: ловушка для ботов, ошибка отправки, окно «Спасибо» ===== */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { color: #FFB4A8; font-weight: 600; }
.excursion .form-err { color: #C0392B; }
.thanks { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: var(--scrim); animation: thanks-in .2s ease-out; }
.thanks__box { position: relative; width: 100%; max-width: 520px; padding: 40px; border-radius: var(--r-card); background: var(--white); color: var(--ink); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px rgba(13, 19, 36, .35); }
.thanks__ok { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: var(--white); font-size: 28px; font-weight: 700; }
.thanks__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--warm); color: var(--ink); font-size: 14px; cursor: pointer; }
.thanks__close:hover { background: var(--line); }
.thanks .btn-row { margin-top: 4px; }
@keyframes thanks-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 599px) { .thanks__box { padding: 28px 20px 24px; } .thanks .btn-row .btn { flex: 1; } }

/* Шапка: строка 1 — 96 px (--dark), строка 2 — 64 px (--dark-2). Планшет 72, мобильный 64 */
.hdr { position: relative; z-index: 50; color: var(--white); }
.hdr__top { background: var(--dark); }
.hdr__top .hdr__row { height: 96px; }
.hdr__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr__logo img { height: 30px; width: auto; }
.hdr__contacts { display: flex; align-items: center; gap: 40px; }
.hdr__contact { display: flex; flex-direction: column; gap: 2px; }
.hdr__label { color: rgba(255, 255, 255, .55); }
.hdr__value { display: inline-flex; align-items: center; gap: 8px; color: var(--white); white-space: nowrap; }
.hdr__value:hover { color: var(--orange); }
.hdr__ico { width: 18px; height: 18px; fill: var(--orange); flex: none; }

.hdr__nav { background: var(--dark-2); }
.hdr__nav .hdr__row { height: 64px; }
.hdr__menu { display: flex; align-items: center; gap: 36px; }
.hdr__link { position: relative; padding-top: 8px; padding-bottom: 8px; font-size: 15px; line-height: 20px; font-weight: 600; color: rgba(255, 255, 255, .88); transition: color .2s; }
.hdr__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 1px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease-out; }
.hdr__link:hover, .hdr__link.is-active { color: var(--orange); }
.hdr__link:hover::after, .hdr__link.is-active::after { transform: scaleX(1); }
.hdr__msgs { display: flex; align-items: center; gap: 12px; }

.hdr__actions { display: none; align-items: center; gap: 8px; }
.hdr__call { width: 44px; height: 44px; border-radius: 22px; background: var(--orange); display: grid; place-items: center; }
.hdr__call svg { width: 20px; height: 20px; fill: var(--white); }
.hdr__burger { width: 44px; height: 44px; border-radius: 12px; background: var(--dark-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.hdr__burger span { width: 22px; height: 2.5px; border-radius: 2px; background: var(--white); transition: transform .25s, opacity .2s; }
.hdr.is-open .hdr__burger { background: var(--orange); }
.hdr.is-open .hdr__burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hdr.is-open .hdr__burger span:nth-child(2) { opacity: 0; }
.hdr.is-open .hdr__burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.mmenu { position: fixed; inset: 72px 0 0; background: var(--dark); padding: 12px var(--gutter) 24px; display: flex; flex-direction: column; overflow-y: auto; }
.mmenu[hidden] { display: none; }
.mmenu__list { display: flex; flex-direction: column; }
.mmenu__list a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-weight: 700; text-transform: uppercase; }
.mmenu__list a.is-active { color: var(--orange); }
.mmenu__bottom { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.mmenu__card { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--white); color: var(--ink); }
.mmenu__card > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.mmenu__msgs { display: flex; gap: 6px; }
.mmenu__note { color: rgba(255, 255, 255, .6); text-align: center; }

/* Лаптоп 1280: контакты плотнее */
@media (max-width: 1359px) {
  .hdr__contacts { gap: 28px; }
  .hdr__menu { gap: 28px; }
}
/* Планшет и мобильный: одна строка, меню в бургере */
@media (max-width: 1023px) {
  .hdr__top .hdr__row { height: 72px; }
  .hdr__logo img { height: 24px; }
  .hdr__contacts, .hdr__nav { display: none; }
  .hdr__actions { display: flex; }
}
@media (max-width: 599px) {
  .hdr__top .hdr__row { height: 64px; }
  .hdr__logo img { height: 18px; }
  .hdr__call, .hdr__burger { width: 40px; height: 40px; }
  .hdr__max { display: none; }
  .mmenu { top: 64px; }
}

/* Первый экран: на десктопе подложка ровно на левые 6 колонок (половина экрана),
   справа фото без затемнения; на планшете и мобильном фото сверху, текст на тёмной плашке */
.hero { --edge: min(8vw, 115px); position: relative; color: var(--white); background: var(--hero-img) center / cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 50% 0 0; background: var(--overlay); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero__photo { display: none; }
.hero__panel { position: relative; padding: 112px 0 calc(64px + var(--edge)); }
.hero__inner { display: flex; flex-direction: column; gap: 56px; }
.hero__text { width: 588px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.hero__crumbs { color: rgba(255, 255, 255, .7); }
.hero__crumbs a:hover { color: var(--white); }
.hero__sub { color: rgba(255, 255, 255, .92); }
.hero__note { color: rgba(255, 255, 255, .8); }
.hero__triggers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.trigger { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 16px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.trigger__num { color: var(--orange); }
.hero .scroll-arrows { bottom: calc(var(--edge) - 52px); }

@media (max-width: 1023px) {
  .hero { background: var(--dark); }
  .hero::before { display: none; }
  .hero__photo { display: block; height: 440px; background: var(--hero-img) center / cover no-repeat; }
  .hero__panel { padding: 40px 0 calc(48px + var(--edge)); }
  .hero__inner { gap: 20px; }
  .hero__text { width: auto; gap: 20px; }
  .hero__sub { font-size: 16px; line-height: 26px; }
  .hero__triggers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
  .trigger { padding: 20px; border: 0; background: var(--dark-2); border-radius: 14px; -webkit-backdrop-filter: none; backdrop-filter: none; gap: 6px; }
  .hero .scroll-arrows { width: 60px; height: 22px; bottom: calc(var(--edge) + 12px); }
}
@media (max-width: 599px) {
  .hero__photo { height: 280px; }
  .hero__panel { padding: 28px 0 calc(46px + var(--edge)); }
  .hero__inner { gap: 16px; }
  .hero__text { gap: 16px; }
  .hero .btn-row { flex-direction: column; gap: 12px; }
  .hero .btn-row .btn { width: 100%; }
  .trigger { padding: 16px 14px; }
  .trigger__num { font-family: var(--ff-body); font-weight: 700; font-size: 20px; line-height: 28px; letter-spacing: 0; }
  .trigger__txt { font-size: 14px; line-height: 20px; font-weight: 500; }
  .hero .scroll-arrows { width: 40px; height: 18px; bottom: calc(var(--edge) + 8px); }
}

/* ===== Общие нижние блоки: форма, контакты, подвал ===== */
.form-final { position: relative; color: var(--white); background: linear-gradient(var(--scrim), var(--scrim)), var(--bg-img) center / cover no-repeat; }
.form-final__row { display: flex !important; flex-direction: row !important; align-items: center; gap: 64px !important; }
.form-final__text { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.form-final__form { width: 460px; flex: none; display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 24px; background: rgba(255, 255, 255, .08); }
.form-final__form .input { border: 0; padding: 18px 20px; font-size: 18px; line-height: 28px; }
.form-final__form > .btn { padding-top: 16px; padding-bottom: 16px; }
.form-final__msgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-final__msgs .btn { padding-top: 10px; padding-bottom: 10px; padding-right: 18px; }
.form-final__consent a { text-decoration: underline; }

.contacts__row { display: flex; gap: 24px; }
.contacts__data { width: 440px; flex: none; margin: 0; padding: 36px; border-radius: 24px; background: var(--warm); display: flex; flex-direction: column; gap: 24px; }
.contacts__data div { display: flex; flex-direction: column; gap: 6px; }
.contacts__data dd { margin: 0; }
.contacts__map { flex: 1; min-height: 360px; border-radius: 24px; background: var(--line); display: grid; place-items: center; }

.footer { background: var(--dark); color: var(--white); padding: 72px 0 48px; }
.footer > .container { display: flex; flex-direction: column; gap: 40px; }
.footer__top { display: flex; gap: 64px; }
.footer__about { width: 520px; flex: none; display: flex; flex-direction: column; gap: 14px; }
.footer__logo { height: 24px; width: auto; align-self: flex-start; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a:not(.btn):hover { color: var(--orange); }   /* кнопку не трогаем: иначе оранжевый текст на оранжевом фоне */
.footer__call .btn { margin-top: 4px; align-self: flex-start; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .15); }

@media (max-width: 1023px) {
  .form-final__row { flex-direction: column !important; align-items: stretch; gap: 28px !important; }
  .form-final__form { width: auto; }
  .contacts__row { flex-direction: column; gap: 16px; }
  .contacts__data { width: auto; }
  .contacts__map { min-height: 320px; }
  .footer { padding-top: 64px; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__about { width: auto; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__bottom .studio { margin-top: 16px; }
}
@media (max-width: 599px) {
  .form-final__form { padding: 20px; }
  .form-final__msgs { grid-template-columns: 1fr; gap: 10px; }
  .contacts__data { padding: 20px; }
  .contacts__map { min-height: 220px; }
  .footer { padding-top: 48px; }
  .footer__top { gap: 28px; }
}

/* ===== Карточки «Для кого» на главной ===== */
.who-card .card__img { --img-h: 280px; }
.who-card .card__body { padding: 28px 28px 32px; gap: 16px; }
.who-card__title { min-height: 64px; }
.who-card__meta { display: flex; gap: 24px; color: var(--ink-2); }
.who-card .btn { align-self: flex-start; }
@media (max-width: 1023px) { .who-card .card__img { --img-h: 320px; } .who-card__title { min-height: 0; } }
@media (max-width: 599px) { .who-card .card__img { --img-h: 200px; } .who-card .card__body { padding: 20px 20px 24px; } }

/* ===== Калькулятор (статичный шаг 3 из Figma) ===== */
.calc { display: flex; gap: 40px; padding: 40px; border-radius: 28px; background: var(--white); color: var(--ink); align-items: flex-start; }
.calc__steps { width: 220px; flex: none; display: flex; flex-direction: column; gap: 6px; }
.calc__step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); }
.calc__step.is-done { color: var(--ink); }
.calc__step.is-active { background: var(--orange-soft); color: var(--ink); font-weight: 700; }
.calc__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; line-height: 20px; font-weight: 500; background: var(--line); color: var(--ink-2); flex: none; }
.is-done .calc__dot { background: var(--success); color: var(--white); }
.is-active .calc__dot { background: var(--orange); color: var(--white); }
.calc__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.calc__bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.calc__bar span { display: block; height: 100%; width: 33.3%; background: var(--orange); border-radius: 4px; }
.calc__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc__opt { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--white); text-align: left; transition: border-color .2s; }
.calc__opt img { width: 100%; height: 150px; object-fit: cover; }
.calc__opt picture { display: block; }
.calc__opt > span { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
/* цифры одной ширины: цена и строки не «прыгают» при пересчёте (встреча 11.11) */
.calc { font-variant-numeric: tabular-nums; }
.calc .overline { color: var(--orange); }
.calc__opt.is-selected { border: 3px solid var(--orange); }
.calc__opt:hover { border-color: var(--orange); }
.calc__nav { display: flex; gap: 12px; }
.calc__sum { width: 300px; flex: none; padding: 28px; border-radius: 20px; background: var(--warm); display: flex; flex-direction: column; gap: 16px; }
.calc__row { display: flex; justify-content: space-between; gap: 8px; }
.calc__hr { height: 1px; background: var(--line); }
.calc-help { color: var(--white); }

/* ===== Калькулятор: рабочие состояния (calc.js, ArtCMS) ===== */
.calc__lead { margin-top: -12px; }
.calc__sub { margin-bottom: -12px; }
.calc__opt { cursor: pointer; }
.calc__opt--text { justify-content: center; min-height: 96px; }
.calc__opt.is-selected > span { padding: 12px 14px 14px; }
.calc__opt.is-disabled { opacity: .45; cursor: not-allowed; }
.calc__opt.is-disabled:hover { border-color: var(--line); }
.calc__lines { display: flex; flex-direction: column; gap: 12px; }
.calc__line { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); text-align: left; font-size: 17px; line-height: 24px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.calc__line:hover { border-color: var(--orange); }
.calc__line.is-on { border: 2px solid var(--orange); background: var(--orange-soft); padding: 15px 17px; }
.calc__line-t { flex: 1; }
.calc__line .caption { white-space: nowrap; }
.calc__mark { width: 20px; height: 20px; flex: none; border: 1.5px solid var(--line); background: var(--white); }
.calc__mark--radio { border-radius: 50%; }
.calc__mark--check { border-radius: 5px; }
.is-on .calc__mark { background: var(--orange); border-color: var(--orange); }
.is-on .calc__mark--check { background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3.5 3.5L15 7' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.calc__sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calc__hint { color: var(--success); min-height: 20px; }
.calc__err { color: #C0392B; font-weight: 600; }
.calc__form { display: flex; flex-direction: column; gap: 20px; }
.calc__form .chips { margin-top: -8px; }
.calc__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.calc__total { padding: 24px; border-radius: 20px; background: var(--orange-soft); display: flex; flex-direction: column; gap: 6px; }
.calc__total .price { font-size: 34px; line-height: 42px; }
.calc__rows { display: flex; flex-direction: column; gap: 10px; }
.calc__done { padding: 14px 18px; border-radius: 14px; background: #E8F5EC; color: var(--success); font-weight: 700; }
.calc__hook { color: var(--ink-2); }
.calc__hook a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.calc__hook a:hover { color: var(--orange); }
.calc__again { align-self: flex-start; color: var(--ink-2); text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }
.calc.is-result .calc__sum { display: none; }
.calc [hidden] { display: none !important; }
/* навигация по шагам: компьютер — строки сводки, телефон — номера над шагом */
.calc__srow { display: grid; grid-template-columns: 26px auto 1fr; column-gap: 10px; align-items: center; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; font-size: 14px; line-height: 20px; }
.calc__sdot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.calc__sname { color: var(--ink-2); white-space: nowrap; }
.calc__sval { text-align: right; color: var(--ink); min-width: 0; }
button.calc__srow { position: relative; width: calc(100% + 20px); border: 0; background: none; font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: background-color .15s; }
button.calc__srow:hover, button.calc__srow:focus-visible { background: var(--white); outline: none; }
.calc__sedit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 2px 8px; border-radius: 10px; background: var(--white); font-size: 12px; line-height: 16px; color: var(--orange-dark); opacity: 0; transition: opacity .15s; pointer-events: none; }
button.calc__srow:hover .calc__sedit, button.calc__srow:focus-visible .calc__sedit { opacity: 1; }
button.calc__srow:hover .calc__sval, button.calc__srow:focus-visible .calc__sval { opacity: 0; }
.calc__srow.is-done .calc__sdot { background: var(--success); color: var(--white); }
.calc__srow.is-done .calc__sname { color: var(--ink); }
.calc__srow.is-on { background: var(--orange-soft); }
.calc__srow.is-on .calc__sdot { background: var(--orange); color: var(--white); }
.calc__srow.is-on .calc__sname { color: var(--ink); font-weight: 700; }
.calc__srow.is-on .calc__sval { color: var(--orange-dark); font-weight: 600; }
.calc__sum { width: 320px; }
.calc__pag { display: none; }
@media (max-width: 1023px) {
  .calc__pag { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: -4px; }
  .calc__pag::-webkit-scrollbar { display: none; }
  .calc__main > .overline, .calc__main > .calc__bar { display: none; }
  .calc__pg { flex: none; min-width: 27px; height: 28px; padding: 0 3px; border-radius: 14px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: var(--warm); font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-2); }
  button.calc__pg { cursor: pointer; }
  .calc__pg.is-done { background: #E8F5EC; color: var(--success); }
  .calc__pg.is-on { padding: 0 10px 0 3px; background: var(--orange); color: var(--white); font-size: 13px; }
  .calc__pg.is-on b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--orange-dark); font-size: 12px; }
}

/* шаг 2: ползунки и план (из прототипа 15.09, в стиле макета) */
.calc__presets { margin-top: -4px; }
.calc__presets .chip { font-size: 14px; padding: 8px 16px; }
.calc__size { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: center; }
.calc__dims { display: flex; flex-direction: column; }
.calc__dim { padding: 14px 0; border-top: 1px solid var(--line); }
.calc__dim:first-child { border-top: 0; padding-top: 0; }
.calc__dim-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.calc__dim-v { display: flex; align-items: baseline; gap: 6px; }
.calc__dim-in { width: 92px; border: 0; border-bottom: 2px solid var(--ink); background: none; text-align: right; font-family: var(--ff-head); font-weight: 600; font-size: 26px; line-height: 34px; color: var(--ink); padding: 0 2px; }
.calc__dim-in:focus { outline: none; border-bottom-color: var(--orange); }
.calc__dim-in:disabled { color: var(--ink-2); border-bottom-color: var(--line); }
.calc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 10px 0; border-radius: 4px; cursor: pointer;
  background: linear-gradient(to right, var(--orange) var(--p, 50%), var(--line) var(--p, 50%)); }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 3px solid var(--orange); box-shadow: 0 2px 6px rgba(31, 27, 23, .18); }
.calc__range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--orange); box-shadow: 0 2px 6px rgba(31, 27, 23, .18); }
.calc__range:focus-visible { outline: none; }
.calc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(255, 145, 0, .3); }
.calc__range:disabled { opacity: .45; cursor: default; }
.calc__plan { padding: 18px 18px 16px; border-radius: 20px; background: var(--warm); }
.calc__plan svg { display: block; width: 100%; height: auto; font-family: var(--ff-body); }
.calc__plan-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.calc__plan-meta b { display: block; font-family: var(--ff-head); font-weight: 600; font-size: 17px; line-height: 24px; white-space: nowrap; }
.calc__mini { max-width: 170px; margin: -4px auto 0; }
.calc__mini svg { display: block; width: 100%; height: auto; font-family: var(--ff-body); }
/* уровень цены на плитке: ₽₽ из ₽₽₽ */
.calc__opt { position: relative; }
/* метка уровня цены: одинаковая в любой сетке и в любом состоянии плитки */
.calc .calc__opt > .calc__lvl, .calc .calc__opt.is-selected > .calc__lvl { display: block; flex-direction: row; gap: 0; white-space: nowrap; position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 12px; background: rgba(255, 255, 255, .92); font-weight: 700; font-size: 13px; line-height: 18px; color: var(--orange-dark); letter-spacing: .04em; }
.calc .calc__opt.is-selected > .calc__lvl { top: 8px; right: 8px; }   /* рамка выбранной плитки толще на 2 px — метка остаётся на месте */
.calc__lvl i { font-style: normal; color: var(--line); }
.calc .calc__opt--text > .calc__lvl, .calc .calc__opt--text.is-selected > .calc__lvl { position: static; align-self: flex-start; margin: 14px 0 0 16px; }
.calc .nw { white-space: nowrap; }
.calc__sum .calc__row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.calc__sum .calc__row span:last-child, .calc__rows .calc__row span:last-child { text-align: right; }
.calc__opts--many { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc__opts--many .calc__opt img { height: 110px; }
.calc__opts--many .calc__opt > span { padding: 12px 14px 14px; }
.is-result .calc__step.is-done:last-child .calc__dot { background: var(--success); }
.calc.is-result .calc__main { max-width: 640px; }
@media (max-width: 1023px) { .calc__total .price { font-size: 28px; line-height: 36px; } .calc__mini { display: none; } }
@media (max-width: 599px) {
  .calc__opts--many { grid-template-columns: 1fr 1fr; gap: 10px; }
  .calc__total .price { font-size: 24px; line-height: 32px; }
  .calc__opts--many .calc__opt img { height: 96px; }
  .calc__sizes { grid-template-columns: 1fr; }
  .calc__size { grid-template-columns: 1fr; gap: 16px; }
  .calc__plan { max-width: 260px; width: 100%; justify-self: center; }
  .calc__dim-in { font-size: 22px; line-height: 30px; width: 80px; }
  .calc__line { font-size: 16px; padding: 14px 16px; }
  .calc__line.is-on { padding: 13px 15px; }
  .calc__line .caption { white-space: normal; text-align: right; }
}
@media (max-width: 1023px) {
  .calc { flex-direction: column; align-items: stretch; padding: 32px; gap: 24px; }
  .calc__steps { display: none; }
  .calc__sum { width: auto; }
  .calc__opt img { height: 140px; }
}
@media (max-width: 599px) {
  .calc { padding: 16px; gap: 20px; }
  .calc__opts { gap: 10px; }
  .calc__opt img { height: 96px; }
  .calc__nav .btn { flex: 1; }
  .calc__sum { padding: 20px; }
}

/* ===== Примеры работ (карточка объекта) ===== */
.work { display: flex; flex-direction: column; gap: 14px; }
.work__pic { position: relative; display: block; overflow: hidden; border-radius: 20px; isolation: isolate; }
.work__img { display: block; width: 100%; height: var(--img-h, 300px); object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.work .h4 { transition: color .2s; }
.work__more { position: absolute; left: 16px; bottom: 16px; padding: 10px 18px; border-radius: 20px; background: var(--white); font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@media (hover: hover) {
  a.work:hover .work__img { transform: scale(1.08); }
  a.work:hover .h4 { color: var(--orange-dark); }
  a.work:hover .work__more { opacity: 1; transform: none; }
}
@media (hover: none) { .work__more { display: none; } }
.work__place { align-self: flex-start; }
.work p { color: var(--ink-2); }
@media (max-width: 1023px) { .work { --img-h: 250px; } }
@media (max-width: 599px) { .work { --img-h: 230px; } }

/* ===== Из чего складывается цена ===== */
.factor { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border-radius: 20px; background: var(--white); }
.factor p.body { color: var(--ink-2); }
.stove-pic { display: flex; flex-direction: column; gap: 10px; }
.stove-pic img { width: 100%; height: 320px; object-fit: cover; border-radius: 16px; }
@media (max-width: 1023px) { .stove-pic img { height: 320px; } }
@media (max-width: 599px) { .stove-pic img { height: 190px; } }

/* ===== Этапы ===== */
.step-card { display: flex; flex-direction: column; gap: 14px; padding: 24px 20px; border-radius: 20px; background: var(--warm); }
.step-card p { color: var(--ink-2); }
.step-card--accent { background: var(--orange); color: var(--white); }
.step-card--accent p { color: var(--white); }
.step-card .price { color: var(--orange); }
.step-card--accent .price { color: var(--white); }
@media (max-width: 599px) { .step-card .price { font-family: var(--ff-body); font-weight: 700; font-size: 20px; line-height: 28px; letter-spacing: 0; } }

/* ===== Отзывы ===== */
.review { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 20px; background: var(--white); }
.review__q { font-family: var(--ff-head); font-weight: 600; font-size: 46px; line-height: 40px; color: var(--orange); }
.review__shot { height: 140px; border-radius: 12px; background: var(--line); }
@media (max-width: 599px) { .review { padding: 20px; } }

/* ===== Команда ===== */
.team { display: flex; gap: 24px; }
.team__person { width: 300px; flex: none; display: flex; flex-direction: column; gap: 14px; }
.team__photo { height: 360px; border-radius: 20px; background: var(--dark-2); display: grid; place-items: center; }
.team__video { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.team__player { position: relative; height: 360px; border-radius: 20px; overflow: hidden; background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), var(--video-img) center / cover; display: grid; place-items: center; }
.team__play { width: 80px; height: 80px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.team__play::before { content: ""; margin-left: 6px; border-left: 22px solid var(--white); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
@media (max-width: 1023px) {
  .team { flex-direction: column; }
  .team__people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .team__person { width: auto; }
  .team__photo { height: 340px; }
  .team__player { height: 380px; }
}
@media (min-width: 1024px) { .team__people { display: contents; } }
@media (max-width: 599px) {
  .team__people { gap: 12px; }
  .team__photo { height: 200px; }
  .team__player { height: 210px; }
}

/* ===== Экскурсия ===== */
.excursion { display: grid; grid-template-columns: minmax(0, 1fr) 520px; border-radius: 28px; overflow: hidden; background: var(--warm); }
.excursion__text { display: flex; flex-direction: column; gap: 20px; padding: 56px; }
.excursion__text .btn { align-self: flex-start; }
.excursion__img { width: 100%; height: 0; min-height: 100%; object-fit: cover; }
@media (max-width: 1023px) {
  .excursion { grid-template-columns: 1fr; }
  .excursion__text { padding: 40px; }
  .excursion__img { width: 100%; height: 360px; }
}
@media (max-width: 599px) {
  .excursion { border-radius: 20px; }
  .excursion__text { padding: 20px; }
  .excursion__img { height: 220px; }
  .excursion__text .btn { align-self: stretch; }
}

/* ===== Гарантии ===== */
.guarantee { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border-radius: 20px; border: 1px solid var(--line); }
.guarantee__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.guarantee p { color: var(--ink-2); }

@media (max-width: 599px) {
  .section .btn-row { flex-direction: column; align-items: stretch; }
}
@media (max-width: 379px) { .calc__pag { gap: 2px; } .calc__pg { min-width: 25px; } .calc__pg.is-on { padding-right: 8px; } }
/* Калькулятор · итог: ссылка «Скачать смету в PDF» */
.calc .calc__pdf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: center; padding: 6px 4px; font-weight: 600; font-size: 15px; line-height: 20px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.calc .calc__pdf svg { color: var(--orange); flex: none; }
@media (hover: hover) { .calc .calc__pdf:hover { color: var(--orange-dark, var(--orange)); } }

/* ===== Внутренние страницы: общие блоки из Figma (Услуги, страницы услуг, отделка, примеры) ===== */

/* Отступы секций внутренних страниц: десктоп 96/96, планшет 48/72, мобильный 32/56 */
.section--i { padding-top: 96px; padding-bottom: 96px; }
.section--i > .container { gap: 40px; }
.section--i-l { padding-top: 112px; padding-bottom: 112px; }
.pt-0 { padding-top: 0 !important; }
.pt-40 { padding-top: 40px !important; }
.gap-28 > .container { gap: 28px !important; }
.gap-48 > .container { gap: 48px !important; }
.gap-40 > .container { gap: 40px !important; }
@media (min-width: 1024px) { .grid.rows-eq { grid-auto-rows: 1fr; } }
@media (max-width: 1023px) {
  .section--i, .section--i-l { padding-top: 48px; padding-bottom: 72px; }
}
@media (max-width: 599px) {
  .section--i, .section--i-l { padding-top: 32px; padding-bottom: 56px; }
}

/* Заголовок страницы на светлом фоне: крошки, H1, вводный абзац, якоря */
.page-head { padding: 56px 0 48px; }
.page-head > .container { display: flex; flex-direction: column; gap: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0 10px; color: var(--ink-2); }
.crumbs a:hover { color: var(--orange-dark); }
.page-head .h1 { max-width: 1000px; }
.page-head .lead { max-width: 760px; color: var(--ink-2); }
.anchors { display: flex; flex-wrap: wrap; gap: 8px; }
.anchor { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 22px; background: var(--warm); font-size: 15px; line-height: 20px; font-weight: 600; transition: background-color .2s, color .2s; }
.anchor::after { content: "↓"; color: var(--orange); transition: transform .2s; }
@media (hover: hover) { .anchor:hover { background: var(--orange-soft); } .anchor:hover::after { transform: translateY(2px); } }
@media (max-width: 1023px) { .page-head { padding: 48px 0; } }
@media (max-width: 599px) {
  .page-head { padding: 32px 0 48px; }
  .anchor { padding: 8px 14px; }
}
.page-head > .container > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.page-head > .container > :nth-child(2) { animation-delay: .1s; }
.page-head > .container > :nth-child(3) { animation-delay: .2s; }
.page-head > .container > :nth-child(n+4) { animation-delay: .3s; }

/* Карточка услуги: фото 220, заголовок, текст, цена со сроком, две кнопки */
.svc { scroll-margin-top: 24px; }
.svc .card__img { --img-h: 220px; }
.svc .card__body { padding: 24px 24px 28px; gap: 12px; }
.svc__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.svc__price b { font-size: 20px; line-height: 28px; color: var(--orange-dark); }
.svc__price span { color: var(--ink-2); }
.svc__example { color: var(--orange-dark); }
.svc__example:hover { text-decoration: underline; }
.svc .btn-row { gap: 10px; margin-top: auto; padding-top: 4px; }
@media (max-width: 1023px) { .svc .card__img { --img-h: 200px; } }
@media (max-width: 599px) { .svc .card__img { --img-h: 190px; } .svc .card__body { padding: 20px 20px 24px; } }

/* Две колонки: заголовок слева 384, контент справа (десктоп) */
.split { display: flex !important; flex-direction: row !important; gap: 64px !important; align-items: flex-start; }
.split > .section-head { width: 384px; flex: none; }
.split > :last-child { flex: 1; min-width: 0; }
@media (max-width: 1023px) {
  .split { flex-direction: column !important; gap: 28px !important; align-items: stretch; }
  .split > .section-head { width: auto; }
}
@media (max-width: 599px) { .split { gap: 20px !important; } }

/* Нумерованный список в белой карточке */
.numlist { padding: 8px 32px; border-radius: 20px; background: var(--white); }
.numlist li { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.numlist li:last-child { border-bottom: 0; }
.numlist__n { width: 56px; flex: none; color: var(--orange); }
.numlist li > div { display: flex; flex-direction: column; gap: 6px; }
.numlist p { color: var(--ink-2); }
@media (max-width: 599px) {
  .numlist { padding: 8px 16px; }
  .numlist li { gap: 14px; }
  .numlist__n { width: auto; min-width: 28px; font-family: var(--ff-head); font-weight: 500; font-size: 20px; line-height: 26px; }
}

/* Таблица цен */
.ptable { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.ptable__row { display: grid; grid-template-columns: minmax(0, 1fr) 260px 180px; gap: 24px; align-items: center; padding: 18px 28px; min-height: 64px; }
.ptable__row:nth-child(odd) { background: var(--warm); }
.ptable__row:nth-child(even) { background: var(--white); }
.ptable__head { background: var(--dark) !important; color: var(--white); min-height: 56px; }
.ptable__price { font-weight: 700; color: var(--orange-dark); }
.ptable__term { color: var(--ink-2); }
.ptable__note { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.ptable__note a { font-weight: 700; color: var(--orange-dark); }
.ptable__note a:hover { text-decoration: underline; }
@media (max-width: 1023px) { .ptable__row { grid-template-columns: minmax(0, 1fr) 180px 110px; } .section-head--row { gap: 12px; } }
@media (max-width: 599px) {
  .ptable__head { display: none !important; }
  .ptable__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; min-height: 0; }
  .ptable__row > :first-child { grid-column: 1 / -1; }
}

/* Пилюли с точкой */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px; border-radius: 28px; background: var(--warm); font-size: 18px; line-height: 28px; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
@media (max-width: 599px) { .pill { padding: 10px 16px 10px 14px; border-radius: 24px; } }

/* Оранжевая полоса с призывом к калькулятору */
.cta-band { padding: 64px 0; background: var(--orange); color: var(--white); }
.cta-band > .container { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-band__text { display: flex; flex-direction: column; gap: 12px; }
.cta-band .btn--dark { padding: 18px 32px; flex: none; }
@media (max-width: 1023px) {
  .cta-band { padding: 56px 0; }
  .cta-band > .container { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 599px) { .cta-band { padding: 40px 0; } .cta-band .btn { align-self: stretch; } }

/* Карточка объекта: фото листаются при движении мыши, точки показывают кадр */
.obj { display: flex; flex-direction: column; gap: 14px; }
.obj__pic { position: relative; display: block; overflow: hidden; border-radius: 20px; isolation: isolate; }
.obj__pic img { display: block; width: 100%; height: var(--img-h, 288px); object-fit: cover; }
.obj__dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; }
.obj__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: width .2s, background-color .2s; }
.obj__dots i.on { width: 18px; background: var(--white); }
.obj .h4 { transition: color .2s; }
.obj .body-l, .obj__date { color: var(--ink-2); }
@media (hover: hover) { a.obj:hover .h4 { color: var(--orange-dark); } }
@media (max-width: 1023px) { .obj { --img-h: 250px; } .objs-3 > :nth-child(3) { display: none; } }
@media (max-width: 599px) { .obj { --img-h: 240px; } .objs-3 > :nth-child(3) { display: flex; } .grid.objs-3 { gap: 32px; } }
@media (max-width: 599px) { .section-head--row.m-stack { flex-direction: column; align-items: flex-start; gap: 16px; } }

/* Общие нижние блоки на внутренних страницах: верхний отступ меньше, как в Figma */
@media (max-width: 1023px) { .inner .form-final, .inner .contacts { padding-top: 48px; } }
@media (max-width: 599px) { .inner .form-final, .inner .contacts { padding-top: 32px; } }

/* Карточка услуги: кнопки в строку и на телефоне */
.svc .btn-row { flex-direction: row !important; align-items: center !important; }
/* Вопросы на внутренних страницах: на телефоне заголовок вопроса 20/28, как в Figma */
@media (max-width: 599px) {
  .inner .faq details { padding: 24px 28px; }
  .inner .faq summary { font-size: 20px; line-height: 28px; }
  .inner .faq summary::after { font-size: 20px; line-height: 26px; }
  .inner .form-final__msgs { grid-template-columns: 1fr 1fr; }
}

/* ===== Страницы услуг ===== */
/* Первый экран услуги: как на главной, плюс крошки; на планшете подзаголовок остаётся 18 */
.hero--inner .crumbs { color: rgba(255, 255, 255, .8); }
.hero--inner .crumbs a:hover { color: var(--white); }
@media (max-width: 1023px) and (min-width: 600px) { .hero--inner .hero__sub { font-size: 18px; line-height: 28px; } }
@media (max-width: 599px) { .hero--inner .trigger__txt { font-size: 14px; line-height: 20px; font-weight: 500; } }

.py-96 { padding-top: 96px; padding-bottom: 96px; }
@media (max-width: 1023px) { .py-96 { padding-top: 72px; padding-bottom: 72px; } }
@media (max-width: 599px) { .py-96 { padding-top: 56px; padding-bottom: 56px; } }

/* Карточки мест: фото 260 / 280 / 190 */
.place .card__img { --img-h: 260px; }
.place .card__body { padding: 24px 24px 28px; gap: 10px; }
@media (max-width: 1023px) { .places { gap: 20px; } .place .card__img { --img-h: 280px; } }
@media (max-width: 599px) { .places { gap: 16px; } .place .card__img { --img-h: 190px; } .place .card__body { padding: 20px 20px 24px; } }

.feats .num-card { padding: 28px 24px; }
@media (max-width: 599px) { .grid.feats { gap: 12px; } }

/* Стоимость: текст слева, факторы цены справа */
.cost { display: flex !important; flex-direction: row !important; gap: 64px !important; align-items: flex-start; }
.cost__text { flex: 1; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.factors { width: 520px; flex: none; padding: 8px 28px; border-radius: 20px; background: var(--white); }
.factors__item { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.factors__item:last-child { border-bottom: 0; }
@media (max-width: 1023px) {
  .cost { flex-direction: column !important; align-items: stretch; gap: 32px !important; }
  .factors { width: auto; }
}
@media (max-width: 599px) {
  .cost { gap: 24px !important; }
  .cost__text .btn { align-self: stretch; }
  .factors { padding: 8px 20px; }
}

/* Этапы: 5 в ряд, планшет 2, мобильный 1 */
.grid.steps { gap: 20px; }
@media (max-width: 1023px) { .grid.steps { gap: 16px; } }
@media (max-width: 599px) { .grid.steps { gap: 10px; } }
/* Плашки первого экрана услуги одной высоты, как в Figma */
@media (max-width: 1023px) { .hero--inner .trigger { min-height: 138px; } }
@media (max-width: 599px) {
  .hero--inner .trigger { min-height: 126px; }
  .inner .step-card .price { font-family: var(--ff-head); font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.005em; }
}
/* Карточки возможностей (белые на тёплом фоне), фото 220 */
.poss .card__img { --img-h: 220px; }
.poss .card__body { padding: 24px 24px 28px; gap: 10px; }
@media (max-width: 1023px) { .poss .card__img { --img-h: 200px; } }
@media (max-width: 599px) { .grid.poss-grid { gap: 16px; } .poss .card__img { --img-h: 190px; } .poss .card__body { padding: 20px 20px 24px; } }
.num-card--warm { background: var(--warm); }
@media (max-width: 1023px) { .fmt .card__img { --img-h: 220px; } }
@media (max-width: 599px) { .fmt .card__img { --img-h: 190px; } }

/* Крупная карточка объекта: фото слева 640, текст справа */
.feature { display: flex; border-radius: 24px; overflow: hidden; background: var(--warm); }
.feature__img { width: 640px; flex: none; height: 420px; object-fit: cover; }
.feature__text { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 48px; }
@media (max-width: 1023px) {
  .feature { flex-direction: column; }
  .feature__img { width: 100%; height: 360px; }
  .feature__text { padding: 36px; }
}
@media (max-width: 599px) {
  .feature__img { height: 240px; }
  .feature__text { padding: 20px; }
}

/* Установка печей: типы печей (фото 240 / 240 / 200) и установленные печи (300 / 300, на телефоне 2 колонки по 180) */
.stype .card__img { --img-h: 240px; }
.stype .card__body { padding: 24px 24px 28px; gap: 10px; }
@media (max-width: 599px) { .stype .card__img { --img-h: 200px; } .stype .card__body { padding: 20px 20px 24px; } }
.stove .card__img { --img-h: 300px; }
.stove .card__body { padding: 24px 24px 28px; gap: 10px; }
@media (max-width: 599px) {
  .grid.stoves-grid { gap: 10px; }
  .stove .card__img { --img-h: 180px; }
  .stove .card__body { padding: 12px 12px 14px; gap: 6px; }
  .stove .h3 { font-family: var(--ff-body); font-weight: 700; font-size: 16px; line-height: 26px; letter-spacing: 0; }
  .stove .body-l { font-size: 14px; line-height: 20px; font-weight: 500; }
}

/* ===== Отделка бань ===== */
/* На этой странице планшетные отступы секций 80/80 */
@media (max-width: 1023px) and (min-width: 600px) { .page-t80 main > .section { padding-top: 80px; padding-bottom: 80px; } }
.wood .card__img { --img-h: 240px; }
.wood .card__body { padding: 24px 24px 28px; gap: 12px; }
.wood .tag { align-self: flex-start; }
@media (max-width: 1023px) { .grid.woods { gap: 20px; } .wood .card__img { --img-h: 220px; } }
@media (max-width: 599px) { .grid.woods { gap: 16px; } .wood .card__img { --img-h: 200px; } .wood .card__body { padding: 20px 20px 24px; } }
.stage { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 20px; background: var(--white); }
.stage .price { color: var(--orange); }
@media (max-width: 599px) {
  .grid.stages { gap: 10px; }
  .stage { padding: 20px; }
  .stage .price { font-family: var(--ff-body); font-weight: 700; font-size: 20px; line-height: 28px; letter-spacing: 0; }
}
.works-btns .btn { padding-top: 16px; padding-bottom: 16px; }
@media (max-width: 1023px) { .grid.works { gap: 24px; } }
.cost__img { width: 520px; flex: none; height: 380px; object-fit: cover; border-radius: 24px; align-self: center; }
.cost--photo .cost__text { gap: 24px; }
.cost--photo .btn--ghost { padding-top: 16px; padding-bottom: 16px; }
@media (max-width: 1023px) { .cost__img { width: 100%; height: 360px; } }
@media (max-width: 599px) { .cost__img { height: 240px; } .cost--photo .btn-row { flex-direction: column; align-self: stretch; gap: 16px; } }
@media (max-width: 1023px) { .page-t80 main > .section > .container:not(.cost):not(.split) { gap: 40px; } }
@media (max-width: 599px) { .page-t80 main > .section > .container:not(.cost):not(.split) { gap: 28px; } }

/* ===== Примеры работ: список ===== */
.page-head--list { padding-bottom: 40px; }
@media (max-width: 1023px) { .page-head--list { padding-bottom: 40px; } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { padding: 12px 22px; border-radius: 24px; background: var(--warm); font-size: 15px; line-height: 20px; font-weight: 600; transition: background-color .2s, color .2s; }
.tab.is-active { background: var(--dark); color: var(--white); }
@media (hover: hover) { .tab:not(.is-active):hover { background: var(--orange-soft); } }
@media (max-width: 599px) { .tab { padding: 10px 16px; } }
.objlist { padding: 24px 0 96px; }
.objlist > .container { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.objlist .grid { width: 100%; gap: 48px 24px; }
.objlist__more { padding: 16px 32px; }
.objlist__more[hidden], .objlist__empty[hidden] { display: none; }
.objlist__empty { color: var(--ink-2); }
.obj[hidden] { display: none !important; }
@media (max-width: 1023px) { .objlist .grid { gap: 24px; } .objs-list > :nth-child(3) { display: flex; } }
@media (max-width: 599px) { .objlist .grid { gap: 32px; } .objlist__more { align-self: stretch; } }

.cta-band--list { padding: 80px 0; }
.cta-band__btns { gap: 16px; flex-wrap: nowrap; }
.cta-band__btns .btn--ghost-light { padding: 18px 32px; }
@media (max-width: 1023px) { .cta-band--list { padding: 72px 0; } .cta-band--list > .container { gap: 32px; } }
@media (max-width: 599px) {
  .cta-band--list { padding: 56px 0; }
  .cta-band--list > .container { gap: 24px; align-items: stretch; }
  .cta-band__btns { flex-direction: column; }
}
.seo-note { padding: 56px 0; background: var(--warm); }
@media (max-width: 1023px) { .seo-note { padding: 48px 0; } }
@media (max-width: 599px) { .seo-note { padding: 32px 0; } }
.cta-band--list .cta-band__text { gap: 16px; }
.seo-note p { max-width: 900px; }

/* ===== Страница объекта ===== */
.page-head--obj { padding-bottom: 32px; }
@media (max-width: 1023px) { .page-head--obj { padding-bottom: 32px; } }
@media (max-width: 599px) { .page-head--obj { padding-bottom: 32px; } }

/* Состав объекта */
.comp-sec { padding-top: 80px; padding-bottom: 80px; }
@media (max-width: 1023px) { .comp-sec { padding-top: 72px; padding-bottom: 72px; } }
@media (max-width: 599px) { .comp-sec { padding-top: 56px; padding-bottom: 56px; } }
.comp { margin: 0; padding: 8px 28px; border-radius: 20px; background: var(--white); }
.comp__row { display: flex; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.comp__row:last-child { border-bottom: 0; }
.comp__row dt { width: 200px; flex: none; color: var(--ink-2); }
.comp__row dd { flex: 1; margin: 0; font-weight: 700; }
.comp__row a { color: var(--orange-dark); }
.comp__row a:hover { text-decoration: underline; }
@media (max-width: 1023px) { .comp__row dt { width: 180px; } }
@media (max-width: 599px) {
  .comp { padding: 8px 16px; }
  .comp__row { gap: 12px; }
  .comp__row dt { width: 110px; }
}

.cta-band--dark { background: var(--dark); }

/* ---------- Галерея объекта «лента с фокусом» + компоновка Б (Figma 2580:1491, утверждено 12.11) ----------
   Кадр по центру (3 : 4 или 4 : 3), остальные фото — маленькие обесцвеченные миниатюры по нижнему краю кадра.
   Выбранная миниатюра плавно вырастает в кадр. Вертикальный кадр на компьютере: «О проекте» слева, характеристики справа.
   Кнопка «Хочу такую же» всегда под фото. Горизонтальный кадр, планшет, телефон: описание сверху, характеристики плашкой внизу. */
.obj-gal { padding: 8px 0 72px; }
.obj-gal__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.obj-gal__about { max-width: 800px; }
.obj-gal__about .overline { display: none; margin-bottom: 10px; }
/* горизонтальный кадр: описание ровно по ширине фото */
.obj-gal--h .obj-gal__about { width: 100%; max-width: 720px; margin: 0 auto; }
@media (max-width: 1023px) { .obj-gal--h .obj-gal__about { max-width: 560px; } }
@media (max-width: 599px) { .obj-gal--h .obj-gal__about { max-width: none; } }
.obj-gal__cta { display: flex; justify-content: center; margin-top: -4px; }
.obj-gal__pass { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 32px; padding: 28px 32px; border-radius: 20px; background: var(--warm); }
.obj-gal__pass div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.obj-gal__pass dt { color: var(--ink-2); }
.obj-gal__pass dd { margin: 0; }
@media (min-width: 1280px) {
  .obj-gal--v .obj-gal__grid { grid-template-columns: minmax(0, 1fr) 480px minmax(0, 1fr); column-gap: 40px; row-gap: 28px; }
  .obj-gal--v .fg { grid-column: 1 / -1; grid-row: 1; }
  .obj-gal--v .obj-gal__about, .obj-gal--v .obj-gal__pass { grid-row: 1; align-self: start; position: relative; z-index: 2; max-height: 480px; overflow: hidden; }
  .obj-gal--v .obj-gal__about { grid-column: 1; max-width: 320px; }
  .obj-gal--v .obj-gal__about .overline { display: block; }
  .obj-gal--v .obj-gal__pass { grid-column: 3; display: flex; flex-direction: column; gap: 18px; padding: 0; background: none; border-radius: 0; }
  .obj-gal--v .obj-gal__cta { grid-column: 1 / -1; grid-row: 2; }
}

.fg { --dur: .55s; --ease: cubic-bezier(.22, .8, .24, 1); --fw: 480px; --fh: 640px; --tw: 96px; --th: 128px; --gap: 12px; position: relative; user-select: none; }
.fg[data-ratio="h"] { --fw: 720px; --fh: 540px; --tw: 128px; --th: 96px; }
.fg__view { position: relative; overflow: hidden; height: var(--fh); outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.fg__view:focus-visible { box-shadow: inset 0 0 0 3px var(--orange); border-radius: 24px; }
.fg__track { position: absolute; left: 0; bottom: 0; display: flex; align-items: flex-end; gap: var(--gap); transition: transform var(--dur) var(--ease); will-change: transform; }
.fg__item { position: relative; flex: none; width: var(--tw); height: var(--th); border-radius: 12px; overflow: hidden; padding: 0; border: 0; background: var(--line); cursor: pointer;
  transition: width var(--dur) var(--ease), height var(--dur) var(--ease), border-radius var(--dur) var(--ease); }
.fg__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .45s ease, opacity .45s ease; }
.fg__item:not(.is-focus) img { filter: grayscale(1) contrast(.9); opacity: .42; }
@media (hover: hover) { .fg__item:not(.is-focus):hover img { filter: none; opacity: 1; } }
.fg__item.is-focus { width: var(--fw); height: var(--fh); border-radius: 24px; cursor: zoom-in; }
.fg__item:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.fg__meta { display: flex; justify-content: center; align-items: baseline; gap: 16px; margin-top: 18px; min-height: 22px; text-align: center; }
.fg__count { font-family: var(--ff-head); font-weight: 600; font-size: 15px; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.fg__count i { font-style: normal; color: var(--ink-2); }
.fg__cap { color: var(--ink-2); transition: opacity .3s ease; }
.fg__nav { position: absolute; top: calc(var(--fh) / 2 - 24px); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink);
  box-shadow: 0 6px 20px rgba(23, 32, 54, .16); font: 700 22px/1 var(--ff-body); cursor: pointer; z-index: 3; transition: background .2s, color .2s, opacity .2s; }
.fg__nav--prev { left: calc(50% - var(--fw) / 2 - 24px); }
.fg__nav--next { left: calc(50% + var(--fw) / 2 - 24px); }
@media (hover: hover) { .fg__nav:hover { background: var(--orange); color: var(--white); } }
.fg__nav[disabled] { opacity: 0; pointer-events: none; }
.fg.is-few .fg__view { -webkit-mask-image: none; mask-image: none; }
.fg.is-single .fg__nav, .fg.is-single .fg__meta .fg__count { display: none; }
/* лайтбокс: фото целиком в своих пропорциях */
.fg-lb { position: fixed; inset: 0; z-index: 300; background: rgba(12, 14, 20, .96); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.fg-lb.is-open { opacity: 1; pointer-events: auto; }
.fg-lb img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; transition: opacity .25s ease; }
.fg-lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: var(--white); font: 700 24px/1 var(--ff-body); cursor: pointer; }
@media (hover: hover) { .fg-lb__btn:hover { background: var(--orange); } }
.fg-lb__prev { left: 24px; top: 50%; margin-top: -26px; } .fg-lb__next { right: 24px; top: 50%; margin-top: -26px; } .fg-lb__close { right: 24px; top: 24px; }
.fg-lb__count { position: absolute; left: 24px; bottom: 22px; color: rgba(255, 255, 255, .75); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
  .fg { --fw: 400px; --fh: 534px; --tw: 80px; --th: 107px; }
  .fg[data-ratio="h"] { --fw: 560px; --fh: 420px; --tw: 107px; --th: 80px; }
  .obj-gal__pass { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px; }
}
@media (max-width: 599px) {
  .obj-gal { padding-bottom: 56px; }
  .obj-gal__grid { gap: 20px; }
  .fg { --fw: 76vw; --fh: calc(76vw * 4 / 3); --tw: 15vw; --th: 20vw; --gap: 8px; }
  .fg[data-ratio="h"] { --fw: 84vw; --fh: 63vw; --tw: 20vw; --th: 15vw; }
  .fg__view { -webkit-mask-image: none; mask-image: none; touch-action: pan-y; }
  .fg__nav { display: none; }
  .fg__meta { flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; }
  .obj-gal__cta .btn { width: 100%; }
  .obj-gal__pass { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; }
  .fg-lb img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
  .fg-lb__prev, .fg-lb__next { top: auto; bottom: 16px; margin: 0; } .fg-lb__prev { left: calc(50% - 64px); } .fg-lb__next { right: calc(50% - 64px); }
}
@media (prefers-reduced-motion: reduce) { .fg { --dur: .01s; } }

/* Мелкие общие помощники */
.stoves { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 599px) { .hide-mobile { display: none; } }

/* ===== Оглавление проекта (index.html), как на стенде СК Дом ===== */
.toc { padding: 72px 0 96px; }
.toc__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 48px; }
.toc__head .body-l { max-width: 640px; color: var(--ink-2); }
.toc__group { margin-top: 40px; }
.toc__group-title { margin-bottom: 16px; }
.toc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.toc__item { display: flex; align-items: center; gap: 16px; padding: 24px; border-radius: 20px; background: var(--warm); transition: background-color .2s, transform .2s; }
.toc__item:hover { background: var(--orange-soft); }
.toc__item--sub { margin-left: 32px; }
.toc__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--orange); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.toc__text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.toc__text .caption { color: var(--ink-2); }
.toc__arrow { color: var(--ink-2); font-size: 20px; }
.toc__note { margin-top: 48px; padding: 24px; border-radius: 20px; border: 1px dashed var(--line); color: var(--ink-2); }
@media (max-width: 1023px) { .toc__list { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .toc { padding: 48px 0 64px; } .toc__item { padding: 18px; } .toc__item--sub { margin-left: 16px; } }

/* ===== UI Kit ===== */
.kit { padding: 64px 0 96px; }
.kit > .container { display: flex; flex-direction: column; gap: 56px; }
.kit__block { display: flex; flex-direction: column; gap: 20px; }
.kit__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.kit__swatch { width: 160px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.kit__swatch span { display: block; height: 80px; }
.kit__swatch p { padding: 10px 12px; }
.kit__dark { padding: 24px; border-radius: 16px; background: var(--dark-2); }
.kit__specimen { display: flex; flex-direction: column; gap: 12px; }
.kit__specimen .caption { color: var(--ink-2); }

/* ===== Текстовые страницы (политика) ===== */
.doc { padding: 16px 0 96px; }
.doc .container { display: flex; flex-direction: column; gap: 20px; }
.doc h2 { margin-top: 16px; }
.doc ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }


/* Пометка для заказчика: факт, который нужно подставить (видна только на стенде) */
.todo { padding: 0 6px; border-radius: 6px; background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.page-head--doc { padding-bottom: 24px; }
.doc .container { gap: 16px; }
.doc .h3 { margin-top: 24px; }
.doc a { color: var(--orange-dark); text-decoration: underline; }
.kit__fields .field { width: 320px; max-width: 100%; }
.kit__faq { max-width: 800px; }
.kit__list { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc .container > * { max-width: 800px; }
.kit__faq { padding: 24px; border-radius: 20px; background: var(--warm); }

/* ---------- Страница 404: «404» из банных полков и купели (Figma 2571:1427) ---------- */
.err404 { background: var(--warm); padding: 88px 0 112px; text-align: center; }
.err404__in { display: flex; flex-direction: column; align-items: center; }
.err404__art { display: block; width: min(960px, 100%); height: auto; margin: -24px 0 32px; }   /* у фото свои поля */
.err404 .overline { margin-bottom: 16px; }
.err404 .h1 { max-width: 900px; margin: 0 0 20px; }
.err404__lead { max-width: 680px; margin: 0 0 40px; }
.err404__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
@media (max-width: 1023px) { .err404 { padding: 64px 0 88px; } .err404__art { margin: -16px 0 24px; } }
@media (max-width: 599px) {
  .err404 { padding: 48px 0 64px; }
  .err404__art { margin: -8px 0 16px; }
  .err404 .overline { margin-bottom: 12px; }
  .err404 .h1 { margin-bottom: 16px; }
  .err404__lead { margin-bottom: 28px; }
  .err404__btns { flex-direction: column; align-self: stretch; gap: 12px; }
  .err404__btns .btn { width: 100%; }
}

/* ===== Анимации (ревью 06.11): как на текущем сайте, но мягче =====
   Шапка и первый экран — при загрузке; заголовки первых трёх экранов — при прокрутке (класс .rv ставит main.js).
   Остальная страница статична. «Уменьшить движение» в системе выключает всё. */
@keyframes hdr-in { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

.hdr { animation: hdr-in .5s cubic-bezier(.2, .7, .2, 1) backwards; } /* backwards: после въезда transform не остаётся, иначе фиксированное меню привязывается к шапке */
.hero__text > *, .hero__triggers > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero__text > :nth-child(1) { animation-delay: .15s; }
.hero__text > :nth-child(2) { animation-delay: .25s; }
.hero__text > :nth-child(3) { animation-delay: .35s; }
.hero__text > :nth-child(4) { animation-delay: .45s; }
.hero__text > :nth-child(5) { animation-delay: .5s; }
.hero__triggers > :nth-child(1) { animation-delay: .55s; }
.hero__triggers > :nth-child(2) { animation-delay: .63s; }
.hero__triggers > :nth-child(3) { animation-delay: .71s; }
.hero__triggers > :nth-child(4) { animation-delay: .79s; }
.scroll-arrows { animation: bob 1.8s ease-in-out 1s infinite; }

.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rv-d, 0s); }
.rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}
