/* =========================================================
   Кухни на заказ — стили сайта
   Структура: токены → база → общие компоненты → блоки по порядку
   ========================================================= */

/* ---------- 1. Токены ---------- */
:root {
  --ink: #1F1F1F;          /* шапка, тёмные поверхности */
  --text: #161616;         /* основной текст */
  --muted: #5E5E5E;        /* второстепенный текст, 6.5:1 на белом */
  --line: #E3DFD9;         /* рамки и разделители */
  --bg: #FFFFFF;
  --surface: #F6F6F6;      /* нейтральный серый под чипы и подложки */
  --accent: #E46B1F;       /* спокойный оранжевый для кнопок и акцентов */
  --accent-hover: #C95A16;
  --accent-soft: #FCEBDD;
  --tg: #1A86C7;
  --tg-hover: #1677B8;
  --ok: #1E9E5A;
  --error: #C62828;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-s: 10px;
  --radius: 14px;
  --radius-l: 24px;
  --shadow-card: 0 1px 2px rgba(22, 22, 22, .04), 0 12px 32px rgba(22, 22, 22, .08);
  --shadow-float: 0 18px 40px rgba(22, 22, 22, .18);

  --container: 1360px;
  --gutter: clamp(16px, 3vw, 32px);
  --header-h: 84px;

  --z-header: 30;
  --z-menu: 40;
  --z-skip: 50;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* clip, а не hidden: hidden на body ломает «липкую» шапку в мобильных браузерах */
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ico--fill { fill: currentColor; stroke: none; }

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

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: var(--z-skip); transform: translateY(-200%);
  padding: 12px 18px; border-radius: var(--radius-s);
  background: var(--text); color: #fff; text-decoration: none; font-weight: 600;
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- 3. Общие компоненты ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px;
  border: 0; border-radius: var(--radius-s);
  font-size: 1.1875rem; /* 19px полужирный: крупный текст по WCAG, контраст 3:1 */
  font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--block { width: 100%; }

.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(228, 107, 31, .2); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--accent:disabled { cursor: progress; opacity: .8; }

.btn--tg { background: var(--tg); color: #fff; }
.btn--tg:hover { background: var(--tg-hover); }
.btn--tg:hover .ico { transform: none; }

.btn--ghost {
  min-height: 46px; padding: 0 18px; font-size: .9375rem; font-weight: 600;
  background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
  font-size: .9375rem; font-weight: 500; color: var(--text);
}
.tag .ico { width: 18px; height: 18px; color: var(--accent); }
.tag--soft { border-color: transparent; background: var(--surface); }

/* ---------- 4. Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .25s var(--ease);
}
.header__bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); transition: min-height .25s var(--ease); }
/* при прокрутке шапка ниже и с тенью, кнопка расчёта остаётся на виду */
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(22, 22, 22, .08); }
.header.is-scrolled .header__bar { min-height: 68px; }
.header.is-scrolled .logo__img { height: 38px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; color: var(--text); }
.logo__img { display: block; width: auto; height: 46px; transition: height .25s var(--ease); }

/* меню каталога — просто текст со значком */
.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  min-height: 44px; padding: 0; margin-left: 12px;
  border: 0; background: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--text);
  transition: color .2s;
}
.menu-toggle__icon { width: 22px; height: 22px; stroke-width: 2; }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { color: var(--accent-hover); }

/* ссылка «Акции» в шапке и меню: оранжевый кружок с числом акций */
.count-badge {
  display: inline-grid; place-items: center; flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1;
}
.header__promos { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 1rem; font-weight: 600; color: var(--text); text-decoration: none; transition: color .2s; }
.header__promos:hover { color: var(--accent-hover); }
.site-menu__link--promos { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-hover); }

/* срок и рейтинг через тонкие разделители, без плашек */
.header__promos, .header__badge, .rating { position: relative; flex: none; padding-left: 20px; white-space: nowrap; }
.header__promos::before, .header__badge::before, .rating::before { content: ""; position: absolute; left: 0; top: 50%; height: 20px; width: 1px; translate: 0 -50%; background: var(--line); }
.header__badge { display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; font-weight: 500; color: var(--text); }
.header__badge .ico { width: 16px; height: 16px; fill: var(--accent); stroke: none; }
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--muted); text-decoration: none; }
.rating__ya { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #FC3F1D; color: #fff; font-size: .6875rem; font-weight: 700; }
.rating b { color: var(--text); font-weight: 700; }
.rating:hover b { color: var(--accent-hover); }

.header__right { display: flex; align-items: center; margin-left: auto; }

/* мессенджеры — фирменные квадратики */
.header__right { gap: 8px; }
.hmsg {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: #fff;
  transition: filter .2s, transform .2s var(--ease);
}
.hmsg .ico { fill: currentColor; stroke: none; }
.hmsg--tg { background: var(--tg); }
.hmsg--tg .ico { width: 30px; height: 30px; }
.hmsg--max { background: linear-gradient(135deg, #3E8BFF, #6A4DFF); }
.hmsg--max .ico { width: 20px; height: 20px; }
.hmsg:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* полоска «срок и рейтинг» под шапкой: видна только на телефоне */
.header__strip { display: none; }
.header__strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.header__strip-item { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.header__strip-item .ico { width: 15px; height: 15px; fill: var(--accent); stroke: none; }
.header__strip-item .rating__ya { width: 18px; height: 18px; font-size: .625rem; }
.header__strip-item b { font-weight: 700; }

/* кнопка звонка: квадратик с трубкой, рядом с мессенджерами */
.hbtn {
  position: relative; display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--accent-hover);
}
.hbtn .ico { width: 22px; height: 22px; }
.hbtn--phone { width: 40px; height: 40px; transition: border-color .2s, transform .2s var(--ease); }
.hbtn--phone:hover { border-color: var(--accent); transform: translateY(-1px); }

/* плашка «мы онлайн» у кнопки звонка: появляется при наведении */
.hcall {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 5; display: grid; gap: 4px; width: 250px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 16px 36px rgba(22, 22, 22, .14);
  text-align: left; color: var(--text); white-space: normal;
  opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity .2s, translate .2s var(--ease), visibility .2s;
}
.hcall::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; } /* мостик, чтобы плашка не пропадала */
.hcall__status { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--ok); }
.hcall__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(30, 158, 90, .18); }
.hcall__num { font-size: 1.0625rem; font-weight: 700; }
.hcall__note { font-size: .8125rem; line-height: 1.4; color: var(--muted); }
@media (hover: hover) {
  .hbtn--phone:hover .hcall, .hbtn--phone:focus-visible .hcall { opacity: 1; visibility: visible; translate: 0 0; }
}
.hbtn--phone:hover .hcall__num { color: var(--accent-hover); }

.header__cta { gap: 10px; min-height: 50px; margin-left: 12px; padding: 0 22px 0 24px; font-size: .875rem; }
.header__cta .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.header__cta:hover .ico { transform: translateX(3px); }

/* Выпадающее меню */
.site-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(22, 22, 22, .12);
  animation: menu-in .22s var(--ease) both;
}
.site-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.site-menu__grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 32px; padding-block: 28px 36px; }
.site-menu__col { display: grid; align-content: start; gap: 2px; }
.site-menu__title { margin-bottom: 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.site-menu__link {
  justify-self: start; padding: 8px 0; font-size: 1.0625rem; font-weight: 500; text-decoration: none;
  transition: color .2s;
}
.site-menu__link:hover { color: var(--accent-hover); }
.site-menu__phone { justify-self: start; font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.site-menu__phone:hover { color: var(--accent-hover); }
.site-menu__hours { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--muted); }
.site-menu__contacts .socials { margin: 16px 0 18px; }
.site-menu__cta { justify-self: start; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 3px rgba(43, 182, 115, .18); }

.socials { display: flex; gap: 8px; }
.social {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: #fff;
  transition: filter .2s, transform .2s var(--ease);
}
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social:hover { filter: brightness(1.1); transform: translateY(-2px); }
.social--max { background: linear-gradient(135deg, #3D5BFF, #8A3DFF); }
.social--max svg { width: 20px; height: 20px; }
.social--tg { background: var(--tg); }
.social--vk svg, .social--tg svg { width: 28px; height: 28px; }

/* ---------- 5. Блок 1: главный экран ---------- */
.hero {
  --hero-bg: #1E1813; /* тёмный тёплый, совпадает с затемнением */
  color: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  padding: clamp(36px, 3.5vw, 56px) 0;
  background: var(--hero-bg);
}

/* Фото на весь блок: кухня справа.
   Слева тёмное тёплое затемнение под белый текст, справа фото без изменений. */
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg picture { display: contents; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 55%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(24, 18, 12, .86) 0%,
      rgba(24, 18, 12, .78) 30%,
      rgba(24, 18, 12, .5) 48%,
      rgba(24, 18, 12, .12) 64%,
      rgba(24, 18, 12, 0) 76%),
    linear-gradient(0deg, rgba(24, 18, 12, .25), rgba(24, 18, 12, 0) 35%);
}

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 680px) 352px;
  justify-content: space-between; align-items: center; gap: 40px;
}
.hero__content { display: flex; flex-direction: column; max-width: 680px; }

/* Текст и плашки на тёмном фоне */
.hero .hero__title { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero .hero__price { color: #FF8F45; }
.hero .hero__lead { color: rgba(255, 255, 255, .88); }
.hero .tag { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .tag .ico { color: #FF8F45; }
.hero .perk {
  background: rgba(24, 18, 12, .45); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero .perk .ico { color: #FF8F45; }

/* Кнопка расчёта в главном экране */
.hero__cta { display: grid; justify-items: start; gap: 14px; margin-top: 6px; }
.hero__btn { min-height: 64px; padding: 0 36px; font-size: 1.25rem; box-shadow: 0 14px 34px rgba(228, 107, 31, .35); }
.hero__cta-note { max-width: 40em; font-size: .9375rem; color: rgba(255, 255, 255, .8); }
.hero .proof { color: rgba(255, 255, 255, .8); }
.hero .proof b { color: #fff; }
.hero .proof__sep { background: rgba(255, 255, 255, .3); }

.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 1.2rem + 2.4vw, 3.5rem);
  font-weight: 600; line-height: 1.06; letter-spacing: -.03em;
}
.hero__price { color: var(--accent); white-space: nowrap; }

.hero__lead { max-width: 36em; margin-bottom: 18px; font-size: 1.0625rem; color: #3A3A3A; text-wrap: pretty; }

.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.perk {
  display: flex; align-items: center; gap: 10px;
  min-height: 42px; padding: 6px 14px; border-radius: var(--radius);
  background: var(--surface); font-size: .9688rem; font-weight: 500; line-height: 1.3;
}
.perk .ico { color: var(--accent); width: 22px; height: 22px; }

/* Форма */
.lead-form {
  position: relative;
  padding: clamp(18px, 2vw, 26px);
  border-radius: var(--radius-l);
  background: #fff; box-shadow: var(--shadow-card); border: 1px solid #EFEBE6;
}
.lead-form__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.lead-form__title { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
/* акции, которые закрепляются за номером: заголовок, таймер и каждая акция отдельной плашкой */
.lead-form__gift { display: grid; gap: 8px; }
.lead-form__gift-title { margin: 0; font-size: .9375rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.lead-form__gift-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; } /* по одной акции в строку на всю ширину */
.lead-form__gift-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 8px;
  background: var(--surface); font-size: .875rem; font-weight: 500; line-height: 1.25; color: var(--text);
}
.lead-form__gift-list .ico { flex: none; box-sizing: content-box; width: 16px; height: 16px; padding: 6px; border-radius: 6px; background: #fff; color: var(--accent); }


.lead-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.field { display: grid; gap: 6px; align-content: start; }
.field__label { font-size: .875rem; font-weight: 600; color: #3A3A3A; }
.field__req { color: var(--accent); }
.field__input {
  width: 100%; height: 54px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field__input::placeholder { color: #8F8F8F; }
.field__input:hover { border-color: #C9C2B9; }
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(228, 107, 31, .15); }
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: .8125rem; color: var(--error); }
.field__error:empty { display: none; }

.lead-form__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.lead-form__actions .btn { padding-inline: 20px; white-space: nowrap; }
.btn--tg .ico { width: 26px; height: 26px; }
.lead-form__note { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.lead-form__legal { display: block; margin-top: 2px; font-size: .8125rem; }
.lead-form__legal a { color: var(--muted); text-underline-offset: 2px; }
.lead-form__legal a:hover { color: var(--text); }

.lead-form__success { display: grid; justify-items: start; gap: 8px; padding: 12px 4px; }
.lead-form__success[hidden] { display: none; }
.lead-form__success:focus { outline: none; }
.lead-form__success-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #E3F5EA; color: var(--ok); }
.lead-form__success-ico .ico { width: 28px; height: 28px; stroke-width: 2.4; }
.lead-form__success-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.lead-form__success p:last-child { color: var(--muted); max-width: 30em; }

.btn.is-loading .btn__label::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .ico { display: none; }

/* Соцдоказательство под формой */
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; padding-left: 4px; font-size: .9375rem; color: var(--muted); }
.proof b { color: var(--text); font-weight: 700; }
.proof__rating { display: inline-flex; align-items: center; gap: 10px; }
.proof__stars { display: inline-flex; gap: 2px; }
.proof__stars svg { width: 17px; height: 17px; fill: #FFB400; }
.proof__sep { width: 1px; height: 18px; background: var(--line); }

/* Карточка акции: белая, без лишних элементов */
.offer {
  justify-self: end; width: 340px; padding: 24px; border-radius: 12px;
  background: #fff; color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.offer { overflow: hidden; }
.offer__photo {
  position: relative; margin: -16px -16px 18px; aspect-ratio: 16 / 10;
}
.offer__photo picture { display: block; height: 100%; overflow: hidden; border-radius: 10px; background: #E9E2D9; }
.offer__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.offer:hover .offer__photo img { transform: scale(1.04); }
.offer__badge {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 11px; border-radius: 6px;
  background: var(--accent); color: #fff; border: 1.5px solid rgba(255, 255, 255, .85);
  font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.offer__meta { font-size: .875rem; color: var(--muted); }
.offer__dot { margin: 0 6px; }
.offer__left { color: var(--accent-hover); font-weight: 600; }
.offer__title { margin: 14px 0 6px; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.offer__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.offer__now { font-size: 2.375rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.offer__old { font-size: 1.0625rem; color: #8A8A8A; text-decoration-thickness: 1.5px; }
.offer__gift { margin: 14px 0 20px; padding-top: 14px; border-top: 1px solid #EEEAE5; font-size: .9375rem; color: #3A3A3A; }
.offer__btn { width: 100%; min-height: 50px; font-size: 1.0625rem; background: var(--ink); color: #fff; }
.offer__btn:hover { background: #000; }


/* ---------- Окно заявки ---------- */
html:has(.lead-modal[open]) { overflow: hidden; }
.lead-modal {
  width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0; border-radius: var(--radius-l);
  background: transparent; color: var(--text); overflow-y: auto; overscroll-behavior: contain; /* на низких экранах окно прокручивается */
}
.lead-modal::backdrop { background: rgba(24, 18, 12, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lead-modal[open] { animation: pop .3s var(--ease) both; }
.lead-modal__box { position: relative; }
.lead-modal .lead-form { padding: 32px 28px 26px; border: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.lead-modal .lead-form__head { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 12px; margin-bottom: 18px; padding-right: 36px; }
.lead-modal .lead-form__title { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.lead-modal .lead-form__fields { grid-template-columns: minmax(0, 1fr); }
/* блок акций на всю ширину окна: заголовок окна оставляет справа место под крестик, акциям оно не нужно */
.lead-modal .lead-form__gift { justify-self: stretch; margin-right: -36px; }
.lead-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer;
  transition: background-color .2s;
}
.lead-modal__close:hover { background: #E7E2DB; }
.lead-modal__close .ico { width: 20px; height: 20px; }

/* ---------- Блок 2: преимущества ---------- */
.features { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.features__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  padding: 28px 30px 30px; border-radius: 10px; background: var(--surface);
  transition: background-color .2s;
}
.feature:hover { background: var(--surface); }
.feature__title { margin: 0 0 10px; font-size: 1.3125rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.feature__text { max-width: 30em; font-size: .9375rem; line-height: 1.5; color: #6B6B6B; }

@media (max-width: 1023px) {
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .features { padding: 32px 0 48px; }
  .features__grid { gap: 10px; }
  .feature { padding: 18px 16px 20px; border-radius: 8px; }
  .feature__title { margin-bottom: 6px; font-size: 1.0625rem; }
  .feature__text { font-size: .8125rem; }
}

/* ---------- Блок 3: популярные модели ---------- */
.section-title { margin: 0; font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }

.models { padding: 0 0 clamp(56px, 7vw, 96px); }
.models__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.models__nav { display: flex; gap: 8px; }
.models__btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, opacity .2s;
}
.models__btn:hover:not(:disabled) { border-color: var(--text); background: var(--text); color: #fff; }
.models__btn:disabled { opacity: .35; cursor: default; }
.models__btn .ico { width: 20px; height: 20px; }

/* Лента: листается колесом, пальцем и стрелками, карточки встают по краю */
.models__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none;
  padding-bottom: 4px;
}
.models__track::-webkit-scrollbar { display: none; }
.models__track:focus-visible { outline-offset: 6px; }

.model {
  display: flex; flex-direction: column; scroll-snap-align: start;
  border-radius: 8px; overflow: hidden; background: var(--surface);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.model:hover { box-shadow: 0 18px 40px rgba(40, 28, 16, .1); transform: translateY(-3px); }
.model__photo { position: relative; aspect-ratio: 2 / 1; background: #E9E2D9; overflow: hidden; }
.model__photo picture { display: block; height: 100%; }
.model__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.model:hover .model__photo img { transform: scale(1.05); }
/* всё фото — ссылка на страницу кухни; кнопка увеличения лежит поверх */
.model__cover, .kcard__cover { position: absolute; inset: 0; z-index: 1; }
.model__zoom, .kcard__zoom { z-index: 2; }
.model__zoom {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--text); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12); transition: background-color .2s, transform .2s var(--ease);
}
.model__zoom:hover { background: #fff; transform: scale(1.06); }
.model__zoom .ico { width: 18px; height: 18px; }

.model__body {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; flex: 1;
  padding: 22px 20px 18px; text-decoration: none; color: var(--text);
}
.model__name { margin: 0; font-size: 1.375rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.model__arrow { width: 24px; height: 24px; transition: transform .2s var(--ease), color .2s; }
.model__body:hover .model__arrow { transform: translateX(4px); color: var(--accent-hover); }
.model__spec {
  grid-column: 1 / -1; margin-top: 18px; padding-top: 14px; border-top: 1px solid #E2DED8;
  font-size: .875rem; color: #6B6B6B;
}

/* Просмотр фото */
.lightbox {
  width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0; border-radius: 10px; background: #000; overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 8, 6, .82); }
.lightbox[open] { animation: pop .3s var(--ease) both; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox__img { display: block; width: 100%; max-height: calc(100dvh - 32px); object-fit: contain; }
.lightbox__close {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--text); cursor: pointer;
}
.lightbox__close .ico { width: 20px; height: 20px; }

@media (max-width: 1180px) {
  .models__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
}
@media (max-width: 860px) {
  .models__track { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; }
}
@media (max-width: 720px) {
  .models { padding-bottom: 56px; }
  .models__head { margin-bottom: 18px; }
  .models__btn { width: 42px; height: 42px; }
  /* на телефоне видна одна карточка и край следующей */
  .models__track { grid-auto-columns: 82%; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .model__body { padding: 18px 16px 16px; }
  .model__name { font-size: 1.1875rem; }
  .model__spec { margin-top: 14px; padding-top: 12px; font-size: .8125rem; }
}

/* цена в карточке ленты */
.model__price { font-weight: 700; color: var(--text); white-space: nowrap; }
/* блок «до 170 000 ₽»: серая подложка, заголовок поменьше, карточки белые */
.models--budget { margin-bottom: 96px; padding: clamp(40px, 5vw, 64px) 0; background: var(--surface); }
.models--budget .models__head { align-items: flex-end; margin-bottom: 28px; }
.models__sub { margin: 10px 0 0; max-width: 46em; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.models--budget .section-title { font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); }
@media (max-width: 720px) { .models--budget .section-title { font-size: 1.625rem; } } /* на телефоне — как остальные заголовки разделов */
.models--budget .model { background: #fff; }

/* ---------- Блок 4: акции ---------- */
.promos { padding: 0 0 clamp(56px, 7vw, 96px); }
.promos__panel {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(28px, 4vw, 56px); border-radius: 10px; background: #1E1813; color: #fff;
}
.promos__bg { position: absolute; inset: 0; z-index: -1; }
.promos__bg picture { display: contents; }
.promos__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.promos__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 14, 9, .55) 0%, rgba(20, 14, 9, 0) 50%),
    linear-gradient(180deg, rgba(20, 14, 9, .72) 0%, rgba(20, 14, 9, .5) 45%, rgba(20, 14, 9, .74) 100%);
}

.promos__head { margin-bottom: clamp(22px, 3vw, 32px); }
.promos__title { color: #fff; }
.promos__sub { margin-top: 8px; font-size: 1.0625rem; color: rgba(255, 255, 255, .8); }

.promos__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.deal {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 200px; height: 100%; padding: 26px 28px 24px; border-radius: 10px; overflow: hidden;
  background: var(--surface); color: var(--text); text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.deal:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(0, 0, 0, .3); }
.deal__title {
  position: relative; z-index: 1; max-width: 54%; margin: 0;
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25;
}
.deal picture { display: contents; }
.deal__img {
  position: absolute; right: 16px; top: 50%; translate: 0 -50%;
  width: 40%; max-width: 230px; max-height: 88%; object-fit: contain; height: auto; pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .12));
}
/* Картинка, обрезанная справа в исходнике: прижата к краю плашки, срез уходит за край */
.deal__img--edge { right: 0; object-position: 100% 50%; filter: none; }
.deal__timer, .deal__perm { position: relative; z-index: 1; align-self: flex-start; }
.deal__timer {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 8px; background: #FCE7DE; color: #3A2A20;
  font-size: .875rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.deal__timer .ico { width: 16px; height: 16px; color: var(--accent-hover); }
.deal__perm { font-size: .9375rem; font-weight: 600; color: var(--accent-hover); }

/* Выбранная акция в окне заявки */
/* таймер акций в окне заявки */
.lead-form__promo {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: #8A3F0C;
  font-size: .875rem; font-weight: 500;
}
.lead-form__promo .ico { width: 16px; height: 16px; color: var(--accent); }
.lead-form__promo b { font-weight: 700; color: var(--accent-hover); font-variant-numeric: tabular-nums; }
.lead-form__promo[hidden] { display: none; }

@media (max-width: 720px) {
  .promos .container { padding-inline: 12px; }
  .promos__panel { padding: 28px 16px 16px; border-radius: 8px; }
  .promos__sub { font-size: .9375rem; }
  .promos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* ---------- Блок 5: наши готовые кухни ---------- */
.kitchens { padding: 0 0 clamp(56px, 7vw, 96px); }
.kitchens__head { margin-bottom: 24px; }
.kitchens__sub { max-width: 40em; margin-top: 12px; font-size: 1.0625rem; color: var(--muted); }

.kfilter {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding: 10px; border-radius: 10px; background: var(--surface);
}
.kfilter__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.kfilter__list::-webkit-scrollbar { display: none; }
.kfilter__btn {
  flex: none; min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  background: #fff; color: var(--text); font-size: .9688rem; font-weight: 500; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.kfilter__btn:hover { border-color: #D8D2CA; }
.kfilter__btn[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.kfilter__reset {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #fff; color: var(--text); font-size: .875rem; font-weight: 500; cursor: pointer;
}
.kfilter__reset .ico { width: 14px; height: 14px; color: var(--accent-hover); stroke-width: 2.4; }
.kfilter__reset:disabled { opacity: .45; cursor: default; }

.kitchens__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kcard {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 10px;
  background: var(--surface);
  transition: box-shadow .25s var(--ease);
}
.kcard:hover { box-shadow: 0 16px 36px rgba(40, 28, 16, .1); }
.kcard__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #E9E2D9; }
.kcard__photo picture { display: block; height: 100%; }
.kcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.kcard__badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 6px; background: var(--accent); color: #fff;
  font-size: .875rem; font-weight: 700;
}
.kcard__badge--new { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.kcard__badge + .kcard__badge--new { left: 76px; }

/* Кнопка увеличения фото в углу */
.kcard__zoom {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center;
  width: 36px; height: 36px; border: 0; border-radius: 6px; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: var(--text);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.kcard__zoom .ico { width: 18px; height: 18px; }
.kcard__zoom:hover { background: var(--accent); color: #fff; }

/* Характеристики плашками поверх фото */
.kcard__tags {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none;
}
.ktag {
  display: inline-flex; align-items: center;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(30, 26, 22, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .75rem; font-weight: 500; line-height: 1.2; color: #fff;
}

.kcard__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 16px; }
.kcard__head {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px;
  margin-bottom: 16px; color: inherit; text-decoration: none;
}
.kcard__kind { grid-column: 1; font-size: .8125rem; color: var(--muted); }
.kcard__name { grid-column: 1; margin: 2px 0 0; font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.kcard__arrow { grid-column: 2; grid-row: 1 / 3; width: 26px; height: 26px; transition: transform .2s var(--ease), color .2s var(--ease); }
.kcard__head:hover .kcard__arrow { transform: translateX(4px); color: var(--accent); }

.kcard__foot {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid #E2DED8;
}
.kcard__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin: 0; font-size: .8125rem; color: var(--muted); }
.kcard__old { font-size: .8125rem; color: #9A958F; }
.kcard__now { font-size: 1rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.kcard__credit { margin: 0; font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.kcard__credit b { font-weight: 700; color: var(--accent-hover); }
.kcard__cta {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 40px; margin-top: 14px; padding: 0 20px;
  border: 1.5px solid #D9D4CE; border-radius: 8px; background: #fff;
  font-size: .875rem; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.kcard__cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.kitchens__empty { padding: 40px 20px; border-radius: 10px; background: var(--surface); text-align: center; }
.kitchens__empty[hidden] { display: none; }
.kitchens__empty p { max-width: 32em; margin: 0 auto 16px; color: var(--muted); }
.kitchens__empty-btn, .kitchens__more { min-height: 48px; padding: 0 28px; font-size: 1rem; background: #fff; color: var(--text); border: 1px solid var(--line); }
.kitchens__empty-btn:hover, .kitchens__more:hover { border-color: var(--text); }
.kitchens__more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.kitchens__more[hidden] { display: none; }

@media (max-width: 1023px) {
  .kitchens__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .kitchens__sub { font-size: .9375rem; }
  /* на телефоне кнопки переносятся без прокрутки вбок, «Сбросить все» встаёт в ряд с последней */
  .kfilter { flex-wrap: wrap; justify-content: flex-start; gap: 8px; padding: 8px; }
  .kfilter__list { display: contents; }
  .kfilter__btn { min-height: 42px; padding: 0 16px; font-size: .875rem; }
  .kfilter__reset { min-height: 42px; margin-left: auto; padding: 0 12px; }
  .kitchens__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 400px) {
  /* узкий телефон: всё сжимаем, чтобы «Сбросить» поместилась рядом с «С островом» */
  .kfilter__btn { padding: 0 12px; font-size: .8125rem; }
  .kfilter__reset { padding: 0 10px; font-size: .8125rem; }
  .kfilter__all { display: none; }
}

/* ---------- Блок 6: видео ---------- */
.videos { padding: 0 0 88px; }
.videos__wrap { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; gap: 24px 48px; }
.videos .section-title { margin-top: 0; margin-bottom: 12px; }
.videos__sub { margin: 0 0 24px; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.videos__nav { display: flex; gap: 10px; }

/* лента роликов: небольшие вертикальные карточки, листается вбок */
.videos__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 16px;
  margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.videos__track::-webkit-scrollbar { display: none; }
.vcard { scroll-snap-align: start; }
.vcard__media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px; background: var(--ink); }
.vcard__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vcard__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--accent); cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25); transition: transform .2s var(--ease);
}
.vcard__play .ico { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; stroke: none; }
.vcard__play:hover { transform: scale(1.08); }
.vcard__media.is-playing .vcard__play { display: none; }
.vcard__title { margin: 10px 0 0; font-size: .875rem; font-weight: 500; line-height: 1.35; }

@media (max-width: 1023px) {
  .videos__wrap { grid-template-columns: minmax(0, 1fr); }
  .videos__sub { margin-bottom: 16px; }
}
@media (max-width: 720px) {
  .videos { padding-bottom: 56px; }
  /* стрелки справа от заголовка, как у «Популярных моделей»; подзаголовок — под ними */
  .videos__intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
  .videos__intro .section-title { margin-bottom: 0; }
  .videos__nav { grid-column: 2; grid-row: 1; gap: 8px; }
  .videos__sub { grid-column: 1 / -1; margin-top: 10px; }
  .videos__track { grid-auto-columns: 46%; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}

/* ---------- Блок 7: о нас ---------- */
.about { padding: 0 0 96px; }
.about__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 72px;
  padding-top: 56px; border-top: 1px solid var(--line);
}
.about .section-title { margin: 0 0 20px; }
.about__intro { margin: 0; font-size: 1.1875rem; line-height: 1.55; color: var(--text); }
.about__body p { margin: 0 0 12px; font-size: .875rem; line-height: 1.65; color: var(--muted); }
.about__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.about__facts li { display: grid; gap: 4px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.about__facts b { font-size: 1.375rem; font-weight: 700; color: var(--text); }
.about__facts span { font-size: .8125rem; line-height: 1.4; color: var(--muted); }

@media (max-width: 1023px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 720px) {
  .about { padding-bottom: 56px; }
  .about__grid { padding-top: 40px; }
  .about__intro { font-size: 1.0625rem; }
  .about__facts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Блок 9: выезд дизайнера ---------- */
.visit { padding: 0 0 96px; }
.visit__panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); overflow: hidden; border-radius: 12px; background: var(--surface); }
.visit__info { padding: 48px 44px; }
.visit__title { margin: 0 0 16px; max-width: 14em; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
.visit__text { margin: 0 0 26px; max-width: 36em; font-size: .9375rem; line-height: 1.6; color: var(--muted); }

/* белая карточка формы */
.visit__form { padding: 28px; border-radius: 10px; background: #fff; }
.visit__form .quote__body { gap: 16px; }
.visit__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.visit__pills { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: .8125rem; font-weight: 500; }
.visit__pills li { display: inline-flex; align-items: center; gap: 6px; }
.visit__pills .ico { width: 16px; height: 16px; color: var(--ok); stroke-width: 3; }
.visit__btn { width: 100%; gap: 10px; min-height: 56px; font-size: 1rem; }
.visit__btn .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.visit__btn:hover .ico { transform: translateX(3px); }
.visit__legal { margin: 0; font-size: .75rem; line-height: 1.5; color: #8A8580; }
.visit__legal a { color: inherit; text-underline-offset: 2px; }

/* фото на всю высоту правой половины */
.visit__photo { position: relative; min-height: 420px; background: #E9E2D9; }
.visit__photo picture { position: absolute; inset: 0; }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1023px) {
  .visit__panel { grid-template-columns: minmax(0, 1fr); }
  .visit__photo { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .visit { padding-bottom: 56px; }
  .visit__info { padding: 28px 16px 16px; }
  .visit__form { padding: 18px 16px; }
  .visit__fields { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Блок 9: квиз-расчёт стоимости ---------- */
.quiz { padding: 0 0 96px; }
.quiz__wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 32px 56px; }

.quiz__aside { position: sticky; top: calc(var(--header-h) + 24px); padding-top: 8px; }
.quiz__tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-hover); font-size: .8125rem; font-weight: 600;
}
.quiz__tag .ico { width: 16px; height: 16px; }
.quiz__title { margin: 0 0 16px; font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.quiz__lead { margin: 0 0 24px; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.quiz__get { margin: 0 0 10px; font-size: .9375rem; font-weight: 600; }
.quiz__perks { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; font-size: .9375rem; }
.quiz__perks li { display: flex; align-items: center; gap: 10px; }
.quiz__perks .ico { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #E3F5EA; color: var(--ok); stroke-width: 3; }
.quiz__deadline { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 16px; border-radius: 8px; border: 1px dashed #F0BE9C; font-size: .875rem; }
.quiz__deadline .ico { flex: none; width: 20px; height: 20px; color: var(--accent-hover); }

/* карточка с вопросами */
.quiz__card { padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 20px 50px rgba(40, 28, 16, .08); }
.quiz__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: .875rem; }
.quiz__count { margin: 0; font-weight: 600; }
.quiz__count b { color: var(--accent-hover); }
.quiz__left { margin: 0; color: var(--muted); }
.quiz__bar { height: 6px; margin-bottom: 28px; border-radius: 999px; background: #EEEAE5; overflow: hidden; }
.quiz__bar span { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--accent); transition: width .35s var(--ease); }

.quiz__step { display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz__step.is-active { display: block; animation: quiz-in .3s var(--ease) both; }
@keyframes quiz-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.quiz__q { margin: 0 0 20px; padding: 0; font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
.quiz__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quiz__opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qopt--wide { grid-column: 1 / -1; }

/* вариант ответа: настоящая радиокнопка скрыта, кликается вся плашка */
.qopt input, .qgift input { position: absolute; opacity: 0; pointer-events: none; }
.qopt__box {
  display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 64px; height: 100%;
  padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
  font-size: .9375rem; font-weight: 500; line-height: 1.3;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.quiz__opts--4 .qopt__box { align-items: center; text-align: center; padding: 18px 10px; }
.qopt__ico { width: 44px; height: 44px; fill: #D9D4CE; transition: fill .2s var(--ease); }
.qopt__box:hover { border-color: #F0BE9C; background: #FFFAF6; }
.qopt input:checked + .qopt__box { border-color: var(--accent); background: var(--accent-soft); }
.qopt input:checked + .qopt__box .qopt__ico, .qopt__box:hover .qopt__ico { fill: var(--accent); }
.qopt input:focus-visible + .qopt__box, .qgift input:focus-visible + .qgift__box { outline: 2px solid var(--accent); outline-offset: 2px; }

/* финальный шаг */
.quiz__price { margin-bottom: 22px; padding: 18px 20px; border-radius: 10px; background: var(--ink); color: #fff; }
.quiz__price-label { margin: 0 0 4px; font-size: .875rem; color: rgba(255, 255, 255, .7); }
.quiz__price-value { margin: 0 0 6px; font-size: 1.125rem; }
.quiz__price-value b { font-size: 2rem; font-weight: 700; color: #FF9A55; }
.quiz__price-note { margin: 0; font-size: .8125rem; color: rgba(255, 255, 255, .6); }
.quiz__sub { margin: 0 0 10px; font-size: .9375rem; font-weight: 600; }
.quiz__gifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.qgift__box {
  display: grid; place-items: center; min-height: 48px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px;
  cursor: pointer; text-align: center; font-size: .875rem; font-weight: 500; line-height: 1.25; transition: border-color .2s, background-color .2s;
}
.qgift__box:hover { border-color: #F0BE9C; }
.qgift input:checked + .qgift__box { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }
.quiz__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.quiz__submit { width: 100%; min-height: 58px; gap: 10px; font-size: 1.0625rem; }
.quiz__submit .ico { width: 20px; height: 20px; }
.quiz__legal { margin: 10px 0 0; font-size: .75rem; line-height: 1.5; color: #8A8580; text-align: center; }
.quiz__legal a { color: inherit; }

.quiz__nav { display: flex; align-items: center; gap: 16px; min-height: 40px; margin-top: 20px; }
.quiz__back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; color: var(--muted); font-size: .875rem; font-weight: 500; cursor: pointer; }
.quiz__back[hidden] { display: none; }
.quiz__back .ico { width: 16px; height: 16px; }
.quiz__back:hover { color: var(--text); }
.quiz__hint { margin: 0 0 0 auto; font-size: .8125rem; color: #8A8580; }
.quiz__hint[hidden] { display: none; }

.quiz__success { display: grid; justify-items: start; gap: 8px; padding: 12px 0; }
.quiz__success[hidden] { display: none; }
.quiz__success:focus { outline: none; }
.quiz__success-title { margin: 0; font-size: 1.5rem; font-weight: 700; }
.quiz__success p:last-child { margin: 0; color: var(--muted); }
.quiz__card.is-done > :not(.quiz__success) { display: none; }

@media (max-width: 1023px) {
  .quiz__wrap { grid-template-columns: minmax(0, 1fr); }
  .quiz__aside { position: static; }
}
@media (max-width: 720px) {
  .quiz { padding-bottom: 56px; }
  .quiz__card { padding: 20px 16px; border-radius: 10px; }
  .quiz__q { font-size: 1.1875rem; }
  .quiz__opts, .quiz__opts--4 { grid-template-columns: 1fr 1fr; }
  .quiz__fields { grid-template-columns: minmax(0, 1fr); }
  .quiz__gifts { grid-template-columns: minmax(0, 1fr); }
  .quiz__gifts--msg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quiz__hint { display: none; }
}

/* ---------- Блок 11: сертификаты ---------- */
.certs { padding: 0 0 96px; }
.certs .section-title { margin: 0 0 8px; }
.certs__sub { margin: 0 0 24px; font-size: .9375rem; color: var(--muted); }
/* 9 документов: 5 в первом ряду, 4 во втором, выравнивание по левому краю */
.certs__list { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 24px 16px; margin: 0; padding: 0; list-style: none; }
.certs__item { flex: 0 0 calc((100% - 4 * 16px) / 5); }
.cert__name { margin: 10px 0 2px; font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.cert {
  position: relative; display: block; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: zoom-in; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cert picture { display: block; }
.cert img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; box-shadow: 0 6px 16px rgba(40, 28, 16, .12); }
.cert:hover { border-color: #F0BE9C; box-shadow: 0 14px 30px rgba(40, 28, 16, .1); }
.cert__zoom {
  position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 8px; background: rgba(255, 255, 255, .95); color: var(--text); box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.cert__zoom .ico { width: 16px; height: 16px; }

@media (max-width: 720px) {
  .certs { padding-bottom: 56px; }
  .certs__list { gap: 16px 10px; }
  .certs__item { flex-basis: calc((100% - 20px) / 3); }
  .cert__name { font-size: .6875rem; }
  .cert { padding: 6px; border-radius: 8px; }
  .cert__zoom { display: none; }
}

/* ---------- Блок 12: финальный призыв ---------- */
.cta { padding: 0 0 96px; }
.cta__panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; justify-items: center; align-content: center; gap: 14px;
  min-height: 360px; padding: 56px 24px; border-radius: 12px; text-align: center; color: #fff;
}
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: rgba(20, 16, 12, .62); }
.cta__title { margin: 0; max-width: 14em; font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.cta__text { margin: 0 0 10px; max-width: 30em; font-size: 1.0625rem; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.cta__btn { gap: 10px; min-height: 56px; padding: 0 32px; font-size: 1.0625rem; }
.cta__btn .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.cta__btn:hover .ico { transform: translateX(3px); }

@media (max-width: 720px) {
  .cta { padding-bottom: 56px; }
  .cta__panel { min-height: 300px; padding: 40px 16px; border-radius: 10px; }
  .cta__text { font-size: .9375rem; }
  .cta__btn { width: 100%; }
}

/* ---------- Страница акций ---------- */
.apage { padding: 24px 0 72px; }
.apage__title { margin: 0 0 18px; max-width: 18em; font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.apage__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.apage__badge { padding: 10px 16px; border-radius: 8px; background: #E8F6EC; color: #1C6B3D; font-size: .9375rem; font-weight: 600; }
.apage__lead { margin: 0; font-size: .9375rem; color: var(--muted); }
.apage__lead b { color: var(--accent-hover); font-variant-numeric: tabular-nums; }
.apage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 40px; }
.apage__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }

/* форма справа: «прилипает» под шапкой и едет при прокрутке до конца списка */
.aform { position: sticky; top: calc(var(--header-h) + 16px); }
.aform__card { padding: 24px 22px; border-radius: 12px; background: #404040; color: #fff; box-shadow: 0 16px 40px rgba(22, 22, 22, .18); }
.aform__card .field__input { border-color: transparent; }
.aform__card .quote__success p:last-child { color: rgba(255, 255, 255, .7); }
.aform__card .quote__body { gap: 10px; }
.aform__title { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.25; }
.aform__timer { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-size: .8125rem; color: rgba(255, 255, 255, .8); }
.aform__timer .ico { width: 15px; height: 15px; color: var(--accent); }
.aform__timer b { color: #FF9A55; font-variant-numeric: tabular-nums; }
.aform__btn { width: 100%; min-height: 52px; font-size: 1rem; }
.aform__legal { margin: 0; font-size: .75rem; line-height: 1.45; color: rgba(255, 255, 255, .55); }
.aform__legal a { color: inherit; }

/* строка: карточка акции слева, описание справа */
.arow { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: center; gap: 20px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.arow:first-child { padding-top: 0; }
.arow .deal { min-height: 210px; box-shadow: none; border: 1px solid var(--line); }
.arow .deal:hover { transform: none; box-shadow: none; }
.arow .deal__title { font-size: 1.375rem; }
.arow__info { max-width: 40em; font-size: .9375rem; line-height: 1.6; }
.arow__info p { margin: 0 0 12px; }
.arow__info a:not(.btn) { color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.arow__info a:not(.btn):hover { color: var(--accent-hover); }
.arow__note { color: #8A8580; font-size: .875rem; }

@media (max-width: 1180px) {
  .arow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .apage__grid { grid-template-columns: minmax(0, 1fr); }
  .aform { position: static; }
}
@media (max-width: 720px) {
  .apage { padding: 16px 0 48px; }
  .apage__head { padding-bottom: 20px; margin-bottom: 20px; }
  .arow { padding: 20px 0; gap: 16px; }
  .arow .deal { min-height: 160px; padding: 18px 16px; }
  .arow .deal__title { max-width: 58%; font-size: 1.125rem; }
  .arow .deal__img { width: 40%; max-width: 160px; right: 8px; }
}

/* ---------- Страница кухни: галерея ---------- */
.kd { padding: 24px 0 56px; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 20px; padding: 0; list-style: none; font-size: .8125rem; }
.crumbs li + li::before { content: "—"; margin: 0 8px; color: var(--text); }
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { color: var(--accent-hover); }
.crumbs [aria-current] { color: #8A8580; }

.kgal { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.kgal__stage { position: relative; }
.kgal__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 3); gap: 8px;
  margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.kgal__track::-webkit-scrollbar { display: none; }
.kgal__slide { scroll-snap-align: start; aspect-ratio: 3 / 4; }
.kgal__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #E9E2D9; cursor: zoom-in; }
.kgal__zoom picture { display: block; height: 100%; }
.kgal__zoom img { width: 100%; height: 100%; object-fit: cover; }

.kgal__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(40, 36, 32, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; cursor: pointer; transition: background .2s var(--ease), opacity .2s var(--ease);
}
.kgal__nav .ico { width: 24px; height: 24px; stroke-width: 2.2; }
.kgal__nav:hover { background: var(--accent); }
.kgal__nav:disabled { opacity: 0; pointer-events: none; }
.kgal__nav--prev { left: 24px; }
.kgal__nav--next { right: 24px; }

.kgal__dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 10px; }
.kgal__dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .6); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); cursor: pointer;
}
.kgal__dot[aria-current="true"] { background: var(--accent); }
.kgal__dot[hidden] { display: none; }

.kd__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.kd-tag { padding: 6px 12px; border-radius: 999px; background: var(--surface); font-size: .8125rem; color: var(--muted); }

/* Описание кухни */
.kinfo { margin-top: 36px; }
.kinfo__kind { margin: 0 0 4px; font-size: .875rem; color: var(--muted); }
.kinfo__title { margin: 0 0 14px; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.kinfo__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.kinfo__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 1rem; color: var(--muted); }
.kinfo__price s { font-size: .9375rem; color: #9A958F; }
.kinfo__price b { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.kinfo__credit { margin: 0; font-size: .9375rem; font-weight: 500; color: #2E9E4F; }

/* Подсказка у цены */
.tip { position: relative; align-self: center; }
.tip__btn { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: #9A958F; cursor: help; }
.tip__btn .ico { width: 18px; height: 18px; }
.tip__btn:hover, .tip__btn:focus-visible { color: var(--accent-hover); }
.tip__text {
  position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5; width: 260px; transform: translateX(-50%);
  padding: 10px 12px; border-radius: 8px; background: var(--ink); color: #fff;
  font-size: .8125rem; line-height: 1.45; box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  opacity: 0; visibility: hidden; transition: opacity .15s var(--ease);
}
.tip.is-open .tip__text { opacity: 1; visibility: visible; }
@media (hover: hover) { .tip:hover .tip__text { opacity: 1; visibility: visible; } }

.kinfo__grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; padding-top: 24px; border-top: 1px solid var(--line); }
.kinfo__sub { margin: 0 0 12px; font-size: 1.0625rem; font-weight: 600; }
.kinfo__text { font-size: .875rem; line-height: 1.6; color: var(--muted); }
.kinfo__text p { margin: 0 0 .8em; }
/* описание кухни и текст «О нас»: на телефоне длинный текст свёрнут до нескольких строк, кнопка «Подробнее» раскрывает его; на компьютере текст целиком */
@media (max-width: 720px) {
  [data-more-text].is-clamped { position: relative; max-height: calc(1.6em * 5); overflow: hidden; }
  [data-more-text].is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
}
@media (min-width: 721px) { .kinfo__more { display: none; } }
.kinfo__more {
  display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; padding: 7px 14px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--text); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; transition: background-color .2s;
}
.kinfo__more[hidden] { display: none; }
.kinfo__more:hover { background: #ECECEC; }
.kinfo__more .ico { width: 14px; height: 14px; color: var(--accent-hover); rotate: 90deg; transition: rotate .2s var(--ease); }
.kinfo__more[aria-expanded="true"] .ico { rotate: -90deg; }
.kinfo__cta { margin-top: 16px; min-height: 56px; padding: 0 28px; font-size: 1rem; }

/* Характеристики справа */
.kspecs { padding: 18px 20px 8px; border-radius: 10px; background: var(--surface); }
.kspecs__list { margin: 0; }
.kspecs__list div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid #E2DED8; }
.kspecs__list div:first-child { border-top: 0; padding-top: 2px; }
.kspecs__list dt { color: var(--muted); font-size: .8125rem; }
.kspecs__list dd { margin: 0; font-size: .8125rem; font-weight: 600; text-align: right; }

/* ---------- Страница кухни: что входит в цену ---------- */
.incl { padding: 0 0 72px; }
.incl__panel { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.incl__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 40px; padding: 32px 28px 24px; }
.incl__title { margin: 0 0 14px; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
.incl__sub { margin: 0; max-width: 30em; font-size: .9375rem; line-height: 1.5; color: var(--muted); }

.incl__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0 28px 28px; list-style: none; }
.icard { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 150px; padding: 22px 20px; border: 1px solid #ECE8E3; border-radius: 10px; }
.icard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.icard__title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.icard__ico { flex: none; display: grid; place-items: center; width: 48px; height: 30px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); }
.icard__ico .ico { width: 16px; height: 16px; }
.icard__text { margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
/* широкая карточка с фото образцов фасадов */
.icard--wide { grid-column: span 2; flex-direction: row; align-items: stretch; gap: 16px; padding: 12px 12px 12px 20px; }
.icard__body { flex: 1 1 52%; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 10px 0; }
.icard__img {
  position: relative; flex: 1 1 48%; min-height: 150px; overflow: hidden; border-radius: 8px; background: #E7E9EB;
  clip-path: inset(0 round 8px); isolation: isolate; /* Safari на iPhone иначе не обрезает движущуюся ленту и она вылезает за край */
}
.facades-run { position: absolute; inset: 0 auto 0 0; display: flex; width: max-content; animation: facades-float 28s linear infinite; }
.facades-run picture { display: block; height: 100%; }
.facades-run img { width: auto; height: 100%; max-width: none; }
.icard--wide:hover .facades-run { animation-play-state: paused; }
@keyframes facades-float { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .facades-run { animation: none; } }

.incl__bar {
  display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 22px 28px;
  background: var(--surface); color: var(--text); text-decoration: none; font-size: 1.25rem; font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.incl__bar .ico { width: 24px; height: 24px; transition: transform .2s var(--ease); }
.incl__bar:hover { background: var(--accent); color: #fff; }
.incl__bar:hover .ico { transform: translateX(4px); }

/* ---------- Страница кухни: акции ---------- */
.kpromos { padding: 0 0 72px; }
.kpromos__title { margin: 0 0 24px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500; letter-spacing: -.01em; }
.kpromos__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
/* плашки акций в узкую колонку (главная и страница кухни): картинка сверху, текст снизу */
:is(.promos, .kpromos) .deal {
  min-height: 0; justify-content: flex-start; gap: 10px; padding: 0 0 16px; border-radius: 10px;
  box-shadow: none; border: 1px solid #ECE8E3;
  background: radial-gradient(120% 70% at 50% 28%, #fff 0%, var(--surface) 62%);
}
:is(.promos, .kpromos) .deal:hover { box-shadow: 0 16px 32px rgba(40, 28, 16, .12); }
/* крупное фото сверху по центру */
:is(.promos, .kpromos) .deal__img {
  position: static; order: -1; translate: none;
  width: 100%; max-width: none; height: 160px; max-height: none; padding: 16px 16px 4px;
  object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .14));
  transition: transform .4s var(--ease);
}
:is(.promos, .kpromos) .deal:hover .deal__img { transform: scale(1.04); }
/* столешница обрезана справа в исходнике — прижата к краю карточки */
:is(.promos, .kpromos) .deal__img--edge { padding-right: 0; object-position: 100% 50%; filter: none; }
:is(.promos, .kpromos) .deal__title { max-width: none; margin: 0 16px; font-size: .9375rem; line-height: 1.3; letter-spacing: 0; }
:is(.promos, .kpromos) .deal__timer, :is(.promos, .kpromos) .deal__perm { margin: auto 16px 0; }
:is(.promos, .kpromos) .deal__timer { padding: 5px 10px; font-size: .8125rem; }
:is(.promos, .kpromos) .deal__perm { font-size: .8125rem; }
.kpromos__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.kpromos__btn { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.kpromos__note { margin: 0; font-size: .875rem; color: var(--muted); }
.kpromos__note b { color: var(--text); }

/* ---------- Страница кухни: второе мнение по смете ---------- */
.quote { padding: 0 0 80px; }
.quote__panel {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center;
  padding: 44px 48px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.quote__title { margin: 0 0 16px; font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
.quote__text { margin: 0 0 22px; max-width: 36em; font-size: .9375rem; line-height: 1.65; color: var(--muted); }
.quote__text a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
.quote__text a:hover { color: var(--accent-hover); }
.quote__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.quote__pills li {
  padding: 8px 14px; border: 1.5px solid #F0BE9C; border-radius: 999px; background: #fff;
  font-size: .8125rem; font-weight: 500; color: var(--accent-hover);
}

.quote__form { padding: 28px; border-radius: 10px; background: var(--surface); }
.quote__form .field__input, .quote__form .qfile { background: #fff; }
.quote__form .qfile:hover { background: #FFFAF6; }
.quote__body { display: grid; gap: 16px; }
.quote__body[hidden] { display: none; }
.quote__label { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.quote__label span { color: var(--accent-hover); }

/* поле файла: настоящий input прозрачный поверх, клик открывает выбор файла */
.qfile {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 16px; border: 1px dashed #CFC8BF; border-radius: 8px;
  color: var(--muted); font-size: .9375rem; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.qfile:hover { border-color: var(--accent); background: #FFFAF6; }
.qfile:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(228, 107, 31, .15); }
.qfile .ico { flex: none; width: 18px; height: 18px; color: var(--accent-hover); }
.qfile__input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.qfile__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qfile.is-filled { border-style: solid; color: var(--text); }

.quote__btn { min-height: 56px; width: 100%; font-size: 1rem; }
.quote__legal { margin: 0; font-size: .75rem; line-height: 1.5; color: #8A8580; }
.quote__legal a { color: inherit; text-underline-offset: 2px; }
.quote__legal a:hover { color: var(--text); }

.quote__success { display: grid; justify-items: start; gap: 8px; padding: 8px 0; }
.quote__success[hidden] { display: none; }
.quote__success:focus { outline: none; }
.quote__success-title { margin: 0; font-size: 1.375rem; font-weight: 700; }
.quote__success p:last-child { margin: 0; color: var(--muted); }

/* ---------- Страница кухни: партнёры и оценки на картах ---------- */
.trust { padding: 0 0 80px; }
.trust__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px;
  padding: 20px 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.trust__part { display: flex; align-items: center; gap: 20px; }
.trust__title { margin: 0; max-width: 7em; font-size: 1rem; font-weight: 600; line-height: 1.25; }

.partners__grid { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.partner {
  position: relative; width: 76px; height: 56px; overflow: hidden;
  border: 1px solid #ECE8E3; border-radius: 8px; background: #fff;
}
.partner img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8px 9px; object-fit: contain; }
.partner--fill { border-color: transparent; background: #0096D5; }
.partner--fill img { padding: 0; object-fit: cover; }

/* оценки: кольцо заполнено пропорционально оценке */
.rrings { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rring { position: relative; display: grid; place-items: center; width: 76px; height: 76px; }
.rring__svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rring__track { fill: none; stroke: #EEEAE5; stroke-width: 7; }
.rring__bar { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; }
.rring__in { position: relative; display: flex; align-items: center; gap: 4px; font-size: .9375rem; font-weight: 700; }
.rring__logo { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: .625rem; font-weight: 800; }
.rring__logo--ya { background: #FC3F1D; }
.rring__logo--gis { background: #19AA1E; font-size: .5rem; }
.rring__logo--g { background: #4285F4; }
.rring__logo--zoon { background: #6E4AFF; }

/* ---------- Страница кухни: шоурум ---------- */
.showroom { padding: 0 0 80px; }
/* панель и фото — от блока «Приедем с образцами» (.visit__*), здесь только своё */
/* плашка поверх фото, в левом верхнем углу */
.showroom__tag {
  position: absolute; top: 20px; left: 20px; z-index: 1; padding: 7px 14px; border-radius: 999px;
  background: #fff; color: var(--text); font-size: .8125rem; font-weight: 600;
}
.showroom__meta { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; font-size: .875rem; font-weight: 500; }
.showroom__meta li { display: flex; align-items: center; gap: 10px; }
.showroom__meta .ico { flex: none; width: 18px; height: 18px; color: var(--accent); }
.showroom__route { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-size: .875rem; font-weight: 600; color: var(--accent-hover); text-decoration: none; }
.showroom__route .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.showroom__route:hover .ico { transform: translateX(3px); }
.showroom__form .quote__body { gap: 14px; }
.showroom__ftitle { margin: 0 0 2px; font-size: 1.1875rem; font-weight: 600; }
.showroom__fsub { margin: 0; font-size: .875rem; color: var(--muted); }
.showroom__or { display: flex; align-items: center; gap: 12px; margin: 8px 0 2px; font-size: .8125rem; color: var(--muted); }
.showroom__or::before, .showroom__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.showroom__or span { white-space: nowrap; }
.showroom__msgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
  border: 1.5px solid #E3DFD9; border-radius: 8px; background: #fff;
  color: var(--text); font-size: .9375rem; font-weight: 600; text-decoration: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.msg-btn .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; fill: #fff; stroke: none; }
.msg-btn--tg .ico { background: var(--tg); }
.msg-btn--max .ico { background: linear-gradient(135deg, #3E8BFF, #8A4DFF); }
.msg-btn--tg:hover { border-color: var(--tg); background: #F2F8FD; }
.msg-btn--max:hover { border-color: #8A4DFF; background: #F6F2FF; }

/* ---------- Страница кухни: фотогалерея ---------- */
.kphotos { padding: 0 0 80px; }
.kphotos__note { margin: 0 0 14px; font-size: .8125rem; color: var(--muted); }
.kphotos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.kphoto { aspect-ratio: 1; overflow: hidden; }
.kphoto--big { position: relative; grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
/* крупное фото не задаёт высоту само — занимает ровно две строки квадратов */
.kphoto--big .kphoto__btn { position: absolute; inset: 0; }
.kphoto__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #E9E2D9; cursor: zoom-in; }
.kphoto__btn picture { display: block; height: 100%; }
.kphoto__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.kphoto__btn:hover img { transform: scale(1.04); }

@media (max-width: 1100px) {
  .incl__top { flex-direction: column; }
  .incl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .kgal__track { grid-auto-columns: calc((100% - 8px) / 2); }
  .kinfo__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kpromos__grid, .promos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote__panel { grid-template-columns: minmax(0, 1fr); padding: 36px 32px; }
}
@media (max-width: 720px) {
  .kd { padding: 16px 0 40px; }
  .crumbs ol { margin-bottom: 14px; }
  .kgal__track { grid-auto-columns: 100%; gap: 0; }
  .kgal__nav { width: 40px; height: 40px; }
  .kgal__nav--prev { left: 12px; }
  .kgal__nav--next { right: 12px; }
  .kinfo { margin-top: 28px; }
  .kspecs { padding: 16px 16px 6px; }
  .incl { padding-bottom: 48px; }
  .incl__top { padding: 24px 16px 18px; }
  .incl__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0 16px 16px; }
  .icard { min-height: 0; gap: 10px; padding: 16px; }
  .icard--wide { grid-column: auto; flex-direction: column; padding: 16px; }
  .icard__body { padding: 0; gap: 10px; }
  .icard__img { flex: none; width: 100%; min-height: 0; aspect-ratio: 16 / 7; }
  .incl__bar { justify-content: center; padding: 18px 16px; font-size: 1rem; }
  .kpromos { padding-bottom: 48px; }
  .kpromos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  :is(.promos, .kpromos) .deal__img { height: 110px; padding: 10px 10px 2px; }
  :is(.promos, .kpromos) .deal { gap: 8px; padding-bottom: 12px; }
  :is(.promos, .kpromos) .deal__title { margin-inline: 10px; font-size: .8125rem; }
  :is(.promos, .kpromos) :is(.deal__timer, .deal__perm) { margin-inline: 10px; }
  :is(.promos, .kpromos) .deal__timer { padding: 4px 8px; font-size: .6875rem; gap: 5px; }
  :is(.promos, .kpromos) .deal__timer .ico { width: 13px; height: 13px; }
  .kpromos__btn { width: 100%; }
  .quote { padding-bottom: 56px; }
  .quote .container { padding-inline: 12px; }
  .quote__panel { padding: 28px 16px 16px; }
  .quote__form { padding: 20px 16px; }
  .trust { padding-bottom: 48px; }
  .showroom { padding-bottom: 48px; }
  .trust__bar { padding: 16px; }
  .trust__part { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
  .trust__title { max-width: none; }
  /* логотипы партнёров: по 3 в ряд на всю ширину плашки */
  .partners__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-self: stretch; }
  .partner { width: auto; height: auto; aspect-ratio: 3 / 2; }
  .partner img { padding: 10px 12px; }
  .rrings { flex-wrap: wrap; gap: 8px; }
  .rring { width: 68px; height: 68px; }
  .kphotos { padding-bottom: 56px; }
  .kphotos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kphoto--big { grid-row: auto; aspect-ratio: 4 / 3; }
  .kinfo__cta { width: 100%; padding: 0 16px; font-size: .9375rem; }
  /* на телефоне подсказка растягивается над строкой цены во всю ширину, поэтому не уходит за край экрана */
  .kinfo__row { position: relative; }
  .tip { position: static; }
  .tip__text { left: 0; right: 0; width: auto; transform: none; }
}

/* ---------- Подвал (на всех страницах) ---------- */
.footer { margin-top: 24px; padding: 56px 0 28px; background: var(--ink); color: rgba(255, 255, 255, .72); font-size: .9375rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.1fr); gap: 32px 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.logo--light { color: #fff; }
.footer__about { max-width: 26em; margin: 18px 0 22px; line-height: 1.6; }
.footer .logo__img { height: 52px; }
.footer .socials { margin: 0; padding: 0; list-style: none; }
.footer__col { display: grid; align-content: start; gap: 12px; }
.footer__title { margin: 0 0 4px; color: #fff; font-size: 1rem; font-weight: 600; }
.footer__col a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__contacts p { margin: 0; line-height: 1.5; }
.footer__col .footer__phone { color: #fff; font-size: 1.25rem; font-weight: 700; }
.footer__col .footer__cta { justify-self: start; margin-top: 6px; min-height: 44px; padding: 0 20px; color: #fff; font-size: .875rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; font-size: .8125rem; color: rgba(255, 255, 255, .5); }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }
.footer__bottom a:hover { color: #fff; }
.footer__bottom .footer__offer { flex-basis: 100%; max-width: 62em; font-size: .75rem; line-height: 1.5; color: rgba(255, 255, 255, .38); } /* отдельной строкой под реквизитами */

@media (max-width: 1023px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .footer { padding: 40px 0 24px; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 28px; }
  .footer__col .footer__cta { justify-self: stretch; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Плавающая кнопка «Напишите нам» ---------- */
.chatfab { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
/* сам контейнер шире кнопки (в нём спрятано меню) — он не должен перекрывать клики по плашке «Сделать расчёт» слева */
.chatfab { pointer-events: none; }
.chatfab > * { pointer-events: auto; }
.chatfab__btn {
  display: flex; align-items: center; padding: 6px; border: 0; border-radius: 999px;
  background: #fff; color: var(--text); cursor: pointer; text-align: left;
  box-shadow: 0 12px 32px rgba(22, 22, 22, .18), 0 0 0 1px rgba(22, 22, 22, .04);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chatfab__btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(22, 22, 22, .22); }
.chatfab__ico {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff;
}
.chatfab__ico .ico { width: 24px; height: 24px; stroke-width: 2; }
/* мягкая пульсация, чтобы кнопку заметили */
.chatfab__ico::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent);
  animation: chatfab-pulse 2.4s var(--ease) infinite;
}
@keyframes chatfab-pulse { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.6); } }
/* текст спрятан в иконку и выдвигается: при наведении или через 2 минуты на сайте (класс is-expanded) */
.chatfab__text {
  display: grid; gap: 1px; max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap;
  font-size: .8125rem; line-height: 1.25; color: var(--muted);
  transition: max-width .45s var(--ease), opacity .3s var(--ease), margin .45s var(--ease);
}
.chatfab:hover .chatfab__text, .chatfab:focus-within .chatfab__text, .chatfab.is-expanded .chatfab__text {
  max-width: 240px; opacity: 1; margin: 0 16px 0 12px;
}
.chatfab__text b { font-size: .9375rem; color: var(--text); }

/* меню мессенджеров: раскрывается при наведении, фокусе или нажатии */
.chatfab__menu {
  display: grid; gap: 8px; width: 260px; padding: 14px; border-radius: 12px; background: #fff;
  box-shadow: 0 16px 40px rgba(22, 22, 22, .18);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.chatfab.is-open .chatfab__menu { opacity: 1; visibility: visible; transform: none; }
/* наведение — только там, где есть мышь: на телефоне «залипший» hover и фокус не давали закрыть меню */
@media (hover: hover) {
  .chatfab:hover .chatfab__menu, .chatfab:focus-within .chatfab__menu { opacity: 1; visibility: visible; transform: none; }
}
.chatfab__hint { margin: 0 0 4px; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.chatfab__link {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 10px;
  color: #fff; font-size: .9375rem; font-weight: 600; text-decoration: none; transition: filter .2s;
}
.chatfab__link .ico { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.chatfab__link--tg { background: var(--tg); }
.chatfab__link--tg .ico { width: 26px; height: 26px; margin-left: -2px; }
.chatfab__link--max { background: linear-gradient(135deg, #3E8BFF, #6A4DFF); }
.chatfab__link--max .ico { width: 18px; height: 18px; margin: 0 2px; }
.chatfab__link:hover { filter: brightness(1.08); }

@media (max-width: 720px) {
  .chatfab { right: 14px; bottom: 14px; }
  .chatfab:hover .chatfab__text, .chatfab:focus-within .chatfab__text, .chatfab.is-expanded .chatfab__text { margin: 0 14px 0 10px; }
  .chatfab__menu { width: min(260px, calc(100vw - 28px)); }
}
@media (prefers-reduced-motion: reduce) { .chatfab__ico::after { animation: none; } }

/* ---------- 6. Анимация появления ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

.reveal { animation: rise .7s var(--ease) both; }
.hero__content > .reveal:nth-child(2) { animation-delay: .08s; }
.hero__content > .reveal:nth-child(3) { animation-delay: .16s; }
.hero__content > .reveal:nth-child(4) { animation-delay: .24s; }
.hero__content > .reveal:nth-child(5) { animation-delay: .32s; }
.hero__content > .reveal:nth-child(6) { animation-delay: .4s; }
.hero__bg img { animation: settle 1.6s var(--ease) both; }
.offer { animation: pop .7s var(--ease) .7s both; }

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

/* ---------- 7. Адаптив ---------- */
@media (max-width: 1280px) {
  .rating { display: none; }
}

@media (max-width: 1100px) {
  .header__bar { gap: 16px; }
  .header__badge { display: none; }
}

@media (max-width: 860px) {
  .hmsg { display: none; }
  .site-menu__grid { grid-template-columns: 1fr 1fr; }
  .site-menu__contacts { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  /* Планшет и телефон: фото сверху блока, снизу растворяется в фон под заголовком */
  .hero { display: block; padding: 0 0 32px; }
  .hero { --hero-bg: #1E1813; }
  .hero__bg { inset: 0 0 auto 0; height: 380px; }
  .hero__bg img { object-position: 74% 50%; }
  .hero__bg::after {
    background: linear-gradient(180deg,
      rgba(30, 24, 19, .35) 0%,
      rgba(30, 24, 19, .55) 35%,
      rgba(30, 24, 19, .7) 75%,
      var(--hero-bg) 100%);
  }
  .hero__inner { padding-top: 200px; }
  .hero__content { max-width: none; }
  .hero__inner { display: block; }
  .offer { width: auto; max-width: 440px; margin-top: 24px; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .header__bar { gap: 8px; }
  .logo__img { height: 38px; }
  .header.is-scrolled .header__bar { min-height: 60px; }
  .header.is-scrolled .logo__img { height: 34px; }
  /* на телефоне кнопка расчёта остаётся, но компактная и без стрелки */
  .header__cta { min-height: 40px; margin-left: 0; padding: 0 12px; border-radius: 8px; font-size: .8125rem; white-space: nowrap; }
  .header__promos { display: none; } /* на телефоне «Акции» — в выпадающем меню */
  .header__strip { display: block; background: var(--surface); border-top: 1px solid var(--line); }
  html { scroll-padding-top: calc(var(--header-h) + 34px + 16px); } /* шапка + полоска */
  .header__cta .ico { display: none; }
  .hbtn--phone { width: 46px; height: 46px; }
  .menu-toggle { order: 3; margin-left: 0; width: 46px; min-height: 46px; justify-content: center; border: 1px solid var(--line); border-radius: 8px; }
  .menu-toggle__label { display: none; }
  .header__right { gap: 8px; }
  .site-menu { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .site-menu__grid { grid-template-columns: 1fr; gap: 20px; padding-block: 16px 24px; }
  .site-menu__cta { justify-self: stretch; }

  .hero__title { font-size: clamp(2rem, 1rem + 5vw, 2.6rem); }
  .hero__lead { font-size: 1rem; }
  .hero__bg { height: 560px; } /* фото тянется под заголовок и текст, затемнение ровное */
  .hero__inner { padding-top: 20px; } /* плашка «Свое производство…» сразу под шапкой */
  .hero .tag { gap: 6px; padding: 5px 11px; font-size: .75rem; } /* мельче, чтобы влезло в одну строку */
  .hero .tag .ico { width: 14px; height: 14px; }
  .hero__eyebrow { margin-bottom: 12px; }
  .hero__title { margin-bottom: 12px; }
  .hero__lead { margin-bottom: 14px; font-size: .9375rem; }
  .perks { gap: 6px; margin-bottom: 16px; }
  .perk { align-items: flex-start; min-height: 0; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: .8125rem; }
  .perk .ico { width: 18px; height: 18px; }
  .hero__btn { min-height: 56px; font-size: 1.125rem; }
  .hero__cta { gap: 10px; }
  .hero__cta-note { font-size: .875rem; }
  /* рейтинг в одну строку: одна звезда вместо пяти */
  .proof { flex-wrap: nowrap; gap: 10px; margin-top: 16px; padding-left: 0; font-size: .8125rem; white-space: nowrap; }
  .proof__rating { gap: 6px; }
  .proof__stars svg:not(:first-child) { display: none; }
  .proof__sep { height: 14px; }
  .hero__eyebrow .tag--soft { display: none; }
  .lead-form__actions .btn { white-space: normal; }
  .hero__cta { justify-items: stretch; }
  .hero__btn { padding-inline: 20px; }
  .lead-form__fields, .lead-form__actions { grid-template-columns: minmax(0, 1fr); }
  .lead-modal { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .lead-modal .lead-form { padding: 22px 18px 18px; }
  .lead-modal .lead-form__head { gap: 10px; margin-bottom: 14px; }
  .lead-modal .lead-form__title { padding-right: 10px; font-size: 1.25rem; } /* зазор до крестика */
  .lead-form__gift-list li { padding: 6px 10px 6px 6px; }

  .offer { padding: 20px; }
  .offer__photo { margin: -12px -12px 14px; }
  .offer__title { margin-top: 10px; font-size: 1rem; }
  .offer__now { font-size: 2rem; }
  .offer__gift { margin: 12px 0 16px; padding-top: 12px; font-size: .875rem; }
  .offer__btn { min-height: 46px; font-size: 1rem; }
}

@media (max-width: 360px) {
  .perks { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Страница «Спасибо» ---------- */
.thanks { position: relative; isolation: isolate; padding: 72px 0 96px; background: #1E1813; }
main:has(.thanks) + .footer { margin-top: 0; } /* фото доходит до подвала без белой полосы */
.thanks__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.thanks__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.thanks__bg::after { content: ""; position: absolute; inset: 0; background: rgba(24, 18, 12, .55); } /* затемнение, чтобы карточка читалась */
.thanks__card {
  display: grid; justify-items: center; gap: 0; max-width: 720px; margin: 0; padding: 48px 40px; /* карточка у левого края, справа видно фото кухни */
  border-radius: 12px; background: #fff; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.thanks__ico { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 20px; border-radius: 50%; background: #E3F5EA; color: var(--ok); }
.thanks__ico .ico { width: 34px; height: 34px; stroke-width: 2.6; }
.thanks__title { margin: 0 0 12px; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.thanks__text { margin: 0 0 28px; max-width: 34em; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.thanks__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 0 0 28px; padding: 0; list-style: none; text-align: left; }
.thanks__steps li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 10px; background: var(--surface); font-size: .875rem; font-weight: 500; line-height: 1.35; }
.thanks__steps b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-hover); font-size: .875rem; }
.thanks__home { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-size: .9375rem; font-weight: 600; color: var(--accent-hover); text-decoration: none; }
.thanks__home .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.thanks__home:hover .ico { transform: translateX(3px); }
@media (max-width: 720px) {
  .thanks { padding: 32px 0 40px; }
  .thanks__card { padding: 32px 16px 28px; }
  .thanks__steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Страница 404: ноль — сковородка с подпрыгивающей яичницей ---------- */
.e404 { padding: 32px 0 96px; }
.e404__panel { display: grid; justify-items: center; padding: 56px 40px 60px; border-radius: 12px; background: var(--surface); text-align: center; overflow: hidden; }
.e404__num { display: flex; align-items: center; gap: 4px; margin-bottom: 24px; font-size: clamp(6rem, 4rem + 9vw, 11rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--text); }
.e404__num span { animation: e404-wobble 3.2s var(--ease) infinite; }
.e404__num span:last-child { animation-delay: .25s; }
.e404__pan { width: 1.5em; height: auto; overflow: visible; }
.e404__panbody { transform-box: fill-box; transform-origin: 30% 50%; animation: e404-toss 1.6s var(--ease) infinite; }
.e404__egg { transform-box: fill-box; transform-origin: 50% 50%; animation: e404-flip 1.6s var(--ease) infinite; }
.e404__shadow { fill: rgba(0, 0, 0, .1); transform-box: fill-box; transform-origin: 50% 50%; animation: e404-shadow 1.6s var(--ease) infinite; }
@keyframes e404-toss { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(-8deg); } 24% { transform: rotate(3deg); } 36% { transform: rotate(0); } }
@keyframes e404-flip {
  0%, 10% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-70px) rotate(180deg); }
  80%, 100% { transform: translateY(0) rotate(360deg); }
}
@keyframes e404-shadow { 0%, 10%, 80%, 100% { transform: scaleX(1); opacity: 1; } 45% { transform: scaleX(.6); opacity: .5; } }
@keyframes e404-wobble { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-6px) rotate(-3deg); } 90% { transform: translateY(0) rotate(2deg); } }
.e404__title { margin: 0 0 12px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.e404__text { margin: 0 0 28px; max-width: 32em; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.e404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.e404__btn { gap: 10px; min-height: 52px; padding: 0 26px; font-size: .9375rem; }
.e404__btn .ico { width: 18px; height: 18px; }
.e404__btn--ghost { border: 1px solid var(--line); background: #fff; color: var(--text); }
.e404__btn--ghost:hover { border-color: var(--accent); color: var(--accent-hover); }
@media (max-width: 720px) {
  .e404 { padding: 16px 0 56px; }
  .e404__panel { padding: 36px 16px 32px; }
  .e404__actions { display: grid; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .e404__num span, .e404__panbody, .e404__egg, .e404__shadow { animation: none; }
}

/* ---------- Политика конфиденциальности ---------- */
.legal { padding: 24px 0 96px; }
.legal__doc { max-width: 820px; }
.legal__title { margin: 16px 0 6px; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.legal__date { margin: 0 0 32px; font-size: .875rem; color: var(--muted); }
.legal__doc h2 { margin: 32px 0 10px; font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.legal__doc p, .legal__doc li { font-size: .9375rem; line-height: 1.65; color: #3D3A37; }
.legal__doc p { margin: 0 0 10px; }
.legal__doc ul { margin: 0 0 12px; padding-left: 22px; }
.legal__doc li { margin-bottom: 4px; }
.legal__doc a { color: var(--accent-hover); text-underline-offset: 2px; }
@media (max-width: 720px) {
  .legal { padding: 12px 0 56px; }
  .legal__date { margin-bottom: 20px; }
  .legal__doc h2 { margin-top: 24px; font-size: 1.0625rem; }
}

/* ---------- Плашка «Сделать расчёт» слева внизу ---------- */
.calcbar { position: fixed; left: 24px; bottom: 24px; z-index: 89; animation: calcbar-in .5s var(--ease) both; }
.calcbar[hidden] { display: none; }
@keyframes calcbar-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.calcbar__link {
  display: flex; align-items: center; gap: 12px; padding: 12px 44px 12px 14px; border-radius: 10px;
  background: #336099; color: #fff; text-decoration: none; box-shadow: 0 14px 34px rgba(51, 96, 153, .35); /* синий из логотипа EVI */
  transition: background-color .2s, transform .2s var(--ease);
}
.calcbar__link:hover { background: #2A5185; transform: translateY(-2px); }
.calcbar__ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: rgba(255, 255, 255, .18); }
.calcbar__ico .ico { width: 22px; height: 22px; stroke-width: 1.8; }
.calcbar__text { display: grid; gap: 2px; line-height: 1.2; }
.calcbar__label { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.calcbar__text b { font-size: .9375rem; font-weight: 700; }
.calcbar__close {
  position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 50%; background: #fff; color: var(--text); cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.calcbar__close .ico { width: 12px; height: 12px; stroke-width: 3; }
.calcbar__close:hover { color: var(--accent-hover); }
@media (max-width: 720px) {
  /* справа внизу кнопка мессенджеров — плашка занимает место слева от неё */
  .calcbar { left: 14px; bottom: 14px; max-width: calc(100vw - 28px - 70px); }
  .calcbar__link { gap: 10px; padding: 10px 32px 10px 10px; }
  .calcbar__ico { width: 34px; height: 34px; }
  .calcbar__text b { font-size: .8125rem; }
  .calcbar__label { font-size: .625rem; }
  /* пока видна плашка, у кнопки мессенджеров не выезжает надпись — иначе они наедут друг на друга */
  .calcbar:not([hidden]) ~ .chatfab .chatfab__text { max-width: 0; opacity: 0; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .calcbar { animation: none; } }

/* ---------- Окно заявки: куда прислать расчёт ---------- */
.contact-way { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-way__label { margin-bottom: 8px; padding: 0; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.contact-way__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.contact-way__opt { position: relative; cursor: pointer; }
.contact-way__opt input { position: absolute; opacity: 0; pointer-events: none; }
.contact-way__opt span {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font-size: .875rem; font-weight: 600; color: var(--text);
  transition: border-color .2s, background-color .2s, color .2s;
}
.contact-way__opt .ico { flex: none; width: 18px; height: 18px; color: var(--accent-hover); }
.contact-way__opt--tg .ico, .contact-way__opt--max .ico { fill: currentColor; stroke: none; }
.contact-way__opt--tg .ico { color: var(--tg); }
.contact-way__opt--max .ico { width: 15px; height: 15px; color: #5A5CF0; }
.contact-way__opt:hover span { border-color: #D8D2CA; }
.contact-way__opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.contact-way__opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 380px) { .contact-way__opt span { gap: 4px; padding: 0 4px; font-size: .8125rem; } }
