/* NUR CLEAN HO RE CA — сайт-каталог. v3 «Обсидиан и зеркало»: металл только в знаке и тонких кантах, каталог матовый. */
:root {
  color-scheme: dark;
  --obsidian: #0C0F0E;   /* фон */
  --carbon: #171B19;     /* шапка, панели, корзина */
  --graphite: #202623;   /* плитки, поля */
  --raised: #29302C;     /* выбранное */
  --porcelain: #F7F7F3;  /* основной текст */
  --mist: #BDC7C1;       /* второстепенный текст */
  --dim: #8E9993;        /* подписи мелким кеглем (4.9:1 на obsidian) */
  --champagne: #DBC49A;  /* акцент */
  --gold: #BA9B65;       /* фирменный шампань из прайса */
  --chrome: #CAD1CE;
  --emerald: #16774C;    /* WhatsApp */
  --error: #F2A08C;
  --line: rgba(202, 209, 206, .12);
  --line-2: rgba(202, 209, 206, .2);
  /* полированный металл: светлое небо — тёмный горизонт — светлая земля */
  --chrome-edge: linear-gradient(90deg, rgba(202,209,206,0), rgba(202,209,206,.55) 22%, #F7F7F3 50%, rgba(219,196,154,.6) 78%, rgba(219,196,154,0));
  --serif: "Spectral", Georgia, serif;
  --sans: "Golos Text", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --top-h: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 24px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; background: var(--obsidian); }
body {
  margin: 0; background: var(--obsidian); color: var(--porcelain);
  font: 400 16px/1.5 var(--sans); font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
::placeholder { color: var(--dim); opacity: 1; }
::selection { background: var(--champagne); color: var(--obsidian); }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--porcelain); color: var(--obsidian); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -.01em; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 20px; padding: 0 var(--gutter);
  background: var(--obsidian);
}
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--chrome-edge); opacity: 0; transition: opacity .4s; }
.is-scrolled .top::after { opacity: .5; }
.top-brand { display: inline-flex; align-items: center; min-height: 44px; }
.top-brand img { width: auto; height: 34px; }
.top-nav { display: flex; gap: 28px; margin-left: auto; }
.top-nav a { text-decoration: none; color: var(--mist); font-size: 15px; transition: color .2s; }
.top-nav a:hover { color: var(--porcelain); }
.top-call { text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.top-cart {
  position: relative; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--carbon); display: grid; place-items: center;
}
.top-cart svg { width: 22px; height: 22px; }
.top-cart-n {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--champagne); color: var(--obsidian); font-size: 11px; font-weight: 600; display: grid; place-items: center;
}

/* ---------- первый экран ---------- */
.hero { padding: clamp(20px, 5vw, 64px) var(--gutter) clamp(32px, 6vw, 72px); max-width: 1280px; margin: 0 auto; position: relative; overflow-x: clip; }
/* обсидиановая плоскость: мягкий свет сверху и линия горизонта, в которую «уходит» отражение */
.stage { position: relative; display: grid; justify-items: center; padding: 8px 0 0; }
.stage::before {
  content: ""; position: absolute; inset: -10% -20% -30%; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 45% at 50% 38%, rgba(202, 209, 206, .09), transparent 70%),
              radial-gradient(40% 18% at 50% 92%, rgba(219, 196, 154, .07), transparent 70%);
}
.mark { position: relative; width: min(100%, 640px); aspect-ratio: 1680 / 1121; --sheen: 100; }
.mark::after { /* линия горизонта под знаком */
  content: ""; position: absolute; left: -6%; right: -6%; bottom: -5%; height: 1px; background: var(--chrome-edge); opacity: .35;
}
.metal { position: absolute; inset: 0; }
.metal i { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* NUR CLEAN — платина: небо, тёмный горизонт посередине букв, светлая земля */
.m-w {
  -webkit-mask-image: url(../assets/mark-w.png); mask-image: url(../assets/mark-w.png);
  background: linear-gradient(180deg,
    #FFFFFF 0%, #E9EDEB 9%, #C3CBC7 17%, #7E8984 22.5%, #2B3330 24.5%, #59625E 26%, #B9C2BE 30%,
    #EEF1EF 37%, #A4ADA9 45%, #D7DDDA 52%, #F4F6F5 57%, #9AA39F 64%);
}
/* HO RE CA — шампань */
.m-g {
  -webkit-mask-image: url(../assets/mark-g.png); mask-image: url(../assets/mark-g.png);
  background: linear-gradient(180deg, #FFF3D8 76%, #E9D3A4 83%, #A98A55 87.5%, #5E4B2C 89%, #C9AE78 91.5%, #F1DFB6 95%, #B39461 100%);
}
/* узкая диагональ света, проходит по буквам */
.m-s {
  -webkit-mask-image: url(../assets/mark-w.png), url(../assets/mark-g.png); mask-image: url(../assets/mark-w.png), url(../assets/mark-g.png);
  background: linear-gradient(108deg, transparent 44%, rgba(255, 255, 255, .0) 46%, rgba(255, 255, 255, .95) 50%, rgba(255, 255, 255, .0) 54%, transparent 56%) no-repeat;
  background-size: 300% 100%; background-position: calc(var(--sheen) * 1%) 0;
}
/* сборка из трёх полос Z-укладки — только во время сцены, потом снова цельный знак без швов */
.fold { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(3, 1fr); perspective: 1200px; visibility: hidden; }
.mark.is-folding .fold { visibility: visible; }
.mark.is-folding > .metal { visibility: hidden; }
.fold-panel { position: relative; overflow: hidden; transform-style: preserve-3d; }
.fold-panel .metal { height: 300%; bottom: auto; }
.fold-panel:nth-child(2) .metal { top: -100%; }
.fold-panel:nth-child(3) .metal { top: -200%; }
.fold-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 70%); opacity: var(--crease, 0); pointer-events: none; }
/* отражение в полированной плоскости */
.reflect {
  position: absolute; left: 0; right: 0; top: 100%; height: 100%; pointer-events: none; margin-top: 2%;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.1) 22%, transparent 34%); mask-image: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.1) 22%, transparent 34%);
}
.reflect .metal { transform: scaleY(-1); opacity: .42; }

.hero-copy { position: relative; z-index: 1; }
.hero-title { font-size: clamp(28px, 4.6vw, 52px); line-height: 1.1; margin-top: clamp(40px, 7vw, 72px); max-width: 19ch; }
.hero-lead { max-width: 54ch; color: var(--mist); font-size: clamp(15px, 1.5vw, 17px); margin: 14px 0 24px; }
.search {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px;
  background: var(--graphite); border: 1px solid var(--line-2); border-radius: 26px; transition: border-color .2s, background .2s;
}
.search:focus-within { border-color: var(--champagne); background: var(--raised); }
.search svg { width: 20px; height: 20px; flex: none; color: var(--mist); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { border: 0; background: none; font-size: 22px; width: 36px; height: 36px; color: var(--mist); }
.hero-search { max-width: 560px; }
.hero-hit { margin-top: 10px; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--champagne); background: var(--champagne); color: var(--obsidian); font-weight: 500; }
.hero-hit[data-none="1"] { background: transparent; color: var(--porcelain); border-color: var(--line-2); }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--mist); font-size: 14px; }
.perks li { position: relative; padding-left: 14px; }
.perks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--champagne); }
.perks b { color: var(--porcelain); font-weight: 500; }

.hero-cats { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-cats a {
  display: flex; flex-direction: column; gap: 2px; min-height: 112px; padding: 12px;
  text-decoration: none; background: var(--carbon); border: 1px solid var(--line); border-radius: var(--r-l); position: relative; overflow: hidden;
  transition: border-color .3s, background-color .3s;
}
/* матовая плитка, отражение только при наведении */
.hero-cats a::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(247, 247, 243, .07) 50%, transparent 65%) no-repeat;
  background-size: 260% 100%; background-position: 100% 0; transition: background-position .9s var(--ease);
}
.hero-cats b { font-weight: 500; font-size: 14px; line-height: 1.25; position: relative; }
.hero-cats small { color: var(--dim); font-size: 12px; position: relative; }
.hero-cats .ph { order: -1; flex: none; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; position: relative; overflow: hidden; background: radial-gradient(circle at 35% 30%, #FFFFFF, #E6E8E3 70%); }
.hero-cats .ph img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
@media (hover: hover) {
  .hero-cats a:hover { border-color: var(--line-2); background-color: var(--graphite); }
  .hero-cats a:hover::before { background-position: 0 0; }
  .hero-cats a:hover .ph img { transform: scale(1.08); }
}

@media (min-width: 1000px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(48px, 6vw, 96px); align-items: center; }
  .stage { padding: 24px 0 18%; }
  .hero-title { margin-top: 0; font-size: clamp(34px, 3.2vw, 46px); }
  .hero-cats { grid-column: 1 / -1; grid-template-columns: repeat(9, 1fr); margin-top: 24px; }
}

/* ---------- каталог ---------- */
.bar {
  position: sticky; top: var(--top-h); z-index: 30; background: var(--obsidian);
  padding: 10px max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))) 0;
}
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--chrome-edge); opacity: .45; }
.bar .search { height: 46px; max-width: 560px; }
.rail { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; position: relative; }
@media (max-width: 819px) { .rail { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); } }
.rail::-webkit-scrollbar { display: none; }
.rail a {
  flex: none; text-decoration: none; font-size: 14px; color: var(--mist); padding: 12px 10px 13px; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.rail a[aria-current="true"] { color: var(--porcelain); border-bottom-color: var(--champagne); }
.rail a sup { font-size: 10px; color: var(--champagne); margin-left: 2px; }
.catalog-body { max-width: 1280px; margin: 0 auto; padding: 8px var(--gutter) 48px; }
.catalog-note { color: var(--dim); font-size: 13px; margin: 14px 0 0; max-width: 70ch; }
.group { padding-top: 40px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; position: relative; }
.group-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--chrome), rgba(202,209,206,.15) 60%, transparent); }
.group-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.group-head span { color: var(--dim); font-size: 13px; white-space: nowrap; }
.rows { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .rows { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* строка товара: живой прайс-лист, фото на фарфоровой подложке */
.row { display: grid; grid-template-columns: 84px 1fr; gap: 6px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row-ph {
  grid-row: span 2; width: 84px; height: 84px; border-radius: var(--r-m); display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 35% 25%, #FFFFFF, #E9EBE6 75%);
}
.row-ph img { width: 92%; height: 92%; object-fit: contain; mix-blend-mode: multiply; }
.row-ph .nophoto { font-size: 11px; color: #5E6763; text-align: center; line-height: 1.2; }
.row-name { font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: 0; }
.row-name .new { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--champagne); border: 1px solid rgba(219,196,154,.6); border-radius: 10px; padding: 0 6px; vertical-align: 2px; }
.row-desc { color: var(--mist); font-size: 14px; margin: 2px 0 0; }
.row-code { font-size: 12px; color: var(--dim); margin: 4px 0 0; }
.row-buy { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.units { display: inline-flex; border: 1px solid var(--line-2); border-radius: 22px; padding: 3px; background: var(--carbon); }
.unit {
  border: 0; background: none; border-radius: 19px; min-height: 40px; padding: 4px 12px; text-align: left; line-height: 1.15;
  display: flex; flex-direction: column; justify-content: center; transition: background-color .2s, color .2s;
}
.unit small { font-size: 12px; color: var(--dim); transition: color .2s; }
.unit b { font-weight: 600; font-size: 15px; }
.unit[aria-pressed="true"] { background: var(--porcelain); color: var(--obsidian); }
.unit[aria-pressed="true"] small { color: #4A524E; }
.unit.solo { cursor: default; }
.price-note { font-size: 12px; color: var(--dim); width: 100%; margin-top: -4px; }
.add {
  min-height: 46px; padding: 0 20px; border-radius: 23px; border: 1px solid var(--champagne); background: transparent; color: var(--champagne);
  font-weight: 500; margin-left: auto; transition: background-color .2s, color .2s, transform .12s;
}
@media (hover: hover) { .add:hover { background: var(--champagne); color: var(--obsidian); } }
.add:active, .qty button:active { transform: scale(.97); }
/* в заказе: заполненный шампань — сразу видно, что уже выбрано */
.qty { display: inline-flex; align-items: center; margin-left: auto; border-radius: 23px; height: 46px; background: var(--champagne); color: var(--obsidian); }
.qty button { width: 46px; height: 46px; border: 0; background: none; font-size: 20px; transition: transform .12s; }
.qty output { min-width: 30px; text-align: center; font-weight: 600; }
.empty { padding: 40px 0; color: var(--mist); }

/* ---------- доставка, оплата, как заказать ---------- */
.terms, .contacts { padding: clamp(56px, 8vw, 104px) var(--gutter); }
.terms { max-width: 1280px; margin: 0 auto; }
.terms h2, .contacts h2 { font-size: clamp(30px, 4.4vw, 48px); }
.terms-list { display: grid; gap: 0; margin: 28px 0 0; }
.terms-list div { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.terms-list dt { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; color: var(--champagne); }
.terms-list dd { margin: 0; color: var(--mist); }
@media (min-width: 820px) { .terms-list { grid-template-columns: repeat(3, 1fr); column-gap: 40px; } }
.how-h { font-size: clamp(24px, 3vw, 32px); margin-top: clamp(48px, 6vw, 72px); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 20px 0 0; display: grid; gap: 24px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: s; border-top: 1px solid var(--line-2); padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--chrome); }
.steps b { font-weight: 600; }
.steps span { color: var(--mist); }

/* ---------- контакты и подвал ---------- */
.contacts { background: var(--carbon); position: relative; }
.contacts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--chrome-edge); opacity: .5; }
.contact-grid { display: grid; gap: 28px; margin-top: 28px; max-width: 1280px; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.c-name { font-family: var(--serif); font-size: 28px; margin: 0; }
.c-role { color: var(--mist); margin: 2px 0 14px; }
.c-phone { display: flex; align-items: center; min-height: 44px; font-size: 26px; font-weight: 600; text-decoration: none; }
.c-mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--mist); }
.c-addr { margin: 0 0 18px; font-size: 18px; line-height: 1.45; }
.c-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 24px; text-decoration: none; font-weight: 500; border: 1px solid transparent; }
.btn-line { border-color: var(--line-2); background: transparent; }
.btn-wa-line { background: var(--emerald); color: #fff; }
.btn-wa { background: var(--emerald); color: #fff; width: 100%; min-height: 54px; font-size: 17px; transition: opacity .2s, background-color .2s; }
.btn-wa[aria-disabled="true"] { background: var(--raised); color: var(--mist); }
.foot { margin: 48px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* ---------- плашка заказа ---------- */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.cartbar-open {
  pointer-events: auto; position: relative; overflow: hidden; width: 100%; max-width: 560px; margin: 0 auto; min-height: 58px; border-radius: 29px;
  border: 1px solid var(--line-2); background: var(--carbon); color: var(--porcelain);
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(247, 247, 243, .08);
}
/* блик проходит по плашке, когда товар добавлен */
.cartbar-open::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(247, 247, 243, .16) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%; background-position: calc(var(--glint, 100) * 1%) 0;
}
.cartbar-n { font-size: 15px; color: var(--mist); }
.cartbar-n::before { content: "Заказ: "; color: var(--porcelain); }
.cartbar-sum { font-size: 18px; color: var(--champagne); }
.cartbar-meter { position: absolute; left: 22px; right: 22px; bottom: 7px; height: 2px; border-radius: 1px; background: rgba(202, 209, 206, .14); overflow: hidden; }
.cartbar-meter i, .meter i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--gold), var(--champagne)); transition: transform .5s var(--ease); }
.cartbar.is-ok .cartbar-meter { opacity: 0; }
.has-order main { padding-bottom: 88px; }

/* ---------- корзина ---------- */
.sheet-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); z-index: 60; }
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--carbon); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: 0 -24px 70px rgba(0, 0, 0, .6);
}
.sheet::before { content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px; background: var(--chrome-edge); opacity: .7; }
@media (min-width: 820px) {
  .sheet { left: auto; top: 0; width: 460px; max-height: none; border-radius: 0; }
  .sheet::before { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--chrome) 30%, rgba(219,196,154,.7) 70%, transparent); }
  .sheet-grip { display: none; }
}
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 10px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 10px; }
.sheet-head h2 { font-size: 28px; }
.sheet-head h2:focus { outline: 0; }
.sheet-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--graphite); font-size: 22px; }
.sheet-body { overflow: auto; padding: 0 20px; flex: 1; overscroll-behavior: contain; }
.lines { list-style: none; padding: 0; margin: 0; }
.line { display: grid; grid-template-columns: 52px 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .ph { width: 52px; height: 52px; border-radius: 10px; grid-row: span 2; background: radial-gradient(circle at 35% 25%, #FFFFFF, #E9EBE6 75%); display: grid; place-items: center; overflow: hidden; }
.line .ph img { width: 90%; height: 90%; object-fit: contain; mix-blend-mode: multiply; }
.line-name { font-size: 14px; font-weight: 500; line-height: 1.25; }
.line-meta { font-size: 13px; color: var(--dim); }
.line-sum { font-weight: 600; text-align: right; }
.line .qty { height: 40px; margin: 0; grid-column: 3; justify-self: end; background: var(--graphite); color: var(--porcelain); border: 1px solid var(--line-2); }
.line .qty button { width: 40px; height: 38px; font-size: 18px; }
.repeat { padding: 24px 0; text-align: center; }
.repeat p { color: var(--mist); margin: 0 0 12px; }
.who { display: grid; gap: 10px; padding: 18px 0 8px; }
.who label { display: grid; gap: 4px; font-size: 13px; color: var(--mist); }
.who input { height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 0 12px; background: var(--graphite); color: var(--porcelain); font-size: 16px; }
.who input:focus { outline: 0; border-color: var(--champagne); }
.who em { display: none; font-style: normal; font-size: 12px; color: var(--error); }
.who .is-bad em { display: block; }
.who .is-bad input { border-color: var(--error); }
.sheet-foot { padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--carbon); }
.minimum { margin-bottom: 8px; }
.minimum p { margin: 0 0 6px; font-size: 13px; color: var(--mist); }
.minimum.is-short p { color: var(--champagne); }
.meter { display: block; position: relative; height: 2px; border-radius: 1px; background: rgba(202, 209, 206, .14); overflow: hidden; }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.sheet-total span { color: var(--mist); }
.sheet-total b { font-size: 24px; }
.sheet-hint { font-size: 12.5px; color: var(--dim); margin: 6px 0 0; line-height: 1.35; }
.sheet-more { display: flex; justify-content: space-between; gap: 12px; margin-top: 2px; }
.sheet-link { border: 0; background: none; color: var(--mist); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0; }

/* ---------- телефон ---------- */
@media (max-width: 819px) {
  :root { --top-h: 56px; }
  .top { gap: 10px; }
  .top-brand img { height: 32px; }
  .top-nav { display: none; }
  .top-call { margin-left: auto; font-size: 14px; }
  .mark { width: 72%; }
  .hero { padding-top: 12px; }
  .hero-title { font-size: 27px; margin-top: 15%; }
  .hero-lead { font-size: 15px; margin: 10px 0 18px; }
  .perks { font-size: 13px; gap: 6px 16px; }
  .hero-cats { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .hero-cats::-webkit-scrollbar { display: none; }
  .hero-cats li { flex: 0 0 40%; scroll-snap-align: start; }
  .hero-cats a { min-height: 104px; padding: 10px; }
  .hero-cats b { font-size: 13px; }
  .row { grid-template-columns: 72px 1fr; }
  .row-ph { width: 72px; height: 72px; }
  .row-buy { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .top-call { display: none; }
  .top-cart { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* плитки разделов одной высоты */
.hero-cats li { display: flex; }
.hero-cats a { flex: 1; }
@media (max-height: 700px) {
  .sheet-hint { display: none; }
  .sheet-head { padding-top: 8px; }
}
