/* Каталог и страницы товаров на основном сайте (перенесено из лаборатории
   prototypes/catalog-page 09.10.2026). Шрифты и токены — как в styles.css
   главной (шапка-капсула, кнопки, футер — те же), плюс корзина, форма
   запроса и сообщение. */
/* Шрифты — со своего сервера (152-ФЗ): Onest (текст) и TikTok Sans
   (заголовки, с 07.10.2026 вместо Tektur — пробуем по просьбе пользователя),
   лицензия SIL OFL 1.1 (fonts/README.md). Наборы символов грузятся, только
   если они есть на странице. Tektur оставлен описанным для отката, не грузится. */
/* Onest, cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Onest, cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Onest, math */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/onest-math.woff2) format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
/* Onest, symbols */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/onest-symbols.woff2) format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
}
/* Onest, latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/onest-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Onest, latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* TikTok Sans, cyrillic-ext */
@font-face {
  font-family: 'TikTok Sans';
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 100% 150%;
  font-display: swap;
  src: url(/fonts/tiktok-sans-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* TikTok Sans, cyrillic */
@font-face {
  font-family: 'TikTok Sans';
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 100% 150%;
  font-display: swap;
  src: url(/fonts/tiktok-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* TikTok Sans, latin-ext */
@font-face {
  font-family: 'TikTok Sans';
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 100% 150%;
  font-display: swap;
  src: url(/fonts/tiktok-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* TikTok Sans, latin */
@font-face {
  font-family: 'TikTok Sans';
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 100% 150%;
  font-display: swap;
  src: url(/fonts/tiktok-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f4f5f7;
  --ink: #121418;
  --muted: #5c626a;
  --line: #dcdfe3;
  --surface: #e9ebee;
  --red: #e30518;
  --red-hover: #c40314;

  /* блок 5: чёрная секция — нейтральный почти чёрный, без синевы */
  --night: #0a0a0a;
  --night-ink: #f4f4f4;
  --night-muted: #9a9a9a;
  --night-line: #242424;

  --font-display: "TikTok Sans", "Onest", sans-serif;
  --display-weight: 800;
  --display-stretch: 150%; /* ширина TikTok Sans: 100–150 */
  --font-body: "Onest", system-ui, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 16px;
  --container: 1280px;
}

@media (min-width: 768px) {
  :root { --gutter: 48px; }
}
/* на телефоне заголовки уже — иначе слишком мелкие */
@media (max-width: 767px) {
  :root { --display-stretch: 125%; }
}


*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; }
.reduced, .reduced body { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, dl, dd, figure, fieldset { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100%, var(--container)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- шапка-капсула — как на главной ---------- */
.site-header { position: fixed; inset: 16px var(--gutter) auto; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.pill {
  pointer-events: auto;
  width: min(100%, var(--container));
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 8px 0 24px;
  background: rgb(233 235 238 / .8);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-radius: 999px;
  transition: background 250ms var(--ease);
}
.logo img { height: 32px; width: auto; transition: filter 250ms var(--ease); }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 16px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color 150ms var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.phone { font-size: 16px; font-weight: 500; margin-right: 12px; white-space: nowrap; }
.icon-btn {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 150ms var(--ease);
}
.icon-btn:hover { background: rgb(18 20 24 / .06); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.burger { display: none; }
.site-header.on-dark .pill { background: rgb(28 28 28 / .72); }
.site-header.on-dark .logo img { filter: invert(1) hue-rotate(180deg) saturate(1.6); }
.site-header.on-dark .nav a { color: var(--night-muted); }
.site-header.on-dark .nav a:hover, .site-header.on-dark .nav a[aria-current],
.site-header.on-dark .phone, .site-header.on-dark .icon-btn { color: var(--night-ink); }
.site-header.on-dark .icon-btn:hover { background: rgb(244 244 244 / .08); }
/* счётчик корзины */
.cart-n {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cart-n[hidden] { display: none; }
.cart-n.bump { animation: bump 400ms var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms var(--ease);
}
.btn:hover { background: var(--red-hover); }
.btn-small { height: 48px; padding: 0 24px; margin-left: 8px; }
/* шесть пунктов меню (с «Экологией», 17.10.2026): 1201–1360 px — промежутки уже и телефон только в футере;
   от 1361 px — телефон в шапке, промежутки меню 22 px, чтобы кнопка «Оставить заявку» не выходила за капсулу */
@media (min-width: 1201px) and (max-width: 1279px) { .pill, .nav { gap: 16px; } .phone { display: none; } }
@media (min-width: 1280px) and (max-width: 1360px) { .pill, .nav { gap: 20px; } .phone { display: none; } }
@media (min-width: 1361px) { .pill { gap: 24px; } .nav { gap: 22px; } }
/* узкий телефон: логотип и четыре кнопки в одну строку */
@media (max-width: 380px) { .pill .icon-btn { width: 44px; height: 44px; } }
@media (max-width: 1200px) { .nav, .phone { display: none; } .burger { display: grid; } }
@media (max-width: 767px) {
  .pill { gap: 8px; padding-left: 16px; }
  .logo img { height: 28px; }
  .btn-small { display: none; }
  .burger { display: grid; }
}

/* ---------- фото товара: как загружено, целиком в квадрате ---------- */
.ph { display: block; height: 100%; width: 100%; object-fit: contain; }
.ph.is-ghost { opacity: .45; filter: grayscale(1); }
.ph-none {
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px dashed var(--ghost, #b8bdc3);
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

/* ---------- кнопки покупки, переключатель количества, варианты ---------- */
.buy-btn {
  height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), opacity 150ms var(--ease);
}
.buy-btn:hover { background: var(--red); border-color: var(--red); }
.buy-btn[aria-disabled="true"] { opacity: .4; }
.buy-btn[aria-disabled="true"]:hover { background: var(--ink); border-color: var(--ink); }
.buy-btn.is-alt { background: transparent; color: var(--ink); }
.buy-btn.is-alt:hover { background: transparent; border-color: var(--red); color: var(--red); }

.stepper { height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 999px; }
.st-btn { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: none; cursor: pointer; transition: color 150ms var(--ease); }
.st-btn:hover { color: var(--red); }
.st-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.st-q {
  width: 40px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background 150ms var(--ease);
}
.st-q:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.st-q:focus { outline: none; background: color-mix(in srgb, currentColor 10%, transparent); box-shadow: inset 0 0 0 1px currentColor; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-face {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.chip:hover .chip-face { border-color: var(--muted); }
.chip input:checked + .chip-face { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:focus-visible + .chip-face { outline: 2px solid var(--red); outline-offset: 2px; }
.chip.is-out .chip-face { border-style: dashed; color: var(--muted); }
.chip-dot { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(18 20 24 / .16); }
/* цвет — только кружок, название цвета — в подписи над ним */
.chip.is-swatch .chip-face { width: 44px; padding: 0; justify-content: center; border-color: transparent; }
.chip.is-swatch .chip-dot { width: 30px; height: 30px; }
.chip.is-swatch:hover .chip-face { border-color: var(--line); }
.chips.need .chip-face { border-color: var(--red); }
.chips.need .chip.is-swatch .chip-face { border-color: var(--red); }

/* ---------- футер — единый, как на главной (prototypes/hero/styles.css, .ft) ---------- */
.ft { position: relative; z-index: 2; padding: 96px 0 32px; background: var(--red); color: #fff; }
.ft :focus-visible { outline-color: #fff; }
.ft-inner { width: min(100%, var(--container)); margin: 0 auto; padding: 0 var(--gutter); }
/* крупный логотип открывает футер и поднимается из-под своей кромки (ui.js) */
.ft-logo { overflow: hidden; }
.ft-logo svg { width: 100%; height: auto; transform: translateY(var(--rise, 0%)); will-change: transform; }
.lg-mark, .lg-word { fill: #fff; }
.ft-cols { display: grid; gap: 32px; margin-top: 64px; padding-top: 48px; border-top: 1px solid rgb(255 255 255 / .32); }
.ft-h { margin: 0 0 12px; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: .06em; text-transform: uppercase; }
.ft-col p, .ft-col li { font-size: 16px; line-height: 24px; }
.ft-col li + li { margin-top: 8px; }
.ft-col .ft-note { margin-top: 12px; max-width: 32ch; font-size: 12px; line-height: 16px; opacity: .8; }
.ft-col a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* «Website by» + знак Scaffold, под знаком — домен студии */
.ft-by {
  width: fit-content;
  margin: 64px 0 0 auto;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "lbl logo" ". domain";
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  color: #fff;
}
.ft-by-lbl { grid-area: lbl; font-size: 14px; line-height: 20px; }
.ft-scf { grid-area: logo; display: block; width: 0; min-width: 100%; height: auto; } /* ширину колонки задаёт домен (≈130 px), знак встаёт ровно по нему */
.ft-by-domain { grid-area: domain; font-size: 14px; line-height: 20px; }
.ft-by:hover .ft-by-domain { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (min-width: 700px) { .ft-cols { grid-template-columns: 5fr 3fr 4fr; column-gap: 48px; } }
@media (prefers-reduced-motion: reduce) { .ft-logo svg { transform: none; } }

/* ---------- панель корзины ---------- */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(480px, 100%);
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}
.drawer::backdrop { background: rgb(10 10 10 / .4); }
.drawer[open] { animation: dr-in 250ms var(--ease); }
.drawer.is-closing { animation: dr-out 200ms var(--ease) forwards; }
@keyframes dr-in { from { transform: translateX(100%); } }
@keyframes dr-out { to { transform: translateX(100%); } }
.dr-open { overflow: hidden; }
.dr-panel { height: 100%; display: flex; flex-direction: column; }
.dr-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.dr-title { font-size: 20px; font-weight: 600; line-height: 28px; }
.dr-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 24px; }
.dr-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "th info info" "th step sum"; column-gap: 16px; row-gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dr-line.is-fresh { position: relative; }
.dr-line.is-fresh::before { content: ""; position: absolute; left: -24px; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.dr-thumb, .rel-thumb { grid-area: th; width: 56px; height: 56px; overflow: hidden; border-radius: 8px; background: #fff; }
.dr-thumb .ph-none, .rel-thumb .ph-none { font-size: 0; border-radius: 8px; }
.dr-info { grid-area: info; display: flex; flex-direction: column; }
.dr-name { font-size: 16px; font-weight: 600; line-height: 22px; }
.dr-name:hover { color: var(--red); }
.dr-opt { font-weight: 400; color: var(--muted); }
.dr-unit { font-size: 14px; line-height: 20px; color: var(--muted); }
.dr-lines .stepper { grid-area: step; justify-self: start; }
.dr-sum { grid-area: sum; align-self: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dr-disc { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.dr-disc-text { font-size: 15px; font-weight: 500; line-height: 22px; }
.dr-disc-note { margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--muted); }
.dr-bar { position: relative; height: 4px; margin-top: 16px; border-radius: 2px; background: var(--line); }
.dr-bar::before { content: ""; position: absolute; inset: 0; border-radius: 2px; background: var(--red); transform: scaleX(var(--p)); transform-origin: 0 50%; transition: transform 250ms var(--ease); }
.dr-bar b { position: absolute; top: -4px; left: calc(var(--x) * 100%); width: 2px; height: 12px; margin-left: -1px; background: var(--muted); }
.dr-bar b.on { background: var(--red); }
.dr-rel { margin-top: 24px; }
.dr-rest-h { margin-top: 32px; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dr-rel-h { font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rel { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "th info" "th buy"; column-gap: 16px; row-gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rel-info { grid-area: info; display: flex; flex-direction: column; }
.rel-kind { font-size: 13px; line-height: 18px; color: var(--muted); }
.rel-name { font-size: 16px; font-weight: 600; line-height: 22px; }
.rel-name:hover { color: var(--red); }
.rel-price { font-size: 14px; line-height: 20px; }
.rel-buy { grid-area: buy; display: flex; gap: 8px; }
.rel-sel { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 14px; }
.rel-sel.need { border-color: var(--red); }
.rel-add { flex: none; height: 40px; padding: 0 16px 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ink); border-radius: 999px; background: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: color 150ms var(--ease), border-color 150ms var(--ease); }
.rel-add:hover { color: var(--red); border-color: var(--red); }
.rel-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dr-foot { padding: 16px 24px 24px; border-top: 1px solid var(--line); background: var(--bg); }
.dr-foot:empty { display: none; }
.dr-sums div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; line-height: 24px; }
.dr-minus dd { color: var(--red); }
.dr-total { margin-top: 4px; font-size: 20px !important; font-weight: 600; line-height: 28px !important; }
.dr-ship { margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--muted); }
.dr-actions { display: grid; gap: 8px; margin-top: 16px; }
.dr-go { width: 100%; }
.dr-more { height: 44px; border: 0; background: none; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; }
.dr-more:hover { color: var(--ink); }
.dr-empty { padding: 48px 0; display: grid; gap: 24px; justify-items: start; }
@media (max-width: 599px) {
  /* на телефоне — лист снизу */
  .drawer { inset: auto 0 0 0; width: 100%; height: auto; max-height: 92dvh; border-radius: 16px 16px 0 0; }
  .drawer[open] { animation-name: sheet-in; }
  .drawer.is-closing { animation-name: sheet-out; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
  .dr-panel { max-height: 92dvh; }
  .dr-head { padding-left: 16px; }
  .dr-body { padding: 8px 16px 16px; }
  .dr-line.is-fresh::before { left: -16px; }
  .dr-foot { padding: 16px; }
}

/* ---------- форма «Сообщить о поступлении» / «Запросить цену» ---------- */
.modal { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 16px; background: var(--bg); color: var(--ink); }
.modal::backdrop { background: rgb(10 10 10 / .4); }
.modal[open] { animation: m-in 200ms var(--ease); }
@keyframes m-in { from { opacity: 0; transform: translateY(12px); } }
.m-form, .m-done { position: relative; padding: 32px; }
.m-x { position: absolute; top: 12px; right: 12px; }
.m-title { padding-right: 48px; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 125%; font-size: 24px; line-height: 1.15; }
.m-item { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--muted); }
.m-fields { display: grid; gap: 16px; margin-top: 24px; }
.m-ctl { display: grid; gap: 4px; }
.m-label { font-size: 14px; font-weight: 500; line-height: 20px; color: var(--muted); }
.m-input { height: 48px; padding: 0; border: 0; border-bottom: 1px solid var(--muted); background: transparent; font-size: 18px; }
.m-input:focus { outline: none; border-bottom-color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.m-input[aria-invalid="true"] { border-bottom-color: var(--red); box-shadow: inset 0 -1px 0 var(--red); }
.m-err { display: block; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--red); }
.m-err:empty { display: none; }
.m-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; font-size: 14px; line-height: 20px; cursor: pointer; }
.m-consent a { text-decoration: underline; text-underline-offset: 3px; }
.m-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.m-box { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--muted); border-radius: 6px; color: transparent; transition: background 150ms var(--ease), border-color 150ms var(--ease); }
.m-box svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.m-consent input:checked + .m-box { background: var(--ink); border-color: var(--ink); color: #fff; }
.m-consent input:focus-visible + .m-box { outline: 2px solid var(--red); outline-offset: 3px; }
.m-consent input[aria-invalid="true"] + .m-box { border-color: var(--red); }
.m-send { width: 100%; margin-top: 24px; }
.m-send[aria-disabled="true"] { opacity: .45; }
.m-done { display: grid; justify-items: start; gap: 16px; }
.m-done[hidden] { display: none; }
.m-done p { font-size: 18px; line-height: 1.5; }
.m-done-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; }
.m-done-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 599px) { .m-form, .m-done { padding: 24px 16px; } }

/* ---------- сообщение ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 16px 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  line-height: 22px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { flex: none; height: 36px; padding: 0 14px; border: 1px solid rgb(255 255 255 / .4); border-radius: 999px; background: none; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.toast button:hover { border-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
