/* ============================================================
   Банные печи HARD Керамика «Панорама» — лендинг
   Фирменный стиль ПО «Сталь-Мастер» (гайдлайн: цвета 02, шрифт 03)
   + тёплый керамический акцент серии
   ============================================================ */

/* fonts.css подключён в <head> отдельным <link> — через @import браузер
   узнавал бы о шрифтах только после загрузки этого файла (лишний рейс). */

:root {
  --ink:      #101820;   /* Pantone Black C — текст и тёмные плашки */
  --red:      #C8212C;   /* Pantone 2035 C  */
  --white:    #FFFFFF;

  /* светлая («белая») серия — палитра один в один с баннерами:
     Баннеры\src\banner-white.css, страницы rada-white-* */
  --paper:      #ffffff;
  --paper-alt:  #f6f7f8;   /* чередующаяся секция */
  --text:       #101820;   /* заголовки и сильный текст */
  --text-2:     #2c343b;   /* основной абзац */
  --muted:      #6a7076;   /* подписи, мелочь */
  --line:       #e3e6e9;
  --line-hi:    #c8cdd2;   /* граница интерактивных элементов */
  --shadow:     0 14px 34px rgba(16, 24, 32, .07);
  --shadow-hi:  0 22px 46px rgba(16, 24, 32, .12);

  --ceramic:      #85673d;  /* керамика-травертин, читаемый на белом (5.2:1) */
  --ceramic-soft: #d9c3a1;  /* он же на тёмном — герой и подвал */

  --ink-deep: #080c11;   /* подвал */

  --wrap: 1280px;
  --pad: clamp(20px, 5vw, 64px);
  --sec-y: clamp(72px, 10vw, 140px);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--paper);
  color: var(--text);
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* видимый фокус для клавиатуры (мышью не мешает) */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: 12px 18px; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- типографика ---------- */
.h-xl, .h-lg, h3 {
  text-transform: uppercase; letter-spacing: -.015em; line-height: 1.02; font-weight: 800;
  text-wrap: balance;   /* не оставлять одно слово на последней строке */
}
/* 14.10: нижняя граница меньше — на узких телефонах длинные слова не упираются в край */
.h-xl { font-size: clamp(25px, 4.4vw + 12px, 74px); }
.h-lg { font-size: clamp(25px, 3.6vw + 12px, 56px); }
h3    { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: .01em; line-height: 1.15; }

p { color: var(--text-2); text-wrap: pretty; }
/* цифры моделей и выносов — моноширинные, чтобы столбцы не «плясали» */
.hero__models, .mcol__rows dt, .mcol__note, .var h3 { font-variant-numeric: tabular-nums; }
.lead { font-size: clamp(17px, 1.6vw, 23px); line-height: 1.55; color: var(--text-2); font-weight: 400; }
strong { color: var(--text); font-weight: 700; }
.red { color: var(--red); }
.ceramic { color: var(--ceramic); }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot { color: var(--red); }

.rule {
  display: block; width: 84px; height: 4px; background: var(--red);
  margin: 22px 0 26px; transform-origin: left center;
}

.badge {
  display: inline-block; background: var(--red); color: var(--white);
  font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  padding: 9px 18px;
  /* межбуквенный интервал висит и после последней буквы — компенсируем отступом */
  text-indent: .2em;
}

/* ---------- кнопки ---------- */
/* 14.10: как на сайте (DESIGN.md): углы 4, высота L 52 / M 44, разрядка .1em */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; border-radius: 4px; line-height: 1.2; text-align: center;
  background: var(--red); color: var(--white);
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 0 28px; text-decoration: none; border: 2px solid var(--red);
  text-indent: .1em;   /* оптическая компенсация трекинга по центру */
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
/* на белом «выворотка» кнопки в прозрачную читалась бы слабо — просто темнеет */
.btn:hover { background: #a81b24; border-color: #a81b24; color: var(--white); transform: translateY(-2px); }
/* нажатие: кнопка «проседает» под пальцем */
.btn:active { transform: translateY(0) scale(.985); transition-duration: .06s; }
/* вторая кнопка — тёмная плашка из баннеров */
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
/* поверх фотографии первого экрана обе кнопки живут на тёмном */
.hero .btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.hero .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 12px; }
/* 22.10 аудит (вариант Б): большая кнопка — как главная кнопка сайта (L 52, шрифт 13), шире только полями */
.btn--lg { min-height: 52px; padding: 0 36px; font-size: 13px; }

/* ---------- шапка ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px 0;
  background: rgba(16, 24, 32, 0);
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
/* содержимое шапки выравниваем по той же сетке, что и секции,
   иначе на широком экране логотип уезжает далеко влево от заголовков */
.topbar__in {
  width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad);
  display: flex; align-items: center; gap: 24px;
}
/* над фотографией первого экрана шапка светлая по тексту,
   а прилипнув к белой странице — переворачивается в тёмную по светлому */
.topbar.stuck {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.topbar__logo { flex: 0 0 auto; display: flex; align-items: center; min-height: 44px; }
.topbar__logo img { height: 26px; width: auto; }
.topbar__nav { margin-left: auto; display: flex; gap: 26px; }
.topbar__nav a {
  position: relative;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s var(--ease);
}
.topbar.stuck .topbar__nav a { color: var(--muted); }
.topbar.stuck .topbar__nav a:hover,
.topbar.stuck .topbar__nav a[aria-current="true"] { color: var(--ink); }
/* подчёркивание раскрывается от левого края; у текущего раздела — стоит всегда */
.topbar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left center;
  transition: transform .28s var(--ease);
}
.topbar__nav a:hover { color: var(--white); }
.topbar__nav a:hover::after { transform: scaleX(1); }
.topbar__nav a[aria-current="true"] { color: var(--white); }
.topbar__nav a[aria-current="true"]::after { transform: scaleX(1); }
/* 14.10: знак «Сталь-Мастер» рядом с HARD — ведёт на главную сайта */
.topbar__sm { flex: 0 0 auto; display: flex; align-items: center; min-height: 44px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .25); margin-left: -6px; }
.topbar.stuck .topbar__sm { border-left-color: var(--line-hi); }
.topbar__sm img { height: 28px; width: auto; }
/* 14.10: выход «купить» в шапке — телефон завода, каталог, «Где купить» */
.topbar__buy { display: flex; align-items: center; gap: 10px; margin-left: 18px; }
.topbar .btn { white-space: nowrap; }
.tb-tel {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 8px; border-radius: 4px;
  font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--white); text-decoration: none; white-space: nowrap;
  transition: color .2s var(--ease);
}
.tb-tel svg { flex: 0 0 auto; color: var(--red); }
.topbar.stuck .tb-tel { color: var(--ink); }
.tb-tel:hover { color: var(--ceramic-soft); }
.topbar.stuck .tb-tel:hover { color: var(--ceramic); }
/* над фото — светлая рамка, на белой прилипшей шапке — тёмная */
.topbar .btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.topbar .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.topbar.stuck .btn--ghost { border-color: var(--ink); color: var(--ink); }
.topbar.stuck .btn--ghost:hover { background: var(--ink); color: var(--white); }
@media (max-width: 80em) { .topbar__nav { display: none; } .topbar__buy { margin-left: auto; } }
@media (max-width: 56.25em) { .topbar__sm { display: none; } }
@media (max-width: 47.5em) {
  .topbar__in { gap: 12px; }
  .tb-cat { display: none; }
  /* на телефоне номер прячется в кнопку-трубку 44×44 */
  .tb-tel { width: 44px; justify-content: center; padding: 0; border: 1px solid rgba(255, 255, 255, .45); }
  .topbar.stuck .tb-tel { border-color: var(--line-hi); }
  .tb-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 23.75em) { .topbar__buy { gap: 8px; } .topbar__buy .btn { padding: 0 12px; font-size: 11px; letter-spacing: .06em; } }

/* ---------- орнамент ----------
   Картинка непрозрачная и тёмная. На белом её выворачиваем и множим —
   тот же приём, что в белой серии баннеров: остаётся светло-серый водяной знак. */
.ornament {
  position: absolute; top: 0; bottom: 0; width: min(560px, 40vw);
  background: url("img/ornament.png") no-repeat center / cover;
  /* В исходнике узор светлее своего тёмного фона, поэтому сначала разгоняем
     яркость (штрихи уходят вверх, фон остаётся внизу), и только потом
     выворачиваем: получаем чёткий серый узор по чистому белому, а не серую пелену. */
  filter: grayscale(1) brightness(2.1) invert(1);
  mix-blend-mode: multiply;
  /* плотность как в белой серии баннеров: штрихи узора ≈ 180–190 по белому */
  opacity: .62; pointer-events: none;
  /* эллипс от своего края: узор растворяется и вбок, и вверх-вниз,
     иначе на белом видно, где полоса обрывается по краю секции */
  /* радиусы ровно по блоку (100% ширины и 50% высоты от его края):
     прозрачность доходит до нуля точно на дальней кромке, без обреза */
  -webkit-mask-image: radial-gradient(ellipse 100% 50% at 0% 50%, #000 0%, rgba(0,0,0,.95) 30%, rgba(0,0,0,.55) 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 100% 50% at 0% 50%, #000 0%, rgba(0,0,0,.95) 30%, rgba(0,0,0,.55) 62%, transparent 100%);
}
.ornament--left  { left: 0; }
.ornament--right { right: 0; transform: scaleX(-1); }
/* перевёрнутые варианты — чтобы одна и та же полоса не повторялась подряд */
.ornament--left.ornament--v  { transform: scaleY(-1); }
.ornament--right.ornament--v { transform: scale(-1, -1); }
@media (max-width: 700px) { .ornament { display: none; } }

/* ---------- подложка под печью ----------
   На тёмном это был «студийный свет», на белом — наоборот мягкая тень,
   которая не даёт печи висеть в пустоте (.glow из баннеров). */
.spot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 118%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(16,24,32,.075) 0%, rgba(16,24,32,.035) 45%, rgba(16,24,32,0) 74%);
}
/* тёплый оттенок — под керамику */
.spot--warm {
  background: radial-gradient(closest-side, rgba(143,114,72,.10) 0%, rgba(143,114,72,.045) 45%, rgba(143,114,72,0) 74%);
}

/* ---------- зерно ----------
   Чуть заметная фактура поверх страницы: убирает «пластиковую» ровность
   больших заливок. На светлом фоне работает через multiply. Клики не ловит. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ============================================================
   1 · Первый экран
   ============================================================ */
.hero { position: relative; }
.hero__stick {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
}
/* Когда включён покадровый ролик, секция выше экрана, а сам экран «липнет»:
   пока листаем, ковш подаёт воду и из каменки вырывается пар.
   Класс ставит JS — без ролика высота обычная. */
.hero--scrub { height: 300vh; }
.hero--scrub .hero__stick { position: sticky; top: 0; height: 100svh; }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* сдвигаем печь вправо, чтобы слева осталось чистое поле под текст */
@media (min-width: 900px) {
  .hero__media img { transform: scale(1.16) translateX(11%); transform-origin: center; }
}
.hero__canvas { display: block; width: 100%; height: 100%; }
/* Затемняющая шторка под текст — и растворение низа кадра в белую страницу.
   Белый слой идёт первым: он должен лежать поверх тёмного, иначе гасится им. */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--paper) 0%, rgba(255,255,255,.85) 7%, rgba(255,255,255,0) 26%),
    linear-gradient(90deg, rgba(16,24,32,.93) 0%, rgba(16,24,32,.84) 34%, rgba(16,24,32,.32) 62%, rgba(16,24,32,.55) 100%);
}
/* та же сетка, что у .wrap: иначе первый экран стоит по своей оси,
   а все секции ниже — по своей (на 1920 разбег доходил до 56 px) */
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.hero__title { margin: 26px 0 0; display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); flex-wrap: wrap; }
.hero__wordmark { height: clamp(56px, 7vw, 92px); width: auto; }
.hero__name {
  font-size: clamp(34px, 5.4vw, 72px); font-weight: 300; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ceramic-soft); line-height: 1;
}
.hero__models {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  margin-top: 14px; font-size: clamp(20px, 2.6vw, 34px); font-weight: 300; color: #c5c6c6;
}
.hero__models b { font-weight: 800; color: var(--white); }
.hero__models i { color: var(--red); font-style: normal; font-weight: 800; }
.hero__sub {
  margin-left: 10px; font-size: .55em; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ceramic-soft); font-weight: 700; align-self: center;
}
/* 22.10 аудит (вариант Б): «КЕРАМИКА» и «ПАНОРАМА» светлые, а справа под ними белые камни кадра — концы слов терялись.
   Мягкая тёмная тень под буквами, цвет керамики прежний */
.hero__name, .hero__sub { text-shadow: 0 1px 2px rgba(16, 24, 32, .6), 0 2px 18px rgba(16, 24, 32, .75); }
.hero__lead { max-width: 32ch; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.55; color: #e7eaed; font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
/* 14.10: на телефоне текст идёт во всю ширину — по светлым камням и по белому растворению
   внизу кадра он читался плохо. Шторка ровнее и темнее, белое растворение — только у самого края */
@media (max-width: 700px) {
  .hero__media::after {
    background:
      linear-gradient(0deg, var(--paper) 0%, rgba(255,255,255,0) 7%),
      linear-gradient(180deg, rgba(16,24,32,.6) 0%, rgba(16,24,32,.8) 30%, rgba(16,24,32,.84) 70%, rgba(16,24,32,.7) 93%);
  }
}
@media (max-width: 30em) {
  .badge { letter-spacing: .12em; text-indent: .12em; padding: 8px 14px; }
  .hero__cta .btn { flex: 1 1 100%; }
}

.scrolldown {
  position: absolute; left: 50%; bottom: 26px; z-index: 2;
  translate: -50% 0; width: 26px; height: 42px; border: 2px solid #46505d; border-radius: 14px;
}
.scrolldown span {
  position: absolute; left: 50%; top: 8px; translate: -50% 0;
  width: 3px; height: 7px; background: var(--red); border-radius: 2px;
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { top: 8px; opacity: 1 } 70% { top: 24px; opacity: 0 } 100% { opacity: 0 } }
@media (max-width: 700px) { .scrolldown { display: none; } }

/* ============================================================
   Секции — общее
   ============================================================ */
.sec { position: relative; padding: var(--sec-y) 0; overflow: hidden; }
/* содержимое — над узором: иначе multiply узора приглушал бы кнопки и текст,
   ведь абсолютный блок рисуется поверх статичных соседей */
.sec > .wrap { position: relative; z-index: 2; }
.sec--alt { background: var(--paper-alt); }

.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px 56px; margin-top: 34px; max-width: 980px; }

.note { margin-top: 34px; font-size: 16px; }

/* ============================================================
   3 · Модельный ряд
   ============================================================ */
.matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 44px; }
.mcol {
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line); padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
/* обе карточки ведут себя одинаково: раньше «30» на ховере обводилась
   красным, а «20» — нет, и это читалось как сбой, а не как акцент */
.mcol:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: var(--shadow-hi); }
.mcol--accent { border-color: #f0cfd2; }
.mcol__tag { font-size: clamp(18px, 2vw, 22px); }
.mcol__photo { position: relative; height: clamp(260px, 30vw, 360px); margin: 14px 0 18px; }
.mcol__photo img { position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(16,24,32,.18)); }
/* лёгкое «заземление» самой кромки (исходники уже без тени и без пола) */
.mcol__photo img, .split__media img, .var img {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 98%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 98%, transparent 100%);
}
.mcol__rows { margin: 0; }
.mcol__rows > div { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.mcol__rows dt { font-size: clamp(17px, 1.8vw, 20px); font-weight: 800; color: var(--text); min-width: 90px; }
.mcol__rows dd { font-size: 16px; color: var(--muted); margin: 0; }
.mcol__note { margin-top: 14px; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--ceramic); }

/* ============================================================
   Сплиты (керамика · конвекция · каменка)
   ============================================================ */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(30px, 5vw, 70px); align-items: center; }
.split__media { position: relative; min-height: clamp(320px, 44vw, 560px); }
.split__media img { position: absolute; left: 50%; top: 50%; translate: -50% -50%; max-height: 100%; max-width: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 22px 38px rgba(16,24,32,.20)); }
/* крупный план керамики — кроп верха печи: низ кадра растворяем, как у дверцы верх */
.split__media--panels img {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 76%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 76%, transparent 100%);
}
/* Сторону задаём явно, а не порядком в разметке: в одних секциях первым
   лежит текст, в других — медиа, и один общий «переворот» на них работал
   по-разному (конвекция молча оставалась как была). */
@media (min-width: 900px) {
  .split--txt-left  .split__text  { order: 1; }
  .split--txt-left  .split__media { order: 2; }
  .split--txt-right .split__text  { order: 2; }
  .split--txt-right .split__media { order: 1; }
}
/* в одну колонку — везде одинаково: сначала печь, потом текст
   (в разметке порядок разный, и без этого секции чередовались бы) */
@media (max-width: 899px) {
  .split__media { order: 1; }
  .split__text  { order: 2; }
}
/* в колонке ~540 px кегль 56 px даёт всего 13 знаков в строку — заголовок
   рассыпался на четыре рваные строки. Наклон тот же, что у .h-lg, но потолок ниже. */
.split__text .h-lg, .pan__text .h-lg { font-size: clamp(28px, 4.4vw, 44px); }

/* Раньше строки были с красной чертой слева — такой черты нет больше нигде,
   и список выпадал из общего языка. Теперь как в .opts: тонкий разделитель сверху. */
.fits { list-style: none; margin-top: 30px; display: grid; gap: 12px; }
.fits li {
  font-size: 16px; font-weight: 700; color: var(--text);
  border-top: 1px solid var(--line); padding-top: 12px;
}
/* Каждая строка была отдельной сеткой, и вторая колонка у каждой начиналась
   на своём месте — описания стояли лесенкой. Строки садим на общие колонки
   родителя через subgrid: ширину первой задаёт самый длинный термин. */
.opts { margin-top: 30px; display: grid; gap: 12px; grid-template-columns: minmax(170px, max-content) 1fr; }
.opts > div {
  display: grid; grid-column: 1 / -1; grid-template-columns: subgrid;
  column-gap: 18px; row-gap: 8px; border-top: 1px solid var(--line); padding-top: 12px;
}
.opts dt { font-size: 16px; font-weight: 700; color: var(--text); }
.opts dd { margin: 0; font-size: 16px; color: var(--muted); }
@media (max-width: 640px) { .opts, .opts > div { grid-template-columns: 1fr; } }

/* ============================================================
   6 · Панорама — крупная дверца
   ============================================================ */
.sec--panorama { background: var(--paper-alt); }
/* дверца почти целиком накрывает узор — здесь даём ему выйти из-за неё */
.sec--panorama .ornament { width: min(760px, 54vw); }
/* высоту задаём от секции, а не шириной: на светлом фоне обрезанная
   краем секции дверца читалась как брак вёрстки, а не как «уход в тень» */
.pan__media {
  position: absolute; right: 0; bottom: 24px; height: calc(100% - 48px); width: auto; z-index: 0;
  pointer-events: none;
}
.pan__media img { height: 100%; width: auto; }
.pan__media::before {
  content: ""; position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%);
  width: 130%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200,33,44,.07) 0%, rgba(143,114,72,.06) 42%, transparent 74%);
}
.pan__media img {
  position: relative; width: 100%; filter: drop-shadow(0 26px 46px rgba(16,24,32,.22));
  /* верх — срез кадра: растворяем, чтобы не было жёсткой линии */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%);
          mask-image: linear-gradient(180deg, transparent 0, #000 16%);
}
/* узор слева — на нём и стоит текст, дверца уходит вправо */
.pan__text { max-width: 560px; }
@media (max-width: 1000px) {
  .pan__media { position: relative; right: auto; bottom: auto; height: auto; width: min(440px, 86vw); margin: 40px auto 0; }
  .pan__media img { height: auto; width: 100%; }
  .pan__text { max-width: none; }
}

/* ============================================================
   8 · Выносы
   ============================================================ */
/* ширина — как у модельного ряда: с ограничением 980 px пара карточек
   прижималась влево, а справа зияла пустота */
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 44px; }
.var {
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.var:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: var(--shadow-hi); }
.var__ltr {
  position: absolute; right: 20px; top: 10px;
  font-size: clamp(48px, 6vw, 72px); font-weight: 900; line-height: 1;
  color: var(--red); opacity: .16; letter-spacing: -.04em;
}
.var img { width: 100%; height: clamp(240px, 28vw, 340px); object-fit: contain; filter: drop-shadow(0 18px 26px rgba(16,24,32,.18)); }
.var h3 { margin: 16px 0 8px; }
.var p { font-size: 16px; }
.var .bar { display: block; margin-top: auto; padding-top: 18px; }
.var .bar i {
  display: block; height: 4px; background: #e3e6e9; position: relative; overflow: hidden;
}
.var .bar i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w);
  background: var(--red); transform-origin: left;
  transition: transform 1s var(--ease) .15s;
}

/* ============================================================
   9 · Финал
   ============================================================ */
.sec--cta { text-align: center; }
.cta { display: flex; flex-direction: column; align-items: center; }
.cta .lead { max-width: 60ch; margin-top: 22px; }
.cta .h-xl { margin-top: 24px; }
.cta__btns { margin-top: 38px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
/* 14.10: телефон завода — крупно, нажимается на телефоне */
.cta__tel { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cta__tel a {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px;
  font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: .02em; color: var(--text); text-decoration: none;
  font-variant-numeric: tabular-nums; transition: color .2s var(--ease);
}
.cta__tel a:hover { color: var(--red); }
.cta__tel svg { color: var(--red); flex: 0 0 auto; }
.cta__tel small { font-size: 14px; color: var(--muted); }
@media (max-width: 30em) { .cta__btns .btn { flex: 1 1 100%; } }

/* ---------- подвал ---------- */
/* Подвал остаётся тёмным: он закрывает белую страницу «подошвой»,
   и белый знак «Сталь-Мастер» живёт именно на нём. */
.foot { background: var(--ink-deep); color: #c5c6c6; padding: clamp(40px, 6vw, 64px) 0; text-align: center; }
/* :where — чтобы не перебить собственные цвета .foot__legal и .foot__hash,
   но снять с абзацев подвала тёмный цвет из общего правила p {} */
:where(.foot) p { color: #98a1ac; }
.foot__in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.foot__marks { display: flex; align-items: center; gap: 28px; }
.foot__hard { height: 30px; width: auto; }
/* подпись под знаком убрана, кадр обрезан по спарку — высоту вернули к 44 px:
   слово «Сталь-Мастер» осталось того же оптического размера, что и раньше */
.foot__sm { height: 44px; width: auto; }
.foot__smlink { display: flex; align-items: center; min-height: 44px; border-radius: 4px; }
/* 14.10: в подвале — куда идти покупателю */
.foot__buy { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; }
.foot__buy a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #c5c6c6; text-decoration: none; transition: color .2s var(--ease);
}
.foot__buy a:hover { color: var(--white); }
.foot__buy a[href^="tel:"] { color: var(--white); letter-spacing: .04em; }
.foot__div { width: 1px; height: 40px; background: #39424f; }
/* на мобильном верхнее меню скрыто — разделы дублируем здесь */
.foot__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px;
  list-style: none; padding-top: 4px;
}
.foot__nav a {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #8b95a2; text-decoration: none; text-indent: .16em;
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px;   /* 14.10: зона нажатия на телефоне */
  transition: color .2s var(--ease);
}
.foot__nav a:hover { color: var(--white); }
.foot__site a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; letter-spacing: .34em; text-indent: .34em; color: #c5c6c6; text-decoration: none; }
.foot__site a:hover { color: var(--white); }
.foot__hash { font-size: 11px; letter-spacing: .3em; text-indent: .3em; color: #e0555f; font-weight: 700; }
.foot__legal { font-size: 12px; color: #7b8592; letter-spacing: .04em; }

/* ============================================================
   Появление при скролле
   ============================================================ */
/* 14.10: прячем блоки до появления ТОЛЬКО когда скрипт работает (класс js ставит строка в <head>)
   и человек не просил «меньше движения». Раньше без скрипта почти вся страница оставалась пустой. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js [data-r].is-in { opacity: 1; transform: none; }
  .js .rule[data-r] { transform: scaleX(0); }
  .js .rule[data-r].is-in { transform: none; }
  .js .var .bar i::after { transform: scaleX(0); }
  .js .var.is-in .bar i::after { transform: scaleX(1); }
  /* 22.10 аудит: кнопка в ещё не проявленном блоке получила фокус с клавиатуры — блок показываем сразу */
  .js [data-r]:focus-within { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 15.10 написать во ВКонтакте — под телефоном в последнем экране */
.vkw{display:inline-block;margin-top:10px;font-size:15px;color:inherit;opacity:.85;text-decoration:underline;text-underline-offset:3px}
.vkw:hover{opacity:1}
