/* Триумф — оформление. Токены — только здесь (Q5: один файл, обе темы). */
:root {
  --bg: #f5f5f7;
  --bg-elev: #ffffff;
  --bg-sunk: #e8e8ed;
  --text: #1d1d1f;
  --text-2: #4b4b52;          /* 7.9:1 на --bg */
  --text-3: #6e6e73;          /* 4.6:1 на --bg — минимум AA */
  --line: rgba(0, 0, 0, .1);
  /* Оранжевый Apple: systemOrange #FF9500 (свет) / #FF9F0A (тьма); текстом на светлом — доступный вариант #C93400 */
  --orange: #FF9500;
  --accent: #C93400;          /* текст: 5.0:1 на белом */
  --accent-hi: #FF9500;       /* кольцо фокуса, акценты */
  --btn: var(--orange);       /* заливка кнопок */
  --btn-text: #1d1d1f;        /* тёмный текст на оранжевом: 9.3:1 */
  --btn-hover: #F08A00;
  --seg-text: #C93400;
  --accent-grad: linear-gradient(135deg, #FFB340 0%, #FF9500 60%, #FF8A00 100%);
  --ok: #248a3d;
  --danger: #d70015;
  --glass: rgba(250, 250, 252, .72);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.14);
  --radius: 32px;
  --radius-sm: 18px;
  --tap: 44px;                /* Apple HIG: цель касания ≥ 44×44 pt */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --c-tools: #FF9500;
  --c-floor: #b87333;
  --c-walls: #5e5ce6;
  --c-cable: #30a46c;
  --c-rebar: #6b7280;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-elev: #161618;
    --bg-sunk: #1f1f22;
    --text: #f5f5f7;
    --text-2: #c7c7cc;
    --text-3: #a1a1a6;        /* 7.6:1 на чёрном */
    --line: rgba(255, 255, 255, .12);
    --orange: #FF9F0A;
    --accent: #FF9F0A;        /* 9.6:1 на чёрном */
    --accent-hi: #FF9F0A;
    --btn-hover: #FFB340;
    --seg-text: #FF9F0A;
    --ok: #30d158;
    --danger: #ff453a;
    --glass: rgba(22, 22, 24, .72);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] { --bg: #000; --bg-elev: #161618; --text: #f5f5f7; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.5 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(2rem, 5.2vw, 3.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--text-3); }
.small { font-size: .875rem; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--text); color: var(--bg); border-radius: 12px; }
.skip:focus { top: 12px; }
.eyebrow { font-size: .95rem; font-weight: 600; color: var(--accent); margin-bottom: 12px; letter-spacing: 0; }
.gradient-text { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.noscript { padding: 16px; text-align: center; background: #fff3cd; color: #000; }

/* Цвета категорий для иллюстраций */
.c-tools { color: var(--c-tools); } .c-floor { color: var(--c-floor); } .c-walls { color: var(--c-walls); }
.c-cable { color: var(--c-cable); } .c-rebar { color: var(--c-rebar); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 22px; border-radius: 980px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .2s, box-shadow .3s var(--ease), opacity .2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 52px; padding: 0 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--btn); color: var(--btn-text); box-shadow: 0 8px 24px rgba(255, 149, 0, .35); }
.btn--primary:hover { background: var(--btn-hover); box-shadow: 0 12px 32px rgba(255, 149, 0, .45); }
.btn--secondary { background: var(--bg-sunk); color: var(--text); }
.btn--secondary:hover { background: var(--line); }
.btn--glass { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); }
.btn--glass:hover { background: rgba(255,255,255,.24); }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-sunk); cursor: pointer; }
.icon-btn:hover { background: var(--line); }

/* ---------- Шапка ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .4s, box-shadow .4s, color .4s; color: #fff; }
.nav.is-solid { background: var(--glass); color: var(--text); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 60px; width: min(1180px, 100% - 32px); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; min-height: var(--tap); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.brand__name { font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a, .nav__phone { color: inherit; opacity: .85; font-size: .9375rem; padding: 0 12px; min-height: var(--tap); display: inline-flex; align-items: center; border-radius: 10px; }
.nav__links a:hover, .nav__phone:hover { opacity: 1; text-decoration: none; }
.nav__phone { font-weight: 600; opacity: 1; white-space: nowrap; gap: 8px; }
.nav__phone-icon { display: none; }
.nav__inner > * { flex: none; }
.nav__links { flex: 1 1 auto; justify-content: flex-end; }
.cart-btn { position: relative; width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 50%; }
.cart-btn:hover { background: rgba(127,127,127,.15); }
.cart-btn__count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--btn); color: var(--btn-text); font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; transform: scale(0); transition: transform .4s var(--ease); }
.cart-btn__count.has-items { transform: scale(1); }
.cart-btn.bump .cart-btn__count { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 860px) { .nav__links { display: none; } .nav__phone { margin-left: auto; } }
.nav__inner { gap: 12px; }
@media (max-width: 560px) {
  .nav__inner { gap: 8px; }
  .nav__phone { width: var(--tap); height: var(--tap); padding: 0; justify-content: center; border-radius: 50%; background: rgba(127,127,127,.18); }
  .nav__phone-icon { display: block; }
  .nav__phone-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 360px) { .brand__name { font-size: 1.05rem; } .brand img { width: 28px; height: 28px; } }

/* ---------- Главный экран ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; background: #0b0b0d; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.hero.is-ready .hero__video { transform: scale(1); }
.hero__shade { position: absolute; inset: 0; background:
  radial-gradient(120% 70% at 20% 100%, rgba(255, 149, 0, .32), transparent 60%),
  linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.85) 100%); }
.hero__content { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 120px 0 clamp(72px, 12vh, 140px); }
.hero .eyebrow { color: #FFB340; }
.hero__title { font-size: clamp(2.5rem, 12.5vw, 8.5rem); line-height: .95; letter-spacing: -.045em; font-weight: 800; }
/* Заголовок: градиент + бегущий блик света */
.shine {
  display: inline-block; padding-bottom: .06em;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-repeat: no-repeat; background-size: 250% 100%, 100% 100%;
  background-position: 160% 0, 0 0;
  animation: shine 5.5s cubic-bezier(.45, 0, .2, 1) 1.2s infinite;
  -webkit-text-fill-color: transparent;   /* Safari: без filter на элементе с background-clip:text, иначе текст пропадает */
}
.shine--metal { background-image:
  linear-gradient(105deg, transparent 38%, rgba(255,255,255,.95) 48%, rgba(255,255,255,1) 50%, rgba(255,255,255,.95) 52%, transparent 62%),
  linear-gradient(180deg, #ffffff 0%, #e6e8ec 45%, #a9aeb6 100%); }
.shine--orange { background-image:
  linear-gradient(105deg, transparent 38%, rgba(255,246,224,.95) 48%, #fffaf0 50%, rgba(255,246,224,.95) 52%, transparent 62%),
  linear-gradient(100deg, #FFCC00 0%, #FFB340 25%, #FF9500 60%, #FF6B00 100%);
  animation-delay: 1.55s; }
@keyframes shine { 0% { background-position: 160% 0, 0 0; } 45%, 100% { background-position: -60% 0, 0 0; } }
.hero__lead { max-width: 600px; margin-top: 24px; font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.45; color: rgba(255,255,255,.86); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__pause { position: absolute; right: 16px; bottom: 16px; width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero__pause[aria-pressed="true"] svg path { d: path("M8 5l11 7-11 7z"); }
.hero__scroll { position: absolute; left: 50%; bottom: 20px; width: 26px; height: 42px; margin-left: -13px; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 600px) { .hero__scroll { display: none; } .hero__cta .btn { flex: 1 1 100%; } }

/* ---------- Цифры: живые карточки поверх края видео ---------- */
.stats { position: relative; z-index: 3; margin-top: -110px; padding-bottom: clamp(40px, 6vw, 72px); }
.hero__content { padding-bottom: clamp(150px, 20vh, 220px); }
.hero__scroll { display: none; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi {
  --k: 0; position: relative; display: flex; flex-direction: column; min-height: 236px; padding: 22px; border-radius: 30px; overflow: hidden;
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
  backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 60px rgba(0,0,0,.22);
  opacity: 0; transform: translateY(48px) scale(.9); filter: blur(8px);
  transition: opacity .7s var(--ease), transform .9s cubic-bezier(.34, 1.45, .64, 1), filter .7s var(--ease), box-shadow .4s;
  transition-delay: calc(var(--k) * 120ms);
}
.kpi.is-in { opacity: 1; transform: none; filter: none; }
.kpi.is-in:hover { transform: translateY(-6px); transition-delay: 0s; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 32px 70px rgba(0,0,0,.3); }
.kpi::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--orange) 30%, transparent), transparent); opacity: .7; pointer-events: none; }
.kpi__big { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.kpi__big b, .kpi__ring-num b { font-size: clamp(2.6rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi__big small, .kpi__ring-num small { font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.kpi__title { margin-top: auto; padding-top: 16px; font-size: 1.0625rem; letter-spacing: -.015em; }
.kpi__text { margin-top: 4px; font-size: .875rem; color: var(--text-3); }

/* 15 мин — кольцо-таймер */
.kpi__visual { position: relative; width: 104px; height: 104px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring__track { stroke: var(--bg-sunk); }
.ring__bar { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.6s cubic-bezier(.65, 0, .35, 1) .35s; filter: drop-shadow(0 0 6px rgba(255,149,0,.5)); }
.kpi.is-in .ring__bar { stroke-dashoffset: 0; }
.ring__ticks path { stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; opacity: .6; }
.kpi__ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: .9; }
.kpi__ring-num b { font-size: 2.3rem; }
.kpi__ring-num small { font-size: .8125rem; }

/* 7 дней — неделя загорается */
.week { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.week li { display: grid; place-items: center; height: 30px; border-radius: 9px; background: var(--bg-sunk); font-size: .6875rem; font-weight: 700; color: var(--text-3);
  transition: background-color .35s, color .35s, transform .45s cubic-bezier(.34, 1.6, .64, 1); }
.kpi.is-in .week li { background: var(--orange); color: var(--btn-text); transform: translateY(-3px); }
.week li:nth-child(1) { transition-delay: .5s; } .week li:nth-child(2) { transition-delay: .6s; } .week li:nth-child(3) { transition-delay: .7s; }
.week li:nth-child(4) { transition-delay: .8s; } .week li:nth-child(5) { transition-delay: .9s; } .week li:nth-child(6) { transition-delay: 1s; } .week li:nth-child(7) { transition-delay: 1.1s; }

/* 0 ₽ — зачёркиваем лишнее */
.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 6px 12px; border-radius: 980px; background: var(--bg-sunk); font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.chips s { text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) left 55% / 0% 2px no-repeat; transition: background-size .5s var(--ease), color .5s; }
.kpi.is-in .chips s { background-size: 100% 2px; color: var(--text-3); }
.chips li:nth-child(1) s { transition-delay: 1.2s; } .chips li:nth-child(2) s { transition-delay: 1.45s; }

/* 100 % — шкала и печать */
.meter { position: relative; height: 10px; margin-top: 16px; border-radius: 5px; background: var(--bg-sunk); overflow: hidden; }
.meter span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #FFB340, #FF9500); transform: scaleX(0); transform-origin: left; transition: transform 1.5s cubic-bezier(.65, 0, .35, 1) .4s; }
.meter span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent) -60% 0 / 40% 100% no-repeat; animation: loadbar 1.6s linear infinite; }
.kpi.is-in .meter span { transform: scaleX(1); }
.kpi__row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.kpi__row .meter { flex: 1; margin-top: 0; }
.seal { position: relative; flex: none; width: 46px; height: 46px; transform: scale(0) rotate(-40deg); transition: transform .6s cubic-bezier(.34, 1.8, .64, 1) 1.8s; filter: drop-shadow(0 6px 12px rgba(255,149,0,.45)); }
.seal__body { fill: var(--orange); }
.seal__check { fill: none; stroke: var(--btn-text); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.kpi.is-in .seal { transform: rotate(-12deg); }

@media (max-width: 960px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) {
  .stats__grid { gap: 10px; }
  .kpi { min-height: 200px; padding: 16px; border-radius: 24px; }
  .kpi__visual { width: 84px; height: 84px; }
  .kpi__ring-num b { font-size: 1.8rem; }
  .kpi__big b { font-size: 2.3rem; }
  .kpi__title { font-size: .9375rem; }
  .kpi__text { font-size: .8125rem; }
  .week { gap: 2px; } .week li { height: 24px; font-size: .5625rem; border-radius: 6px; }
  .chips li { padding: 4px 8px; font-size: .75rem; }
  .seal { width: 34px; height: 34px; }
  .kpi__row { gap: 8px; }
}

/* ---------- Секции ---------- */
.catalog, .why, .how, .contacts { padding: clamp(80px, 12vw, 160px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head__note { margin-top: 16px; color: var(--text-3); font-size: .9375rem; }

/* ---------- Поиск (как в Apple: «таблетка», лупа слева, крестик справа) ---------- */
.search { position: relative; display: flex; align-items: center; max-width: 560px; margin-bottom: 16px; }
.search input {
  width: 100%; height: 52px; padding: 0 52px 0 50px; border-radius: 980px; border: 0; outline: none;
  background: var(--bg-elev); font-size: 1.0625rem; letter-spacing: -.01em;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  transition: box-shadow .3s var(--ease), background-color .3s;
  -webkit-appearance: none; appearance: none;
}
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; }
.search input::placeholder { color: var(--text-3); }
.search input:focus { box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.search input:focus-visible { box-shadow: 0 0 0 3px var(--accent-hi), 0 12px 32px rgba(0,0,0,.12); }
.search__icon { position: absolute; left: 18px; color: var(--text-3); pointer-events: none; transition: color .2s; }
.search:focus-within .search__icon { color: var(--btn); }
.search__clear { position: absolute; right: 4px; width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; background: transparent; color: var(--text-3); border-radius: 50%; cursor: pointer; }
.search__clear:hover { color: var(--text-2); }
mark { background: color-mix(in srgb, var(--accent-hi) 30%, transparent); color: inherit; border-radius: 4px; padding: 0 1px; }
.grid__state strong { color: var(--text); }

/* ---------- Переключатель категорий (segmented control) — фирменный оранжевый, «таблетка» ---------- */
.segmented { position: relative; display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 32px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border-radius: 980px; background: color-mix(in srgb, var(--btn) 12%, var(--bg-elev)); }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { flex: none; position: relative; z-index: 1; min-height: var(--tap); min-width: var(--tap); padding: 0 20px; border: 0; background: transparent; border-radius: 980px;
  font-size: .9375rem; font-weight: 600; color: var(--seg-text); cursor: pointer; white-space: nowrap; transition: color .25s, background-color .2s; }
.segmented button:hover { background: color-mix(in srgb, var(--btn) 14%, transparent); }
.segmented button[aria-selected="true"] { color: var(--btn-text); }
.segmented button[aria-selected="true"]:hover { background: transparent; }
.segmented__thumb { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 980px; background: var(--btn);
  box-shadow: 0 6px 18px rgba(255, 149, 0, .4); transition: transform .45s var(--ease), width .45s var(--ease); }

/* ---------- Карточки товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.grid__state { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--text-3); }
.card {
  position: relative; display: flex; flex-direction: column; padding: 8px 8px 22px; background: var(--bg-elev);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  animation: cardin .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes cardin { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__art { position: relative; height: 180px; margin: -8px -8px 16px; border-radius: 26px; display: grid; place-items: center; background:
  radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--cat) 22%, transparent), transparent 70%), var(--bg-sunk); }
.card__art svg { width: 132px; height: 132px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.18)); transition: transform .7s var(--ease); }
.card:hover .card__art svg { transform: scale(1.08) rotate(-3deg); }
.card__brand, .card__name, .card__specs, .card__foot { margin-inline: 14px; }
.card__brand { font-size: .8125rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.card__name { margin-top: 4px; font-size: 1.0625rem; line-height: 1.3; }
.card__specs { margin-top: 6px; font-size: .875rem; color: var(--text-2); }
.card__foot { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.card__foot [data-control] { margin-left: auto; }
.price { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price { white-space: nowrap; }
.price small { font-size: .8125rem; font-weight: 500; color: var(--text-3); margin-left: 2px; }
.add { white-space: nowrap; min-height: var(--tap); padding: 0 18px; border-radius: 980px; border: 0; background: var(--btn); color: var(--btn-text); font-weight: 600; cursor: pointer; transition: transform .3s var(--ease), background-color .2s; }
.add:hover { background: var(--btn-hover); }
.add:active { transform: scale(.94); }
.stepper { display: inline-flex; align-items: center; background: var(--bg-sunk); border-radius: 980px; }
.is-in { animation: popin .35s var(--ease) both; }
@keyframes popin { from { opacity: 0; transform: scale(.85); } }
.stepper input { transition: color .2s; }
.stepper button { width: var(--tap); height: var(--tap); border: 0; background: transparent; border-radius: 50%; font-size: 1.25rem; font-weight: 600; cursor: pointer; color: var(--text); }
.stepper button:hover { background: var(--line); }
.stepper input { width: 46px; height: var(--tap); border: 0; background: transparent; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Почему мы: карусель карточек ---------- */
.why { overflow: hidden; }
.why__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.why__controls { display: flex; gap: 10px; }
.round-btn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-sunk); color: var(--text); cursor: pointer; transition: background-color .2s, transform .3s var(--ease); }
.round-btn:hover { background: color-mix(in srgb, var(--btn) 16%, var(--bg-sunk)); }
.round-btn:active { transform: scale(.92); }
.round-btn--sm { width: 36px; height: 36px; }
@media (max-width: 600px) { .why__controls { display: none; } }

.carousel { --gutter: max(16px, calc((100vw - 1180px) / 2)); }
.carousel__track {
  list-style: none; margin: 0; padding: 12px var(--gutter) 28px; display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.perk {
  position: relative; flex: 0 0 clamp(272px, 32vw, 380px); min-height: 460px; padding: 32px; border-radius: 36px;
  display: flex; flex-direction: column; scroll-snap-align: start; overflow: hidden; isolation: isolate;
  color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.18);
  transform: scale(.94); opacity: .6; transition: transform .8s var(--ease), opacity .8s var(--ease), box-shadow .8s var(--ease);
}
.perk.is-active { transform: none; opacity: 1; box-shadow: 0 30px 70px rgba(0,0,0,.28); }
.perk::after { content: ""; position: absolute; inset: auto -30% -40% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent); z-index: -1; transition: transform 1.2s var(--ease); }
.perk.is-active::after { transform: translate(-12%, -10%) scale(1.15); }
.perk__sticker { width: 112px; height: 112px; transform: rotate(-9deg); filter: drop-shadow(0 10px 14px rgba(0,0,0,.28)); transition: transform .9s var(--ease); }
.perk.is-active .perk__sticker { animation: stick .9s var(--ease) both; }
.perk:nth-child(even) .perk__sticker { transform: rotate(8deg); }
.perk__kicker { margin-top: auto; font-size: .9375rem; font-weight: 600; opacity: .85; }
.perk h3 { margin-top: 6px; font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.05; letter-spacing: -.03em; }
.perk p:last-child { margin-top: 12px; font-size: 1rem; line-height: 1.45; opacity: .9; }
.perk--orange  { background: linear-gradient(160deg, #FFB340 0%, #FF9500 55%, #FF8A00 100%); color: #1d1d1f; }
.perk--graphite{ background: linear-gradient(160deg, #2c2c31 0%, #111113 100%); }
.perk--sand    { background: linear-gradient(160deg, #f6ead6 0%, #e7cfa8 100%); color: #2a1d0e; }
.perk--ember   { background: linear-gradient(160deg, #C93400 0%, #6e1d00 100%); }
.perk--steel   { background: linear-gradient(160deg, #3b4250 0%, #1c2028 100%); }
@keyframes stick { 0% { opacity: 0; transform: scale(1.6) rotate(-25deg); } 60% { opacity: 1; transform: scale(.94) rotate(-6deg); } }

.carousel__bar { display: flex; align-items: center; justify-content: center; gap: 12px; }
.dots { display: flex; align-items: center; gap: 2px; padding: 4px 10px; border-radius: 980px; background: var(--bg-sunk); }
.dots button { position: relative; width: 28px; height: 36px; border: 0; background: transparent; cursor: pointer; padding: 0; transition: width .5s var(--ease); }
.dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 4px; background: var(--text-3); opacity: .55; transition: width .5s var(--ease), margin .5s var(--ease), opacity .3s; }
.dots button[aria-current="true"] { width: 52px; }
.dots button[aria-current="true"]::before { width: 36px; margin-left: -18px; opacity: .35; }
.dots button[aria-current="true"]::after { content: ""; position: absolute; left: 50%; top: 50%; height: 8px; margin: -4px 0 0 -18px; border-radius: 4px; background: var(--btn); width: 36px; transform-origin: left; animation: progress var(--why-ms, 4500ms) linear both; }
.carousel.is-paused .dots button[aria-current="true"]::after { animation: none; transform: none; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Шаги: карточки + линия-«загрузка» ---------- */
.how { background: var(--bg-elev); }
.flow { --p: 0; list-style: none; margin: 0; padding: 28px 0 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flow::before, .flow::after { content: ""; position: absolute; z-index: 0; top: 25.5px; left: 12.5%; right: 12.5%; height: 5px; border-radius: 3px; background: var(--bg-sunk); }
.flow::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent) -40% 0 / 30% 100% no-repeat, linear-gradient(90deg, #FFB340, #FF9500);
  transform: scaleX(var(--p)); transform-origin: left; transition: transform 1.1s cubic-bezier(.4, 0, .2, 1);
  animation: loadbar 1.1s linear infinite;
}
.flow.is-complete::after { animation: none; }
@keyframes loadbar { to { background-position: 140% 0, 0 0; } }
.flow__step {
  position: relative; z-index: 1; padding: 48px 24px 28px; border-radius: 32px; background: var(--bg); text-align: center;
  opacity: .4; transform: translateY(14px) scale(.97);
  transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease), background-color .6s;
}
.flow__step h3 { margin-top: 14px; }
.flow__step p { margin-top: 8px; color: var(--text-2); }
.flow__step.is-done { opacity: 1; transform: none; box-shadow: var(--shadow); }
.flow__badge { position: absolute; z-index: 1; top: 0; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-sunk); color: var(--text-2); font-weight: 800; font-size: 1.25rem; box-shadow: 0 0 0 6px var(--bg-elev); transition: background-color .4s, color .4s, transform .5s var(--ease); }
.flow__n { transition: opacity .25s, transform .3s var(--ease); }
.flow__step.is-current .flow__badge { background: var(--btn); color: var(--btn-text); animation: ping 1.1s var(--ease) infinite; }
.flow__step.is-done .flow__badge { background: var(--btn); color: var(--btn-text); transform: scale(1.06); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 6px var(--bg-elev), 0 0 0 6px rgba(255,149,0,.5); } 100% { box-shadow: 0 0 0 6px var(--bg-elev), 0 0 0 22px rgba(255,149,0,0); } }
.flow__sticker { width: 96px; height: 96px; margin: 0 auto; transform: rotate(-7deg); filter: drop-shadow(0 8px 12px rgba(0,0,0,.2)); }
.flow__step:nth-child(even) .flow__sticker { transform: rotate(6deg); }
.flow__step.is-done .flow__sticker { animation: stick .8s var(--ease) both; }
.flow__step--gift.is-done { background: linear-gradient(160deg, #FFB340 0%, #FF9500 60%, #FF8A00 100%); color: #1d1d1f; box-shadow: 0 24px 60px rgba(255,149,0,.35); }
.flow__step--gift.is-done p { color: #3a2a12; }
.flow__step--gift.is-done .flow__sticker { animation: stick .8s var(--ease) both, wobble 2.4s 1s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(5deg) scale(1.05); } }
/* Конфетти */
.confetti { position: absolute; left: 50%; top: 96px; width: 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; opacity: 0; background: #FFCC00; }
.flow__step--gift.is-done .confetti i { animation: burst 1.3s cubic-bezier(.2, .7, .3, 1) both; }
.confetti i:nth-child(3n+1) { background: #1d1d1f; } .confetti i:nth-child(3n+2) { background: #fff; width: 6px; height: 6px; border-radius: 50%; }
.confetti i:nth-child(1)  { --x: -120px; --y: -90px;  --r: 220deg; } .confetti i:nth-child(2)  { --x: 110px;  --y: -100px; --r: -180deg; }
.confetti i:nth-child(3)  { --x: -70px;  --y: -130px; --r: 300deg; } .confetti i:nth-child(4)  { --x: 80px;   --y: -140px; --r: 160deg; }
.confetti i:nth-child(5)  { --x: -140px; --y: -20px;  --r: -260deg; } .confetti i:nth-child(6)  { --x: 140px;  --y: -30px;  --r: 240deg; }
.confetti i:nth-child(7)  { --x: -30px;  --y: -150px; --r: 120deg; } .confetti i:nth-child(8)  { --x: 30px;   --y: -160px; --r: -120deg; }
.confetti i:nth-child(9)  { --x: -100px; --y: 40px;   --r: 200deg; } .confetti i:nth-child(10) { --x: 100px;  --y: 50px;   --r: -200deg; }
.confetti i:nth-child(11) { --x: -50px;  --y: 70px;   --r: 90deg; }  .confetti i:nth-child(12) { --x: 60px;   --y: 60px;   --r: -90deg; }
.confetti i:nth-child(n+5) { animation-delay: .08s; } .confetti i:nth-child(n+9) { animation-delay: .16s; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 40px)) rotate(var(--r)) scale(1); } }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 16px; padding: 0; }
  .flow::before, .flow::after { top: 46px; bottom: 46px; left: 25.5px; right: auto; width: 5px; height: auto; }
  .flow::after { transform: scaleY(var(--p)); transform-origin: top; background: linear-gradient(180deg, transparent, rgba(255,255,255,.85), transparent) 0 -40% / 100% 30% no-repeat, linear-gradient(180deg, #FFB340, #FF9500); }
  @keyframes loadbar { to { background-position: 0 140%, 0 0; } }
  .flow__step { margin-left: 76px; padding: 22px 22px 22px; text-align: left; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; }
  .flow__step h3 { margin: 0; grid-column: 1; }
  .flow__step p { grid-column: 1; }
  .flow__sticker { grid-column: 2; grid-row: 1 / span 2; width: 72px; height: 72px; margin: 0; }
  .flow__badge { top: 18px; left: -76px; margin: 0; }
  .confetti { left: auto; right: 58px; top: 40px; }
}

/* ---------- Контакты: сетка карточек ---------- */
.cbento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; grid-auto-flow: dense; gap: 16px; }
.ccard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px; border-radius: var(--radius); background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
a.ccard:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ccard__label { font-size: .875rem; font-weight: 600; color: var(--text-3); }
.ccard__value { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.02em; word-break: break-word; }
.ccard__hint { margin-top: auto; padding-top: 14px; font-size: .875rem; color: var(--text-3); }
.ccard__ico { width: 48px; height: 48px; margin-bottom: 14px; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--orange) 16%, var(--bg-sunk)); color: var(--accent); }
/* звонок — главная карточка */
.ccard--call { grid-row: span 2; min-height: 340px; background: linear-gradient(155deg, #FFB340 0%, #FF9500 55%, #FF8A00 100%); color: #1d1d1f; }
.ccard--call::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.45), transparent); }
.ccard--call .ccard__label { margin-top: auto; color: rgba(29,29,31,.7); font-size: 1rem; }
.ccard__phone { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.ccard--call .ccard__hint { margin-top: 6px; padding: 0; color: rgba(29,29,31,.7); }
.ccard__go { position: absolute; top: 22px; right: 22px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #1d1d1f; color: #FF9500; transition: transform .5s var(--ease); }
.ccard--call:hover .ccard__go { transform: rotate(-12deg) scale(1.08); }
.ccard--call .ccard__go::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(29,29,31,.35); animation: ring 2s ease-out infinite; }
@keyframes ring { to { box-shadow: 0 0 0 18px rgba(29,29,31,0); } }
.ccard__status { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 980px; background: rgba(255,255,255,.55); font-size: .8125rem; font-weight: 700; }
.ccard__status i { width: 8px; height: 8px; border-radius: 50%; background: #8e8e93; }
.ccard__status.is-open i { background: #248a3d; box-shadow: 0 0 0 0 rgba(36,138,61,.6); animation: live 1.8s ease-out infinite; }
@keyframes live { to { box-shadow: 0 0 0 8px rgba(36,138,61,0); } }
/* адрес с картой */
.ccard--map { grid-column: span 2; padding: 0; flex-direction: row; min-height: 170px; }
.map { position: relative; flex: 1 1 55%; min-height: 170px; background: var(--bg-sunk); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__block { fill: color-mix(in srgb, var(--text) 6%, var(--bg-sunk)); }
.map__road { fill: none; stroke: var(--bg-elev); stroke-width: 10; stroke-linecap: round; }
.map__route { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 8 10; animation: route 1.2s linear infinite; }
@keyframes route { to { stroke-dashoffset: -36; } }
.map__pin { position: absolute; left: 65%; top: 32%; width: 34px; height: 34px; margin: -34px 0 0 -17px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--orange); box-shadow: 0 8px 18px rgba(255,149,0,.5); animation: pin 2.4s var(--ease) infinite; }
.map__pin i { position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
@keyframes pin { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.ccard--map .ccard__body { flex: 1 1 45%; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 24px; }
/* график */
.hours { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hours li { display: grid; place-items: center; height: 36px; border-radius: 10px; background: var(--bg-sunk); font-size: .75rem; font-weight: 700; color: var(--text-2); }
.hours li.is-today { background: var(--orange); color: var(--btn-text); }
.ccard--hours .ccard__value { margin-top: auto; font-size: 1rem; }
@media (max-width: 960px) {
  .cbento { grid-template-columns: 1fr 1fr; }
  .ccard--call { grid-column: span 2; grid-row: auto; min-height: 260px; }
  .ccard--map { grid-column: span 2; }
}
@media (max-width: 560px) {
  .cbento { grid-template-columns: 1fr; gap: 12px; }
  .ccard--call, .ccard--map { grid-column: auto; }
  .ccard--map { flex-direction: column; }
  .map { min-height: 150px; }
  .ccard { padding: 22px; }
}

/* ---------- Подвал ---------- */
.footer { margin-top: 0; padding: 64px 0 calc(110px + env(safe-area-inset-bottom)); background: var(--bg-elev); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer__claim { margin-top: 14px; max-width: 320px; color: var(--text-3); font-size: .9375rem; }
.footer .brand--footer .brand__name { font-size: 1.6rem; }
.footer__col { display: flex; flex-direction: column; gap: 2px; }
.footer__h { margin-bottom: 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.footer__col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); font-size: .9375rem; text-decoration: none; transition: color .2s; }
.footer__col a:hover { color: var(--accent); text-decoration: none; }
.footer__phone { font-weight: 800; font-size: 1.125rem !important; color: var(--text) !important; }
.footer__muted { font-size: .875rem; color: var(--text-3); padding-top: 4px; }
.footer__bottom { display: flex; align-items: center; gap: 20px; padding-top: 24px; font-size: .8125rem; color: var(--text-3); }
.footer__bottom::before { content: ""; position: absolute; }
.footer__legal { flex: 1; }
.footer__top-btn { flex: none; width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-sunk); color: var(--text); cursor: pointer; transition: background-color .2s, transform .3s var(--ease); }
.footer__top-btn:hover { background: color-mix(in srgb, var(--orange) 18%, var(--bg-sunk)); }
.footer__top-btn svg { transition: transform .3s var(--ease); }
.footer__top-btn:hover svg { transform: translateY(-3px); }
.footer .container { position: relative; }
.footer__top { background: linear-gradient(var(--line), var(--line)) bottom / 100% 1px no-repeat; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: span 2; } }
@media (max-width: 560px) {
  .footer { padding-top: 48px; }
  .footer__top { gap: 24px 16px; }
  .footer__col:last-child { grid-column: span 2; }
  .footer__bottom { flex-wrap: wrap; gap: 10px 16px; }
  .footer__legal { order: 3; flex-basis: 100%; }
}

/* ---------- Плавающая корзина: стеклянная капсула ---------- */
.cart-fab {
  position: fixed; z-index: 40; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px; width: min(420px, calc(100% - 32px));
  border: 0; border-radius: 980px; cursor: pointer; color: var(--text); text-align: left;
  background: var(--glass); backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px);
  box-shadow: 0 0 0 .5px var(--line), 0 18px 50px rgba(0,0,0,.28);
  transform: translate(-50%, 160%); transition: transform .6s var(--ease), box-shadow .3s;
}
.cart-fab.is-visible { transform: translate(-50%, 0); }
.cart-fab:hover { box-shadow: 0 0 0 .5px var(--line), 0 22px 60px rgba(0,0,0,.34); }
.cart-fab.bump { animation: fabbump .5s var(--ease); }
@keyframes fabbump { 35% { transform: translate(-50%, -8px) scale(1.04); } }
.cart-fab__icon { position: relative; flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--btn-text); }
.cart-fab__count { position: absolute; top: -3px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: .6875rem; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--bg-elev); }
.cart-fab__text { flex: 1; display: flex; flex-direction: column; line-height: 1.15; min-width: 0; overflow: hidden; }
.cart-fab__label { font-size: .75rem; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-fab__sum { overflow: hidden; text-overflow: ellipsis; font-size: 1.0625rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-fab__go { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 48px; padding: 0 16px 0 20px; border-radius: 980px; background: var(--text); color: var(--bg); font-weight: 700; font-size: .9375rem; }
.cart-fab:hover .cart-fab__go svg { transform: translateX(2px); }
.cart-fab__go svg { transition: transform .3s var(--ease); }
@media (max-width: 360px) { .cart-fab__go { padding: 0 12px 0 14px; font-size: .875rem; } .cart-fab { gap: 8px; } }

/* ---------- Корзина (лист) ---------- */
.sheet { position: fixed; inset: 0; padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; margin: 0; overflow: hidden; color: var(--text); }
html:has(.sheet[open]) { overflow: hidden; }   /* страница под листом не прокручивается */
.sheet::backdrop { background: rgba(0,0,0,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .35s var(--ease); }
.sheet__panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; background: var(--bg-elev); box-shadow: var(--shadow-lg); animation: slidein .5s var(--ease); }
.sheet.is-closing .sheet__panel { animation: slideout .3s var(--ease) forwards; }
.sheet.is-closing::backdrop { animation: fade .3s reverse forwards; }
@keyframes slidein { from { transform: translateX(100%); } }
@keyframes slideout { to { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (max-width: 600px) {
  .sheet__panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: calc(100dvh - 24px); border-radius: 32px 32px 0 0; animation-name: slideup; }
  .sheet.is-closing .sheet__panel { animation-name: slidedown; }
  @keyframes slideup { from { transform: translateY(100%); } }
  @keyframes slidedown { to { transform: translateY(100%); } }
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-size: 1.5rem; }
.sheet__body { flex: 1; overflow-y: auto; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item.is-new { animation: cardin .4s var(--ease) both; }
.cart-item__art { width: 56px; height: 56px; border-radius: 18px; background: var(--bg-sunk); display: grid; place-items: center; }
.cart-item__art svg { width: 42px; height: 42px; }
.cart-item__name { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.cart-item__meta { font-size: .8125rem; color: var(--text-3); margin-top: 2px; }
.cart-item__right { display: grid; justify-items: end; gap: 6px; }
.cart-item__sum { font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-item .stepper { transform: scale(.9); transform-origin: right; }
.cart-empty { display: grid; justify-items: center; gap: 16px; padding: 48px 0; text-align: center; color: var(--text-2); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0 4px; font-size: 1.125rem; }
.cart-total strong { font-size: 1.75rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hint { font-size: .875rem; color: var(--text-3); margin-bottom: 16px; }

/* ---------- Форма ---------- */
.order-form { padding-top: 4px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .9375rem; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--radius-sm); border: 0; background: var(--bg-sunk);
  font-size: 1.0625rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; background: color-mix(in srgb, var(--btn) 10%, var(--bg-sunk)); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 0 0 3px var(--accent-hi); }
.field [aria-invalid="true"] { background: color-mix(in srgb, var(--danger) 12%, var(--bg-sunk)); }
.field__error { min-height: 0; margin-top: 6px; font-size: .875rem; color: var(--danger); }
.field__error:empty { display: none; }
.field__error::before { content: "⚠︎ "; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.field--check input {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin: 0; flex: none; cursor: pointer;
  border-radius: 8px; background-color: var(--bg-sunk);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231d1d1f' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 0 0;
  transition: background-color .25s var(--ease), background-size .3s var(--ease), transform .2s var(--ease);
}
.field--check input:hover { background-color: color-mix(in srgb, var(--btn) 18%, var(--bg-sunk)); }
.field--check input:active { transform: scale(.9); }
.field--check input:checked { background-color: var(--btn); background-size: 20px 20px; }
.field--check input:focus { outline: none; }
.field--check input:focus-visible { box-shadow: 0 0 0 3px var(--bg-elev), 0 0 0 5px var(--accent-hi); }
.field--check input[aria-invalid="true"] { background-color: color-mix(in srgb, var(--danger) 22%, var(--bg-sunk)); }
.field--check label { font-weight: 400; font-size: .9375rem; line-height: 1.4; margin: 0; cursor: pointer; color: var(--text-2); }
.field--check label a { color: var(--accent); }
.field--check .field__error { grid-column: 1 / -1; }
.form-error { margin: 8px 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-size: .9375rem; }
.form-error:empty { display: none; }

/* ---------- Готово ---------- */
.sheet__done { display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding-top: 48px; }
.sheet__done h3 { font-size: 1.75rem; }
.sheet__done h3:focus { outline: none; }
.sheet__done p { color: var(--text-2); }
.check svg { width: 88px; height: 88px; }
.check circle { fill: none; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .7s var(--ease) forwards; }
.check path { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Тост ---------- */
.toast { position: fixed; z-index: 60; left: 50%; top: calc(72px + env(safe-area-inset-top)); display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 32px); padding: 10px 16px 10px 12px; border-radius: 980px; white-space: nowrap; font-size: .9375rem; font-weight: 600; color: var(--text); background: var(--glass); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 0 0 .5px var(--line), 0 12px 32px rgba(0,0,0,.22); transform: translate(-50%, -16px) scale(.96); opacity: 0; pointer-events: none; transition: opacity .25s, transform .45s var(--ease); }
.toast span { overflow: hidden; text-overflow: ellipsis; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Apple HIG / WCAG 2.3.3: уважаем «Уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .kpi { opacity: 1; transform: none; filter: none; }
  .flow__step { opacity: 1; transform: none; }
  .confetti { display: none; }
  .hero__video { display: none; }
  .shine { animation: none; background-position: 160% 0, 0 0; }
  .hero__media { background: #0b0b0d url("assets/media/hero-poster.jpg") center / cover; }
}
@media (prefers-contrast: more) { :root { --text-3: var(--text-2); --line: rgba(127,127,127,.5); } }
@media (forced-colors: active) { .btn, .add, .segmented button { border: 1px solid ButtonText; } }


/* ---------- Бургер ---------- */
.burger { position: relative; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.burger:hover { background: rgba(127,127,127,.15); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .35s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__links a[aria-current="page"] { opacity: 1; color: var(--accent); }
.nav--page + * { padding-top: 60px; }

/* ---------- Выезжающее меню ---------- */
.menu { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; }
html:has(.menu[open]) { overflow: hidden; }
.menu::backdrop { background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .35s var(--ease); }
.menu.is-closing::backdrop { animation: fade .3s reverse forwards; }
.menu__panel { position: fixed; top: 0; bottom: 0; right: 0; width: min(420px, 100%); display: flex; flex-direction: column; gap: 8px; padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); background: var(--glass); backdrop-filter: saturate(1.8) blur(30px); -webkit-backdrop-filter: saturate(1.8) blur(30px); box-shadow: var(--shadow-lg); overflow-y: auto; animation: slidein .5s var(--ease); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .menu__panel { background: var(--bg-elev); } }
.menu.is-closing .menu__panel { animation: slideout .32s var(--ease) forwards; }
.menu__head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.menu__main, .menu__cats { list-style: none; margin: 0; padding: 0; }
.menu__main a { display: flex; align-items: center; min-height: 52px; font-size: clamp(1.6rem, 6vw, 2rem); font-weight: 700; letter-spacing: -.03em; color: var(--text); border-radius: 14px; }
.menu__main a:hover { text-decoration: none; color: var(--accent); }
.menu__main a[aria-current="page"] { color: var(--accent); }
.menu__label { margin: 20px 0 6px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.menu__cats a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 8px; border-radius: 18px; color: var(--text); font-weight: 600; }
.menu__cats a:hover { text-decoration: none; background: color-mix(in srgb, var(--btn) 12%, transparent); }
.menu__ico { width: 44px; height: 44px; border-radius: 14px; background: var(--bg-sunk); display: grid; place-items: center; flex: none; }
.menu__ico svg { width: 34px; height: 34px; }
.menu__count { margin-left: auto; font-size: .8125rem; font-weight: 500; color: var(--text-3); }
.menu__foot { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; text-align: center; }
.menu[open] .menu__main li, .menu[open] .menu__cats li { animation: menuin .6s var(--ease) both; }
.menu[open] li:nth-child(2) { animation-delay: .04s; } .menu[open] li:nth-child(3) { animation-delay: .08s; }
.menu[open] li:nth-child(4) { animation-delay: .12s; } .menu[open] li:nth-child(5) { animation-delay: .16s; }
.menu[open] .menu__cats li { animation-delay: calc(.18s + var(--k, 0s)); }
@keyframes menuin { from { opacity: 0; transform: translateX(28px); } }

/* ---------- Витрина на главной ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: clamp(48px, 7vw, 80px); }
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; min-height: 200px; border-radius: var(--radius); background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.cat-tile:hover { text-decoration: none; transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-tile svg { width: 96px; height: 96px; margin: 0 0 auto auto; filter: drop-shadow(0 12px 16px rgba(0,0,0,.18)); transition: transform .7s var(--ease); }
.cat-tile:hover svg { transform: scale(1.1) rotate(-4deg); }
.cat-tile__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.cat-tile__count { font-size: .875rem; color: var(--text-3); }
.cat-tile--tools { background: radial-gradient(90% 80% at 80% 10%, color-mix(in srgb, var(--c-tools) 26%, transparent), transparent 70%), var(--bg-elev); }
.cat-tile--floor { background: radial-gradient(90% 80% at 80% 10%, color-mix(in srgb, var(--c-floor) 26%, transparent), transparent 70%), var(--bg-elev); }
.cat-tile--walls { background: radial-gradient(90% 80% at 80% 10%, color-mix(in srgb, var(--c-walls) 26%, transparent), transparent 70%), var(--bg-elev); }
.cat-tile--cable { background: radial-gradient(90% 80% at 80% 10%, color-mix(in srgb, var(--c-cable) 26%, transparent), transparent 70%), var(--bg-elev); }
.cat-tile--rebar { background: radial-gradient(90% 80% at 80% 10%, color-mix(in srgb, var(--c-rebar) 30%, transparent), transparent 70%), var(--bg-elev); }
@media (max-width: 1000px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; } .cat-tile { min-height: 160px; padding: 16px; } .cat-tile svg { width: 72px; height: 72px; } .cat-tile:last-child { grid-column: span 2; } }
.showcase-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.showcase-head h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 600; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover { text-decoration: none; } .link-arrow:hover span { transform: translateX(4px); }
.showcase-cta { display: flex; align-items: center; gap: 24px; margin-top: 20px; padding: 22px 22px 22px 28px; border-radius: var(--radius); background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.showcase-cta:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.showcase-cta__icons { display: flex; flex: none; }
.showcase-cta__icons svg { width: 56px; height: 56px; margin-left: -14px; padding: 6px; border-radius: 18px; background: var(--bg-sunk); box-shadow: 0 0 0 3px var(--bg-elev); transition: transform .5s var(--ease); }
.showcase-cta__icons svg:first-child { margin-left: 0; }
.showcase-cta:hover .showcase-cta__icons svg { transform: translateY(-4px) rotate(-4deg); }
.showcase-cta:hover .showcase-cta__icons svg:nth-child(even) { transform: translateY(-2px) rotate(4deg); }
.showcase-cta__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.showcase-cta__text strong { font-size: 1.375rem; letter-spacing: -.02em; }
.showcase-cta__text span { color: var(--text-3); font-size: .9375rem; }
.showcase-cta__btn { flex: none; }
@media (max-width: 640px) {
  .showcase-cta { flex-wrap: wrap; gap: 14px; padding: 20px; }
  .showcase-cta__text { flex-basis: 100%; }
  .showcase-cta__icons svg { width: 48px; height: 48px; margin-left: -10px; border-radius: 15px; }
  .showcase-cta__btn { width: 100%; }
}
/* «Популярное»: ровные ряды по 4 */
.grid[data-featured] { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid[data-featured] { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid[data-featured] { grid-template-columns: 1fr; } }
/* меньше пустоты между витриной и «Почему мы» */
#catalog { padding-bottom: clamp(56px, 7vw, 96px); }
.why { padding-top: clamp(56px, 7vw, 96px); }

/* ---------- Страница каталога ---------- */
.catalog--page { padding-top: 32px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--text-3); margin-bottom: 16px; }
.crumbs a { color: var(--text-2); }
.page-head h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); letter-spacing: -.04em; }
.page-head { margin-bottom: 28px; }

/* ---------- Машина-жетон едет по линии шагов (размер = кружок шага, за линию не выходит) ---------- */
.wheel { transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow__truck {
  position: absolute; z-index: 3; list-style: none; left: 0; top: 0; width: 56px; height: 56px; margin: 0;
  display: grid; place-items: center; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 6px var(--bg-elev), 0 10px 24px rgba(255,149,0,.45);
  opacity: 0; pointer-events: none;
  transition: left 1.1s cubic-bezier(.45, 0, .25, 1), top 1.1s cubic-bezier(.45, 0, .25, 1), opacity .3s;
}
.flow.is-started .flow__truck { opacity: 1; }
.flow__truck svg { width: 70%; height: auto; overflow: visible; }
.flow.is-driving .flow__truck .wheel { animation: spin .45s linear infinite; }
.flow.is-driving .flow__truck svg { animation: bumpy .3s ease-in-out infinite; }
@keyframes bumpy { 50% { transform: translateY(-1.5px); } }
.flow.is-complete .flow__truck { animation: arrive .6s cubic-bezier(.34, 1.6, .64, 1); }
@keyframes arrive { 40% { transform: scale(1.15); } }
.flow__step--gift .flow__badge { visibility: hidden; }          /* на последнем шаге вместо «4» — машина */
@media (max-width: 420px) { .flow__truck { width: 44px; height: 44px; } }

/* ---------- Самые узкие телефоны (≤ 420 / ≤ 360) ---------- */
@media (max-width: 420px) {
  .flow::before, .flow::after { left: 19.5px; top: 40px; bottom: 40px; }
  .flow__step { margin-left: 60px; padding: 18px; grid-template-columns: 1fr 56px; }
  .flow__badge { width: 44px; height: 44px; left: -60px; top: 18px; font-size: 1.05rem; }
  .flow__sticker { width: 56px; height: 56px; }
  .perk { flex-basis: 84vw; min-height: 420px; padding: 26px; }
  .section-head h2 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
}
@media (max-width: 360px) {
  .nav__phone { display: none; }
  .nav__inner { gap: 4px; }
  .cart-btn { margin-left: auto; }
  .card__foot { flex-wrap: wrap; }
}

/* ---------- «Показать ещё» ---------- */
.more { display: grid; justify-items: center; gap: 12px; margin-top: 36px; }
.more:empty { display: none; }
.more__count { font-size: .875rem; color: var(--text-3); }
.more__bar { width: min(240px, 60%); height: 4px; border-radius: 2px; background: var(--bg-sunk); overflow: hidden; }
.more__bar span { display: block; height: 100%; background: var(--orange); transform: scaleX(var(--w, 0)); transform-origin: left; transition: transform .5s var(--ease); }

/* ---------- Правки по аудиту мобильной вёрстки ---------- */
.how, .why, .stats, .contacts, .catalog { overflow-x: clip; }
.kpi__row .meter { min-width: 0; }
.kpi__ring-num { gap: 2px; line-height: 1; }
.hero__title { line-height: 1; }
.ccard__phone { font-size: clamp(1.45rem, 7.2vw, 2.75rem); white-space: nowrap; }
.ccard--call { padding-right: 26px; }
.ccard__status { max-width: calc(100% - 70px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer .brand--footer { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.footer .brand--footer > span { display: flex; flex-direction: column; }
.footer .brand--footer .brand__name { line-height: 1; }
.brand__tag { display: block; margin-top: 5px; font-size: .6875rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 420px) {
  /* корзина: сумма и степпер — второй строкой во всю ширину */
  .cart-item { grid-template-columns: 48px 1fr; row-gap: 10px; }
  .cart-item__art { width: 48px; height: 48px; }
  .cart-item__right { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
  .cart-item .stepper { transform: none; }
  /* плитки категорий */
  .cat-tile__name { font-size: 1.05rem; }
  .cat-tile { padding: 14px; }
  /* звонок */
  .ccard__status { max-width: calc(100% - 84px); font-size: .75rem; padding: 6px 10px; }
  .ccard__go { width: 48px; height: 48px; top: 18px; right: 18px; }
  /* шаги: описание во всю ширину карточки */
  .flow__step p { grid-column: 1 / -1; }
  .flow__step h3 { grid-row: 1; align-self: center; }
  .flow__sticker { grid-row: 1; }
}

/* Подвал: копирайт и круглая «наверх» — одна строка по центру, правовая строка ниже */
.footer__bottom { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 20px; row-gap: 8px; }
.footer__bottom p { margin: 0; line-height: 1.4; }
.footer__bottom::before { content: none; }
@media (max-width: 560px) {
  .footer__bottom { grid-template-columns: 1fr auto; }
  .footer__legal { grid-column: 1 / -1; grid-row: 2; order: 0; }
}

/* ---------- Заголовок «строится»: чертёж → кладка → кран ставит точку → отделка ---------- */
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title .ch { display: inline-block; position: relative; }
.hero__title .ch--sp { white-space: pre; }
.hero__title.is-building .shine { background: none; animation: none; -webkit-text-fill-color: initial; }
.hero__title.is-building .ch {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 179, 64, .9);
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 .14em, rgba(0, 0, 0, .38) .14em .16em),
    repeating-linear-gradient(90deg, transparent 0 .3em, rgba(0, 0, 0, .26) .3em .315em),
    var(--ch-fill);
  -webkit-background-clip: text; background-clip: text; background-repeat: no-repeat;
  background-size: 100% 0%, 100% 0%, 100% 0%; background-position: 0 100%, 0 100%, 0 100%;
  opacity: 0; transform: translateY(.1em);
  animation: chDraw .35s var(--ease) forwards, chPour .6s cubic-bezier(.55, 0, .3, 1) forwards;
  animation-delay: calc(var(--i) * 70ms), calc(var(--i) * 70ms + 260ms);
  transition: -webkit-text-stroke-color .5s;
}
.hero__title .shine--metal .ch { --ch-fill: linear-gradient(180deg, #ffffff 0%, #e6e8ec 45%, #a9aeb6 100%); }
.hero__title .shine--orange .ch { --ch-fill: linear-gradient(100deg, #FFCC00 0%, #FFB340 30%, #FF9500 65%, #FF6B00 100%); }
@keyframes chDraw { to { opacity: 1; transform: none; } }
@keyframes chPour { to { background-size: 100% 100%, 100% 100%, 100% 100%; } }
/* швы и контур «схватываются» и исчезают */
.hero__title.is-building.is-cured .ch { -webkit-text-stroke-color: transparent; background-image: none, none, var(--ch-fill); }

/* точку опускает кран: трос с крюком сверху */
.hero__title.is-building .ch--drop {
  -webkit-text-stroke: 0; background-size: 100% 100%, 100% 100%, 100% 100%; background-image: none, none, var(--ch-fill);
  opacity: 1; transform: translateY(-2.4em);
  animation: chDrop .9s cubic-bezier(.3, 1.35, .5, 1) var(--drop-delay, 1.6s) forwards;
}
.hero__title .ch--drop::before {            /* трос */
  content: ""; position: absolute; left: 50%; bottom: .32em; width: 3px; height: 120vh; margin-left: -1.5px;
  background: linear-gradient(to top, #d1d1d6, rgba(209, 209, 214, .4) 40%, rgba(209, 209, 214, 0));
  transform-origin: top; opacity: 0;
}
.hero__title .ch--drop::after {             /* крюк */
  content: ""; position: absolute; left: 50%; bottom: .22em; width: .16em; height: .16em; margin-left: -.08em;
  border: 3px solid #d1d1d6; border-top: 0; border-radius: 0 0 .16em .16em; opacity: 0;
}
.hero__title.is-building .ch--drop::before, .hero__title.is-building .ch--drop::after { opacity: 1; }
.hero__title.is-building.is-cured .ch--drop::before { animation: cableUp .55s var(--ease) forwards; }
.hero__title.is-building.is-cured .ch--drop::after { animation: hookUp .55s var(--ease) forwards; }
@keyframes chDrop { 0% { transform: translateY(-2.4em); } 70% { transform: translateY(.06em); } 100% { transform: none; } }
@keyframes cableUp { to { transform: scaleY(0); opacity: 0; } }
@keyframes hookUp { to { transform: translateY(-3em); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__title .ch--drop::before, .hero__title .ch--drop::after { display: none; } }

/* ---------- Фото товаров: белая студийная плитка ---------- */
.card__art.has-photo { background: #fff; }
.card__art.has-photo { overflow: hidden; }
.card__art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 12px 20px; transition: transform .7s var(--ease); }
.card:hover .card__art img { transform: scale(1.05); }
.cart-item__art.has-photo { background: #fff; overflow: hidden; }
.cart-item__art { position: relative; }
.cart-item__art img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); max-width: none; object-fit: contain; }

/* ---------- Документы (политика, согласие) ---------- */
.back-pill { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 18px 0 6px; border-radius: 980px;
  background: var(--bg-elev); color: var(--text); font-weight: 600; font-size: .9375rem; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.back-pill:hover { text-decoration: none; transform: translateX(-3px); box-shadow: var(--shadow-lg); }
.back-pill__ico { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--btn-text); }
.legal { padding: 28px 0 80px; }
.legal__head { max-width: 760px; margin: 28px 0 36px; }
.legal__head h1 { font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: -.035em; line-height: 1.05; }
.legal__lead { margin-top: 14px; font-size: 1.125rem; color: var(--text-2); }
.legal__meta { margin-top: 10px; font-size: .875rem; color: var(--text-3); }
.legal__grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.legal__toc { position: sticky; top: 84px; padding: 18px; border-radius: var(--radius); background: var(--bg-elev); box-shadow: var(--shadow); }
.legal__toc-h { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal__toc a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--text-2); font-size: .875rem; line-height: 1.3; }
.legal__toc a:hover { text-decoration: none; background: var(--bg-sunk); color: var(--text); }
.legal__body { display: grid; gap: 14px; max-width: 760px; }
.legal__body section { padding: 26px 28px; border-radius: var(--radius); background: var(--bg-elev); box-shadow: var(--shadow); scroll-margin-top: 84px; }
.legal__body h2 { font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 10px; }
.legal__body p { color: var(--text-2); line-height: 1.6; }
.legal__body p + p { margin-top: 8px; }
.legal__list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.legal__list li { position: relative; padding-left: 22px; color: var(--text-2); line-height: 1.55; }
.legal__list li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.legal__list strong { color: var(--text); }
mark.fill { background: color-mix(in srgb, var(--orange) 22%, transparent); color: var(--text); padding: 1px 4px; border-radius: 6px; }
@media (max-width: 900px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .legal__toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .legal__toc ol { grid-template-columns: 1fr; }
  .legal__body section { padding: 20px; }
}
.card__art.is-cover img, .cart-item__art.is-cover img { inset: 0; width: 100%; height: 100%; padding: 0; object-fit: cover; }
.footer__req { grid-column: 1 / -1; grid-row: 2; color: var(--text-3); font-size: .8125rem; }
.footer__legal { grid-row: 3; grid-column: 1 / -1; }
.footer__bottom .footer__top-btn { grid-row: 1; grid-column: -2; justify-self: end; }
.sheet__panel:focus, .menu__panel:focus { outline: none; }

/* iOS: двойное касание (быстрое «+ +») не увеличивает страницу; масштаб двумя пальцами остаётся */
html { touch-action: manipulation; }
/* iOS увеличивает страницу при фокусе на поле с шрифтом < 16px — держим поля не мельче 16px */
input, textarea, select { font-size: max(16px, 1em); }
