/* Шрифты со своего сервера (public/fonts, из @fontsource, лицензия SIL OFL 1.1): кириллица + латиница */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/manrope-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/manrope-latin-ext-400-normal.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; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/manrope-latin-400-normal.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; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/manrope-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/manrope-latin-ext-500-normal.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; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/manrope-latin-500-normal.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; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/manrope-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/manrope-latin-ext-600-normal.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; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/manrope-latin-600-normal.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; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.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; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.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 {
  /* ===== Дизайн-токены SENEL (см. design/concept.md) ===== */
  /* Палитра «молоко и какао» */
  --bg: #f4efe7;          /* молочный фон */
  --card: #fbf8f3;        /* сливочный: поля, карточки, панели */
  --img: #e9e2d6;         /* подложка под фото, пока грузится */
  --ink: #1f1c19;         /* графит: текст, кнопки */
  --cocoa: #5a4236;       /* какао: вторичные акценты, прогресс */
  --cocoa-deep: #2b211c;  /* тёмный подвал */
  --muted: #6f675f;       /* вторичный текст, 5:1 на --bg */
  --line: #e2dacd;        /* линии и рамки */
  --brand-red: #b3261e;   /* красный SENEL — точечно */
  --error: #a3261e;       /* ошибки форм */
  --ok: #4d6a52;
  --accent: var(--ink);
  --sale: var(--error);   /* устаревшее имя: админка красит им «опасные» действия */
  /* Шрифты: подключены одной строкой Google Fonts в index.html, ниже — системные запасные */
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  /* Отступы (шаг 4px) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --gutter: 24px;
  /* Радиусы: почти прямые углы, круг — только свотчи и бейдж */
  --r: 2px; --r-lg: 6px;
  /* Тени — только у всплывающих слоёв */
  --shadow-pop: 0 12px 40px rgba(31,28,25,.16);
  --shadow-bar: 0 -6px 24px rgba(31,28,25,.08);
  /* Движение */
  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: .25s;
  --header-h: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
main, main.wrap { flex: 1; padding-bottom: 64px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: 30px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Шапка */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-family: var(--serif); font-size: 28px; text-decoration: none; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__nav { display: flex; gap: 28px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.top__nav a { text-decoration: none; white-space: nowrap; }
.top__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.badge[hidden] { display: none; }
.badge { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 12px; line-height: 20px; text-align: center; margin-left: 4px; }
@media (max-width: 640px) {
  .top__nav { gap: 16px; font-size: 12px; }
  .top__nav .top__info { display: none; }
  .logo { font-size: 22px; }
  .wrap { padding: 0 16px; }
}

/* Главная */
.hero { padding: 56px 0 40px; max-width: 720px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; } }
.card { text-decoration: none; display: block; }
.card__img { aspect-ratio: 4 / 5; background: var(--img); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.03); }
.card__name { margin: 14px 0 4px; font-size: 16px; }
.price { font-weight: 600; }
.price s { color: var(--muted); font-weight: 400; margin-left: 8px; }
.price .sale { color: inherit; }
.empty { padding: 80px 0; text-align: center; color: var(--muted); }

/* Товар */
.back { display: inline-block; margin: 24px 0; font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; gap: 24px; } }
.gallery__main { aspect-ratio: 4 / 5; background: var(--img); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs button { width: 72px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid transparent; background: var(--img); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info { position: sticky; top: 100px; }

.desc { white-space: pre-line; color: #4a433d; margin: 24px 0 0; }
.label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.size { min-width: 52px; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.size:hover { border-color: var(--ink); }
.size[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size-hint { color: var(--error); font-size: 14px; margin: -14px 0 16px; }

/* Кнопки и поля */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 32px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .5; cursor: default; }
.btn--light { background: transparent; color: var(--ink); }
.btn--wide { width: 100%; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 12px; }
.field { display: block; margin-bottom: 16px; }
.field > span, .field > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); background: var(--card); border-radius: 0; }
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.input:focus, .size:focus-visible, .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 12px 0; cursor: pointer; }
.check input { margin-top: 4px; }
.error { color: var(--error); margin: 12px 0; }

/* Корзина */
.cart { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.cart > * { min-width: 0; }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; gap: 32px; } }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 88px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--img); }
.line__name { text-decoration: none; }
.line__meta { font-size: 14px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 8px; background: var(--card); }
.qty button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; font-size: 14px; }
.line__right { text-align: right; }
.link-btn { border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; margin-top: 8px; }
.panel { background: var(--card); border: 1px solid var(--line); padding: 28px; }
.sum { display: flex; justify-content: space-between; margin: 6px 0; }
.sum--total { font-size: 20px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.pay-opts { display: grid; gap: 8px; margin-bottom: 16px; }
.pay-opt { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); padding: 12px 14px; cursor: pointer; background: var(--bg); }
.pay-opt:has(input:checked) { border-color: var(--ink); }

/* Заказ */
.status { display: inline-block; padding: 6px 14px; border: 1px solid currentColor; font-size: 14px; margin-bottom: 20px; }
.status--ok { color: var(--ok); }
.status--wait { color: #9a6b12; }
.order-box { max-width: 640px; margin: 48px auto 0; }
.text { white-space: pre-line; max-width: 760px; }

/* Подвал и уведомления */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 120px); opacity: 0; visibility: hidden; background: var(--ink); color: var(--bg); padding: 14px 22px; transition: transform .25s ease, opacity .25s ease, visibility 0s .25s; z-index: 70; font-size: 14px; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .25s ease, opacity .25s ease; }
.toast a { color: inherit; margin-left: 12px; }

/* ===== SENEL: каталог, фильтры, галерея, анимации ===== */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 14px; }
main:focus { outline: none; }
.ssr { padding: 40px 0; }
.ssr ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.ssr img { width: 100%; height: auto; }
.logo { letter-spacing: .28em; font-family: var(--sans); font-weight: 600; font-size: 22px; }

.badge.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Хлебные крошки и заголовки */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 24px 0; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span:last-child { color: var(--ink); }
.cat-head h1 { margin-bottom: 8px; }
.page-title { margin-top: 40px; }
.page-text { margin-top: 40px; }
.page-text h2 { margin-top: 40px; }
.cat-text { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); color: #4a433d; }

/* Категории-чипсы */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 24px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip--x { height: 30px; padding: 0 12px; font-size: 13px; }

/* Раскладка каталога: фильтры слева */
.shop { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
/* Колонка фильтров идёт в потоке страницы, без внутреннего скролла (раньше sticky + max-height
   обрезали низ списка на ноутбуках с масштабом 125%). Прилипает, только если целиком помещается — класс ставит app.js */
.filters { min-width: 0; }
@media (min-width: 901px) { .filters--sticky { position: sticky; top: var(--filters-top, 92px); } }
.filters__head, .filters__foot, .filters-btn, .filters__backdrop { display: none; }
.filters h2 { font-size: 24px; margin: 0; }
.facet { border: 0; padding: 0; margin: 0 0 24px; }
.facet legend { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; padding: 0; }
.facet__opts { display: grid; gap: 6px; }
.facet__opts--size { display: flex; flex-wrap: wrap; gap: 6px; }
.facet__opts--size + .facet__sub, .facet__more + .facet__sub { margin-top: 14px; }
.facet__more { display: block; }
.facet__sub { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.facet__more { margin-top: 8px; font-size: 13px; }
.opt[hidden] { display: none; }
.opt span { min-width: 0; overflow-wrap: anywhere; }
.opt small { flex: none; padding-left: 8px; }
.opt input[type=checkbox]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.opt small { margin-left: auto; color: var(--muted); }
.opt--empty { opacity: .45; cursor: default; }
.opt--size { position: relative; }
.opt--size input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt--size span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 10px; border: 1px solid var(--line); background: var(--card); transition: background .15s, color .15s; }
.opt--size input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt--size input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 1px; }
.opt--size.opt--empty span { text-decoration: line-through; }
.opt input[type=checkbox] { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }

.toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; min-height: 40px; }
.sort { margin-left: auto; }
.input--sm { height: 38px; padding: 0 10px; font-size: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.empty--grid { grid-column: 1 / -1; padding: 48px 0; }

@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .filters-btn { display: inline-flex; gap: 6px; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 60; max-height: 85vh; max-height: 85dvh; background: var(--bg); padding: 0 20px; transform: translateY(105%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s; box-shadow: 0 -10px 40px rgba(0,0,0,.15); display: flex; flex-direction: column; }
  .filters.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .filters #facets { overflow-y: auto; flex: 1; padding: 8px 4px 0; margin: 0 -4px; overscroll-behavior: contain; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 8px; }
  .filters__foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .filters__backdrop { display: block; position: fixed; inset: 0; background: rgba(29,27,24,.4); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .filters.open + .filters__backdrop { opacity: 1; pointer-events: auto; }
  .toolbar #found { display: none; }
}
body.no-scroll { overflow: hidden; }
.icon-x { width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; font-size: 18px; cursor: pointer; }

/* Карточки */
.card { position: relative; }
.card__img { position: relative; }
.card__alt { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
@media (hover: hover) { .card:hover .card__alt { opacity: 1; } }
.card__sizes { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; font-size: 12px; letter-spacing: .04em; background: rgba(244,239,231,.92); text-align: center; transform: translateY(100%); transition: transform .3s ease; }
@media (hover: hover) { .card:hover .card__sizes { transform: none; } }
.card--out .card__img img:not(.card__alt) { filter: grayscale(.6); opacity: .7; }
.card--out .card__alt { display: none; }
.card__brand { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.card__brand + .card__name { margin-top: 2px; }
.card__row { display: flex; justify-content: space-between; align-items: center; gap: 4px 8px; flex-wrap: wrap; }
.card__row .price { white-space: nowrap; }
.card__row .price s { margin-left: 6px; }
.card__sw { display: flex; gap: 4px; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; background: var(--bg); color: var(--ink); }
.tag--sale { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0,0,0,.18); flex: none; }
.sw--lg { width: 26px; height: 26px; }
.sw--multi { background: conic-gradient(#a3332b, #e3c25a, #4f6b4a, #2f4a7a, #a3332b); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* Появление карточек */
@media (prefers-reduced-motion: no-preference) {
  .card-box { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  .product, .hero, .order-box { animation: fade .45s ease both; }
  @keyframes fade { from { opacity: 0; } }
  .shake { animation: shake .4s; }
  @keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
}

/* Галерея товара: свайп + миниатюры */
.gallery { position: relative; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; background: var(--img); }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav { position: absolute; top: calc(50% - 60px); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(244,239,231,.9); font-size: 26px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s; }
.gallery__nav--prev { left: 12px; } .gallery__nav--next { right: 12px; }
.gallery:hover .gallery__nav, .gallery__nav:focus-visible { opacity: 1; }
.dots { display: none; justify-content: center; gap: 6px; margin-top: 10px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.dot[aria-current="true"] { background: var(--ink); transform: scale(1.3); }
@media (max-width: 820px) {
  .thumbs, .gallery__nav { display: none; }
  .dots { display: flex; }
  .gallery { margin: 0 -16px; }
  .product__info { position: static; }
}
.product__price { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 24px; }
.product__sw { display: flex; gap: 8px; margin-bottom: 20px; }
.label b { color: var(--ink); font-weight: 500; text-transform: none; letter-spacing: 0; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row .link-btn { margin: 0; }
.size:disabled { color: var(--muted); text-decoration: line-through; background: transparent; cursor: not-allowed; }
.size { transition: background .15s, color .15s, border-color .15s; }
.stock-note { color: var(--cocoa); font-size: 14px; margin: -12px 0 12px; min-height: 0; }
.stock-note:empty { display: none; }
.perks { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin: 14px 0 8px; }

.acc { margin-top: 20px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 18px; transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .desc { margin: 0 0 18px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0 0 18px; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.related { margin-top: 80px; }

/* Модальное окно: таблица размеров */
.modal { border: 0; padding: 0; max-width: min(640px, calc(100vw - 32px)); width: 100%; background: var(--bg); color: var(--ink); }
.modal > form { padding: 24px; }
.modal::backdrop { background: rgba(29,27,24,.45); }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal__head h2 { margin: 0; font-size: 26px; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.chart { border-collapse: collapse; width: 100%; font-size: 14px; }
.chart th, .chart td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.chart th { font-weight: 500; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .modal[open] { animation: rise .3s ease; } }

/* Корзина и форма */
.notice { background: #fbf3df; border: 1px solid #ecdcae; padding: 14px 18px; font-size: 14px; margin-bottom: 24px; }
.totals { margin-top: 24px; }
.free-bar { height: 4px; background: var(--line); margin: 10px 0 4px; }
.free-bar { overflow: hidden; }
.free-bar span { display: block; height: 100%; width: 100%; background: var(--cocoa); transform: scaleX(var(--s, 0)); transform-origin: left; transition: transform .4s ease; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.field__err { color: var(--error); font-size: 13px; margin: 4px 0 0; }
.field__err:empty { display: none; }
.field--err .input { border-color: var(--error); }
@media (max-width: 640px) {
  .line { grid-template-columns: 72px 1fr; }
  .line img { width: 72px; }
  .line__right { grid-column: 2; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .line__right .link-btn { margin: 0; }
  .panel { padding: 20px; }
  .hero { padding: 36px 0 24px; }
}

/* ===== Полиш: тач-цели, фокус, reduced-motion ===== */
.pay-opt input, .check input, .opt input[type=checkbox] { accent-color: var(--ink); }
.check input { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.check { min-height: 44px; align-items: center; }
.chip:focus-visible, .link-btn:focus-visible, .top__nav a:focus-visible, .logo:focus-visible, .qty button:focus-visible, .gallery__track:focus-visible, .thumbs button:focus-visible, .acc summary:focus-visible, .icon-x:focus-visible, .card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.top__nav a, .logo { display: inline-flex; align-items: center; min-height: 44px; }
.link-btn { min-height: 32px; }
@media (pointer: coarse), (max-width: 900px) {
  .chip { height: 44px; }
  .chip--x { height: 40px; }
  .opt--size span { height: 44px; }
  .opt { min-height: 44px; }
  .link-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
  .btn--sm { height: 44px; }
  .input--sm { height: 44px; }
  .acc summary { min-height: 52px; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .card:hover .card__img img { transform: none; }
}

/* =====================================================================
   Редизайн SENEL (designer, см. design/concept.md).
   Правила ниже уточняют базовые выше; токены — в :root.
   ===================================================================== */
body { font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .005em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 30px); }
.price, .sum, .qty span, .badge { font-variant-numeric: tabular-nums; }

/* Шапка и логотип */
.top { background: rgba(244,239,231,.96); }
@supports (backdrop-filter: blur(1px)) { .top { background: rgba(244,239,231,.86); backdrop-filter: saturate(1.2) blur(12px); } }
.top__in { height: var(--header-h); }
.logo { font-family: var(--sans); font-weight: 600; font-size: 20px; letter-spacing: .34em; margin-right: -.34em; }
.top__nav { gap: 28px; font-size: 13px; font-weight: 500; letter-spacing: .08em; align-items: center; }
.top__nav a { background: linear-gradient(currentColor, currentColor) 0 calc(50% + 11px) / 0 1px no-repeat; transition: background-size var(--dur) var(--ease); }
.top__nav a:hover { text-decoration: none; background-size: 100% 1px; }
.top__short, .cart-link__icon { display: none; }
.cart-link { position: relative; gap: 6px; }
.badge { background: var(--ink); color: var(--bg); font-weight: 600; letter-spacing: 0; }
@media (max-width: 640px) {
  :root { --header-h: 56px; --gutter: 16px; }
  .logo { font-size: 18px; letter-spacing: .3em; }
  .top__nav { gap: 18px; font-size: 12px; letter-spacing: .06em; }
  .top__nav .top__info { display: inline-flex; }
  .top__long, .cart-link__text { display: none; }
  .top__short { display: inline; }
  .cart-link__icon { display: block; }
  .cart-link { min-width: 44px; justify-content: center; }
  .cart-link .badge { position: absolute; top: 4px; right: -4px; min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; padding: 0 5px; margin: 0; }
}
@media (max-width: 359px) { .top__nav .top__cat { display: none; } }

/* Главная: короткий герой — слоган + лента категорий с фото */
.hero { max-width: none; padding: 40px 0 8px; }
.hero .hero__tag { font-family: var(--serif); font-size: clamp(22px, 3vw, 36px); line-height: 1.2; color: var(--ink) !important; max-width: 640px; margin: 0 0 24px !important; }
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; margin-bottom: 40px; padding-bottom: 2px; }
.tiles::-webkit-scrollbar { display: none; }
.tile { text-decoration: none; display: block; min-width: 0; }
.tile__img { display: block; aspect-ratio: 4 / 5; background: var(--img); overflow: hidden; border-radius: var(--r); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur); }
.tile:hover .tile__img img { opacity: .88; }
.tile__name { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; line-height: 1.3; }
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 640px) {
  .hero { padding: 18px 0 0; }
  .hero .hero__tag { font-size: 21px; line-height: 1.22; margin-bottom: 14px !important; }
  .tiles { grid-auto-columns: 92px; gap: 8px; margin: 0 -16px 14px; padding: 0 16px 2px; scroll-padding: 0 16px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tile__name { font-size: 12px; margin-top: 6px; }
  .chips { margin: 0 -16px 18px; padding: 0 16px 4px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .toolbar { margin-bottom: 14px; }
}

/* Карточка в сетке: тихая — фото, название в 2 строки, цена на одной линии */
.grid { gap: 44px 24px; }
@media (max-width: 900px) { .grid, .grid--4 { gap: 28px 12px; } }
.card__img { border-radius: var(--r); }
.card:hover .card__img img { transform: none; }
.card__name { font-size: 14px; font-weight: 500; line-height: 1.35; margin: 12px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2em * 1.35 / 1); }
.card__row .price { font-size: 15px; font-weight: 600; }
.card--alt:hover .card__img img:not(.card__alt) { opacity: 1; }
.tag { font-size: 10px; font-weight: 600; letter-spacing: .1em; padding: 4px 8px; background: rgba(251,248,243,.92); border-radius: var(--r); }

/* Цена: без красного. Старая цена (если когда-нибудь появится) — мелко, серым */
.price .sale { color: inherit; }
.price s { color: var(--muted); font-weight: 400; font-size: .82em; margin-left: 8px; }
.price__off { font-size: 13px; color: var(--muted); }

/* Карточка товара */
.product__info h1 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 10px; }
.product__price { font-size: 21px; margin-bottom: 22px; }
.label { font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.size { min-width: 54px; height: 48px; border-radius: var(--r); font-weight: 500; }
.btn { border-radius: var(--r); font-weight: 600; font-size: 13px; letter-spacing: .12em; transition: opacity var(--dur), background var(--dur), color var(--dur); }
.btn--light:hover { background: var(--ink); color: var(--bg); opacity: 1; }
.input, .chip, .opt--size span, .pay-opt, .qty, .panel { border-radius: var(--r); }
.stock-note { margin: -12px 0 14px; }
.gallery__track, .gallery__main { border-radius: var(--r); }
@media (max-width: 820px) { .gallery__track { border-radius: 0; } }

/* Блок доверия: доставка / оплата / возврат — тексты из настроек */
.trust { list-style: none; padding: 0; margin: 22px 0 6px; display: grid; gap: 14px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.trust li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.trust b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; margin-bottom: 1px; }
.trust a { color: var(--ink); text-underline-offset: 3px; }
.ico { color: var(--cocoa); flex: none; margin-top: 1px; }

/* Закреплённая панель «размер + В корзину» (телефон) */
.buybar { display: none; }
@media (max-width: 820px) {
  .buybar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(244,239,231,.97); border-top: 1px solid var(--line); box-shadow: var(--shadow-bar);
    transform: translateY(110%); visibility: hidden; transition: transform var(--dur) var(--ease), visibility 0s var(--dur); }
  @supports (backdrop-filter: blur(1px)) { .buybar { background: rgba(244,239,231,.88); backdrop-filter: saturate(1.2) blur(12px); } }
  .buybar.show { transform: none; visibility: visible; transition: transform var(--dur) var(--ease); }
  body.has-buybar main { padding-bottom: 96px; }
}
.buybar__size { flex: none; min-width: 100px; height: 48px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231f1c19' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.buybar__lbl { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.buybar__size b { font-size: 15px; font-weight: 600; }
.buybar__add { flex: 1; height: 48px; padding: 0 12px; min-width: 0; white-space: nowrap; }
.buybar__size:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* Шторки и окна: на телефоне выезжают снизу, на компьютере — по центру (окно «Добавлено» — справа под шапкой) */
.sheet { border: 0; padding: 20px 20px 24px; width: 100%; max-width: 440px; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-pop); border-radius: var(--r-lg); }
.sheet::backdrop { background: rgba(31,28,25,.45); }
.sheet > form { padding: 0; }
.sheet .modal__head h2, .modal__head h2 { font-size: 24px; }
.sizes--sheet { margin: 16px 0 12px; }
.sizes--sheet .size { flex: 1 0 calc(33% - 8px); }
.sheet--added { margin: calc(var(--header-h) + 12px) 24px auto auto; max-width: 400px; }
.added { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.added img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--img); border-radius: var(--r); }
.added__name { font-weight: 500; line-height: 1.35; margin-bottom: 4px; }
.added__sum { margin: 14px 0 0; font-size: 14px; }
.added__btns { display: grid; gap: 8px; margin-top: 18px; }
.sheet .free-bar { height: 2px; }
.modal { border-radius: var(--r-lg); box-shadow: var(--shadow-pop); }
.modal__sub { margin: 4px 0 0; }
.chart tr.is-current td { background: var(--card); font-weight: 600; }
.chart-cards { display: none; }
@media (max-width: 640px) {
  .sheet, .modal, .sheet--added { margin: auto 0 0; max-width: 100%; width: 100%; max-height: 88vh; max-height: 88dvh; overflow-y: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .modal > form { padding: 20px 16px 0; }
  .sheet { padding-left: 16px; padding-right: 16px; }
  /* таблица размеров → карточки по размеру, ничего не обрезается на 375px */
  .modal--chart .table-wrap { display: none; }
  .chart-cards { display: grid; gap: 6px; margin: 14px 0; }
  .chart-card { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; border: 1px solid var(--line); background: var(--card); padding: 10px 12px; border-radius: var(--r); }
  .chart-card.is-current { border-color: var(--ink); }
  .chart-card > b { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }
  .chart-card dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 4px 10px; font-size: 13px; }
  .chart-card dl div { display: grid; gap: 1px; }
  .chart-card dt { color: var(--muted); font-size: 11px; white-space: nowrap; }
  .chart-card dd { margin: 0; white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in .3s var(--ease); }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }
  @media (max-width: 640px) {
    .sheet[open], .modal[open] { animation: sheet-up .3s var(--ease); }
    @keyframes sheet-up { from { transform: translateY(100%); } }
  }
}

/* Оформление: сегмент «Пункт выдачи / Курьер», согласие */
.seg { border: 0; padding: 0; margin: 4px 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { padding: 0; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span { display: flex; align-items: center; justify-content: center; height: 46px; border: 1px solid var(--line); background: var(--bg); border-radius: var(--r); font-size: 14px; transition: border-color var(--dur), background var(--dur); }
.seg__opt input:checked + span { border-color: var(--ink); background: var(--card); font-weight: 600; }
.seg__opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 1px; }
#add-comment { margin: -4px 0 12px; }

/* Чекбоксы: свой квадратик 18×18, одинаковый в Windows и macOS; запас 2px слева,
   чтобы рамку не срезал контейнер с overflow (мобильная шторка #facets) */
.opt:not(.opt--size) input[type=checkbox], .check input[type=checkbox] {
  -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 0 0 0 2px;
  border: 1.5px solid #8a8178; border-radius: var(--r); background: var(--card) center / 12px 12px no-repeat; cursor: pointer;
  transition: background-color .15s, border-color .15s; }
.opt:not(.opt--size) input[type=checkbox]:hover, .check input[type=checkbox]:hover { border-color: var(--ink); }
.opt:not(.opt--size) input[type=checkbox]:checked, .check input[type=checkbox]:checked {
  background-color: var(--ink); border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%23f4efe7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.opt:not(.opt--size) input[type=checkbox]:disabled { opacity: .45; cursor: default; }
.opt:not(.opt--size) input[type=checkbox]:focus-visible, .check input[type=checkbox]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.check input[type=checkbox] { margin-top: 1px; }

/* Подвал: тёмный какао, завершает страницу */

/* Уведомление (остаётся для коротких сообщений) */
.toast { border-radius: var(--r); box-shadow: var(--shadow-pop); text-align: center; }
body.has-buybar .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* Фото сейчас небольшого разрешения (≈230×290): на компьютере не растягиваем галерею шире 560px */
@media (min-width: 821px) { .product { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 64px; } }
h1, h2, .hero__tag { font-variant-numeric: lining-nums; }
.cat-head h1 { margin-bottom: 20px; }

/* =====================================================================
   SENEL v2: избранное, отзывы, «Как сидит», подбор размера, другие цвета,
   «Соберите образ», обложка главной, быстрые чипы, таймлайн заказа.
   ===================================================================== */

/* Шапка: иконка избранного со счётчиком (как у корзины) */
.fav-link { position: relative; justify-content: center; min-width: 32px; background: none !important; }
.fav-link__icon { display: block; }
.fav-link .badge, .cart-link .badge { font-size: 11px; }
.fav-link .badge { position: absolute; top: 4px; right: -10px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin: 0; }
@media (max-width: 640px) {
  .top__nav { gap: 14px; }
  .fav-link { min-width: 40px; margin-right: -6px; }
  .fav-link .badge { right: -4px; }
}

/* Сердечко: контур → заливка, анимация только transform/opacity */
.fav { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fav svg { overflow: visible; }
.fav__line { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.fav__fill { fill: currentColor; opacity: 0; transform-origin: 12px 14px; transform: scale(.6); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.fav[aria-pressed="true"] .fav__fill { opacity: 1; transform: none; }
.fav:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) {
  .fav.pop svg { animation: fav-pop .4s var(--ease); }
  @keyframes fav-pop { 40% { transform: scale(1.25); } }
}
.card-box { position: relative; min-width: 0; }
.fav--card { position: absolute; top: 2px; right: 2px; z-index: 2; }
.fav--card svg { width: 20px; height: 20px; padding: 0; }
.fav--card::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: rgba(251,248,243,.82); z-index: -1; }
.buy-row { display: flex; gap: 8px; }
.buy-row .btn--wide { flex: 1; width: auto; }
.fav--lg { flex: none; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: border-color var(--dur); }
.fav--lg:hover { border-color: var(--ink); }
.card__rate { margin-top: 4px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink); }
.card__rate [aria-hidden] > .muted { color: var(--muted); }

/* Избранное: пустое состояние */
.empty--fav svg { color: var(--cocoa); margin: 0 auto 12px; }
.empty--fav h2 { color: var(--ink); }
.empty--fav p { max-width: 340px; margin-left: auto; margin-right: auto; }
.fav-count { margin: -8px 0 20px; font-size: 14px; }

/* Звёзды */
.stars { display: inline-flex; gap: 1px; color: var(--line); letter-spacing: 0; line-height: 1; }
.stars .on { color: var(--cocoa); }
.rate-link { display: inline-flex; align-items: center; gap: 6px; margin: -12px 0 20px; padding: 0; min-height: 32px; border: 0; background: none; cursor: pointer; font-size: 14px; font-variant-numeric: tabular-nums; }
.rate-link > span:nth-child(2) { font-weight: 600; }
.rate-link:hover .muted { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rate-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Другие цвета: свотчи-ссылки, текущий в кольце */
.colors-nav { gap: 4px; margin: -6px 0 16px -9px; }
.sw-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; }
.sw-link .sw { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px transparent; transition: box-shadow var(--dur); }
.sw-link:hover .sw { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--muted); }
.sw-link[aria-current="page"] .sw { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--ink); }
.sw-link--out .sw { opacity: .45; }
.sw-link:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* Как сидит */
.fit-box { margin: 0 0 18px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; line-height: 1.45; }
.fit-box .label { margin: 0 0 4px; }
.fit-box p:last-child { margin: 0; }
.fit-box b { font-weight: 600; }
.fit-box__sep { margin: 0 8px; color: var(--muted); }
.label-row__links { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.sheet .label-row__links { justify-content: flex-start; }

/* Подбор размера в окне таблицы */
.finder { margin: 16px 0 4px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.finder h3 { font-family: var(--sans); margin: 0 0 10px; }
.finder__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.finder__f span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.finder__f .input { background: var(--bg); font-variant-numeric: tabular-nums; }
.finder__fit { margin: 8px 0 0; }
.finder__res { margin-top: 10px; }
.finder__res p { margin: 4px 0; }
.finder__out { font-size: 16px; }
.finder__out b { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-left: 4px; font-variant-numeric: lining-nums; }
.finder__res .btn { margin-top: 6px; }
.chart tr.is-fit td { box-shadow: inset 0 -2px 0 var(--cocoa); font-weight: 600; }
.chart-card.is-fit { border-color: var(--cocoa); box-shadow: inset 3px 0 0 var(--cocoa); }

/* Отзывы */
.reviews { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); max-width: 860px; }
.reviews:focus { outline: none; }
.reviews__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 20px; }
.reviews__head h2 { margin: 0; }
.reviews__head .btn { margin-left: auto; }
.reviews__sum { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.reviews__sum b { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }
.reviews__sum .stars { font-size: 16px; }
.rv-items { list-style: none; padding: 0; margin: 0 0 16px; }
.rv { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rv:first-child { padding-top: 0; }
.rv:focus { outline: none; }
.rv__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; }
.rv__head time { font-size: 13px; margin-left: auto; }
.rv__size { font-size: 13px; margin: 4px 0 0; }
.rv__text { margin: 8px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.rv-empty { margin: 0; }
.rv-thanks { margin: 0 0 20px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: var(--r); }
.rv-thanks:focus { outline: none; }
.rv-form { margin: 0 0 28px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.rv-form .input { background: var(--bg); }
.rv-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.rv-form__row .field:only-child { grid-column: 1 / -1; }
.rv-stars { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 2px; }
.rv-stars legend { padding: 0; margin-bottom: 4px; }
.rv-stars label { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 28px; color: var(--line); cursor: pointer; }
.rv-stars label.on { color: var(--cocoa); }
.rv-stars input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rv-stars label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: -4px; }
.rv-stars--err label { color: #d9b3ac; }
.rv-stars label span[aria-hidden] { transition: transform .15s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .rv-stars label:hover span[aria-hidden] { transform: scale(1.12); } }
@media (max-width: 640px) {
  .reviews { margin-top: 48px; padding-top: 24px; }
  .rv-form { padding: 16px; margin: 0 -4px 24px; }
  .rv-form__row { grid-template-columns: 1fr; }
  .reviews__head .btn { margin-left: 0; width: 100%; }
}

/* Соберите образ */
.look__item { display: grid; grid-template-rows: 1fr auto; gap: 10px; min-width: 0; }
.look__btn { width: 100%; padding: 0 8px; }

/* Главная: компактная обложка из настроек, слоган поверх */
.hero--cover { padding-top: 24px; }
.hero__cover { position: relative; height: clamp(220px, 26vw, 340px); margin-bottom: 24px; overflow: hidden; border-radius: var(--r); background: var(--img); }
.hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.hero__cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,28,25,0) 35%, rgba(31,28,25,.55)); }
.hero .hero__cover .hero__tag { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; margin: 0 !important; color: var(--bg) !important; max-width: 640px; }
@media (max-width: 640px) {
  .hero--cover { padding-top: 12px; }
  .hero__cover { height: 152px; margin: 0 -16px 14px; border-radius: 0; }
  .hero .hero__cover .hero__tag { left: 16px; right: 16px; bottom: 12px; font-size: 19px; }
}

/* Ozon в подвале и на /info */
.ozon { font-variant-numeric: tabular-nums; }
.info-ozon .ozon { color: var(--ink); text-underline-offset: 3px; }

/* Быстрые чипы размеров над сеткой; min-width: 0 — чтобы прокручиваемый ряд не распирал колонку сетки */
.results { min-width: 0; }
.quick { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -4px 0 16px; padding: 2px 0; }
.quick::-webkit-scrollbar { display: none; }
.quick__lbl { flex: none; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chip--q { min-width: 44px; justify-content: center; padding: 0 12px; font-variant-numeric: tabular-nums; }
.chip--q[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip--q:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 640px) {
  .quick { margin: -2px -16px 14px; padding: 2px 16px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}

/* Заказ: таймлайн и «Что дальше» */
.steps { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: st; }
.step { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.step::before { content: ''; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.step:first-child::before { display: none; }
.step--done::before, .step--cur::before { background: var(--cocoa); }
.step__dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
.step--done .step__dot { background: var(--cocoa); border-color: var(--cocoa); }
.step--cur .step__dot { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--ink); }
.step--cur { color: var(--ink); font-weight: 600; }
.step--done { color: var(--ink); }
.next { margin-top: 8px; }
.next h2 { font-size: 24px; margin-bottom: 10px; }
.next__list { margin: 0 0 16px; padding-left: 18px; display: grid; gap: 8px; }
.next__list .link-btn { display: flex; margin: 2px 0 0; color: var(--ink); }
.order-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 18px; font-size: 15px; }
.order-contacts .label { flex-basis: 100%; margin: 0; }
.order-contacts a { text-underline-offset: 3px; }
.order-items { margin-top: 16px; }
@media (max-width: 640px) {
  .order-box { margin-top: 28px; }
  .step { font-size: 12px; }
}
.finder__f input::-webkit-outer-spin-button, .finder__f input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.finder__f input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* =====================================================================
   SENEL v3: приложение (PWA), доставка, таймер оплаты, отзывы покупателей,
   реквизиты, планшет 641–900px и узкие телефоны.
   ===================================================================== */

/* Шапка на 360–400px: логотип не сжимается, пункты плотнее */
.logo, .top__nav, .top__nav > a { flex: none; }
@media (max-width: 400px) {
  .top__in { gap: 10px; }
  .logo { font-size: 17px; letter-spacing: .24em; margin-right: -.24em; }
  .top__nav { gap: 10px; letter-spacing: .03em; }
  .fav-link { min-width: 40px; margin-right: -4px; }
}

/* Планшет: три колонки в сетке, товар — фото и описание рядом */
@media (min-width: 641px) and (max-width: 900px) {
  .grid, .grid--4 { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
}
@media (min-width: 641px) and (max-width: 820px) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .gallery { margin: 0; }
  .gallery__track { border-radius: var(--r); }
  .product__info h1 { font-size: 28px; }
  .sizes .size { min-width: 48px; }
}

/* Оформление: служба доставки — сетка 2×2 */
.seg--svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg--svc .seg__opt span { padding: 0 8px; text-align: center; line-height: 1.2; font-size: 13px; }
.seg + .seg { margin-top: -4px; }

/* Заказ: таймер оплаты, «Проверяем оплату…» */
.pay-timer { display: inline-flex; align-items: baseline; gap: 8px; margin: 0 0 14px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; }
.pay-timer b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; min-width: 3.2em; }
.pay-timer--late { border-color: var(--error); }
.pay-timer--late b { color: var(--error); }
.order-box #pay { display: flex; }
.status { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r); }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
@media (prefers-reduced-motion: no-preference) { .spin { animation: spin .9s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } }
#reorder { margin: 4px 0 24px; }

/* «Оцените покупку» на странице заказа */
.rate { margin-top: 8px; margin-bottom: 16px; }
.rate h2 { font-size: 24px; margin-bottom: 6px; }
.rate__sub { margin: 0 0 8px; }
.rate__list { list-style: none; padding: 0; margin: 0; }
.rate__item { padding: 16px 0; border-top: 1px solid var(--line); }
.rate__item:first-child { border-top: 0; }
.rate__head { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; margin-bottom: 8px; }
.rate__head img { width: 56px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--img); border-radius: var(--r); display: block; }
.rate__name { font-weight: 500; line-height: 1.35; }
.rate__name a { text-decoration: none; }
.rate__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rate__form .rv-stars { margin-bottom: 6px; }
.rate__form textarea { min-height: 84px; background: var(--bg); }
.rate__form .error { margin: 6px 0 0; }
.rate__form .btn { margin-top: 10px; }
.rate__done { margin: 4px 0 0; }

/* Отзывы: только покупатели */
.reviews__note { flex-basis: 100%; margin: -4px 0 0; font-size: 13px; }
.rv-form__hint { margin: 0 0 14px; }
.rv__verified { color: var(--ok); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.rv__check { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: var(--card); font-size: 10px; line-height: 1; }

/* Подвал: установка приложения и реквизиты */

/* Плашка «Установить приложение» (телефон, один раз) */
.install-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "i t b" "i t l"; gap: 2px 12px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); }
body.has-buybar .install-banner { bottom: calc(80px + env(safe-area-inset-bottom)); }
.install-banner img { grid-area: i; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); }
.install-banner p { grid-area: t; margin: 0; font-size: 13px; line-height: 1.35; display: grid; }
.install-banner p span { color: var(--muted); font-size: 12px; }
.install-banner .btn { grid-area: b; height: 36px; padding: 0 12px; }
.install-banner .link-btn { grid-area: l; justify-self: center; margin: 0; min-height: 32px; font-size: 12px; }
@media (prefers-reduced-motion: no-preference) { .install-banner { animation: sheet-in .3s var(--ease); } }
.install-steps { margin: 12px 0 20px; padding-left: 20px; display: grid; gap: 10px; line-height: 1.45; }
.install-steps svg { vertical-align: -3px; color: var(--cocoa); }

/* Офлайн-страница */
.offline { max-width: 460px; margin: 64px auto 0; text-align: center; }

/* ===== Документы /legal/* (серверный рендер из legal/*.md) ===== */
.legal-page { padding: 32px 0 56px; }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 16px; }
.legal__docs ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.legal__docs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; }
.legal__docs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal__docs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.legal__draft { margin: 0 0 24px; padding: 12px 16px; background: #f3e3c8; border-left: 3px solid var(--cocoa); border-radius: var(--r); font-size: 14px; font-weight: 600; color: var(--cocoa-deep); }
.legal__body { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.legal__body h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 36px 0 12px; }
.legal__body h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.legal__body p { margin: 0 0 12px; }
.legal__body ul, .legal__body ol { margin: 0 0 12px; padding-left: 22px; }
.legal__body li { margin: 4px 0; }
.legal__body li > ul, .legal__body li > ol { margin: 4px 0 0; }
.legal__body a { color: var(--ink); text-underline-offset: 3px; }
.legal__body code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1px 5px; }
.legal__body blockquote { margin: 0 0 16px; padding: 10px 16px; border-left: 3px solid var(--line); background: var(--card); border-radius: var(--r); }
.legal__body blockquote p:last-child { margin: 0; }
.legal__body blockquote.legal__note { border-left-color: var(--cocoa); font-size: 14px; color: var(--muted); }
.legal__body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.legal__table { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.legal__table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 13px; line-height: 1.45; background: var(--card); }
.legal__table th, .legal__table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal__table th { font-weight: 600; background: var(--img); }
mark.ph { background: #f6dca8; color: var(--cocoa-deep); padding: 0 3px; border-radius: 2px; font-weight: 500; }
.legal__forget { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal__forget p { margin: 8px 0 0; }
@media (max-width: 640px) {
  .legal-page { padding: 20px 0 40px; }
  .legal__docs ul { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scrollbar-width: none; }
  .legal__docs ul::-webkit-scrollbar { display: none; }
  .legal__body { font-size: 15px; }
}

/* Страница «Доставка и оплата»: документы */
.doc-links { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; }
.doc-links a { color: var(--ink); text-underline-offset: 3px; }

/* Оформление: оферта, ПДн, «Не запоминать мои данные» */
.checkout__pd { margin: 12px 0 0; line-height: 1.45; }
.checkout__pd a, .check a { color: var(--ink); text-underline-offset: 3px; }
.saved-note { margin: -4px 0 14px; line-height: 1.45; }
.saved-note .link-btn { display: inline; margin: 0; padding: 0; min-height: 0; font-size: inherit; }
.rv-consent { font-size: 13px; line-height: 1.4; }

/* Подвал: документы */

/* Cookie-баннер: внизу, над нижней панелью «В корзину» */
.cookie-banner { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 46; width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); font-size: 13px; line-height: 1.4; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-banner a { color: var(--ink); text-underline-offset: 3px; }
.cookie-banner .btn { flex: none; min-height: 44px; padding: 0 18px; }
@media (max-width: 820px) {
  .cookie-banner { bottom: calc(12px + env(safe-area-inset-bottom)); }
  /* на странице товара панель «В корзину» закреплена снизу — баннер стоит над ней */
  body.has-buybar .cookie-banner { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.has-cookie main { padding-bottom: 88px; }
  body.has-cookie.has-buybar main { padding-bottom: 168px; }
}
@media (prefers-reduced-motion: no-preference) { .cookie-banner { animation: cookie-in .3s var(--ease); } }
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translateX(-50%); } }

/* Оформление v5: шаги, город, служба доставки, пункты выдачи СДЭК, оплата */
.co-step { font: 500 12px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 28px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.checkout h2 + .co-step, .checkout .saved-note + .co-step { margin-top: 8px; padding-top: 0; border-top: 0; }
.t-dlv.muted { font-size: 14px; }

/* Город: поле с выпадающей подсказкой */
.combo__box { position: relative; }
.combo__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none; background: var(--card); border: 1px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-pop); max-height: 280px; overflow-y: auto; }
.combo__opt { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 14px; cursor: pointer; line-height: 1.3; }
.combo__opt:hover, .combo__opt[aria-selected="true"] { background: var(--bg); }
.combo__opt[aria-selected="true"] { box-shadow: inset 2px 0 0 var(--ink); }
.combo__region { font-size: 12px; color: var(--muted); }
.combo__empty { padding: 12px 14px; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* Служба доставки: карточки-радио с ценой и сроком */
.svc { border: 0; padding: 0; margin: 4px 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc__opt { position: relative; cursor: pointer; display: flex; }
.svc__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.svc__body { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; min-height: 92px; border: 1px solid var(--line); background: var(--bg); border-radius: var(--r); transition: border-color var(--dur), background var(--dur); }
.svc__name { font-weight: 600; font-size: 15px; }
.svc__sub { font-size: 12px; color: var(--muted); line-height: 1.35; }
.svc__q { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.svc__opt input:checked + .svc__body { border-color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--ink); }
.svc__opt input:focus-visible + .svc__body { outline: 2px solid var(--ink); outline-offset: 2px; }
.svc__opt:hover .svc__body { border-color: var(--ink); }

/* Пункты выдачи */
#pts:focus { outline: none; }
.pts__hint { margin: 0 0 12px; line-height: 1.45; }
.pts__head { display: flex; gap: 8px; }
.pts__head .input { flex: 1; min-width: 0; }
.pts__map { flex: none; height: 46px; }
.pts__count { margin: 8px 0 6px; }
.pts__list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); overscroll-behavior: contain; }
.pts__list li + li { border-top: 1px solid var(--line); }
.pt { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; min-height: 56px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.pt:hover { background: var(--card); }
.pt:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.pt__name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.pt__addr { font-size: 14px; line-height: 1.35; }
.pt__time, .pt__note { font-size: 12px; color: var(--muted); line-height: 1.35; }
.pts__more { margin: 0; padding: 0 14px; min-height: 44px; }
.pts--err .pts__list, .pts--err .pts__hint { border-color: var(--error); }
.pts__err { margin: 6px 0 0; }
.pts__err:empty { display: none; }
.pt-sel { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 14px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--bg); }
.pt-sel > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-sel__label { margin: 0 0 4px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pt-sel .link-btn { margin: 0; flex: none; color: var(--ink); }
#dlv-pickup, #dlv-courier { margin-bottom: 16px; }
#dlv-courier .field { margin-bottom: 0; }
.input--postcode { max-width: 160px; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.dlv-note { margin: 0 0 4px; padding: 10px 14px; background: var(--bg); border-left: 2px solid var(--cocoa); font-size: 14px; line-height: 1.45; }
.dlv-note b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dlv-note span { display: block; color: var(--muted); font-size: 13px; }

/* Оплата: один способ — карточка без радиокнопки */
.pay-one { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); background: var(--bg); border-radius: var(--r); margin-bottom: 12px; }
.pay-one .ico { flex: none; color: var(--cocoa); }
.pay-opts { border: 0; padding: 0; }
.pay-opt__body { display: flex; flex-direction: column; gap: 1px; }
.pay-opt__body b { font-weight: 600; font-size: 15px; }
.pay-opt__sub { font-size: 13px; color: var(--muted); }

/* Карта пунктов: на компьютере окно, на телефоне — шторка на весь экран */
.sheet--map { max-width: 1040px; width: calc(100% - 48px); height: min(720px, calc(100dvh - 48px)); padding: 16px 20px 20px; display: none; flex-direction: column; overflow: hidden; }
.sheet--map[open] { display: flex; }
.sheet--map .modal__head h2 { font-size: 22px; }
.map-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 340px; gap: 16px; margin-top: 8px; }
.map { position: relative; min-height: 240px; background: var(--img); border-radius: var(--r); overflow: hidden; }
.map__msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; margin: 0; }
.map__side { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.map__list { flex: 1; max-height: none; }
.map__info { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--ink); background: var(--card); border-radius: var(--r); }
.map__info .btn { margin-top: 10px; }
@media (max-width: 640px) {
  .sheet.sheet--map { margin: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; padding: 8px 16px calc(12px + env(safe-area-inset-bottom)); }
  .map-wrap { grid-template-columns: 1fr; grid-template-rows: minmax(240px, 50%) 1fr; }
  .svc__body { min-height: 104px; }
}

/* Страница заказа: получение и оплата */
.order-info { margin: 16px 0 0; display: grid; gap: 8px; font-size: 14px; }
.order-info div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.order-info dt { color: var(--muted); }
.order-info dd { margin: 0; }
@media (max-width: 640px) { .order-info div { grid-template-columns: 1fr; gap: 0; } }

/* /info: доставка и оплата */
.page-text h1 + .info-h { margin-top: 24px; }
.info-list { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; }
.order-items .sum > span:last-child { white-space: nowrap; padding-left: 12px; }
.pvz__hint { margin: -8px 0 0; line-height: 1.45; }
#dlv-pvz .field { margin-bottom: 12px; }

/* Доставка Ozon: одна служба, подсказка про аккаунт, отказ, тип пункта */
@media (min-width: 641px) { .svc--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc-one { margin: 4px 0 12px; font-size: 14px; color: var(--muted); }
.svc-one b { color: var(--ink); font-weight: 600; }
.dlv-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.dlv-hint svg { flex: none; margin-top: 1px; color: var(--cocoa); }
.dlv-refuse { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--error); border-left-width: 3px; background: var(--card); border-radius: var(--r); font-size: 14px; line-height: 1.45; }
.dlv-refuse:focus { outline: none; }
.dlv-refuse:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dlv-refuse p { margin: 0; }
.dlv-refuse b { display: block; color: var(--error); font-weight: 600; margin-bottom: 2px; }
.dlv-refuse__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dlv-refuse__acts .btn { min-height: 44px; height: auto; }
.pt__kind { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid var(--line); border-radius: var(--r); font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--muted); vertical-align: 1px; white-space: nowrap; }
.pt__kind--postamat { border-color: var(--cocoa); color: var(--cocoa); }
.pts__kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; border-radius: var(--r); cursor: pointer; white-space: nowrap; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip-btn__n { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
#dlv-pickup .link-btn[data-to-post] { color: var(--ink); }

/* Страница заказа: номер и статус отправления */
.order-track { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 12px 0 0; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; }
.order-track__n { font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-all; }
.order-track__st { color: var(--ok); font-weight: 500; }

/* =====================================================================
   Подвал: логотип, 4 колонки (Покупателям · Каталог · О бренде · Контакты),
   внизу реквизиты, документы, оговорка о Meta и ©. На ≤640px колонки — <details>.
   Цвета на --cocoa-deep: текст #cfc4b7 (≈9:1), мелкий #a89c8f (≈5.7:1), ссылки --bg.
   ===================================================================== */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.foot { background: var(--cocoa-deep); color: #cfc4b7; padding: 56px 0 32px; font-size: 14px; line-height: 1.5; }
.foot a { color: var(--bg); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot a:focus-visible, .foot summary:focus-visible, .foot button:focus-visible { outline: 2px solid var(--bg); outline-offset: 2px; }
.foot__top { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid rgba(244,239,231,.14); }
.foot__logo { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 22px; letter-spacing: .34em; }
.foot a.foot__logo:hover { text-decoration: none; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 48px; }
.foot__h { margin: 0 0 14px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bg); }
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot__list > li { min-width: 0; }
.foot__list a { display: inline-flex; align-items: center; min-height: 32px; overflow-wrap: anywhere; }
.foot__note { display: inline-flex; align-items: center; min-height: 32px; color: #cfc4b7; }
.foot__install { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--bg); font: inherit; cursor: pointer; }
.foot__install[hidden] { display: none; }
.foot__install:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__bottom { display: grid; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(244,239,231,.14); font-size: 12px; color: #a89c8f; }
.foot__bottom p { margin: 0; }
.foot__docs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.foot__docs a { display: inline-flex; align-items: center; min-height: 32px; color: #cfc4b7; }
.foot__docs span { color: #a89c8f; }
.foot__meta { max-width: 640px; }

/* Квадратные кнопки соцсетей: светлые на странице, .soc--dark — в подвале */
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.soc { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); }
.soc:hover { border-color: var(--ink); }
.soc:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.foot .soc--dark { min-height: 0; background: transparent; border-color: rgba(244,239,231,.32); color: var(--bg); }
.foot .soc--dark:hover { background: var(--bg); color: var(--cocoa-deep); border-color: var(--bg); text-decoration: none; }

@media (max-width: 980px) { .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .foot { padding: 32px 0 calc(24px + env(safe-area-inset-bottom)); }
  .foot__top { padding-bottom: 16px; margin-bottom: 0; }
  .foot__logo { font-size: 20px; letter-spacing: .3em; }
  .foot__cols { grid-template-columns: 1fr; gap: 0; }
  .foot__col--acc { border-bottom: 1px solid rgba(244,239,231,.14); }
  .foot__sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer; list-style: none; }
  .foot__sum::-webkit-details-marker { display: none; }
  .foot__sum .foot__h { margin: 0; }
  .foot__chev { flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur) var(--ease); }
  .foot__col--acc[open] .foot__chev { transform: translateY(2px) rotate(-135deg); }
  .foot__col--acc .foot__list { padding-bottom: 12px; }
  .foot__col:not(.foot__col--acc) { padding-top: 24px; }
  .foot__list a, .foot__docs a { min-height: 44px; }
  .foot__docs { gap: 0 20px; }
  .foot__docs span { display: none; }
  .foot__bottom { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { .foot__chev { transition: none; } }

/* /info: разделы «Как выбрать размер», «Контакты»; страница заказа: «Вопросы по заказу» */
.info-sec { margin: 0; }
.info-contacts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.info-contacts__list a, .info-contacts__list .foot__note { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.info-contacts__list .foot__note { color: var(--muted); }
.info-contacts__meta { margin: 12px 0 0; }
.order-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 0 0 18px; font-size: 15px; }
.order-contacts a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 3px; }
.order-contacts__sep { color: var(--muted); }

/* =====================================================================
   Шапка: «Для брендов» и меню (≤820px пункт уходит в меню, на ≤640px — и «Каталог»: его заменяет логотип)
   ===================================================================== */
.top__menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.top__menu-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.top-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.top-menu[hidden] { display: none; }
.top-menu__list { list-style: none; margin: 0 auto; padding-top: 8px; padding-bottom: 12px; }
.top-menu__list a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.top-menu__list li:last-child a { border-bottom: 0; }
.top-menu__list a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) {
  .top-menu:not([hidden]) { animation: menu-in var(--dur) var(--ease); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 820px) {
  .top__nav .top__b2b { display: none; }
  .top__menu-btn { display: inline-flex; }
}
@media (max-width: 640px) { .top__nav .top__cat { display: none; } }
@media (min-width: 821px) { .top-menu { display: none !important; } }

/* =====================================================================
   «Пошив для брендов» (/production): текст — content/pages/production.md
   ===================================================================== */
.b2b-page { padding-bottom: var(--s7); }
.b2b-loading { padding: 80px 0; text-align: center; }
.b2b-sec { padding: var(--s8) 0 0; scroll-margin-top: calc(var(--header-h) + var(--s4)); }
.b2b-sec__h { margin: 0 0 var(--s5); font-size: clamp(28px, 3.4vw, 40px); }

/* Первый экран */
.b2b-hero { display: flex; flex-direction: column; justify-content: center; min-height: min(620px, calc(100svh - var(--header-h))); padding: var(--s7) 0; border-bottom: 1px dashed rgba(90,66,54,.45); }
.b2b-hero__eyebrow { margin: 0 0 var(--s4); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.b2b-hero__h { max-width: 15ch; text-wrap: balance; margin: 0 0 var(--s5); font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.005em; }
.b2b-hero__lead { max-width: 600px; margin: 0 0 var(--s5); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; }
.b2b-hero__facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: 0 0 var(--s6); padding: 0; list-style: none; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--cocoa); }
.b2b-hero__facts li { display: inline-flex; align-items: center; gap: 10px; }
.b2b-hero__facts li::before { content: ""; width: 14px; height: 1px; background: currentColor; }
.b2b-hero__cta { margin: 0; }
.b2b-hero__cta .btn { min-width: 240px; }

/* Что входит / Почему мы — карточки */
.b2b-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.b2b-card { padding: var(--s5); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.b2b-card__h { margin: 0 0 var(--s2); font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.35; }
.b2b-card p { margin: 0; font-size: 15px; color: var(--muted); }
.b2b-card a { color: var(--ink); text-underline-offset: 3px; }
#why .b2b-card { background: none; border: 0; border-top: 1px solid var(--ink); border-radius: 0; padding: var(--s4) 0 0; }

/* Как работаем — нумерованная лента */
.b2b-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 var(--s4); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.b2b-step { position: relative; padding: var(--s6) 0 0; border-top: 1px solid var(--line); }
.b2b-step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.b2b-step__n { display: block; margin-bottom: var(--s3); font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--cocoa); font-variant-numeric: lining-nums; }
.b2b-step__h { margin: 0 0 var(--s2); font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.35; }
.b2b-step p { margin: 0; font-size: 14px; color: var(--muted); }

/* Частые вопросы */
.b2b-faq { max-width: 820px; border-top: 1px solid var(--line); }
.b2b-faq__item { border-bottom: 1px solid var(--line); }
.b2b-faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 60px; padding: var(--s3) 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; }
.b2b-faq__q::-webkit-details-marker { display: none; }
.b2b-faq__q:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.b2b-faq__icon { position: relative; flex: none; width: 14px; height: 14px; }
.b2b-faq__icon::before, .b2b-faq__icon::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1px; background: currentColor; transition: transform var(--dur) var(--ease); }
.b2b-faq__icon::after { transform: rotate(90deg); }
.b2b-faq__item[open] .b2b-faq__icon::after { transform: rotate(0deg); }
.b2b-faq__a { padding: 0 var(--s6) var(--s5) 0; color: var(--muted); }
.b2b-faq__a p { margin: 0 0 var(--s2); }
.b2b-faq__a p:last-child { margin: 0; }

/* Заявка */
.b2b-request { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
.b2b-request__text p { max-width: 420px; color: var(--muted); }
.b2b-request__form { padding: var(--s6); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.lead-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); }
.lead-form .field > label .muted { font-size: 12px; }
.lead-form .input { background: var(--bg); }
.field__hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.lead-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__consent { margin: var(--s2) 0 var(--s4); }
.lead-form__consent .check { margin: 0; font-size: 14px; line-height: 1.45; align-items: flex-start; }
.lead-form__consent .check input { margin-top: 2px; }
.lead-form__pd { margin: var(--s3) 0 0; font-size: 13px; }
.lead-form__pd a { color: var(--ink); text-underline-offset: 3px; }
.lead-form__err { margin-top: var(--s3); }
.lead-done { padding: var(--s6) 0; text-align: center; }
.lead-done:focus { outline: none; }
.lead-done svg { margin: 0 auto var(--s3); color: var(--ok); }
.lead-done__h { margin: 0 0 var(--s2); font-size: 32px; }
.lead-done p { margin: 0; color: var(--muted); }

@media (max-width: 980px) {
  .b2b-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2b-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s4); }
  .b2b-request { grid-template-columns: 1fr; gap: var(--s4); }
}
@media (max-width: 640px) {
  .b2b-sec { padding-top: var(--s7); }
  .b2b-hero { min-height: 0; padding: var(--s6) 0 var(--s7); }
  .b2b-hero__facts { flex-direction: column; gap: var(--s2); }
  .b2b-hero__cta .btn { width: 100%; }
  .b2b-cards { grid-template-columns: 1fr; gap: var(--s3); }
  .b2b-card { padding: var(--s4) var(--s4) var(--s5); }
  /* Шаги — вертикальная лента с линией слева */
  .b2b-steps { grid-template-columns: 1fr; gap: 0; border-left: 1px solid var(--line); margin-left: 3px; }
  .b2b-step { padding: 0 0 var(--s5) var(--s5); border-top: 0; }
  .b2b-step:last-child { padding-bottom: 0; }
  .b2b-step::before { top: 6px; left: -4px; }
  .b2b-step__n { display: inline-block; margin: 0 var(--s2) 0 0; font-size: 26px; vertical-align: -3px; }
  .b2b-step__h { display: inline; font-size: 16px; }
  .b2b-step p { margin-top: var(--s1); }
  .b2b-faq__q { font-size: 16px; }
  .b2b-faq__a { padding-right: 0; }
  .b2b-request__form { padding: var(--s5) var(--s4); margin: 0 calc(var(--gutter) * -1); border-left: 0; border-right: 0; border-radius: 0; }
  .lead-form__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .b2b-faq__icon::before, .b2b-faq__icon::after { transition: none; } }
