/* =========================================================
   VELA — натяжные потолки
   Mobile-first. Брейкпоинты: 640 / 900 / 1200 px
   ========================================================= */

:root {
  /* Тёплая пастельная палитра */
  --cream: #F7F2EA;          /* основной светлый фон */
  --latte: #EDE3D6;          /* второй фон: калькулятор, финальная форма */
  --cocoa: #3B3029;          /* тёмный текст, подвал */
  --taupe: #75685D;          /* текст абзацев */
  --caramel: #8C6448;        /* акцент: кнопки, выделения */
  --caramel-dark: #74513A;   /* акцент при наведении */
  --sand: #D9C3A5;           /* надзаголовки на тёмном (первый экран, подвал) */
  --on-accent: #FFFFFF;      /* текст на кнопках */

  /* Семантические переменные (используются в компонентах) */
  --night: var(--cocoa);     /* «тёмный» цвет */
  --sail: var(--cream);      /* «светлый» цвет */
  --accent: var(--caramel);  /* акцент */
  --grey: var(--taupe);

  --line-light: rgba(59, 48, 41, .14);
  --line-dark: rgba(247, 242, 234, .18);
  --muted-dark: rgba(247, 242, 234, .68);

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: 1s;

  --container: 1240px;
  --gutter: 16px;
  --section: 88px;
  --radius: 24px;
  --radius-lg: 32px;
  --header-h: 72px;

  /* ---- Единая типографика и отступы сайта ---- */
  --fs-h2: min(6.8vw, 40px);            /* заголовок секции (на десктопе — ниже) */
  --fs-eyebrow: 13px;  --ls-eyebrow: .25em;   /* надзаголовок секции */
  --fs-label: 12px;    --ls-label: .15em;     /* подпись поля */
  --fs-value: 16px;    --fw-value: 400;       /* значение / вариант: переключатели, кнопки выбора, поля ввода */
  --fs-hint: 14px;                            /* подсказка, текст согласия, мелкие пояснения */
  --c-label: var(--taupe);                    /* цвет подписей и подсказок — приглушённый тёмный */
  --gap-label: 14px;   /* подпись поля → элемент */
  --gap-hint: 10px;    /* элемент → подсказка */
  --gap-block: 48px;   /* между блоками калькулятора */
  --gap-head: 64px;    /* заголовок секции → содержимое */
}

/* Светлые секции с «инвертированными» переменными: тёмный текст на латте */
.section--dark, .final, .modal--zamer, .header.is-scrolled, .header.is-menu, .mobile-menu {
  --sail: var(--cocoa);
  --night: var(--cream);
  --sand: var(--caramel);
  --line-dark: rgba(59, 48, 41, .16);
  --muted-dark: var(--taupe);
}
@media (min-width: 640px)  { :root { --gutter: 32px; } }
@media (min-width: 900px) { :root { --fs-h2: clamp(30px, 3.3vw, 48px); } }
@media (min-width: 1200px) { :root { --gutter: 40px; --section: 160px; --header-h: 88px; } }

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--night);
  background: var(--sail);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* запасной вариант для старых браузеров */
  overflow-x: clip;     /* не создаёт область прокрутки: закреплённые элементы не ломаются */
}
@media (min-width: 1200px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.section--dark :focus-visible, .final :focus-visible, .hero :focus-visible, .header :focus-visible { outline-color: var(--sand); }
body.is-locked { overflow: hidden; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Типографика ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: var(--fs-eyebrow); font-weight: 500; line-height: 1.4;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.eyebrow::before { content: ''; width: 40px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--sand { color: var(--sand); }

.h2 {
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 28px;
  max-width: 16ch;
}
.h2 .accent, .accent { color: var(--accent); }
.section--dark .h2, .h2--light { color: var(--sail); }

.text { color: var(--grey); max-width: 560px; }
.text + .text { margin-top: 20px; }
.link { color: var(--accent); border-bottom: 1px solid currentColor; transition: opacity .4s var(--ease); }
.link:hover { opacity: .7; }

.section-head { margin-bottom: var(--gap-head); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 32px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .5s var(--ease), background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), opacity .5s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--caramel); color: var(--on-accent); }
.btn--primary:hover { background: var(--caramel-dark); }
.btn--ghost { border-color: var(--line-light); color: var(--night); }
.btn--ghost:hover { border-color: var(--night); }
.btn--ghost-light { border-color: rgba(247, 242, 234, .4); color: var(--sail); }
.btn--ghost-light:hover { border-color: var(--sail); background: rgba(247, 242, 234, .06); }
.btn--sm { height: 44px; padding: 0 24px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 639px) { .btn-row .btn { width: 100%; } }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--line { border: 1px solid var(--line-dark); }
.icon-btn--line:hover { border-color: var(--sail); }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--sail); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { display: flex; justify-content: space-between; font-weight: 300; font-size: 22px; letter-spacing: 0; }
.logo__sub { font-size: 8px; font-weight: 500; letter-spacing: .28em; margin-right: -.28em; text-transform: uppercase; margin-top: 6px; opacity: .9; white-space: nowrap; }

/* ---------- 1. Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--sail);
  transition: background-color .8s var(--ease), backdrop-filter .8s var(--ease), border-color .8s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-menu { color: var(--cocoa); }
.header.is-scrolled {
  background: rgba(247, 242, 234, .9);
  color: var(--cocoa);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line-dark);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: none; gap: 40px; font-size: 14px; letter-spacing: .02em; }
.nav a { position: relative; padding: 6px 0; opacity: .85; transition: opacity .4s var(--ease); }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 4px; }
.header__phone, .header__cta { display: none; }
.header__phone { font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
/* «Бесплатный замер» в шапке скрыт на первом экране и плавно появляется после него */
.header__cta {
  max-width: 0; padding-inline: 0; opacity: 0; visibility: hidden; overflow: hidden;
  transition: max-width .7s var(--ease), padding .7s var(--ease), opacity .5s var(--ease), visibility 0s linear .7s, background-color .5s var(--ease), transform .5s var(--ease);
}
.header.is-past-hero .header__cta {
  max-width: 240px; padding-inline: 24px; opacity: 1; visibility: visible;
  transition: max-width .7s var(--ease), padding .7s var(--ease), opacity .6s var(--ease) .1s, visibility 0s, background-color .5s var(--ease), transform .5s var(--ease);
}
/* кнопки, открывающие окно заявки: без внешнего кольца фокуса (браузер ставит его,
   возвращая фокус после закрытия окна); при наведении — только затемнение цвета */
.btn[data-open-zamer]:focus { outline: none; }
.btn[data-open-zamer]:focus-visible { box-shadow: inset 0 0 0 2px rgba(247, 242, 234, .65); }
.header__cta:hover { transform: none; }
.header.is-past-hero .header__messengers { margin-right: 24px; }

.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.burger span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .header__call, .burger { display: none; }
}
@media (min-width: 1200px) { .header__phone { display: inline-flex; align-items: center; gap: 8px; } }
.header__phone svg { width: 18px; height: 18px; flex: none; }
.header__messengers { display: none; align-items: center; gap: 8px; margin-left: 20px; transition: margin-right .6s var(--ease); }
.msgr { display: block; width: 28px; height: 28px; border-radius: 7px; transition: transform .4s var(--ease), opacity .4s var(--ease); }
.msgr svg { display: block; width: 100%; height: 100%; }
.msgr:hover { transform: translateY(-2px); }
@media (min-width: 1200px) { .header__messengers { display: flex; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--cream); color: var(--cocoa);
  padding: calc(var(--header-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity .6s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
/* закрытое меню не должно лежать прозрачным слоем поверх сайта и перехватывать клики */
.mobile-menu[hidden] { display: none; }
.mobile-menu:not(.is-open) { pointer-events: none; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a { font-size: 36px; font-weight: 200; line-height: 1.2; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu__phone { font-size: 22px; font-weight: 300; }
.mobile-menu__hours { color: var(--muted-dark); font-size: 14px; margin: 4px 0 24px; }

/* ---------- 2. Первый экран ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--sail); background: var(--night);
  overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 calc(84px + 68px + env(safe-area-inset-bottom));
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: breathe 20s ease-in-out infinite alternate; transform-origin: 46% 0%; object-position: 46% 0%; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  /* темним только левую и нижнюю часть под текстом; правый верх со светом остаётся ярким */
  background:
    radial-gradient(ellipse 38% 22% at 0% 0%, rgba(59,48,41,.55) 0%, rgba(59,48,41,0) 100%),
    radial-gradient(ellipse 70% 55% at 12% 92%, rgba(59,48,41,.7) 0%, rgba(59,48,41,.3) 55%, rgba(59,48,41,0) 100%),
    linear-gradient(180deg, rgba(59,48,41,.2) 0%, rgba(59,48,41,0) 14%, rgba(59,48,41,0) 42%, rgba(59,48,41,.45) 66%, rgba(59,48,41,.92) 100%),
    linear-gradient(90deg, rgba(59,48,41,.85) 0%, rgba(59,48,41,.74) 26%, rgba(59,48,41,.5) 42%, rgba(59,48,41,.2) 52%, rgba(59,48,41,.06) 58%, rgba(59,48,41,0) 64%);
}
@media (max-width: 899px) {
  /* на телефоне линии остаются ярко сверху, а зона текста ниже равномерно затемнена */
  .hero__bg::after {
    background:
      radial-gradient(ellipse 70% 18% at 0% 0%, rgba(59,48,41,.55) 0%, rgba(59,48,41,0) 100%),
      linear-gradient(180deg, rgba(59,48,41,.12) 0%, rgba(59,48,41,0) 12%, rgba(59,48,41,.45) 22%, rgba(59,48,41,.72) 32%, rgba(59,48,41,.82) 60%, rgba(59,48,41,.95) 100%);
  }
}
@media (min-width: 900px) { .hero__bg img { object-position: 18% 0%; transform-origin: 18% 0%; } }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.04); } }


.hero__title {
  font-weight: 200;
  font-size: clamp(38px, min(8.5vw, 13svh), 124px);  /* на невысоких экранах чуть меньше */
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__sub {
  display: block;
  margin-top: .45em;
  font-weight: 300;
  font-size: clamp(20px, min(2vw + 10px, 4.2svh), 38px);  /* ~38px на десктопе, ~20px на телефоне */
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  color: #C8B58C;
}
.hero__price { font-weight: 300; font-size: clamp(22px, 1.7vw, 24px); color: rgba(247, 242, 234, .85); line-height: 1.25; letter-spacing: -.005em; margin-bottom: 6px; }
.hero__price span { color: rgba(247, 242, 234, .72); }
.hero__meta { font-size: 14px; line-height: 1.5; color: rgba(247, 242, 234, .78); margin-bottom: 32px; }
@media (min-width: 640px) { .hero__meta { font-size: 15px; } }
@media (min-width: 900px) {
  .hero { padding-bottom: 104px; }   /* место под cookie-таблетку */
}

/* ---------- Секции ---------- */
.section { padding-block: var(--section); }
.section--light { background: var(--sail); }
.section--dark { background: var(--latte); color: var(--cocoa); }

.sail-curve { color: var(--line-light); background: var(--sail); line-height: 0; }
.sail-curve svg { width: 100%; height: 60px; }
@media (min-width: 900px) { .sail-curve svg { height: 110px; } }
.sail-curve + .section { padding-top: calc(var(--section) * .6); }
.section:has(+ .sail-curve) { padding-bottom: calc(var(--section) * .6); }

/* ---------- Фото ---------- */
.photo { width: 100%; border-radius: var(--radius); object-fit: cover; }
.photo--sail { border-radius: var(--radius) 120px var(--radius) var(--radius); aspect-ratio: 4 / 5; }
@media (min-width: 1200px) { .photo--sail { border-radius: var(--radius) 160px var(--radius) var(--radius); } }

/* ---------- 3. Почему VELA ---------- */
.why__grid { display: grid; gap: 56px; }
/* заголовок блока: «Продумано до мелочей.» всегда одной строкой */
.why .h2 { max-width: none; }
.why .h2 .accent { display: block; white-space: nowrap; }
.stats {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px;
  margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line-light);
}
.stats li { display: flex; flex-direction: column; }
.stats__num { font-weight: 200; font-size: 48px; line-height: 1; letter-spacing: -.02em; margin-bottom: 10px; }
.stats__label { font-size: 13px; color: var(--grey); line-height: 1.4; }
/* «∞»: высота как у цифр, стоит на той же базовой линии; блок не выше соседних */
.stats__num:has(.stats__inf) { height: 1em; }
/* «∞» нарисован линией той же толщины, что у цифр Montserrat ExtraLight (≈0.034em);
   высота = высоте цифр (0.7em), низ на базовой линии */
.stats__inf { display: block; width: 1.608em; height: .7em; margin-top: .159em; overflow: visible; }
.stats__inf path { fill: none; stroke: currentColor; stroke-width: 4.6; stroke-linejoin: round; }
/* «дня» — как единица измерения */
.stats__unit { font-size: .4em; letter-spacing: 0; margin-left: .25em; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; } }
/* подписи в одну строку там, где колонкам хватает места */
@media (min-width: 1200px) { .stats__label { white-space: nowrap; font-size: 12px; } }
@media (min-width: 1400px) { .stats__label { font-size: 13px; } }
@media (min-width: 900px) {
  .why__grid { grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
}
@media (min-width: 900px) { .stats__num { font-size: clamp(40px, 3.6vw, 56px); } }
@media (min-width: 1200px) { .why__grid { gap: 120px; } }

/* ---------- 4. Решения ---------- */
.cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 16px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .cards { grid-auto-columns: 46%; } }
@media (min-width: 900px) {
  .cards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; gap: 48px 32px; overflow: visible; margin: 0; padding: 0; }
}
.card { position: relative; scroll-snap-align: start; transition: transform .7s var(--ease); }
.card:hover, .card:focus-within { transform: translateY(-5px); }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
.card__body { display: flex; flex-direction: column; }
.card__title { font-weight: 400; font-size: 20px; line-height: 1.3; margin-bottom: 6px; }
.card__btn { text-align: left; }
.card__btn::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.card__btn:focus-visible { outline: none; }
.card__btn:focus-visible::after { outline: 1px solid var(--accent); outline-offset: 6px; }
.card__desc { font-size: 15px; color: var(--grey); line-height: 1.5; margin-bottom: 14px; }
.card__price { font-size: 15px; font-weight: 500; color: var(--accent); }

/* ---------- 6. Калькулятор ---------- */
.calc__grid {
  display: grid; grid-template-areas: "eyebrow" "title" "controls" "result"; row-gap: 0;
}
.calc__eyebrow { grid-area: eyebrow; }
.calc__eyebrow { margin-bottom: 12px; font-size: 12px; }
@media (min-width: 1200px) { .calc__eyebrow { font-size: 13px; } }
.calc__title { grid-area: title; margin-bottom: 24px; line-height: 1.05; }
.calc__controls { grid-area: controls; container-type: inline-size; }
.calc__result { grid-area: result; margin-top: 32px; }
/* заголовок калькулятора: на мобильном в две строки, на десктопе — в одну строку на всю ширину */
.calc .h2 { max-width: none; font-size: clamp(34px, 5.2vw, 64px); }   /* заголовок калькулятора — крупный, как было */
@media (min-width: 900px) {
  .calc { padding-top: 64px; }   /* фон секции начинается сразу под шапкой, дальше — обычный отступ */
  .calc__grid {
    grid-template-columns: 1.25fr 1fr; column-gap: 64px; align-items: start;
    grid-template-areas: "eyebrow eyebrow" "title title" "controls result"; grid-template-rows: auto auto 1fr;
  }
  .calc .h2 { white-space: nowrap; }   /* размер — как у остальных заголовков секций (.h2), помещается в одну строку */
  .calc__result { margin-top: 47px; }   /* карточка по центру напротив левой колонки (до «Уточнить расчёт») */
}
@media (min-width: 1200px) { .calc__grid { column-gap: 80px; } }

.field-group { margin-bottom: 40px; }
.field-group:last-child { margin-bottom: 0; }
.room > .field-group, .room > fieldset { margin-bottom: 16px; }   /* блоки калькулятора: заметно плотнее прежних 40px */
.room > .field-group > .field-group__label, .room > fieldset > legend { margin-bottom: 10px; }
.field-group legend, .field-group label[for], .field-group__label {
  display: block; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-dark); margin-bottom: 18px;
}
.field-group__head { display: flex; justify-content: space-between; align-items: baseline; }
.field-group__value { font-weight: 200; font-size: 40px; line-height: 1; }
/* поле площади: заметное поле ввода под подписью, «м²» внутри справа */
.area-field {
  display: flex; align-items: center; gap: 8px;
  width: 160px; height: 56px; padding: 0 22px; margin: 4px 0 24px;
  border: 1px solid var(--line-dark); border-radius: 999px;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.area-field:hover { border-color: var(--muted-dark); }
.area-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.area-field input {
  flex: 1; min-width: 0; height: 100%; padding: 0;
  font-family: inherit; font-size: 28px; font-weight: 300; line-height: 1; color: var(--cocoa); -webkit-text-fill-color: var(--cocoa); opacity: 1;
  background: transparent; border: 0; outline: none;
  -moz-appearance: textfield; appearance: textfield;
}
.area-field input::-webkit-outer-spin-button, .area-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.area-field__unit { font-size: 16px; color: var(--muted-dark); }

/* площадь: поле слева, ползунок справа в одной строке, подписи под концами ползунка */
.area-row { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: start; }
.area-row .area-field { margin: 0; }
.area-slider { margin-top: 14px; }   /* линия бегунка — по центру поля */
.area-slider .range { margin: 0; }
.area-slider .range__scale { margin-top: 2px; }
@media (max-width: 479px) { .area-row { column-gap: 18px; } }
.range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; background: transparent; margin: 8px 0 4px; cursor: pointer;
  --fill: 14%;
}
.range::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(90deg, var(--sail) var(--fill), var(--line-dark) var(--fill)); }
.range::-moz-range-track { height: 1px; background: var(--line-dark); }
.range::-moz-range-progress { height: 1px; background: var(--sail); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--accent); border: 0; transition: transform .4s var(--ease); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 0; }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-dark); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-dark); font-size: var(--fs-value); font-weight: var(--fw-value);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .chip:hover > span { border-color: var(--muted-dark); } }
.chip input:checked + span { background: var(--sail); color: var(--night); border-color: var(--sail); }
.chip input:focus-visible + span { outline: 1px solid var(--sand); outline-offset: 3px; }
/* опции: «+» у невыбранной, галочка у выбранной */
.chip--check .chip__ico { width: 16px; height: 16px; }
.chip--check .chip__ico--check { display: none; }
.chip--check input:checked + span .chip__ico--plus { display: none; }
.chip--check input:checked + span .chip__ico--check { display: block; }

.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: grid; place-items: center; transition: border-color .4s var(--ease), opacity .4s;
}
.stepper__btn svg { width: 18px; height: 18px; }
.stepper__btn:hover { border-color: var(--sail); }
.stepper__btn:disabled { opacity: .3; cursor: default; }
.stepper__value { min-width: 56px; text-align: center; font-weight: 200; font-size: 32px; line-height: 1; }

.calc__result {
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: 32px 24px;
  background: rgba(255, 255, 255, .5);
}
@media (min-width: 640px) { .calc__result { padding: 48px 40px; } }
/* карточка с ценой стоит на месте и не едет вниз за прокруткой; следует за страницей (sticky)
   только когда открыт блок «Уточнить расчёт» и левая колонка стала длинной */
@media (min-width: 900px) { .calc__grid.is-extras-open .calc__result { position: sticky; top: calc(var(--header-h) + 32px); } }
.calc__result-label { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); margin-bottom: 16px; }
.calc__total { font-weight: 200; font-size: clamp(44px, 6vw, 72px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 32px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__disclaimer { margin-bottom: 28px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 12px; line-height: 1.6; color: var(--muted-dark); }

/* ---- Калькулятор: комнаты и постепенное раскрытие ---- */
.rooms { display: grid; gap: 0; }

/* вид потолка: тонкая «таблетка» из трёх равных частей; выбранная заливается тёмным */
.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: 48px; padding: 3px;
  border: 1px solid var(--line-dark); border-radius: 999px;
}
.segmented__item { position: relative; cursor: pointer; }
.segmented__item input { position: absolute; opacity: 0; pointer-events: none; }
.segmented__item > span {
  display: grid; place-items: center; height: 100%; padding: 0 8px; border-radius: 999px;
  font-size: 14px; white-space: nowrap;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
/* серой подсветки нет: при наведении мышью слегка меняется цвет текста, после ухода курсора — обычный */
@media (hover: hover) and (pointer: fine) { .segmented__item:hover input:not(:checked) + span { color: var(--accent); } }
.segmented__item input:checked + span { background: var(--sail); color: var(--night); }
.segmented__item input:focus-visible + span { outline: 1px solid var(--sand); outline-offset: 2px; }
@media (max-width: 479px) { .segmented__item > span { padding: 0 4px; font-size: 13px; } }
/* вид потолка и класс рядом: две колонки одинаковой ширины */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.pair .field-group { margin-bottom: 0; }
.pair .segmented__item > span { font-size: 12.5px; padding: 0 4px; }
@container (max-width: 599px) { .pair { grid-template-columns: 1fr; gap: 18px; } .pair .kind-hint { min-height: 1.5em; } }
/* подсказки под своими переключателями; в две колонки резервируем две строки, чтобы при смене текста ничего не прыгало */
.pair { margin-bottom: 14px; }
.pair .kind-hint { min-height: 3em; text-wrap: balance; }

/* подсказка выбранного вида: одна строка, плавная смена текста */
.kind-hint { margin-top: 12px; min-height: 1.5em; font-size: 12px; text-align: left; line-height: 1.5; color: var(--muted-dark); transition: opacity .3s var(--ease); }
.kind-hint.is-changing { opacity: 0; }

/* значение счётчика можно вписать вручную */
input.stepper__value {
  width: 64px; padding: 0; border: 0; background: transparent; outline: none;
  font-family: inherit; color: var(--cocoa); -webkit-text-fill-color: var(--cocoa);
  -moz-appearance: textfield; appearance: textfield;
}
input.stepper__value::-webkit-outer-spin-button, input.stepper__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input.stepper__value:focus { box-shadow: inset 0 -1px 0 var(--accent); }

/* «Уточнить расчёт»: кнопка на всю ширину колонки, тонкая линия сверху, шеврон справа */
.room__toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  margin-top: 4px; padding: 12px 0; border-top: 1px solid var(--line-dark);
  font-size: 15px; letter-spacing: .02em; color: var(--sail); text-align: left;
  transition: color .4s var(--ease);
}
.room__toggle:hover { color: var(--accent); }
.room__chevron { width: 22px; height: 22px; transition: transform .6s var(--ease); }
.room.is-open .room__chevron { transform: rotate(180deg); }

/* плавное раскрытие блока уточнений */
.room__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.room.is-open .room__more { grid-template-rows: 1fr; }
.room__more-inner { overflow: hidden; min-height: 0; }
/* карточка — того же светлого цвета и скругления, что карточка с ценой */
.room__card {
  margin-top: 4px; padding: 32px 24px;
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .5);
}
@media (min-width: 640px) { .room__card { padding: 32px; } }
.calc__sub {
  font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--sand);
  margin: 32px 0 20px; padding-top: 24px; border-top: 1px solid var(--line-dark);
}
.room__card .calc__sub:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.room__card .calc__sub { margin: 28px 0 20px; padding-top: 24px; }
.room__card .field-group { margin: 0; }
.room__card .switches { margin-bottom: 0; }

/* компактные счётчики внутри карточки: кнопки 40px, число 24px, по три в ряд (на узком — по два) */
.room__steppers { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 16px; align-items: start; }
/* подписи — в одну строку, поэтому подписи и счётчики в каждом ряду стоят на одной высоте */
.room__steppers .field-group__label { margin-bottom: 14px; font-size: 11px; letter-spacing: .1em; line-height: 1.4; white-space: nowrap; }
@media (max-width: 479px) { .room__steppers .field-group__label { letter-spacing: .06em; } }   /* чтобы подпись целиком помещалась в колонку */
.room__card .stepper__btn { width: 40px; height: 40px; }
.room__card .stepper__btn svg { width: 16px; height: 16px; }
.room__card input.stepper__value { width: 44px; min-width: 0; font-size: 24px; }

/* переключатели «Условия на объекте» */
.switches { display: grid; }
.switch {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: var(--fs-value); font-weight: var(--fw-value); cursor: pointer;
}
.switch:last-child { border-bottom: 0; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px;
  border: 1px solid var(--line-dark); transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.switch__track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted-dark); transition: transform .4s var(--ease), background-color .4s var(--ease);
}
.switch:hover .switch__track { border-color: var(--muted-dark); }
.switch input:checked + .switch__track { background: var(--sail); border-color: var(--sail); }
.switch input:checked + .switch__track::after { transform: translateX(18px); background: var(--night); }
.switch input:focus-visible + .switch__track { outline: 1px solid var(--sand); outline-offset: 3px; }

/* что учтено — мелко под ценой */
.calc__summary { margin: -16px 0 28px; font-size: 13px; line-height: 1.6; color: var(--muted-dark); }
.calc__summary:empty { display: none; }

/* ---------- 7. Наши работы ---------- */
.works__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--gap-head); }
.works__head .h2 { margin-bottom: 0; }

/* ---------- 8. Как мы работаем ---------- */
.steps { position: relative; display: grid; gap: 40px; padding-left: 32px; margin-bottom: 96px; }
.steps::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line-light); }
.step { position: relative; }
.step::before { content: ''; position: absolute; left: -36px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--sail); border: 1px solid var(--accent); }
.step__num { display: block; font-weight: 200; font-size: 56px; line-height: 1; letter-spacing: -.02em; color: var(--accent); margin-bottom: 16px; }
.step__title { font-weight: 400; font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.step__text { font-size: 15px; line-height: 1.6; color: var(--grey); max-width: 280px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0 0; margin-bottom: 120px; }
  .steps::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .step::before { left: 0; top: -44px; }
  .step__num { font-size: 80px; margin-bottom: 24px; }
}

.reviews { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.review {
  border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
  transition: transform .7s var(--ease);
}
.review:hover { transform: translateY(-5px); }
.review__stars { color: var(--accent); letter-spacing: .2em; font-size: 14px; margin-bottom: 20px; }
.review__text { font-size: 16px; line-height: 1.7; color: var(--grey); margin-bottom: 24px; flex: 1; }
.review__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.review__meta span:last-child { color: var(--grey); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 12px 28px 12px 12px; border-radius: 999px; border: 1px solid var(--line-light);
  transition: border-color .4s var(--ease), transform .7s var(--ease);
}
.badge:hover { border-color: var(--night); transform: translateY(-3px); }
.badge__rating { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--night); color: var(--sail); font-weight: 300; font-size: 17px; }
.badge__text { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.badge__stars { color: var(--accent); font-size: 11px; letter-spacing: .2em; }

/* ---------- 9. Вопросы ---------- */
/* отзывы — отдельная полоса чуть темнее основного фона, на всю ширину экрана */
.reviews-section { background: #E9E0D4; }
.reviews-section .review { background: var(--cream); border-color: rgba(59, 48, 41, .08); }
/* одна колонка по центру, до ~900px; заголовок выровнен по левому краю списка */
.faq .h2 { max-width: none; margin-bottom: var(--gap-head); }
.faq__more { margin-top: 32px; font-size: 14px; color: var(--grey); opacity: .85; }
.faq__link { color: var(--accent); font: inherit; transition: color .4s var(--ease); }
.faq__link:hover { color: var(--caramel-dark); }
.accordion { border-top: 1px solid var(--line-light); }
.acc { border-bottom: 1px solid var(--line-light); }
.acc h3 { font-weight: 400; }
.acc__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; text-align: left; font-size: 17px; line-height: 1.45;
  transition: color .4s var(--ease);
}
@media (min-width: 1200px) { .acc__q { font-size: 19px; padding: 30px 0; } }
.acc__q:hover { color: var(--accent); }
.acc__q svg { width: 22px; height: 22px; color: var(--accent); transition: transform .7s var(--ease); }
.acc__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.acc__a > div { overflow: hidden; }
.acc__a p { color: var(--grey); padding: 0 48px 28px 0; max-width: 880px; font-size: 16px; }
.acc.is-open .acc__a { grid-template-rows: 1fr; }

/* ---------- 10. Финальная форма ---------- */
.final { position: relative; isolation: isolate; background: var(--latte); color: var(--cocoa); padding-block: var(--section); overflow: hidden; }
.final__bg { position: absolute; inset: 0; z-index: -1; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; }
.final__bg img { object-position: 50% 0%; }   /* в кадре — потолок с подсветкой */
/* ровное мягкое осветление слева направо без резкой границы: фон читается как одна картинка */
.final__bg::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(237,227,214,.9) 0%, rgba(237,227,214,.8) 25%, rgba(237,227,214,.62) 50%, rgba(237,227,214,.48) 75%, rgba(237,227,214,.4) 100%); }
@media (max-width: 899px) { .final__bg::after { background: linear-gradient(180deg, rgba(237,227,214,.6) 0%, rgba(237,227,214,.88) 35%, rgba(237,227,214,.95) 100%); } }
.final__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .final__grid { grid-template-columns: 1fr minmax(380px, 460px); gap: 80px; align-items: center; } }
.final__note { color: var(--muted-dark); }
.final .h2 { max-width: none; }

/* Поля форм */
.form { display: grid; gap: 20px; }
.form--dark {
  padding: 32px 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
@media (min-width: 640px) { .form--dark { padding: 44px 40px; } }
.input { display: block; position: relative; }
.input__label { display: block; font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.4; color: var(--c-label); margin-bottom: var(--gap-label); }
.input input {
  width: 100%; height: 52px; padding: 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-light);
  font-size: var(--fs-value); font-weight: var(--fw-value); border-radius: 0; outline: none;
  transition: border-color .5s var(--ease);
}
.input input::placeholder { color: var(--grey); opacity: .6; }
.input input:focus { border-bottom-color: var(--accent); }
.input.is-invalid input { border-bottom-color: var(--accent); border-bottom-width: 2px; }
.form--dark .input__label, .form--dark .contact-way legend { color: var(--muted-dark); }
.form--dark .input input { border-bottom-color: var(--line-dark); color: var(--sail); }
.form--dark .input input::placeholder { color: var(--muted-dark); }
.form--dark .input input:focus, .form--dark .input.is-invalid input { border-bottom-color: var(--sand); }
.contact-way legend { padding: 0; font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.4; color: var(--c-label); margin-bottom: var(--gap-label); }
.form .btn { margin-top: 8px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-hint); line-height: 1.5; color: var(--grey); cursor: pointer; }
.form--dark .consent { color: var(--muted-dark); }
.consent a { border-bottom: 1px solid currentColor; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent__box {
  flex: 0 0 20px; height: 20px; border-radius: 6px; border: 1px solid currentColor;
  display: grid; place-items: center; margin-top: 1px; transition: background-color .4s var(--ease), border-color .4s;
}
.consent__box svg { width: 14px; height: 14px; opacity: 0; color: var(--on-accent); transition: opacity .3s; }
.consent input:checked + .consent__box { background: var(--accent); border-color: var(--accent); }
.consent input:checked + .consent__box svg { opacity: 1; }
.consent input:focus-visible + .consent__box { outline: 1px solid var(--accent); outline-offset: 3px; }
.consent.is-invalid .consent__box { border-color: var(--accent); border-width: 2px; }
.form--dark .consent.is-invalid .consent__box { border-color: var(--sand); }
.form__status { font-size: 14px; min-height: 0; }
.form__status:empty { display: none; }
.form.is-sent > :not(.form__status) { display: none; }
.form.is-sent .form__status { font-size: 18px; font-weight: 300; line-height: 1.6; padding: 24px 0; }

/* Светлая форма на тёмных чипах не нужна: чипы в светлом окне */
.modal .chip > span { border-color: var(--line-light); }

/* ---------- Подвал ---------- */
.footer { background: var(--night); color: var(--sail); padding: 72px 0 calc(32px + 64px + env(safe-area-inset-bottom)); font-size: 15px; }
@media (min-width: 900px) { .footer { padding: 96px 0 40px; } }
.footer__grid { display: grid; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr .8fr; } }
.footer__slogan { margin-top: 24px; color: var(--muted-dark); font-weight: 300; font-size: 18px; max-width: 260px; line-height: 1.5; }
.footer__col { display: flex; flex-direction: column; gap: 6px; color: var(--muted-dark); }
.footer__col a { transition: color .4s var(--ease); }
.footer__col a:hover { color: var(--sail); }
.footer__label { font-size: 12px; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--sand); margin-bottom: 12px; }
.footer__phone { color: var(--sail); font-size: 20px; font-weight: 300; }
.footer__social { display: flex; gap: 8px; margin-top: 12px; }
.footer__bottom { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; font-size: 13px; color: var(--muted-dark); }
.footer__bottom a { border-bottom: 1px solid var(--line-dark); align-self: flex-start; }
@media (min-width: 900px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }

/* ---------- Модальные окна ---------- */
.modal {
  width: min(100% - 24px, 980px); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--sail); color: var(--night);
  overflow: auto; overscroll-behavior: contain;
}
.modal[open] { animation: modal-in .8s var(--ease); }
.modal::backdrop { background: rgba(59, 48, 41, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .8s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sail); border: 1px solid var(--line-light); transition: border-color .4s var(--ease);
}
.modal__close:hover { border-color: var(--night); }
.modal--form { width: min(100% - 24px, 520px); padding: 48px 24px 32px; }
@media (min-width: 640px) { .modal--form { padding: 56px 48px 44px; } }
.modal__title { font-weight: 300; font-size: 32px; line-height: 1.2; margin-bottom: 12px; }
.modal__summary { font-size: 14px; color: var(--grey); margin-bottom: 16px; line-height: 1.6; }
.modal__summary:empty { display: none; }

/* Окно «Бесплатный замер» — светлый латте-фон, поля формы лежат прямо на нём, без карточки.
   Компактная вёрстка: целиком помещается на экране ноутбука 1440×900 без прокрутки. */
.modal--zamer { background: var(--latte); color: var(--cocoa); padding: 32px 24px 24px; border: 1px solid var(--line-light); outline: none; }
/* без коричневого кольца фокуса вокруг окна и крестика при открытии мышью */
.modal--zamer:focus, .modal--zamer:focus-visible { outline: none; }
.modal--zamer .modal__close:focus:not(:focus-visible) { outline: none; }
@media (min-width: 640px) { .modal--zamer { padding: 36px 36px 28px; } }
.modal--zamer .eyebrow { margin-bottom: 14px; padding-right: 36px; }
.modal--zamer .modal__title { margin-bottom: 18px; padding-right: 36px; } /* не заходить под крестик */
/* ---- Общая форма заявки (.form--lead): окно «Бесплатный замер» и финальная секция ---- */
.form.form--lead { gap: 14px; }
.form--lead .input input { height: 36px; }
.form--lead .btn { margin-top: 0; }

/* .modal__close обычно светлый кружок с тёмной иконкой — внутри инвертированных переменных
   это дало бы тёмный кружок с тёмной же иконкой, поэтому задаём цвета явно.
   Сам кружок упрощён: тонкая одинарная обводка, без второго контура. */
.modal--zamer .modal__close {
  width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--line-light); color: var(--cocoa);
}
.modal--zamer .modal__close svg { width: 16px; height: 16px; }
.modal--zamer .modal__close:hover { border-color: var(--cocoa); }

/* Способ связи: четыре равные кнопки в один ряд, на мобильном — сетка 2×2 */
.form--lead .chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.form--lead .chip > span { width: 100%; height: 44px; padding: 0 4px; justify-content: center; }
@media (max-width: 479px) { .form--lead .chips { grid-template-columns: repeat(2, 1fr); } }

/* Подсказка под чекбоксом согласия — появляется вместе с .is-invalid */
.consent-group { display: grid; gap: var(--gap-hint); }
.form--lead .consent { font-size: var(--fs-hint); line-height: 1.45; color: rgba(117, 104, 93, .75); }
.form--lead .consent__box { color: var(--taupe); }
.consent__hint { display: none; font-size: var(--fs-hint); color: #B2503A; line-height: 1.4; }
.consent.is-invalid + .consent__hint { display: block; }
.form--lead .consent.is-invalid .consent__box { border-color: #B2503A; }

/* Экран «Спасибо»: текст по центру; кнопка «Закрыть» — только в окне */
.form--lead.is-sent { text-align: center; }
.form--lead.is-sent .form__status { padding: 8px 0 4px; }
.form__done { display: none; }
.modal--zamer .form.is-sent .form__done { display: inline-flex; }

/* Панель с формой в финальной секции — та же «карточка», что и окно заявки */
.lead-panel { background: var(--latte); color: var(--cocoa); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 28px 24px 24px; box-shadow: 0 24px 60px -24px rgba(59, 48, 41, .35); }
@media (min-width: 640px) { .lead-panel { padding: 32px 36px 28px; } }

.solution { display: grid; }
@media (min-width: 900px) { .solution { grid-template-columns: 1.3fr 1fr; } }
.solution__gallery { padding: 12px; }
.solution__main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: opacity .5s var(--ease); }
.solution__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.solution__thumbs button { border-radius: 14px; overflow: hidden; opacity: .55; transition: opacity .4s var(--ease); }
.solution__thumbs button[aria-current="true"], .solution__thumbs button:hover { opacity: 1; }
.solution__thumbs img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.solution__info { padding: 24px 24px 32px; display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 900px) { .solution__info { padding: 64px 48px 48px 24px; justify-content: center; } }
.solution__title { font-weight: 300; font-size: 30px; line-height: 1.2; margin-bottom: 16px; }
.solution__text { color: var(--grey); font-size: 16px; margin-bottom: 20px; }
.solution__price { color: var(--accent); font-weight: 500; margin-bottom: 28px; }

/* ---------- Мессенджер (десктоп) ---------- */
.messenger { position: fixed; right: 32px; bottom: 32px; z-index: 40; display: none; flex-direction: column; align-items: flex-end; gap: 12px; transition: bottom .6s var(--ease); }
@media (min-width: 900px) { .messenger { display: flex; } }
.messenger__toggle {
  width: 60px; height: 60px; border-radius: 50%; background: var(--caramel); color: var(--on-accent);
  display: grid; place-items: center; transition: transform .6s var(--ease);
}
.messenger__toggle:hover { transform: translateY(-4px); }
/* один круг без внешнего кольца фокуса; для клавиатуры — тонкое кольцо внутри круга */
.messenger__toggle:focus { outline: none; }
.messenger__toggle:focus-visible { box-shadow: inset 0 0 0 2px rgba(247, 242, 234, .7); }
.messenger__toggle svg { grid-area: 1 / 1; transition: opacity .4s, transform .6s var(--ease); }
.messenger__icon-close { opacity: 0; transform: rotate(-45deg); }
.messenger.is-open .messenger__icon-open { opacity: 0; transform: rotate(45deg); }
.messenger.is-open .messenger__icon-close { opacity: 1; transform: none; }
/* кнопки одинаковой ширины (по самой длинной), стопка прижата к правому краю */
.messenger__list { display: grid; gap: 8px; pointer-events: none; }
.messenger__item {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px 0 18px;
  border-radius: 999px; background: var(--night); color: var(--sail); font-size: 14px;
  border: 1px solid var(--line-dark);
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.messenger__item svg { width: 20px; height: 20px; }
.messenger.is-open .messenger__list { pointer-events: auto; }
.messenger.is-open .messenger__item { opacity: 1; transform: none; }
.messenger.is-open .messenger__item:first-child { transition-delay: .08s; }
/* на мобильном список открывается кнопкой «Написать» в нижней панели */
@media (max-width: 899px) {
  .messenger.is-open { display: flex; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .messenger.is-open .messenger__toggle { display: none; }
}

/* ---------- Нижняя панель (мобильный) ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(59, 48, 41, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line-dark);
  color: var(--sail);
}
.mobile-bar > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 52px; border-radius: 999px; font-size: 12px; letter-spacing: .02em; }
.mobile-bar svg { width: 20px; height: 20px; }
.mobile-bar__main { background: var(--caramel); color: var(--on-accent); }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ---------- Cookie: тёмная полупрозрачная «таблетка» внизу по центру ---------- */
.cookie {
  position: fixed; z-index: 39; left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom));        /* над нижней панелью на мобильном */
  max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 14px;
  padding: 9px 10px 9px 18px;
  border-radius: 999px;
  background: rgba(59, 48, 41, .85);                       /* какао 85% */
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(247, 242, 234, .18);
  color: rgba(247, 242, 234, .85);
  font-size: 13px; line-height: 1.3; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.cookie.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cookie[hidden] { display: none; }
.cookie p { overflow: hidden; text-overflow: ellipsis; }
.cookie a { color: var(--cream); border-bottom: 1px solid rgba(247, 242, 234, .45); transition: border-color .4s; }
.cookie a:hover { border-color: var(--cream); }
.cookie__btn {
  flex-shrink: 0; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--sand);
  transition: color .4s, background-color .4s;
}
.cookie__btn:hover { color: var(--cream); background: rgba(247, 242, 234, .08); }
@media (min-width: 900px) { .cookie { bottom: 24px; } }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(3n+2), .steps .reveal:nth-child(2), .reviews .reveal:nth-child(2) { transition-delay: .12s; }
.cards .reveal:nth-child(3n), .steps .reveal:nth-child(3), .reviews .reveal:nth-child(3) { transition-delay: .24s; }
.steps .reveal:nth-child(4) { transition-delay: .36s; }

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

/* ---------- Страница политики ---------- */
.page { padding: calc(var(--header-h) + 64px) 0 96px; }
.page h1 { font-weight: 300; font-size: clamp(32px, 5vw, 56px); line-height: 1.15; margin-bottom: 40px; }
.page h2 { font-weight: 400; font-size: 20px; margin: 40px 0 12px; }
.page p { color: var(--grey); max-width: 720px; }
.nowrap { white-space: nowrap; }

/* =========================================================================
   Калькулятор («Узнайте стоимость за 30 секунд»): крупнее шрифты и больше воздуха.
   Только этот слайд — все правила начинаются с .calc.
   ========================================================================= */
.calc .calc__eyebrow { font-size: 14px; }
.calc .calc__title { margin-bottom: 40px; }

/* подписи полей и расстояния между блоками */
.calc .field-group legend, .calc .field-group__label { font-size: 14px; letter-spacing: .18em; margin-bottom: 14px; }
.calc .room > .field-group > .field-group__label, .calc .room > fieldset > legend { margin-bottom: 14px; }
.calc .field-group legend { padding: 0; }   /* legend без собственных отступов — строго по левому краю блока */
.calc .room > .field-group, .calc .room > fieldset { margin-bottom: 32px; }

/* площадь */
.calc .area-field { position: relative; width: 170px; }
/* число по центру ячейки; «м²» закреплено справа и число не сдвигает */
.calc .area-field input { font-size: 32px; text-align: center; padding: 0; }
.calc .area-field__unit { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 18px; }
.calc .range__scale, .calc .area-slider .range__scale { font-size: 14px; }
.calc .area-slider .range__scale { margin-top: 6px; }

/* переключатели: вид потолка, класс, полотно */
/* после клика кольца вокруг выбранного варианта нет; при управлении с клавиатуры (html.is-kbd) — тонкая обводка */
.calc .segmented__item input:focus + span,
.calc .segmented__item input:focus-visible + span { outline: none; }
html.is-kbd .calc .segmented__item input:focus-visible + span { outline: 1px solid var(--sand); outline-offset: 2px; }
.calc .segmented { display: flex; height: 52px; }   /* варианты по ширине текста: крупный шрифт не обрезается */
.calc .segmented__item { flex: 1 1 auto; }
.calc .segmented__item > span, .calc .pair .segmented__item > span { font-size: 15px; padding: 0 16px; }
/* вид потолка шире класса (~55% / 45%); блоки стоят по краям колонки, лишнее место — между ними.
   Если в колонке не хватает места под отступы 16px, блоки встают друг под другом */
.calc .pair { grid-template-columns: 55fr 45fr; column-gap: 24px; align-items: start; margin-bottom: 40px; }
.calc .pair .segmented { height: 56px; }
.calc .pair .segmented__item > span { padding: 0 14px; font-size: 15px; }
@container (max-width: 639px) { .calc .pair { grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; } .calc .pair .kind-hint { min-height: 0; } }
.calc .kind-hint { font-size: 14px; margin-top: 10px; text-align: left; }
.calc .pair .kind-hint { min-height: 3em; }   /* две строки подсказки: следующий блок начинается на одной высоте */

/* светлая нижняя «прослойка» блока перед калькулятором короче: полоса другого цвета между шапкой и секцией не висит */
.section:has(+ .calc) { padding-bottom: 48px; }

/* карточка с ценой по центру напротив левой колонки */
@media (min-width: 900px) { .calc .calc__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .calc .calc__result { margin-top: 20px; } }
.calc .calc__total { font-size: clamp(40px, 3.9vw, 56px); }   /* карточка стала уже — крупная сумма чуть меньше, чтобы 6-значные числа помещались */

/* «Уточнить расчёт» и раскрывающаяся карточка */
.calc .room__toggle { font-size: 18px; padding: 18px 0; margin-top: 8px; }
.calc .room__chevron { width: 26px; height: 26px; }
.calc .room__card { margin-top: 16px; }
@media (min-width: 640px) { .calc .room__card { padding: 40px; } }
.calc .room__card .calc__sub { font-size: 13px; margin: 36px 0 20px; padding-top: 32px; }
.calc .room__card .calc__sub:first-child { margin-top: 0; padding-top: 0; }
.calc .room__steppers { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 20px; }
.calc .room__steppers .field-group__label { font-size: 13px; letter-spacing: .1em; margin-bottom: 14px; }
.calc .room__card .stepper__btn { width: 44px; height: 44px; }
.calc .room__card input.stepper__value { font-size: 28px; width: 48px; }
.calc .switch { font-size: 18px; padding: 18px 0; }

/* карточка с ценой */
.calc .calc__result-label { font-size: 14px; margin-bottom: 20px; }
.calc .calc__summary { font-size: 15px; line-height: 1.6; margin: -12px 0 32px; }
.calc .calc__disclaimer { font-size: 13px; padding-top: 28px; margin-bottom: 32px; }
.calc .calc__result .btn { font-size: 17px; height: 60px; }

/* телефоны */
@media (max-width: 479px) {
  .calc .segmented__item > span, .calc .pair .segmented__item > span { padding: 0 16px; }
  .calc [data-canvas-options] { display: grid; grid-auto-flow: row; grid-template-columns: 1fr 1fr; height: auto; border-radius: 28px; }
  .calc [data-canvas-options] .segmented__item { flex: none; }
  .calc [data-canvas-options] .segmented__item > span { height: 48px; }
  .calc .room__steppers .field-group__label { display: flex; align-items: flex-end; min-height: 2.8em; white-space: normal; }
  .calc .switch { font-size: 16px; }   /* чтобы «Высота потолка больше 3 м» не переносилась */
}
@media (max-width: 374px) { .calc .pair .segmented__item > span { font-size: 13px; } }

/* Счётчики (Светильники, Световые линии, Треки, Доп. углы, Обходы труб, Карниз): подпись по центру относительно поля ввода числа */
.calc .room__card .field-group:has(.stepper) { display: flex; flex-direction: column; align-items: center; width: max-content; max-width: 100%; }
.calc .room__card .field-group:has(.stepper) .field-group__label { text-align: center; justify-content: center; margin-right: -.1em; }

/* ===== Калькулятор: раскладка «подпись слева, выбор справа» ===== */
.calc .pair { display: block; margin: 0; }
.calc .pair .field-group, .calc .room > .field-group { margin-bottom: 32px; }
.calc .pair .segmented, .calc .room > .field-group .segmented { height: 56px; }
.calc .pair .segmented__item > span, .calc [data-canvas-options] .segmented__item > span { padding: 0 14px; font-size: 15px; }
.calc .pair .kind-hint, .calc .room > .field-group .kind-hint { min-height: 1.5em; margin-top: 10px; }
@container (min-width: 640px) {
  .calc .pair > .field-group, .calc .room > .field-group {
    display: grid; grid-template-columns: 170px minmax(0, 1fr); column-gap: 24px; align-items: start;
  }
  .calc .pair > .field-group > .field-group__label, .calc .room > .field-group > .field-group__label {
    grid-column: 1; grid-row: 1; height: 56px; margin: 0; display: flex; align-items: center; font-size: 12px; letter-spacing: .2em;
  }
  .calc .pair > .field-group > :not(.field-group__label), .calc .room > .field-group > :not(.field-group__label) { grid-column: 2; }
  .calc .field-group > .segmented, .calc .field-group > .stepper, .calc .field-group > .area-row { grid-row: 1; }
  .calc .field-group > .kind-hint { grid-row: 2; }
  .calc .field-group > .stepper { justify-self: start; height: 56px; }
  .calc .area-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .calc .area-field { width: 140px; height: 56px; }
  .calc .area-slider { margin-top: 0; }
  .calc .area-slider .range { height: 56px; }
  .calc .area-slider .range__scale { margin-top: -6px; }
}
.calc .area-field input { text-align: center; padding: 0; }
.calc .area-field__unit { right: 20px; }

/* переключатели: все варианты внутри одного переключателя — равной ширины */
.calc .segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.calc .segmented__item { min-width: 0; }
.calc .segmented__item > span { display: flex; align-items: center; justify-content: center; white-space: nowrap; }
@media (max-width: 479px) {
  .calc [data-canvas-options] { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .calc .pair .segmented__item > span { padding: 0 4px; font-size: 13px; }
}

/* меньше воздуха между калькулятором и «Нашими работами» */
.calc { padding-bottom: 56px; }
.calc + .works { padding-top: 56px; }
@media (min-width: 900px) { .calc { padding-bottom: 72px; } .calc + .works { padding-top: 72px; } }

/* меньше воздуха между «Нашими работами», «Как мы работаем» и «Отзывами» */
.works { padding-bottom: 56px; }
.process { padding-block: 56px; }
.process + .reviews-section { padding-top: 56px; }
@media (min-width: 900px) { .works { padding-bottom: 72px; } .process { padding-block: 72px; } .process + .reviews-section { padding-top: 72px; } }
.process .steps { margin-bottom: 0; }

/* подвал компактнее по высоте */
.footer { padding-top: 40px; }
.footer__grid { gap: 28px; padding-bottom: 28px; }
.footer__slogan { margin-top: 14px; }
.footer__label { margin-bottom: 8px; }
.footer__social { margin-top: 8px; }
.footer__bottom { padding-top: 20px; gap: 8px; }
@media (min-width: 900px) { .footer { padding: 48px 0 24px; } }

/* ===== Единый вертикальный ритм: одинаковое расстояние между всеми слайдами ===== */
:root { --slide-gap: 56px; }
@media (min-width: 900px) { :root { --slide-gap: 72px; } }
.section, .calc, .works, .process, .faq, .reviews-section, .final,
.calc + .works, .process + .reviews-section, .section:has(+ .calc), .sail-curve + .section, .section:has(+ .sail-curve) {
  padding-top: var(--slide-gap) !important; padding-bottom: var(--slide-gap) !important;
}
/* волна между «Почему VELA» и «Решениями» занимает ровно то же расстояние, что два отступа */
.sail-curve svg { height: calc(var(--slide-gap) * 2) !important; }
.section:has(+ .sail-curve) { padding-bottom: 0 !important; }
.sail-curve + .section { padding-top: 0 !important; }

/* «Как мы работаем» — тёмная секция, чтобы не сливаться с «Нашими работами» */
.process { background: var(--night); color: var(--sail); }
.process .h2 { color: var(--sail); }
.process .h2 .accent { color: var(--sand); }
.process .eyebrow { color: var(--sand); }
.process .steps::before { background: var(--line-dark); }
.process .step::before { background: var(--night); border-color: var(--sand); }
.process .step__num { color: var(--sand); }
.process .step__title { color: var(--sail); }
.process .step__text { color: var(--muted-dark); }

/* ===== Окно заявки из калькулятора ===== */
.recap { margin: 0 0 18px; padding: 12px 16px; background: var(--night); border: 1px solid var(--line-dark); border-radius: 16px; }
.recap[hidden], .recap__price[hidden] { display: none; }
.recap__text { font-size: 13px; line-height: 1.5; color: var(--muted-dark); }
.recap__price { margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--cocoa); }
.modal--zamer:has(.form.is-sent) .recap { display: none; }   /* после отправки плашка не нужна */
/* способ связи: текст 15px, высота кнопок 48px */
.form--request .chip > span { height: 48px; font-size: 15px; }
/* телефон введён не полностью: мягкий красный и подсказка под полем */
.input__error { display: none; margin-top: 6px; font-size: 13px; line-height: 1.3; color: #B2503A; }
.form--request .input.is-invalid input { border-bottom-color: #C9705C; border-bottom-width: 1px; background: rgba(201, 112, 92, .07); }
.form--request .input.is-invalid .input__error { display: block; }

/* «Что говорят наши клиенты» — в одну строку на десктопе */
@media (min-width: 900px) { .reviews-section .h2 { white-space: nowrap; max-width: none; } }

.review__project { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--night); margin-bottom: 12px; }

.page p + p { margin-top: 12px; }
.page .page__date { font-size: 14px; margin-top: -20px; margin-bottom: 8px; }

/* ===== Решения: фото на всю левую половину секции, справа контент ===== */
.solutions { position: relative; background: var(--night); color: var(--sail); }
.solutions .eyebrow { color: var(--sand); }
.solutions .h2 { color: var(--sail); }
.solutions .h2 .accent { color: var(--accent); }

.svc__media { position: relative; width: 100%; height: 60svh; overflow: hidden; background: rgba(247, 242, 234, .08); }
.svc__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.svc__photo.is-active { opacity: 1; }

.svc__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(247, 242, 234, .15); }
.svc__item { border-bottom: 1px solid rgba(247, 242, 234, .15); }
.svc__btn { display: flex; align-items: baseline; gap: 20px; width: 100%; padding: 22px 0; text-align: left; color: rgba(247, 242, 234, .45); transition: color .4s var(--ease); }
.svc__num { flex: none; width: 28px; font-size: 14px; font-weight: 200; letter-spacing: .08em; color: rgba(247, 242, 234, .4); }
.svc__name { font-size: 22px; font-weight: 300; line-height: 1.3; color: inherit; }
.svc__item.is-active .svc__btn { color: #fff; }
.svc__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.svc__item.is-active .svc__more { grid-template-rows: 1fr; }
.svc__desc { overflow: hidden; min-height: 0; padding-left: 48px; font-size: 15px; line-height: 1.5; color: rgba(247, 242, 234, .68); opacity: 0; transition: opacity .4s var(--ease); }
.svc__item.is-active .svc__desc { opacity: 1; padding-bottom: 22px; transition-delay: .1s; }
.svc__cta { display: inline-block; margin-top: 32px; font-size: 16px; color: var(--sand); transition: color .4s var(--ease); }
.svc__cta:hover { color: var(--sail); }

/* телефон: фото сверху на всю ширину экрана, под ним заголовок и список */
.section.solutions { padding-top: 0 !important; padding-bottom: var(--slide-gap) !important; }
.svc__content { padding-top: 40px; }

@media (min-width: 900px) {
  /* вертикальные отступы правой колонки — 120px; фото идёт на всю высоту секции без отступов */
  .section.solutions { padding-top: 120px !important; padding-bottom: 120px !important; }
  .svc__media { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; height: auto; }
  .svc__content { padding-top: 0; margin-left: calc(50vw + 80px - max(var(--gutter), (100vw - var(--container)) / 2)); }
}
@media (prefers-reduced-motion: reduce) { .svc__photo, .svc__more, .svc__desc { transition: none; } }

/* ===== Фото «Что мы делаем»: ТОЧКИ ФОКУСА (object-position) — правьте кадрирование здесь =====
   Формат: «по горизонтали  по вертикали». 0% — верх/левый край, 50% — центр, 100% — низ/правый край.
   По умолчанию — центр сверху, чтобы в кадре был потолок. Чтобы сдвинуть кадр вниз у конкретного фото,
   увеличьте второе число (например, 50% 30%). */
.svc__photo { object-position: center top; }
.svc__photo--classic  { object-position: 50% 0%; }
.svc__photo--fabric   { object-position: 50% 0%; }
.svc__photo--shadow   { object-position: 50% 0%; }
.svc__photo--floating { object-position: 50% 0%; }
.svc__photo--lines    { object-position: 50% 0%; }
.svc__photo--curtains { object-position: 50% 0%; }

/* ===== Наши работы: редакционная раскладка — одна большая карточка слева, две справа ===== */
.works {
  /* ЕДИНАЯ ЦВЕТОКОРРЕКЦИЯ всех фото секции — подправляйте здесь */
  --work-filter: saturate(0.75) contrast(1.05) brightness(1.02) sepia(0.12);
  --work-hover-scale: 1.03;
}
.works-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.work-card { display: flex; flex-direction: column; }
.work-card__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; background: var(--line-light); }
.work-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: var(--work-filter); transform: scale(1);
  transition: filter .6s var(--ease), transform .6s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .work-card:hover .work-photo { filter: none; transform: scale(var(--work-hover-scale)); }
}
.work-card__body { padding-top: 18px; }
.work-card__title { font-size: 16px; font-weight: 400; line-height: 1.45; color: var(--night); }
.work-card__quote { margin-top: 6px; font-size: 15px; line-height: 1.5; font-style: italic; color: var(--grey); opacity: .85; }
.works__cta { display: inline-block; margin-top: 40px; font-size: 16px; color: var(--accent); transition: color .4s var(--ease); }
.works__cta:hover { color: var(--caramel-dark); }
@media (min-width: 900px) {
  .works-grid { grid-template-columns: 3fr 2fr; gap: 32px 24px; }
  .work-card--big { grid-row: 1 / span 2; }
  /* большая карточка тянется на высоту двух правых вместе */
  .work-card--big .work-card__media { flex: 1; aspect-ratio: auto; min-height: 0; }
}

/* ===== Наши работы: ТОЧКИ ФОКУСА фото (object-position) — правьте кадрирование здесь =====
   Формат: «по горизонтали  по вертикали»; 0% — верх/левый край, 100% — низ/правый край.
   По умолчанию «center top»: в кадре в первую очередь потолок. */
.work-photo--1 { object-position: 50% 0%; }
.work-photo--2 { object-position: 50% 0%; }
.work-photo--3 { object-position: 50% 0%; }

/* ===== «Отзывы» и «Частые вопросы»: разные фоны, дуга между ними, одинаковые отступы ===== */
.section.reviews-section, .section.faq { padding-top: 80px !important; padding-bottom: 80px !important; }
@media (min-width: 900px) { .section.reviews-section, .section.faq { padding-top: 140px !important; padding-bottom: 140px !important; } }
.reviews-section { position: relative; }
.section-arc { position: absolute; left: 0; bottom: 0; width: 100%; height: 60px; display: block; pointer-events: none; }
@media (min-width: 900px) { .section-arc { height: 110px; } }
.section-arc__fill { fill: var(--sail); }   /* цвет «Частых вопросов» */
.section-arc__line { stroke: rgba(59, 48, 41, .15); stroke-width: 1px; }
.faq .eyebrow { margin-bottom: 20px; }

/* «Перед заказом / Частые вопросы» — контент чуть выше */
.section.faq { padding-top: 56px !important; }
@media (min-width: 900px) { .section.faq { padding-top: 96px !important; } }

/* «Отзывы» — контент тоже чуть выше */
.section.reviews-section { padding-top: 56px !important; }
@media (min-width: 900px) { .section.reviews-section { padding-top: 96px !important; } }

/* «Перед заказом / Частые вопросы» — ещё чуть выше */
.section.faq { padding-top: 32px !important; }
@media (min-width: 900px) { .section.faq { padding-top: 56px !important; } }

/* «Что мы делаем» — ниже по высоте */
.svc__btn { padding: 18px 0; }
.svc__item.is-active .svc__desc { padding-bottom: 18px; }
@media (min-width: 900px) { .section.solutions { padding-top: 80px !important; padding-bottom: 80px !important; } }

/* «Что мы делаем» — чуть просторнее, чем после сокращения */
.svc__btn { padding: 20px 0; }
.svc__item.is-active .svc__desc { padding-bottom: 20px; }
@media (min-width: 900px) { .section.solutions { padding-top: 100px !important; padding-bottom: 100px !important; } }

/* «Наши работы» — ниже по высоте */
.work-card__media { aspect-ratio: 16 / 9; }
.work-card__body { padding-top: 14px; }
.works__head { margin-bottom: 40px; }
.works__cta { margin-top: 28px; }
@media (min-width: 900px) { .works-grid { gap: 24px; } }

/* Формы заявки (окно и финальная секция одинаковы): способ связи — 15px, боковые отступы не меньше 14px;
   текст согласия — 13px, приглушённый */
.form--lead .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form--lead .chip { flex: 1 1 auto; }
.form--lead .chip > span { width: 100%; padding: 0 14px; font-size: 15px; white-space: nowrap; }
.form--lead .consent { font-size: 13px; line-height: 1.45; color: rgba(117, 104, 93, .75); }
@media (min-width: 900px) { .final__grid { grid-template-columns: 1fr minmax(380px, 500px); } }

/* ---- Поле-ловушка от спама: человеку не видно ---- */
.hp { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }   /* ловушка не уходит за край экрана */

/* ===== Наши работы: вертикальные кадры показываем целиком, без узких «полосок» ===== */
.works-grid { grid-template-columns: 1fr; gap: 28px; }
.work-card__media, .work-card--big .work-card__media { aspect-ratio: 4 / 5; flex: none; }
@media (min-width: 600px) { .works-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }
@media (min-width: 1100px) { .works-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 20px; } }
.work-photo--1, .work-photo--2, .work-photo--3, .work-photo--4 { object-position: 50% 30%; }

/* «Наши работы»: кадр сдвинут вверх, чтобы акцент был на потолке (квадратные карточки, фокус — верх фото) */
.work-card__media, .work-card--big .work-card__media { aspect-ratio: 1 / 1; }
.work-photo--1, .work-photo--2, .work-photo--3, .work-photo--4 { object-position: 50% 0%; transform-origin: 50% 0%; }

/* «Наши работы»: кнопка «Обсудить ваш проект» в стиле основной кнопки */
.works__cta.btn { color: var(--on-accent); margin-top: 28px; }
.works__cta.btn:hover { color: var(--on-accent); }

/* Лайтбокс (фото портфолио крупно) */
.work-card__media[data-lightbox] { cursor: zoom-in; }
.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 24px; border: 0; background: rgba(40, 32, 27, .92); color: #fff; overflow: hidden; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; cursor: zoom-out; }
.lightbox__img { display: block; max-width: 100%; max-height: calc(100dvh - 110px); width: auto; height: auto; border-radius: 12px; object-fit: contain; }
.lightbox__cap { font-size: 14px; line-height: 1.4; text-align: center; color: rgba(255, 255, 255, .85); max-width: 640px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox__close:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close svg { width: 18px; height: 18px; }

/* «Наши работы»: подпись в две строки + плашка класса на фото */
.work-card__title { color: var(--night); }
.work-card__sub { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--grey); }

/* ===== Калькулятор, телефон (до 768px): всё с ценой помещается на один экран ===== */
@media (max-width: 768px) {
  .calc.section { padding-top: 44px; }
  .calc .calc__eyebrow { font-size: 12px; margin-bottom: 6px; }
  .calc .calc__title { font-size: 23px; line-height: 1.1; margin-bottom: 20px; }

  /* подписи полей и расстояния между блоками */
  .calc .field-group__label, .calc .field-group legend { font-size: 11px; letter-spacing: .14em; margin-bottom: 8px; }
  .calc .room > .field-group > .field-group__label, .calc .room > fieldset > legend { margin-bottom: 8px; }
  .calc .pair .field-group, .calc .room > .field-group, .calc .room > fieldset { margin-bottom: 16px; }

  /* площадь: поле и слайдер в одну строку */
  .calc .area-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .calc .area-field { width: 90px; height: 44px; }
  .calc .area-field input { font-size: 20px; height: 100%; padding: 0 20px 0 0; }
  .calc .area-field__unit { right: 10px; font-size: 12px; }
  .calc .area-slider { margin-top: 0; }
  .calc .area-slider .range { height: 28px; margin-top: 8px; }
  .calc .range__scale, .calc .area-slider .range__scale { font-size: 11px; margin-top: 0; }

  /* переключатели «Вид потолка», «Класс», «Полотно» */
  .calc .segmented, .calc .pair .segmented, .calc .room > .field-group .segmented { height: 44px; }
  .calc .segmented__item > span, .calc .pair .segmented__item > span, .calc [data-canvas-options] .segmented__item > span { font-size: 13px; padding: 0 8px; }
  .calc [data-canvas-options] { height: auto; border-radius: 22px; }
  .calc [data-canvas-options] .segmented__item > span { height: 38px; }

  /* пояснения под переключателями — мелко, в одну строку */
  .calc .kind-hint, .calc .pair .kind-hint, .calc .room > .field-group .kind-hint { font-size: 12px; line-height: 1.3; min-height: 0; margin-top: 6px; }
  .calc [data-kind-hint], .calc [data-class-hint] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* «Уточнить расчёт» — компактнее */
  .calc .room__toggle { font-size: 15px; padding: 8px 0; margin-top: 0; }
  .calc .room__chevron { width: 20px; height: 20px; }

  /* цена и кнопка сразу под переключателями */
  .calc .calc__result { margin-top: 8px; padding: 16px 18px; }
  .calc .calc__result-label { font-size: 11px; margin-bottom: 6px; }
  .calc .calc__total { font-size: 34px; margin-bottom: 6px; }
  .calc .calc__summary { font-size: 12px; line-height: 1.4; margin: 0 0 10px; }
  .calc .calc__disclaimer { font-size: 11px; line-height: 1.4; padding-top: 10px; margin-bottom: 12px; }
  .calc .calc__result .btn { font-size: 16px; height: 48px; }
}

/* ===== Телефон (до 768px): компактные секции ===== */
@media (max-width: 768px) {
  :root {
    --fs-h2: min(4.9vw, 28px);   /* заголовки секций ~ в 1.4 раза меньше */
    --slide-gap: 28px;           /* вертикальные отступы секций — вдвое меньше */
    --section: 44px;
    --gap-head: 28px;            /* заголовок → содержимое */
  }
  .h2 { margin-bottom: 16px; }
  .section.reviews-section { padding-top: 28px !important; padding-bottom: 48px !important; }
  .section.faq { padding-top: 28px !important; padding-bottom: 28px !important; }
  .section.solutions { padding-top: 0 !important; padding-bottom: 28px !important; }   /* картинка сверху — вплотную к краю секции, как было */
  .section-arc { height: 40px; }
  .reviews { margin-bottom: 24px; }
  .works__cta, .works__cta.btn { margin-top: 24px; }
  .footer { padding-top: 32px; }

  /* «Как мы работаем»: номер и название в одной строке, описание под названием */
  .steps { gap: 24px; margin-bottom: 0; }
  .steps::before { top: 13px; bottom: 13px; }
  .step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
  .step::before { top: 8px; }   /* кружок — по центру строки с номером */
  .step__num { font-size: 18px; font-weight: 300; letter-spacing: 0; margin-bottom: 0; }
  .step__title { font-size: 18px; line-height: 1.3; margin-bottom: 0; }
  .step__text { grid-column: 2; margin-top: 4px; max-width: none; font-size: 14px; line-height: 1.5; }
}

/* ===== Калькулятор, телефон: «Полотно» сеткой 2×2 без наложений на пояснение ===== */
@media (max-width: 768px) {
  .calc .room > .field-group .segmented[data-canvas-options] {
    display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto;
    height: auto; border-radius: 22px;
  }
  .calc [data-canvas-options] .segmented__item > span { height: 38px; }
  .calc .pair .segmented__item > span { padding: 0 4px; }
}
@media (max-width: 374px) {
  .calc .pair .segmented__item > span, .calc [data-canvas-options] .segmented__item > span { font-size: 11.5px; padding: 0 2px; }
}

/* ===== Подвал: подписи под значками мессенджеров (на телефоне видны, на десктопе скрыты) ===== */
.social-item { display: contents; }
.social-item__label { display: none; }
.footer__addr-mobile { display: none; }

/* ===== Подвал, телефон (до 768px) ===== */
@media (max-width: 768px) {
  .footer__brand { display: none; }
  .footer { padding: 22px 0 calc(22px + 64px + env(safe-area-inset-bottom)); }
  .footer__grid { gap: 19px; padding-bottom: 19px; grid-template-columns: 1fr; }
  .footer__label { margin-bottom: 5px; }
  .footer__bottom { padding-top: 14px; gap: 6px; }

  /* навигация в 2 колонки */
  .footer__col--nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .footer__col--nav .footer__label { grid-column: 1 / -1; margin-bottom: 0; }

  /* адрес и режим — одной строкой */
  .footer__addr-desktop { display: none; }
  .footer__addr-mobile { display: block; font-size: 13px; white-space: nowrap; }

  /* значки мессенджеров с подписью под каждым */
  .footer__social { gap: 18px; margin-top: 8px; }
  .social-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
  .social-item__label { display: block; font-size: 11px; line-height: 1; color: var(--muted-dark); }

  /* ИНН и ОГРНИП — не ссылки: без подчёркивания и без автоссылок iOS */
  .footer__bottom .nowrap { text-decoration: none; border: 0; color: inherit; }
}

/* ===== Мобильная шапка (до 768px): без иконки телефона ===== */
@media (max-width: 768px) { .header__call { display: none; } }

/* ===== Шторка «Написать» (нижняя панель, до 899px) ===== */
.sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--cocoa); overflow: visible; }
.sheet:not([open]) { display: none; }
.sheet::backdrop { background: rgba(59, 48, 41, .55); opacity: 0; transition: opacity .35s var(--ease); }
.sheet.is-visible::backdrop { opacity: 1; }
.sheet__panel {
  position: relative; background: var(--cream); border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .38s var(--ease); touch-action: none;
}
.sheet.is-visible .sheet__panel { transform: none; }
.sheet__panel.is-dragging { transition: none; }
.sheet__grab { width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: rgba(59, 48, 41, .22); }
.sheet__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-light); border-radius: 50%; color: var(--cocoa); background: transparent; }
.sheet__close svg { width: 16px; height: 16px; }
.sheet__title { font-size: 18px; font-weight: 400; margin: 0 40px 14px 4px; }
.sheet__links { display: grid; gap: 10px; }
.sheet__link { display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 10px 16px; border: 1px solid var(--line-light); border-radius: 18px; background: #fff; color: var(--cocoa); }
.sheet__link:active { background: var(--latte); }
.sheet__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; }
.sheet__icon svg { display: block; width: 100%; height: 100%; }
.sheet__text { display: grid; gap: 2px; }
.sheet__name { font-size: 18px; font-weight: 500; line-height: 1.2; }
.sheet__sub { font-size: 13px; color: var(--taupe); }
@media (min-width: 900px) { .sheet { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .sheet__panel, .sheet::backdrop { transition: none; } }

/* ===== «Что мы делаем», телефон: заголовок → картинка (с отступами и скруглением) → список ===== */
@media (max-width: 899px) {
  .section.solutions { padding-top: 28px !important; }
  .svc__content { padding-top: 0; }
  .svc__media { height: 336px; margin: 0 0 20px; border-radius: var(--radius); }
  .svc__photo { object-position: 50% 0%; }
}

/* ===== Окна заявки (замер, из калькулятора), телефон (до 768px): крупный заголовок строго в 2 строки ===== */
@media (max-width: 768px) {
  .modal--zamer .modal__title { font-size: clamp(17px, calc((100vw - 74px) / 12.8), 28px); padding-right: 0; }   /* под крестиком заголовка нет: он ниже подписи */
}

/* «Что мы делаем», телефон: картинка стоит внутри пункта, над его заголовком — небольшой отступ от предыдущего пункта */
@media (max-width: 768px) { .svc__item > .svc__media { margin-top: 12px; } }

/* «Тканевые потолки»: cover без масштабирования, линия стыка потолка и стены — по центру кадра */
.svc__photo--fabric { object-fit: cover; object-position: 50% 45%; transform: none; }

/* Финальная секция «Заявка на замер», телефон: крупный заголовок строго в 2 строки (общий размер h2 на телефоне мельче) */
@media (max-width: 768px) { .final .h2 { font-size: clamp(20px, calc((100vw - 32px) / 12.4), 40px); } }

/* ===== «Уточнить расчёт»: на десктопе разметка работает как раньше (подпись и «+» скрыты) ===== */
.room__toggle-text { display: contents; }
.room__toggle-sub, .room__plus { display: none; }

/* ===== Калькулятор, телефон (до 768px): плашка «Уточнить расчёт» и тёмная карточка с ценой ===== */
@media (max-width: 768px) {
  .calc .room__toggle {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px;
    margin-top: 4px; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 999px;
    font-size: 16px; text-align: left;
  }
  .calc .room__toggle:hover { color: var(--sail); }
  .calc .room__plus { display: block; flex: none; width: 20px; height: 20px; color: var(--accent); transition: transform .4s var(--ease); }
  .calc .room.is-open .room__plus { transform: rotate(45deg); }
  .calc .room__toggle-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
  .calc .room__toggle-title { font-weight: 500; line-height: 1.2; }
  .calc .room__toggle-sub { display: block; font-size: 12px; line-height: 1.3; color: var(--muted-dark); }
  .calc .room__chevron { flex: none; margin-left: auto; width: 22px; height: 22px; color: var(--accent); }

  /* «Стоимость под ключ»: тёмный фон как у блока «Решения», светлый текст */
  .calc .calc__result { margin-top: 32px; background: #3B3029; border-color: #3B3029; color: #F7F2EA; }
  .calc .calc__result-label { color: #D9C3A5; }
  .calc .calc__total { font-size: clamp(32px, 10.4vw, 46px); }
  .calc .calc__summary { color: rgba(247, 242, 234, .7); }
  .calc .calc__disclaimer { color: rgba(247, 242, 234, .6); border-top-color: rgba(247, 242, 234, .18); }
}

/* ===== Калькулятор: подсказка под площадью (все экраны) ===== */
.area-hint { margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted-dark); }
.txt-mob { display: none; }
/* ===== privacy.html: «×» в шапке (как крестик окна заявки) ===== */
.page-close {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-light); color: var(--cocoa);
  transition: border-color .4s var(--ease);
}
.page-close svg { width: 18px; height: 18px; }
.page-close:hover { border-color: var(--cocoa); }

/* ===== «Уточнить расчёт», телефон (до 768px): пункты со счётчиками — одна строка: название слева, «− 0 +» справа ===== */
@media (max-width: 768px) {
  .calc .room__steppers { display: block; }
  .calc .room__card .field-group:has(.stepper) {
    display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; max-width: none; padding: 6px 0; border-bottom: 1px solid var(--line-dark);
  }
  .calc .room__steppers .field-group:has(.stepper):last-child { border-bottom: 0; }
  .calc .room__card .field-group:has(.stepper) .field-group__label {
    display: block; min-height: 0; margin: 0; flex: 1; min-width: 0; text-align: left; justify-content: flex-start;
    font-size: 14px; letter-spacing: .08em; line-height: 1.3; white-space: normal;
  }
  .calc .room__card .stepper { flex: none; width: 124px; gap: 4px; justify-content: space-between; }
  .calc .room__card .stepper__btn { width: 36px; height: 36px; flex: none; }
  .calc .room__card .stepper__btn svg { width: 16px; height: 16px; }
  .calc .room__card input.stepper__value { width: 44px; min-width: 0; font-size: 20px; flex: none; }
  .calc .room__card .calc__sub { margin: 20px 0 8px; padding-top: 16px; }
  .calc .room__card .calc__sub:first-child { margin-top: 0; padding-top: 0; }
}
