/* holodmaster78.ru — редизайн 2026. Идея: страница как дверца современного холодильника:
   холодная эмаль, инеевые панели, графит и фирменная бирюза. Подпись — LED-дисплей температуры. */

/* ---------- Шрифты (OFL, см. fonts/OFL-*.txt) ---------- */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2212, U+2215; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/golos-text-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/golos-text-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+20A0-20AB, U+20AD-20C0; }

/* ---------- Токены ---------- */
:root {
  --enamel: #F4F7F7;      /* эмаль — фон страницы */
  --frost: #E2EEEE;       /* иней — панели */
  --frost-deep: #CFE3E3;
  --graphite: #0E2426;    /* графит — текст и дисплей */
  --ink-2: #435A5C;       /* вторичный текст */
  --teal: #00A4A2;        /* фирменная бирюза — акценты, иконки */
  --teal-deep: #00716F;   /* кнопки и ссылки (AA с белым) */
  --teal-dark: #005B59;
  --ice: #7EF2F0;         /* LED-цифры */
  --white: #FFFFFF;
  --line: rgb(14 36 38 / 0.10);

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-xl: 32px; --r-l: 24px; --r-m: 16px; --r-s: 12px;
  --shadow: 0 1px 2px rgb(14 36 38 / 0.05), 0 18px 40px -20px rgb(14 36 38 / 0.28);
  --shadow-magnet: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 2px 3px rgb(14 36 38 / 0.10), 0 14px 26px -14px rgb(14 36 38 / 0.45);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--enamel); color: var(--graphite);
  font: 400 17px/1.55 var(--font-text); font-feature-settings: "kern";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-deep); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.h-display {
  font-family: var(--font-display); font-weight: 650; letter-spacing: -0.03em; line-height: 1.08;
  margin: 0; text-wrap: balance;
}
.h-section { font-size: clamp(26px, 3.4vw, 42px); }
.hl { color: var(--teal); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); margin: 0; text-wrap: pretty; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 14px; cursor: pointer;
  font: 600 17px/1.2 var(--font-text); text-decoration: none; white-space: nowrap;
  background: var(--teal-deep); color: var(--white);
  box-shadow: 0 10px 24px -12px rgb(0 113 111 / 0.8);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--light { background: var(--white); color: var(--graphite); box-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.6); }
.btn--light:hover { background: var(--frost); }
.btn--ice { background: var(--ice); color: var(--graphite); box-shadow: 0 0 0 1px rgb(126 242 240 / 0.3), 0 10px 30px -10px rgb(126 242 240 / 0.55); }
.btn--ice:hover { background: #A6F7F5; }
.btn--block { width: 100%; }
.btn__icon { width: 20px; height: 20px; flex: none; }

.msgr { display: flex; gap: 10px; }
.msgr__btn {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow); transition: transform .2s ease;
}
.msgr__btn:hover { transform: translateY(-2px); }
.msgr__btn img { width: 30px; height: 30px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgb(244 247 247 / 0.82); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgb(14 36 38 / 0.5); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--graphite); flex: none; }
.logo__mark { width: 26px; height: 40px; flex: none; }
.logo__name { display: block; font: 650 16px/1.1 var(--font-display); letter-spacing: -0.02em; }
.logo__sub { display: block; font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--graphite); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { background: var(--frost); }
.header__phone { display: none; font: 600 17px/1 var(--font-text); color: var(--graphite); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header__phone:hover { color: var(--teal-deep); }
.header__cta { display: none; min-height: 46px; padding: 0 20px; font-size: 16px; }
.header__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__tools .msgr__btn { width: 42px; height: 42px; box-shadow: none; background: var(--white); border: 1px solid var(--line); }
.header__tools .msgr__btn img { width: 24px; height: 24px; }
.burger {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; padding: 0;
}
.burger svg { width: 22px; height: 22px; }

.menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 39; padding: 8px var(--gutter) 24px;
  background: var(--enamel); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgb(14 36 38 / 0.5);
  display: grid; gap: 4px;
}
.menu[hidden] { display: none; }
.menu a { padding: 14px 4px; font: 600 20px/1.2 var(--font-text); color: var(--graphite); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu .menu__phone { border: 0; color: var(--teal-deep); font-variant-numeric: tabular-nums; }

/* 1000–1199: телефон и кнопка в шапке, разделы — в меню-«бургере»; с 1200 — полная навигация */
@media (min-width: 1000px) {
  .header__phone, .header__cta { display: inline-flex; }
  .header__phone { margin-left: auto; }
  .header__tools { margin-left: 0; }
}
@media (min-width: 1200px) {
  .nav { display: inline-flex; }
  .header__phone { margin-left: 8px; }
  .header__tools, .menu { display: none !important; }
}
/* Узкие телефоны: мессенджеры есть в первом экране, в шапке оставляем место кнопке меню */
@media (max-width: 509px) {
  .header__inner { gap: 12px; }
  .header__tools .msgr__btn { display: none; }
}

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0 0; }
.section__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(24px, 3.4vw, 40px); max-width: 760px; }
.anchor { position: relative; top: calc(-1 * var(--header-h)); }

/* ---------- Первый экран ---------- */
.hero { padding: clamp(20px, 4vw, 48px) 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.hero__title { font-size: clamp(29px, 3.9vw, 54px); line-height: 1.06; text-wrap: initial; }
.hero__text { display: grid; gap: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
@media (max-width: 479px) {
  .hero__actions { gap: 8px; flex-wrap: nowrap; }
  .hero__actions > .btn { min-width: 0; min-height: 48px; padding-inline: 14px; font-size: 16px; white-space: normal; text-align: center; }
  .hero__actions .msgr { gap: 6px; flex: none; }
  .hero__actions .msgr__btn { width: 44px; height: 44px; }
  .hero__actions .msgr__btn img { width: 26px; height: 26px; }
}
@media (max-width: 389px) {
  .hero__actions > .btn { padding-inline: 8px; font-size: 15px; }
}

/* Дверца холодильника */
.door {
  position: relative; isolation: isolate;
  border-radius: 36px;
  background:
    radial-gradient(120% 70% at 85% 0%, rgb(255 255 255 / 0.9), transparent 60%),
    linear-gradient(165deg, #EDF5F5 0%, #D9EAEA 55%, #C9E0E0 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.7), inset 0 -40px 60px -40px rgb(14 36 38 / 0.18), var(--shadow);
}
.door::before { /* ручка */
  content: ""; position: absolute; left: 22px; top: 18%; width: 7px; height: 34%; border-radius: 6px;
  background: linear-gradient(90deg, #9DB5B5, #F4FAFA 45%, #A9C1C1);
  box-shadow: 0 6px 10px -6px rgb(14 36 38 / 0.5);
}

/* Магниты на дверце */
.magnet {
  position: absolute; z-index: 2; max-width: 160px; padding: 12px 16px; border-radius: 16px;
  background: var(--white); box-shadow: var(--shadow-magnet);
  font: 600 14.5px/1.3 var(--font-text); color: var(--graphite);
}
.magnet b { color: var(--teal-deep); font-weight: 700; }

/* ---------- LED-дисплей (подпись сайта) ---------- */
.led {
  position: absolute; z-index: 2; top: 7%; left: 8%;
  display: grid; gap: 10px; padding: 14px 16px 12px; border-radius: 16px;
  background: linear-gradient(180deg, #13302F, #0B1C1D);
  box-shadow: inset 0 0 0 1px rgb(126 242 240 / 0.12), inset 0 10px 18px -12px rgb(126 242 240 / 0.25), 0 12px 24px -12px rgb(0 0 0 / 0.55);
}
.led__row { display: flex; align-items: center; gap: 8px; }
.led__icon { width: 18px; height: 18px; color: var(--ice); opacity: .75; flex: none; }
.led__digits { display: flex; gap: 3px; height: 34px; }
.led__digits svg { height: 100%; width: auto; overflow: visible; }
.seg { fill: var(--ice); opacity: .07; transition: opacity .12s linear; }
.seg.on { opacity: 1; filter: drop-shadow(0 0 3px rgb(126 242 240 / 0.8)); }
.led__unit { height: 20px; align-self: flex-start; margin-top: 2px; }
.led__unit svg { height: 100%; width: auto; }

/* ---------- Композиция первого экрана (все размеры) ----------
   Мастер всегда масштабируется от высоты дверцы (90%) и стоит справа — голова целиком внутри.
   Дисплей и магниты — колонкой слева; на телефонах магниты под дверцей, чтобы не лежать на мастере. */
.door--hero { width: 100%; }
.door--hero::after { /* граница камер: дверца читается как двухкамерный холодильник */
  content: ""; position: absolute; left: 0; right: 0; top: 63%; height: 3px; z-index: 0;
  background: linear-gradient(180deg, rgb(14 36 38 / 0.14), rgb(255 255 255 / 0.85));
}
.door__photo {
  position: absolute; z-index: 1; bottom: 0; right: 6%;
  width: auto; height: 90%; max-width: 66%; object-fit: contain; object-position: right bottom;
}
.magnet--a { top: 31%; left: 8%; transform: rotate(-2deg); }
.magnet--b { bottom: 6%; left: 8%; transform: rotate(1.5deg); }

/* Телефоны */
@media (max-width: 559px) {
  .door--hero { aspect-ratio: 1 / 1.18; margin-bottom: 86px; }
  .door__photo { right: 4%; max-width: 76%; }
  .led { top: 5%; left: 7%; padding: 10px 12px 9px; gap: 7px; }
  .led__digits { height: 26px; }
  .led__unit { height: 15px; }
  .magnet { top: calc(100% + 14px); bottom: auto; max-width: none; width: calc(50% - 6px); padding: 11px 13px; font-size: 13.5px; }
  .magnet--a { left: 0; transform: rotate(-1.5deg); }
  .magnet--b { left: auto; right: 0; transform: rotate(1.5deg); }
}
@media (max-width: 359px) {
  .hero__title { font-size: 27px; }
  .led { padding: 8px 10px 7px; }
  .led__digits { height: 22px; }
  .led__unit { height: 13px; }
  .magnet { font-size: 12.5px; padding: 10px 11px; }
}
/* Планшеты: одна колонка, дверца по центру в пропорциях холодильника */
@media (min-width: 560px) and (max-width: 1023px) {
  .door--hero { max-width: 600px; margin: 0 auto; aspect-ratio: 1 / 1.05; }
}
/* Десктоп: две колонки, высота дверцы от высоты окна */
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero__text { padding-bottom: 40px; }
  .door--hero { height: clamp(540px, 74vh, 640px); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .door__photo { max-width: 64%; right: 5%; }
  .led { padding: 10px 12px 9px; gap: 7px; }
  .led__digits { height: 26px; }
  .led__unit { height: 15px; }
  .magnet { max-width: 136px; font-size: 13px; padding: 10px 12px; }
}

/* ---------- Поломки и цены ---------- */
.faults { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .faults { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .faults { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.fault {
  display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 18px;
  background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow);
}
.fault__top { display: flex; align-items: center; gap: 14px; }
.fault__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: var(--frost); color: var(--teal-deep);
}
.fault__icon svg { width: 26px; height: 26px; }
.fault__title { margin: 0; font: 650 19px/1.2 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prices li { display: flex; align-items: baseline; gap: 8px; font-size: 16px; }
.prices li::after { content: none; }
.prices__name { min-width: 0; overflow-wrap: anywhere; }
.prices__dots { flex: 1; min-width: 12px; border-bottom: 2px dotted rgb(14 36 38 / 0.22); transform: translateY(-4px); }
.prices__val { flex: none; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 359px) {
  .fault { padding-inline: 16px; }
  .fault__top { gap: 10px; }
  .fault__icon { width: 42px; height: 42px; }
  .fault__title { font-size: 17px; }
}
.fault__link {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 0 2px; font-weight: 600; text-decoration: none; color: var(--teal-deep);
}
.fault__link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.fault__link:hover svg { transform: translateX(3px); }

/* ---------- Панель-баннер (диагностика, вызов) ---------- */
.panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; border-radius: var(--r-xl); overflow: visible;
  background: linear-gradient(160deg, #EAF4F4, #D6E8E8);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.7), var(--shadow);
}
.panel__text { display: grid; gap: 18px; align-content: center; padding: clamp(28px, 5vw, 64px); padding-bottom: 8px; }
.panel__media { position: relative; min-height: 300px; }
.panel__media img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(92%, 440px); border-bottom-left-radius: var(--r-xl); border-bottom-right-radius: var(--r-xl); }
@media (min-width: 900px) {
  .panel { grid-template-columns: 1.1fr 0.9fr; min-height: 440px; }
  .panel__text { padding-bottom: clamp(28px, 5vw, 64px); }
  .panel__media { min-height: 0; }
  .panel__media img { width: min(100%, 460px); top: auto; }
  .panel--flip .panel__media { order: -1; }
}
.panel--vyzov .panel__media img { width: min(100%, 520px); }
@media (max-width: 899px) {
  /* на мобильных фото в потоке: высота панели = высота фото, ничего не наезжает на кнопки */
  .panel__media { min-height: 0; padding-top: 8px; }
  .panel__media img { position: static; transform: none; margin: 0 auto; width: min(88%, 380px); }
  .panel--vyzov .panel__media img { width: min(96%, 460px); }
  .dark__media { min-height: 0; }
  .dark__media img { position: relative; left: auto; bottom: -2px; transform: none; margin: 0 auto; }
}
@media (max-width: 359px) {
  .panel__text { padding-inline: 20px; }
  .panel__text .h-section { font-size: 24px; }
}

/* ---------- Выгоды (bento) ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(210px, auto); gap: 18px; }
  .bento--benefits .card--price { grid-column: 1; grid-row: 1 / span 2; }
  .bento--benefits .card--hidden-fees { grid-column: 1; grid-row: 3; }
  .bento--benefits .card--sameday { grid-column: 2; grid-row: 1; }
  .bento--benefits .card--parts { grid-column: 2; grid-row: 2 / span 2; }
  .bento--benefits .card--visit { grid-column: 3; grid-row: 1 / span 3; }
}
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: 210px; padding: 24px; border-radius: var(--r-l); box-shadow: var(--shadow);
  background: var(--white); color: var(--graphite);
}
.card__title { margin: 0; font: 650 clamp(19px, 1.6vw, 22px)/1.2 var(--font-display); letter-spacing: -0.02em; }
.card__text { margin: 0; font-size: 16px; line-height: 1.5; color: inherit; opacity: .86; }
.card__note { margin: 0; font-size: 14px; opacity: .8; }
.card .btn { align-self: flex-start; margin-top: 8px; }
.card--teal { background: var(--teal-deep); color: var(--white); }
.card--frost { background: var(--frost); }
.card--photo { color: var(--white); min-height: 300px; background: var(--graphite); }
.card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.card--photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgb(14 36 38 / 0.05) 0%, rgb(14 36 38 / 0.45) 38%, rgb(14 36 38 / 0.92) 78%, rgb(14 36 38 / 0.96) 100%); }
.card--photo .card__title, .card--photo .card__text, .card--photo .card__note { text-shadow: 0 1px 12px rgb(0 0 0 / 0.35); }
@media (max-width: 699px) {
  .card--photo { min-height: 380px; }
  .card:not(.card--photo), .bento--facts .card:not(.card--photo) { min-height: 0; }
}
.card--photo > :not(img) { position: relative; z-index: 1; }

/* ---------- Квиз-баннер (тёмный) ---------- */
.dark {
  position: relative; display: grid; border-radius: var(--r-xl); overflow: hidden; color: var(--white);
  background: radial-gradient(90% 90% at 80% 60%, #16413F 0%, #0E2426 60%);
  box-shadow: var(--shadow);
}
.dark .lead { color: rgb(255 255 255 / 0.78); }
.dark__text { display: grid; gap: 18px; align-content: center; padding: clamp(28px, 5vw, 64px); }
.dark__media { position: relative; min-height: 320px; }
.dark__media::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 70%; height: 60%; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(126 242 240 / 0.35), transparent); filter: blur(10px); }
.dark__media img { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); width: min(62%, 250px); }
@media (min-width: 900px) { .dark { grid-template-columns: 1.15fr 0.85fr; min-height: 460px; } .dark__media img { width: min(72%, 300px); } }

/* ---------- Факты о мастере ---------- */
.bento--facts .card { min-height: 240px; }
@media (min-width: 1000px) {
  .bento--facts { grid-template-columns: 1.1fr 1fr; grid-auto-rows: minmax(240px, auto); }
  .bento--facts .card--exp { grid-column: 1; grid-row: 1 / span 2; }
  .bento--facts .card--brands { grid-column: 2; grid-row: 1; }
  .bento--facts .card--edu { grid-column: 1; grid-row: 3; }
  .bento--facts .card--warranty { grid-column: 2; grid-row: 2 / span 2; }
}
.card--brands { justify-content: flex-start; }
.brands { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.brands li { padding: 5px 10px; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 500; line-height: 1.3; }

/* ---------- Подвал ---------- */
.footer { margin-top: clamp(56px, 8vw, 104px); padding: 40px 0 120px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.footer__grid { display: grid; gap: 24px; }
.footer p { margin: 0; }
.footer a { color: var(--ink-2); }
.footer__phone { font: 600 20px/1 var(--font-text); color: var(--graphite) !important; text-decoration: none; font-variant-numeric: tabular-nums; }
.footer__contact { display: grid; align-content: start; gap: 10px; }
.footer__messenger { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
@media (min-width: 900px) { .footer { padding-bottom: 48px; } .footer__grid { grid-template-columns: 1fr 1fr auto; align-items: start; } }

/* ---------- Нижняя панель звонка (мобильные) ---------- */
.callbar {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; gap: 8px; padding: 8px; border-radius: 22px;
  background: rgb(14 36 38 / 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.6);
  transform: translateY(0); transition: transform .3s ease, opacity .3s ease;
}
.callbar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.callbar .btn { flex: 1; min-height: 52px; font-variant-numeric: tabular-nums; }
.callbar__label { display: none; }
.callbar .msgr__btn { width: 52px; height: 52px; box-shadow: none; }
@media (max-width: 479px) {
  .callbar { gap: 6px; align-items: center; }
  .callbar .btn { min-height: 48px; gap: 6px; padding-inline: 8px; font-size: 15px; }
  .callbar .msgr__btn { width: 44px; height: 44px; }
  .callbar .msgr__btn img { width: 26px; height: 26px; }
}
@media (max-width: 389px) {
  .callbar .btn { padding-inline: 6px; font-size: 14px; }
  .callbar__number { display: none; }
  .callbar__label { display: inline; }
}
@media (min-width: 1000px) { .callbar { display: none; } }

/* ---------- Диалоги ---------- */
.dialog {
  width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 28px;
  background: var(--white); color: var(--graphite); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.55);
}
.dialog::backdrop { background: rgb(14 36 38 / 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog[open] { animation: dlg-in .25s ease-out; overscroll-behavior: contain; }
.dialog [hidden] { display: none !important; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dialog__body {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 16px; padding: 28px clamp(16px, 5vw, 28px);
}
.dialog__close {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--frost); cursor: pointer;
}
.dialog__close svg { width: 18px; height: 18px; }
.dialog__title {
  margin: 0; padding-right: 44px; font: 650 clamp(18px, 4.8vw, 24px)/1.2 var(--font-display);
  letter-spacing: -0.02em;
}
.dialog__descr { margin: 0; color: var(--ink-2); font-size: 16px; }
.dialog .form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.dialog .btn {
  min-width: 0; min-height: 48px; padding: 8px clamp(12px, 4vw, 20px);
  font-size: 16px; white-space: normal; text-align: center;
}
.field { display: grid; gap: 8px; }
.field__label { font-weight: 600; font-size: 16px; }
.input {
  width: 100%; min-height: 58px; padding: 0 18px; border-radius: 14px; border: 1.5px solid rgb(14 36 38 / 0.18);
  background: var(--enamel); font: 500 19px/1 var(--font-text); color: var(--graphite); font-variant-numeric: tabular-nums;
  transition: border-color .15s ease, background-color .15s ease;
}
.input::placeholder { color: rgb(14 36 38 / 0.4); }
.input:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgb(0 164 162 / 0.15); }
.input[aria-invalid="true"] { border-color: #C2413A; }
.field__error { margin: 0; color: #B3261E; font-size: 14px; font-weight: 500; }
.form__error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FCEDEC; color: #8C1D18; font-size: 15px; }
.form__error a { color: inherit; font-weight: 700; }
.consent { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); text-align: center; }
.consent a { color: inherit; }
.success { display: grid; justify-items: center; gap: 14px; padding: 12px 0 4px; text-align: center; }
.success__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--frost); color: var(--teal-deep); }
.success__icon svg { width: 30px; height: 30px; }
.success__text { margin: 0; font: 600 19px/1.4 var(--font-text); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Шаги квиза */
.steps { display: flex; gap: 6px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--frost); transition: background-color .2s ease; }
.steps span.is-done { background: var(--teal); }
.quiz__nav { display: flex; gap: 10px; }
.quiz__nav .btn { flex: 1; }
.quiz__nav [data-prev] { flex: 0 1 auto; }
.btn--ghost { background: var(--frost); color: var(--graphite); box-shadow: none; }
.btn--ghost:hover { background: var(--frost-deep); }

/* ---------- Простые страницы (политика, 404) ---------- */
.doc { max-width: 820px; padding: clamp(32px, 5vw, 64px) 0; }
.doc h1 { font: 650 clamp(26px, 3.4vw, 38px)/1.15 var(--font-display); letter-spacing: -0.02em; margin: 0 0 28px; }
.doc h2 { font: 650 20px/1.3 var(--font-display); letter-spacing: -0.01em; margin: 36px 0 12px; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: #1F3A3C; }
.doc p { margin: 0 0 10px; }

/* ---------- Десктоп (от 900px): композиция первого экрана и панелей ----------
   Фото масштабируются от высоты дверцы/панели, а не от ширины: мастер и холодильник всегда
   целиком внутри, с запасом сверху. Дисплей и магниты — колонкой слева, мастер — справа. */
@media (min-width: 900px) {
  .panel .panel__media img, .panel--vyzov .panel__media img {
    top: auto; bottom: 0; left: 50%; transform: translateX(-50%);
    width: auto; height: calc(100% - 40px); max-width: 100%;
    object-fit: contain; object-position: center bottom;
  }
}

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
