/* ============================================================
   МЕТАЛЛДВОР — базовые стили, компоненты, главная
   ============================================================ */

:root {
  --bg: #f1efe9;
  --bg-2: #e8e4db;
  --surface: #ffffff;
  --ink: #0c1014;
  --ink-2: #1b232b;
  --muted: #65707b;
  --muted-2: #8a949e;
  --line: #d8d3c9;
  --line-2: #c4beb2;
  --dark: #0b0f13;
  --dark-2: #12181e;
  --dark-3: #1a222a;
  --steel: #97a6b4;
  --accent: #ff5b1f;
  --accent-hover: #ff7440;
  --green: #2f8a5b;
  --red: #c0392b;
  --radius: 2px;
  --wrap: 1280px;
  --gutter: 28px;
  --font: 'Manrope', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --shadow: 0 24px 60px -30px rgba(12, 16, 20, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: #0b0f13; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 400;
  background: var(--accent);
  color: #0b0f13;
  padding: 10px 18px;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Сетка и типографика ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--white { background: var(--surface); }
.section--dark { background: var(--dark); color: #eef2f5; }
.section--line { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.section-head__main { max-width: 760px; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .section-head__main { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.section--dark .eyebrow { color: var(--steel); }

h1, .h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}
h2, .h2 {
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h3, .h3 {
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.h2 em, h1 em {
  font-style: normal;
  color: var(--accent);
}
.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 500;
}
.section--dark .lead { color: #a9b5c0; }
.text-muted { color: var(--muted); }
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Кнопки и ссылки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn .icon { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #0b0f13; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--outline { border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { height: 42px; padding: 0 16px; font-size: 10.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.is-loading { pointer-events: none; opacity: 0.75; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }
.section--dark .link-arrow { border-color: rgba(255, 255, 255, 0.25); }

/* ---------- Иконки ---------- */

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Технический паттерн ---------- */

.tech-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* ---------- Верхняя полоса ---------- */

.topbar {
  background: var(--dark);
  color: #9fabb6;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 36px;
}
.topbar__group { display: flex; align-items: center; gap: 22px; min-width: 0; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar__item .icon { width: 13px; height: 13px; stroke-width: 1.6; }
.topbar a:hover { color: var(--accent); }
.topbar__dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.topbar__accent { color: #e7edf2; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 239, 233, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(12, 16, 20, 0.45); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 82px;
}

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo__name span { color: var(--accent); }
.logo__tag {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav__link {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 0;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); font-weight: 700; }

.header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header__phone { display: flex; flex-direction: column; line-height: 1.1; }
.header__phone span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.header__phone a { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.header__phone a:hover { color: var(--accent); }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.cart-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.cart-btn .icon { width: 18px; height: 18px; }
.cart-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #0b0f13;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}
.cart-btn__count[data-empty='true'] { background: var(--line); color: var(--muted); }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
}
.burger .icon { width: 22px; height: 22px; }

/* Мобильное меню */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--dark);
  color: #fff;
  padding: 24px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  transform: translateY(-102%);
  transition: transform 0.4s var(--ease), visibility 0.4s;
  overflow-y: auto;
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.mobile-nav__close {
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav__links { display: flex; flex-direction: column; }
.mobile-nav__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mobile-nav__links a .icon { width: 20px; height: 20px; color: var(--steel); }
.mobile-nav__links a:hover { color: var(--accent); }
.mobile-nav__bottom { margin-top: auto; padding-top: 36px; display: grid; gap: 14px; }
.mobile-nav__phone { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.mobile-nav__meta { color: var(--steel); font-size: 13px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 78% 18%, rgba(255, 91, 31, 0.14), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  padding-top: 60px;
  padding-bottom: 52px;
  align-items: stretch;
}
.hero__content { display: flex; flex-direction: column; justify-content: center; max-width: 720px; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 26px;
}
.hero__kicker::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 91, 31, 0.18);
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { color: var(--accent); }
.hero__sub {
  margin-top: 22px;
  max-width: 52ch;
  color: #adb8c2;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__search {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  height: 58px;
  padding: 5px 5px 5px 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.17);
  transition: border-color 0.2s, background 0.2s;
}
.hero__search:focus-within { border-color: var(--accent); background: rgba(255, 255, 255, 0.08); }
.hero__search .icon { width: 18px; height: 18px; color: var(--steel); }
.hero__search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  outline: 0;
}
.hero__search input::placeholder { color: #7b8a97; }
.hero__search button {
  height: 46px;
  padding: 0 18px;
  border: 0;
  background: var(--accent);
  color: #0b0f13;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__search button:hover { background: var(--accent-hover); }

.hero__stats {
  display: flex;
  gap: 38px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__stat b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero__stat span {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  color: #8d9aa6;
  line-height: 1.35;
  max-width: 15ch;
}

.hero__media {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--dark-2);
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(0.92);
  transition: transform 6s var(--ease);
}
.hero__media:hover img { transform: scale(1.04); }
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 19, 0.05) 0%, rgba(11, 15, 19, 0.15) 55%, rgba(11, 15, 19, 0.85) 100%);
}
.hero__media-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dfe6ec;
}
.hero__media-tag .icon { width: 15px; height: 15px; color: var(--accent); }
.hero__price {
  position: absolute;
  z-index: 3;
  right: 16px;
  top: 16px;
  background: var(--surface);
  color: var(--ink);
  padding: 14px 18px;
  min-width: 180px;
  border-left: 3px solid var(--accent);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.5);
}
.hero__price span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__price b { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.hero__price small { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- Бегущая строка ---------- */

.ticker {
  background: var(--ink);
  color: #cfd8df;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 13px 0;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__item::after { content: ''; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Преимущества ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
}
.feature {
  padding: 30px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature:last-child { border-right: 0; }
.feature__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
}
.feature__icon .icon { width: 21px; height: 21px; }
.feature b { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; }
.feature span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ---------- Категории (бенто) ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 186px;
  gap: 10px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease), color 0.25s;
}
.cat-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.cat-card__num {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.cat-card__body { position: relative; z-index: 2; }
.cat-card__name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.cat-card__short { margin-top: 5px; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.cat-card__price {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.cat-card__price b { font-size: 12px; }
.cat-card__arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cat-card__arrow .icon { width: 14px; height: 14px; }
.cat-card:hover .cat-card__arrow { background: var(--ink); border-color: var(--ink); color: #fff; }

.cat-card--lead {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
  padding: 30px;
}
.cat-card--lead:hover { background: var(--dark-2); border-color: var(--accent); }
.cat-card--lead .cat-card__num { color: var(--steel); }
.cat-card--lead .cat-card__name { font-size: clamp(24px, 2.4vw, 32px); max-width: 12ch; }
.cat-card--lead .cat-card__short { font-size: 13px; color: #9dabb7; max-width: 30ch; margin-top: 10px; }
.cat-card--lead .cat-card__price { color: #fff; margin-top: 16px; }
.cat-card--lead .cat-card__price b { color: var(--accent); }
.cat-card--lead .cat-card__arrow { border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.cat-card--lead .cat-card__art {
  position: absolute;
  right: 2%;
  bottom: 4%;
  width: 50%;
  height: 52%;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}
.cat-card__art .pv-text,
.cat-card__art .pv-dim { display: none; }
.cat-card__art .pv { width: 100%; height: 100%; }

/* ---------- Товары ---------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.product:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.product__media {
  position: relative;
  height: 208px;
  background: var(--dark-2);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product__media .pv { width: 100%; height: 100%; }
.product__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}
.product__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background: rgba(11, 15, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d9e2e9;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.product__badge i { width: 5px; height: 5px; background: var(--green); border-radius: 50%; }
.product__badge--order i { background: #e0a33a; }
.product__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 15, 19, 0.6);
  color: #cfd8df;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.product:hover .product__fav { opacity: 1; }
.product__fav .icon { width: 14px; height: 14px; }

.product__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product__cat {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.product__name {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.22;
}
.product__name a:hover { color: var(--accent); }
.product__sub { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.product__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 15px;
}
.product__price b { font-size: 23px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.product__price span { font-size: 11.5px; color: var(--muted); }
.product__from {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 2px;
}
.product__controls { margin-top: 15px; display: grid; gap: 8px; }
.product__controls > .select { width: 100%; }
.product__row { display: flex; gap: 8px; }

.select {
  position: relative;
  flex: 1;
  min-width: 0;
}
.select select {
  width: 100%;
  height: 42px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f7f3;
  font-size: 12px;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
  text-overflow: ellipsis;
  transition: border-color 0.2s, background 0.2s;
}
.select select:hover { border-color: var(--line-2); }
.select select:focus { outline: 0; border-color: var(--ink); background: #fff; }
.select::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.qty {
  display: inline-flex;
  align-items: center;
  height: 42px;
  border: 1px solid var(--line);
  background: #f8f7f3;
  flex: none;
}
.qty button {
  width: 32px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty button:hover { color: var(--ink); }
.qty .icon { width: 13px; height: 13px; }
.qty input {
  width: 34px;
  height: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.add-btn {
  flex: 1;
  height: 42px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.add-btn .icon { width: 15px; height: 15px; }
.add-btn:hover { background: var(--accent); border-color: var(--accent); color: #0b0f13; }
.add-btn.is-added { background: var(--green); border-color: var(--green); }

.product--row { flex-direction: row; }
.product--row .product__media { width: 190px; height: auto; border-bottom: 0; border-right: 1px solid var(--line); flex: none; }
.product--row .product__body { flex: 1; }

/* ---------- Прайс-лист ---------- */

.price-block {
  background: var(--surface);
  border: 1px solid var(--line);
}
.price-block__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
  height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tab:hover { color: var(--ink); border-color: var(--line); }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.price-table { font-size: 13.5px; }
.price-table th {
  padding: 11px 16px;
  text-align: left;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.price-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #ece9e2;
  vertical-align: middle;
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: #faf9f6; }
.price-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.price-table .num small { font-weight: 500; color: var(--muted); font-size: 10.5px; }
.price-table .stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--green);
  white-space: nowrap;
}
.price-table .stock::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.price-table .stock--order { color: #b17a1f; }
.price-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}
.price-note .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--muted-2); }

/* ---------- Калькулятор ---------- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 40px;
  align-items: start;
}
.calc__form { display: grid; gap: 26px; max-width: 560px; }
.calc-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}
.calc-field label b { font-family: var(--font); font-size: 15px; letter-spacing: 0; color: #fff; }
input[type='range'] {
  width: 100%;
  height: 22px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
input[type='range']::-webkit-slider-runnable-track { height: 2px; background: rgba(255, 255, 255, 0.2); }
input[type='range']::-moz-range-track { height: 2px; background: rgba(255, 255, 255, 0.2); }
input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -8px;
  background: var(--accent);
  border: 3px solid var(--dark);
  box-shadow: 0 0 0 1px var(--accent);
}
input[type='range']::-moz-range-thumb {
  width: 14px; height: 14px; border: 3px solid var(--dark);
  background: var(--accent); box-shadow: 0 0 0 1px var(--accent);
}
.calc-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.calc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.calc-seg label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 600;
  color: #c3cdd6;
  cursor: pointer;
  transition: 0.2s;
}
.calc-seg input:checked + label { background: #fff; color: var(--ink); border-color: #fff; font-weight: 800; }
.calc-seg label:hover { border-color: var(--accent); }

.calc__result {
  background: var(--accent);
  color: #0b0f13;
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.calc__result::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(11, 15, 19, 0.18);
  transform: rotate(45deg);
}
.calc__result .mono { color: rgba(11, 15, 19, 0.62); }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px solid rgba(11, 15, 19, 0.16); font-size: 13px; }
.calc__row:first-of-type { padding-top: 0; }
.calc__row b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.calc__total { margin-top: 18px; }
.calc__total span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.calc__total b { display: block; font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 6px; }
.calc__result .btn { margin-top: 22px; }
.calc__hint { margin-top: 12px; font-size: 10.5px; line-height: 1.45; color: rgba(11, 15, 19, 0.66); }

/* ---------- Шаги ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 30px 26px 0 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step__num {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  margin-bottom: 22px;
}
.step:hover .step__num { -webkit-text-stroke-color: var(--accent); color: var(--accent); }
.step b { display: block; font-size: 15px; font-weight: 800; }
.step p { margin-top: 7px; font-size: 12.5px; color: var(--muted); line-height: 1.5; max-width: 26ch; }

/* ---------- О складе ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.85);
}
.about__media::before {
  content: '';
  position: absolute;
  left: -12px;
  top: -12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid var(--line-2);
  z-index: -1;
}
.about__badge {
  position: absolute;
  right: -14px;
  bottom: 26px;
  background: var(--ink);
  color: #fff;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
}
.about__badge b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.about__badge span { display: block; margin-top: 5px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.about__stats { display: flex; gap: 34px; margin: 28px 0; padding: 22px 0; border-block: 1px solid var(--line); }
.about__stats b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.about__stats span { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.about ul.checks { display: grid; gap: 12px; margin-top: 22px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.checks .icon { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- Галерея ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 10px;
}
.gallery__item { position: relative; overflow: hidden; background: var(--dark-2); }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); filter: saturate(0.85); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
}

/* ---------- Доставка ---------- */

.delivery-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.delivery-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.delivery-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.delivery-card__icon {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.delivery-card__icon .icon { width: 21px; height: 21px; }
.delivery-card__price { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.delivery-card h3 { font-size: 17px; }
.delivery-card p { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.delivery-card ul { margin-top: 16px; display: grid; gap: 7px; font-size: 12px; color: var(--ink-2); }
.delivery-card ul li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line); padding-top: 7px; }
.delivery-card ul li span:last-child { font-weight: 700; white-space: nowrap; }
.delivery-card__link { margin-top: auto; padding-top: 20px; }

.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
}
.pay-chip .icon { width: 14px; height: 14px; }

/* ---------- Форма заявки ---------- */

.lead-section { position: relative; overflow: hidden; }
.lead-section::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -40%;
  width: 60%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(255, 91, 31, 0.16), transparent);
  pointer-events: none;
}
.lead-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  gap: 60px;
  align-items: center;
}
.lead-grid__list { display: grid; gap: 14px; margin-top: 28px; }
.lead-grid__list li { display: flex; gap: 12px; align-items: flex-start; color: #c3cdd6; font-size: 13px; line-height: 1.5; }
.lead-grid__list .icon { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 2px; }
.lead-grid__messengers { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.messenger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11.5px;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}
.messenger:hover { border-color: var(--accent); color: var(--accent); }
.messenger .icon { width: 16px; height: 16px; }

.form-card {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 30px;
}
.form-card h3 { color: #fff; }
.form-card > p { margin-top: 7px; font-size: 12px; color: #93a1ad; }
.form-card form { margin-top: 22px; display: grid; gap: 14px; }
.form-card .btn { margin-top: 4px; }
.form-note { font-size: 10px; line-height: 1.45; color: #7f8d99; text-align: center; }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--accent); }

/* ---------- Поля ---------- */

.field { display: grid; gap: 7px; }
.field > label, .field__label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: flex-start;
  gap: 4px;
}
.field > label .req { color: var(--accent); }
.input, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(12, 16, 20, 0.06);
}
.input::placeholder, .textarea::placeholder { color: #a6afb8; }
.textarea { min-height: 96px; resize: vertical; }
.field.has-error .input, .field.has-error .textarea { border-color: var(--red); }
.field__error { font-size: 10.5px; color: var(--red); display: none; }
.field.has-error .field__error { display: block; }

.form-card .field > label { color: #8b99a5; }
.form-card .input, .form-card .textarea {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.form-card .input::placeholder, .form-card .textarea::placeholder { color: #6f7d89; }
.form-card .input:focus, .form-card .textarea:focus { border-color: var(--accent); box-shadow: none; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 10.5px;
  line-height: 1.5;
  color: #8b99a5;
  cursor: pointer;
  position: relative;
}
.checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkbox__box {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex: none;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.checkbox__box .icon { width: 10px; height: 10px; color: #0b0f13; opacity: 0; stroke-width: 2.4; }
.checkbox input:checked + .checkbox__box { background: var(--accent); border-color: var(--accent); }
.checkbox input:checked + .checkbox__box .icon { opacity: 1; }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.checkbox a { text-decoration: underline; text-underline-offset: 2px; color: #c3cdd6; }
.checkbox a:hover { color: var(--accent); }
.field > label.checkbox,
.form-card .field > label.checkbox {
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #8b99a5;
  display: flex;
  justify-content: flex-start;
}
.checkbox--light { color: var(--muted); }
.checkbox--light .checkbox__box { border-color: var(--line-2); }
.checkbox--light a { color: var(--ink-2); }
.field.has-error .checkbox__box { border-color: var(--red); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-2);
  flex: none;
  transition: background 0.2s, border-color 0.2s;
}
.faq summary .plus::before, .faq summary .plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s, background 0.2s;
}
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .plus { background: var(--ink); border-color: var(--ink); }
.faq details[open] summary .plus::before { background: #fff; transform: translate(-50%, -50%) rotate(45deg); }
.faq details[open] summary .plus::after { background: #fff; transform: translate(-50%, -50%) rotate(-45deg); }
.faq details[open] summary { color: var(--accent); }
.faq__answer { padding: 0 50px 24px 0; color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 80ch; }
.faq__answer p + p { margin-top: 10px; }

/* ---------- Футер ---------- */

.footer { background: #080b0e; color: #b6c1cb; overflow: hidden; }
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 64px 0 48px;
}
.footer__brand .logo__name { color: #fff; }
.footer__brand .logo__tag { color: #66737f; }
.footer__desc { margin-top: 20px; font-size: 12.5px; line-height: 1.65; color: #7e8b97; max-width: 34ch; }
.footer__phone { display: block; margin-top: 22px; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.footer__phone:hover { color: var(--accent); }
.footer__meta { margin-top: 8px; font-size: 11.5px; color: #7e8b97; line-height: 1.6; }
.footer h4 {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #66737f;
  font-weight: 500;
  margin-bottom: 18px;
}
.footer__links { display: grid; gap: 9px; font-size: 12.5px; }
.footer__links a { color: #aab6c0; transition: color 0.2s; }
.footer__links a:hover { color: var(--accent); }
.footer__contacts { display: grid; gap: 12px; font-size: 12.5px; }
.footer__contacts div { display: flex; gap: 9px; align-items: flex-start; color: #aab6c0; }
.footer__contacts .icon { width: 14px; height: 14px; color: #66737f; flex: none; margin-top: 3px; }
.footer__contacts a:hover { color: var(--accent); }
.footer__req {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 20px 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: #6f7c88;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #66737f;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a:hover { color: #b6c1cb; }
.footer__giant {
  font-size: clamp(64px, 13vw, 190px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.72;
  color: rgba(255, 255, 255, 0.028);
  white-space: nowrap;
  user-select: none;
  padding-bottom: 12px;
  margin-left: -6px;
}

/* ---------- Cookie ---------- */

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 190;
  max-width: 1080px;
  margin-inline: auto;
  background: #10161c;
  color: #d7e0e7;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 2px solid var(--accent);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(140%);
  transition: transform 0.45s var(--ease);
}
.cookie.is-visible { transform: translateY(0); }
.cookie p { font-size: 11.5px; line-height: 1.55; color: #9fabb6; max-width: 72ch; }
.cookie p a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 8px; flex: none; margin-left: auto; }
.cookie .btn { height: 38px; padding: 0 16px; font-size: 10px; }

/* ---------- Тосты ---------- */

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  display: grid;
  gap: 8px;
  max-width: min(360px, calc(100vw - 36px));
}
.toast {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #10161c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--green);
  padding: 13px 15px;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.3s var(--ease);
}
.toast--error { border-left-color: var(--red); }
.toast .icon { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 1px; }
.toast--error .icon { color: var(--red); }
.toast b { display: block; font-weight: 800; margin-bottom: 2px; }
.toast.is-hiding { animation: toast-out 0.25s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Модальное окно товара ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  padding: 24px;
  overflow-y: auto;
}
.modal.is-open { display: flex; align-items: center; justify-content: center; }
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 12, 0.72);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.55);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  animation: modal-in 0.3s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.99); } }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover { background: var(--ink); color: #fff; }
.modal__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.modal__media {
  background: var(--dark-2);
  min-height: 420px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
}
.modal__media-top,
.modal__media-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d8c9a;
  flex: none;
}
.modal__media-top span:last-child,
.modal__media-bottom span:last-child { color: #b9c7d3; }
.modal__media-art {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 0;
}
.modal__media-art .pv { width: 100%; height: auto; max-height: 100%; }
.modal__media .pv-text { display: none; }
.modal__media .pv { width: 100%; height: 100%; min-height: 420px; }
.modal__body { padding: 36px 34px 34px; }
.modal__cat { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.modal__body h3 { margin-top: 8px; font-size: clamp(24px, 2.6vw, 32px); }
.modal__sub { margin-top: 6px; color: var(--muted); font-size: 13px; }
.modal__desc { margin-top: 16px; font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.modal__specs { margin-top: 20px; border-top: 1px solid var(--line); }
.modal__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #ece9e2; font-size: 12px; }
.modal__specs dt { color: var(--muted); }
.modal__specs dd { margin: 0; font-weight: 700; text-align: right; }
.modal__buy {
  margin-top: 22px;
  padding: 18px;
  background: #f8f7f3;
  border: 1px solid var(--line);
}
.modal__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.modal__price b { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.modal__price span { font-size: 12px; color: var(--muted); }
.modal__buy .product__row { margin-top: 10px; }
.modal__buy .qty { background: #fff; }
.modal__hint { margin-top: 10px; font-size: 10.5px; color: var(--muted); }

/* ---------- Хлебные крошки / заголовок страницы ---------- */

.page-head { background: var(--bg); border-bottom: 1px solid var(--line); padding: 30px 0 44px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 26px; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { color: var(--line-2); }
.page-head h1 { font-size: clamp(32px, 4.2vw, 56px); }
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.page-head .lead { margin-top: 12px; max-width: 62ch; }
.page-head__meta { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.page-head__meta b { color: var(--ink); }

/* ---------- Утилиты ---------- */

.u-mt-0 { margin-top: 0 !important; }
.u-mt-8 { margin-top: 8px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-24 { margin-top: 24px; }
.u-mt-32 { margin-top: 32px; }
.u-center { text-align: center; }
.u-hidden { display: none !important; }
.u-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Анимация появления */
.js .reveal { opacity: 1; transform: translateY(14px); transition: transform 0.65s var(--ease); }
.js .reveal.is-in { transform: none; }

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

/* ---------- Плашка информационного сервиса ---------- */
.notice {
  background: #0b0f13;
  color: #cfd8df;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.notice__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 11.5px;
  line-height: 1.45;
}
.notice .icon { width: 16px; height: 16px; color: var(--accent); flex: none; }
.notice p { margin: 0; flex: 1; max-width: 115ch; color: #aab6c0; }
.notice b { color: #fff; font-weight: 800; }
.notice a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 91, 31, 0.45);
  padding-bottom: 2px;
}
.notice a .icon { width: 12px; height: 12px; color: var(--accent); }
.notice a:hover { color: #fff; border-color: #fff; }

.footer__disclaimer {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 6px 0 22px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 91, 31, 0.3);
  border-left: 3px solid var(--accent);
  background: rgba(255, 91, 31, 0.06);
  font-size: 10.5px;
  line-height: 1.65;
  color: #8d9aa6;
}
.footer__disclaimer b { color: #ffb38f; flex: none; font-weight: 800; }
.footer__disclaimer span { max-width: 110ch; }

/* ---------- Нижняя панель расчёта ---------- */
.calc-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: #10161c;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: 0 -16px 40px -24px rgba(0, 0, 0, 0.7);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
}
.calc-bar.is-visible { transform: translateY(0); }
.calc-bar__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 66px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.calc-bar__info { display: flex; align-items: baseline; gap: 7px; font-size: 11.5px; color: #9fabb6; }
.calc-bar__info b { color: #fff; font-size: 16px; font-weight: 800; }
.calc-bar__sum { margin-left: auto; display: flex; align-items: baseline; gap: 8px; }
.calc-bar__sum span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #7f8d99; }
.calc-bar__sum b { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-bar .btn { flex: none; }
body.page-catalog { padding-bottom: 70px; }

/* ---------- Табы калькулятора ---------- */
.calc-tabs { display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; }
.calc-tab {
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #c3cdd6;
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s;
}
.calc-tab:hover { border-color: var(--accent); }
.calc-tab.is-active { background: #fff; color: var(--ink); border-color: #fff; }
.calc__form[hidden] { display: none; }

/* ---------- Бронирование ---------- */
.reserve-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 40px;
  align-items: start;
  padding-bottom: 90px;
}
.reserve-form { display: grid; gap: 18px; }
.reserve-summary .summary { top: 100px; }
.reserve-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}
.reserve-note .icon { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.reserve-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.reserve-actions .btn { flex: 1 1 auto; }
.reserve-result {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: #fff;
  padding: 20px;
}
.reserve-result h3 { font-size: 16px; }
.reserve-result p { margin-top: 6px; font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.reserve-result textarea { margin-top: 12px; min-height: 170px; font-family: var(--mono); font-size: 11px; line-height: 1.55; }
.reserve-steps { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.reserve-steps span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); padding: 5px 8px; }

@media (max-width: 1040px) {
  .reserve-layout { grid-template-columns: 1fr; gap: 24px; }
  .reserve-summary .summary { position: static; }
}
@media (max-width: 760px) {
  .notice__inner { padding-top: 9px; padding-bottom: 9px; font-size: 10.5px; gap: 9px; }
  .notice a { display: none; }
  .footer__disclaimer { flex-direction: column; gap: 6px; padding: 15px 14px; }
  .calc-bar__inner { gap: 10px; flex-wrap: wrap; }
  .calc-bar__info { font-size: 10.5px; }
  .calc-bar__sum { margin-left: 0; }
  .calc-bar__sum b { font-size: 18px; }
  .calc-bar .btn { flex: 1 1 100%; }
  .reserve-actions .btn { flex: 1 1 100%; }
}
