/* Витрина Shargue: макет варианта 3 «Функциональный» (docs/design/mockups/v3-funkcionalnyy.html)
   в языке KupiVIP — шрифт Jost, белый фон, прямые углы, заглавные кнопки с разрядкой,
   тонкие серые линии, один красный акцент (лента, цены, плашки скидок, главные кнопки).
   До 1024 px — экраны макета для телефона, шире — раскладка для компьютера по образцу
   KupiVIP: фильтр строкой, сетка в 4 колонки, карточка в две колонки.
   Шапка не прыгает между страницами: полоса прокрутки есть всегда (overflow-y: scroll;
   пустого места под неё, как от scrollbar-gutter, нет — лента и шапка во всю ширину окна),
   высоты ленты и шапки заданы, запасной шрифт подогнан под Jost. */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost-cyrillic.dcb081b72429.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin-ext.7b6ea3dd2de2.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin.41a72a3a0ae3.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  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;
}
/* Пока Jost грузится, текст набран Arial с метриками Jost: ширина строк и высота
   не меняются, когда шрифт подменяется (fonttools: средняя ширина 0,471 против 0,496). */
@font-face {
  font-family: "Jost Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 95%;
  ascent-override: 112.6%;
  descent-override: 39.5%;
  line-gap-override: 0%;
}

:root {
  --bg: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #767676;
  --line: #E6E6E6;
  --border: #CFCFCF;
  --soft: #F2F2F2;
  --tile: #F5F5F5;
  --brand: #1A1A1A;
  --red: #D0101A;
  --red-dark: #A90C14;
  --red-soft: #FBE6E5;
  --sale: var(--red);
  --ok: #2F6B4F;
  --ph: #F0F0F0;
  --ph-ico: #C2C2C2;
  --warn-bg: #FFF3D1;
  --warn: #7A5200;
  --font: "Jost", "Jost Fallback", Arial, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --top: 56px;
  --ticker: 32px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); overflow-y: scroll; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent; }
/* Панель поверх страницы: прокручивается html, поэтому останавливаем его. */
html:has(> body.locked) { overflow: hidden; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; outline: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ico { width: 22px; height: 22px; flex: none; fill: currentColor; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Поля страницы не уже «чёлки» и скруглений экрана: viewport-fit=cover в base.html. */
:root { --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px); }
.wrap { width: 100%; max-width: 1312px; margin-inline: auto; padding-left: max(16px, var(--sl)); padding-right: max(16px, var(--sr)); }

.skip { position: absolute; left: 8px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #FFFFFF; text-decoration: none; }
.skip:focus { top: 8px; }

/* Кнопки */
.btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 16px;
  border: 1px solid var(--red); background: var(--red); color: #FFFFFF; font-size: 15px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease, transform 140ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn.line { border-color: var(--brand); background: var(--bg); color: var(--brand); }
[hidden] { display: none !important; }
.btn[disabled] { border-color: #E4E4E4; background: #E4E4E4; color: #8C8C8C; cursor: not-allowed; transform: none; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: none;
  color: var(--ink); text-decoration: none; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .btn:not([disabled]):not(.line):hover { border-color: var(--red-dark); background: var(--red-dark); }
  .btn.line:not([disabled]):hover { background: var(--brand); color: #FFFFFF; }
}

/* Бегущая лента над шапкой: высота задана, текст едет по кругу, при наведении стоит.
   Дорожка — две одинаковые половины, сдвиг на половину замыкает круг без рывка. */
.ticker { height: var(--ticker); display: flex; align-items: center; overflow: hidden; background: var(--red); color: #FFFFFF;
  text-decoration: none; contain: paint; }
.ticker-track { flex: none; display: flex; animation: ticker 60s linear infinite; will-change: transform; }
.ticker-track span { flex: none; padding-right: 64px; font-size: 13px; font-weight: 500; line-height: 1; letter-spacing: .14em;
  text-transform: uppercase; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) {
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { height: var(--top); max-width: 1312px; margin: 0 auto; padding: 0 max(6px, var(--sr)) 0 max(6px, var(--sl)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.hl { display: flex; align-items: center; gap: 24px; min-width: 0; }
.hr { display: flex; justify-content: flex-end; align-items: center; }
.logo { padding-left: .2em; font-size: 18px; font-weight: 500; letter-spacing: .2em; line-height: 1; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.logo .dot { color: var(--red); }
.topnav { display: none; }

/* Корзина в шапке и нижнем меню: число пар (T11) */
.cartbtn, .favlink { position: relative; }
.cartbtn .n, .favlink .n { position: absolute; top: 7px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--red); color: #FFFFFF; font: 500 10px/16px var(--font); letter-spacing: 0; text-align: center; }
.tabbar .cartbtn .n, .tabbar .favlink .n { top: 3px; right: auto; left: calc(50% + 6px); }
/* Сообщение после действия: «Пара в корзине. Перейти в корзину» */
.flash { padding-top: 12px; display: grid; gap: 6px; }
.flash p { margin: 0; padding: 10px 16px; background: var(--soft); font-size: 14px; }
.flash .flash-error, .flash .flash-warning { background: var(--warn-bg); color: var(--warn); }
.flash a { margin-left: 6px; font-weight: 500; text-underline-offset: 3px; }

/* Подвал по закону РФ: колонки «Покупателям», «Магазин», «Напишите нам», реквизиты ИП,
   документы и название магазина по-русски. */
.foot { margin-top: 40px; border-top: 1px solid var(--line); background: var(--tile); }
.foot-in { padding-top: 28px; padding-bottom: 32px; display: grid; gap: 20px; font-size: 13.5px; }
.foot-cols { display: grid; gap: 24px; }
.fcol { display: grid; align-content: start; gap: 6px; }
.fcol h2 { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.fcol a { padding: 3px 0; color: var(--ink); text-decoration: none; }
.fcol p { margin: 0; color: var(--muted); }
.fcol p a { padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.write { display: flex; align-items: center; gap: 10px; }
.write span { font-size: 14px; }
.msg { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--bg); text-decoration: none; transition: border-color 150ms ease; }
.fcol .write { margin-bottom: 4px; }
.ip { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.docs { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; }
.docs a { padding: 2px 0; color: var(--muted); text-decoration: none; }
.copy { margin: 0; color: var(--muted); font-size: 12.5px; }
.reqs { margin: 8px 0 16px; display: grid; gap: 6px; }
.reqs div { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 12px; }
.reqs dt { color: var(--muted); }
.reqs dd { margin: 0; }
.text .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tabbar { position: sticky; bottom: 0; z-index: 25; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--bg); border-top: 1px solid var(--line); padding: 0 var(--sr) env(safe-area-inset-bottom, 0px) var(--sl); }
.tabbar a { display: grid; justify-items: center; gap: 1px; padding: 7px 0 6px; color: var(--muted); font-size: 12px; text-decoration: none; }
.tabbar a.on { color: var(--ink); }
.fab { position: fixed; z-index: 28; right: max(16px, var(--sr)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px;
  display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08); transition: transform 150ms var(--ease-out); }
.fab:active { transform: scale(.95); }
.fab .ico { width: 26px; height: 26px; }
/* На телефоне «Написать» есть в нижнем меню, а в карточке — в строке «Вопрос по этой паре?»:
   круглая кнопка там закрывала бы кнопки мессенджеров. */
.page-home .fab, .page-catalog .fab, .page-text .fab, .page-model .fab, .page-favorites .fab { display: none; }
@media (hover: hover) and (pointer: fine) {
  .fcol a:hover, .docs a:hover, .topnav a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .msg:hover { border-color: var(--ink); }
}

/* Панели поверх страницы: фильтр, сортировка, меню, «Напишите нам», «Как подобрать» */
.layer { position: fixed; inset: 0; z-index: 50; display: none; justify-content: center; align-items: flex-end; background: rgba(20, 20, 20, .4); }
.layer:target, .layer.open { display: flex; }
.panel { width: 100%; max-width: 480px; max-height: 100%; display: flex; flex-direction: column; background: var(--bg);
  transition: transform 280ms var(--ease-drawer); }
@starting-style {
  .layer.open .panel, .layer:target .panel { transform: translateY(100%); }
}
.panel.full { height: 100%; max-width: none; }
.panel.sheet { padding: 0 var(--sr) env(safe-area-inset-bottom, 0px) var(--sl); }
.panel.full { padding-left: var(--sl); padding-right: var(--sr); }
.phead { flex: none; min-height: 56px; padding: 0 6px 0 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.phead h2 { margin: 0; font-size: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.pbody { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.pfoot { flex: none; display: grid; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.wbtns { display: grid; gap: 8px; padding: 16px; }
.wbtns a { height: 54px; padding: 0 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); font-size: 16px; text-decoration: none; }
.wbtns small { margin-left: auto; color: var(--muted); font-size: 13px; }
.wbtns.inline { max-width: 420px; margin: 16px 0; padding: 0; }
.mlist { display: grid; padding-bottom: 8px; }
.mlist a { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 16px; text-decoration: none; }
.howto { margin: 0; padding: 16px 16px 20px 36px; display: grid; gap: 6px; font-size: 15px; }

/* Каталог: заголовок, «Фильтр | Сортировать», ряд размеров */
.chead { padding-top: 14px; padding-bottom: 10px; }
.chead h1 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.cnt { margin-top: 2px; color: var(--muted); font-size: 14px; }
.fsbar { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fsbar a { height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; text-decoration: none; }
.fsbar a + a { border-left: 1px solid var(--line); }
.fsbar .ico { width: 16px; height: 16px; }
.fsbar b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #FFFFFF; font-size: 11px; font-weight: 500; line-height: 18px; text-align: center; }

.sizerow { position: sticky; top: var(--top); z-index: 20; padding: 12px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.sizerow .lbl { margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.sizerow .lbl b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.sizerow .lbl span { text-align: right; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 5px; }
.sz { height: 40px; display: grid; place-items: center; border: 1px solid var(--border); font-size: 16px; line-height: 1; text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 100ms var(--ease-out); }
.sz:active { transform: scale(.96); }
.sz.all { font-size: 12px; }
.sz.empty { border-color: var(--line); color: #9E9E9E; }
.sz[aria-current] { border-color: var(--brand); background: var(--brand); color: #FFFFFF; }
.quick { margin: 10px -16px 0; padding: 0 16px 2px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick a { flex: none; max-width: 72vw; height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); font-size: 14px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick a.on { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.quick .ico { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) {
  .sz:not([aria-current]):hover, .quick a:not(.on):hover { border-color: var(--ink); }
}

/* Группы фильтра: на телефоне — список в панели, на компьютере — выпадающие списки */
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup summary { padding: 16px; display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 16px; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary span { max-width: 60%; margin-left: auto; overflow: hidden; color: var(--muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.fgroup summary .ico { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.fgroup[open] summary .ico { transform: rotate(180deg); }
.fin { padding: 0 16px 18px; }
.fin p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.sgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sopt { position: relative; padding: 8px 2px; display: grid; justify-items: center; align-content: center; gap: 1px; border: 1px solid var(--border);
  line-height: 1.2; text-align: center; cursor: pointer; transition: border-color 150ms ease, box-shadow 150ms ease; }
.sopt b { font-size: 17px; font-weight: 500; }
.sopt small { color: var(--muted); font-size: 11px; }
.sopt:has(:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.sopt:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.sopt.empty { opacity: .5; }
.checks { display: grid; gap: 2px; }
.checks label { padding: 8px 0; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checks input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--brand); }
.checks small { margin-left: auto; color: var(--muted); }
.checks .empty { color: #9E9E9E; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 0; background: var(--bg); font-size: 16px; }
.range input:focus { outline: none; border-color: var(--ink); }
.apply { min-height: 44px; margin-top: 10px; }
.nojs-show, .nojs-foot { display: none; }
html:not(.js) .nojs-foot { display: block; padding: 12px 16px; }
.radios label { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); cursor: pointer; }
.radios input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.sortbtn { display: none; }

/* Выдача */
.results { padding-top: 14px; padding-left: max(8px, var(--sl)); padding-right: max(8px, var(--sr)); scroll-margin-top: calc(var(--top) + 140px); transition: opacity 150ms ease; }
.results.htmx-request { opacity: .55; }
.grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 8px; }
.card { position: relative; min-width: 0; }
.card-link { display: grid; gap: 10px; color: inherit; text-decoration: none; }
.phw { position: relative; display: block; }
.ph { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--tile); }
.ph picture, .ph img { width: 100%; height: 100%; }
.ph img { object-fit: cover; }
.ph img { transition: transform 600ms var(--ease-out); }
.ph.two picture:nth-of-type(2) { position: absolute; inset: 0; opacity: 0; transition: opacity 350ms ease; }
.pdots { position: absolute; left: 0; right: 0; bottom: 8px; display: none; justify-content: center; gap: 5px; pointer-events: none; }
.pdots i, .dots i { width: 6px; height: 6px; border-radius: 3px; background: #D5D5D5; transition: background-color 150ms ease; }
.pdots i.on, .dots i.on { background: var(--ink); }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 8px; background: var(--ph); }
.noimg .shoe { width: 40%; aspect-ratio: 1; fill: var(--ph-ico); }
.noimg .soon { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* Наведение: второй ракурс проявляется поверх первого, фото чуть приближается. */
@media (hover: hover) and (pointer: fine) {
  .card:hover .ph.two picture:nth-of-type(2) { opacity: 1; }
  .card:hover .ph img { transform: scale(1.04); }
}
@media (hover: none) {
  .ph.two { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .ph.two::-webkit-scrollbar { display: none; }
  .ph.two picture { flex: 0 0 100%; scroll-snap-align: start; }
  .ph.two picture:nth-of-type(2) { position: static; opacity: 1; }
  .pdots { display: flex; }
}
/* Подпись как у KupiVIP: бренд, тип, цена «было» и красная «стало», плашка −NN%. */
.meta { min-width: 0; padding: 0 2px; display: grid; justify-items: center; gap: 2px; text-align: center; }
.meta .brand { font-size: 15px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.meta .t { color: var(--muted); font-size: 14px; line-height: 1.3; }
.meta .price { margin-top: 2px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 8px; font-size: 16px; }
.meta .price s { color: var(--muted); font-size: 14px; }
.meta .price b { color: var(--sale); font-size: 16px; font-weight: 500; }
.meta .price b.plain { color: var(--ink); }
.pct { display: inline-block; padding: 0 6px; background: var(--sale); color: #FFFFFF; font-size: 13px; font-weight: 500; line-height: 21px; letter-spacing: .02em; }
.meta .pct { margin-top: 3px; }
/* Размеры как у KupiVIP: на компьютере полоса внизу фото при наведении, на телефоне строка под ценой. */
.ovl { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 10px 8px 9px; display: grid; justify-items: center; gap: 6px;
  background: rgba(255, 255, 255, .9); opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.ovl-t { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.chip { min-width: 34px; padding: 2px 6px 3px; border: 1px solid var(--border); background: var(--bg); font-size: 13px; line-height: 1.15; text-align: center; }
.chip small { display: block; color: var(--muted); font-size: 11px; }
.chip.hit { border-color: var(--ink); }
.szline { margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.szline b { color: var(--ink); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .ovl, .card-link:focus-visible .ovl { opacity: 1; transform: none; }
  /* Строка размеров остаётся для экранных чтецов: полоса на фото скрыта от них. */
  .szline { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.defect { margin-top: 4px; padding: 1px 7px; background: var(--warn-bg); color: var(--warn); font-size: 12px; }
.more { padding: 24px 0 8px; display: flex; justify-content: center; }
.more:empty { padding: 0; }
.more .btn { max-width: 360px; }
.nothing { padding: 40px 0; display: grid; justify-items: center; gap: 14px; color: var(--muted); text-align: center; }
.nothing p { margin: 0; }
.nothing .btn { width: auto; }
.soonbox { margin: 20px 0 8px; padding: 40px 16px; display: grid; justify-items: center; gap: 12px; background: var(--ph); text-align: center; }
.soonbox .shoe { width: 72px; height: 72px; fill: var(--ph-ico); }
.soonbox p { margin: 0; max-width: 44ch; font-size: 16px; }

.about { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.about h2 { margin: 0 0 10px; font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.about p { max-width: 62ch; margin: 0 0 10px; font-size: 14.5px; }

/* Главная: спокойный баннер с промокодом и настоящими парами, плитки разделов с фото,
   размеры, последние пары. Красный только у цен и плашек. */
.banner { padding-top: 16px; }
.banner-in { position: relative; padding: 28px 20px 26px; display: grid; gap: 10px; background: var(--tile); color: var(--ink); }
.banner-text { display: grid; justify-items: center; gap: 10px; text-align: center; }
.banner-tag { margin: 0; padding: 4px 12px; background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.banner-pct { margin: 2px 0 0; font-size: 76px; font-weight: 500; line-height: .95; letter-spacing: -.02em; }
.banner-for { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.banner-code { margin: 6px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; font-size: 15px; }
.code { position: relative; min-width: 128px; height: 38px; padding: 0 14px; display: inline-grid; place-items: center; border: 1px solid var(--ink);
  background: var(--bg); color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: .12em; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 140ms var(--ease-out); }
.code:active { transform: scale(.97); }
.code > span { grid-area: 1 / 1; transition: opacity 150ms ease, filter 150ms ease; }
.code .done { opacity: 0; filter: blur(2px); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.code.copied .val { opacity: 0; filter: blur(2px); }
.code.copied .done { opacity: 1; filter: none; }
.banner-note { max-width: 46ch; margin: 0; color: var(--muted); font-size: 13px; }
.banner-shots { display: none; }
.shot { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.shot picture { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.shot-cap { display: grid; justify-items: center; gap: 2px; font-size: 14px; color: var(--muted); text-align: center; }
.shot-cap b { color: var(--ink); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.shot-cap .price { display: flex; gap: 8px; align-items: baseline; }
.shot-cap .price s { font-size: 13px; }
.shot-cap .price b { color: var(--sale); letter-spacing: 0; text-transform: none; }
@media (hover: hover) and (pointer: fine) {
  .code:hover { background: var(--ink); color: #FFFFFF; }
  .shot:hover img { transform: scale(1.04); }
}

.sec-head { margin-bottom: 14px; }
.sec-head h1, .sec-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: .06em; line-height: 1.25; text-transform: uppercase; }
.lead { max-width: 54ch; margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.cats { padding-top: 32px; }
/* Плитки разделов: наше фото модели этого раздела, ниже название и число моделей. */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 8px; }
/* Подписи плиток на одной высоте, даже если название в две строки (subgrid). */
.tile { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 4px; align-content: start; color: inherit; text-decoration: none;
  transition: transform 140ms var(--ease-out); }
.tile:active { transform: scale(.98); }
.tile-ph { position: relative; display: block; margin-bottom: 6px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.tile-ph picture, .tile-ph img { width: 100%; height: 100%; }
.tile-ph img { object-fit: cover; transition: transform 600ms var(--ease-out); }
.tile-name { align-self: start; font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; hyphens: auto; }
.tile-count { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.tile-count .ico { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-ph img { transform: scale(1.04); }
  .tile:hover .tile-count .ico { transform: translateX(4px); }
}
.sizes-home { padding-top: 36px; }
.hsizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.hsize { padding: 10px 4px; display: grid; justify-items: center; gap: 2px; border: 1px solid var(--border); line-height: 1.2; text-align: center; text-decoration: none;
  transition: border-color 150ms ease, transform 100ms var(--ease-out); }
.hsize:active { transform: scale(.97); }
.hsize b { font-size: 20px; font-weight: 500; }
.hsize small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.hsize[aria-current] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.hsize.empty { opacity: .5; }
.hint { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.hint a { color: var(--ink); text-underline-offset: 3px; }
.shelf { padding-top: 40px; }
.shelf-head { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.shelf-head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.shelf-head a { color: var(--muted); font-size: 14px; text-underline-offset: 3px; }
.grid.row { margin-inline: -16px; padding: 0 16px 4px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
.grid.row::-webkit-scrollbar { display: none; }
.grid.row > li { scroll-snap-align: start; }
.grid.row .ph.two { display: block; overflow: hidden; }
.grid.row .pdots { display: none; }
@media (hover: none) {
  .grid.row .ph.two picture:nth-of-type(2) { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .hsize:hover { border-color: var(--ink); }
}

/* Карточка модели */
.notice { margin-top: 12px; margin-bottom: 0; padding: 10px 16px; background: var(--warn-bg); color: var(--warn); font-size: 14px; }
.product { display: grid; grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
.product > :not(.gal) { padding-left: max(16px, var(--sl)); padding-right: max(16px, var(--sr)); }
/* Галерея как у KupiVIP: одно окно 3:4, листание свайпом (scroll-snap), стрелками, точками
   и миниатюрами. Зум под курсором и просмотр на весь экран — shop.js. */
.gwin { position: relative; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; background: var(--tile); }
.gallery::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; display: block; aspect-ratio: 3 / 4; overflow: hidden; scroll-snap-align: start; cursor: zoom-in; }
div.slide { cursor: auto; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: cover; -webkit-user-drag: none; user-select: none; transition: transform 250ms var(--ease-out); }
.slide.zooming img { transform: scale(2); }
.gnav { position: absolute; top: 50%; width: 44px; height: 64px; margin-top: -32px; display: grid; place-items: center; padding: 0; border: 0;
  background: none; color: var(--ink); cursor: pointer; transition: opacity 150ms ease, transform 140ms var(--ease-out); }
.gnav.prev { left: 0; }
.gnav.next { right: 0; }
.gnav[disabled] { opacity: 0; pointer-events: none; }
.gnav:active { transform: scale(.92); }
.gnav .ico { width: 26px; height: 26px; }
.gzoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer;
  transition: transform 140ms var(--ease-out); }
.gzoom:active { transform: scale(.94); }
.gzoom .ico { width: 20px; height: 20px; }
.dots { padding-top: 12px; display: flex; justify-content: center; gap: 6px; }
.thumbs { display: none; }

/* Просмотр на весь экран: белый фон, кадр целиком; щипок, двойное касание, свайпы — shop.js */
.lb { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden;
  background: var(--bg); color: var(--ink); overscroll-behavior: contain; }
.lb::backdrop { background: rgba(20, 20, 20, .4); }
.lb[open] { transition: opacity 200ms var(--ease-out); }
@starting-style {
  .lb[open] { opacity: 0; }
}
.lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.lb-track { height: 100%; display: flex; }
.lb-item { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
/* Кадр целиком по центру: абсолютное положение с полями auto вписывает картинку в экран. */
.lb-img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%;
  user-select: none; -webkit-user-drag: none; cursor: zoom-in; }
.lb.zoomed .lb-img { cursor: zoom-out; }
.lb-close { position: absolute; z-index: 2; top: max(6px, env(safe-area-inset-top, 0px)); right: max(6px, var(--sr)); background: rgba(255, 255, 255, .9); }
.lb-nav { position: absolute; z-index: 2; top: 50%; width: 56px; height: 80px; margin-top: -40px; display: none; place-items: center; padding: 0;
  border: 0; background: none; color: var(--ink); cursor: pointer; transition: opacity 150ms ease; }
.lb-nav.prev { left: max(8px, var(--sl)); }
.lb-nav.next { right: max(8px, var(--sr)); }
.lb-nav[disabled] { opacity: 0; pointer-events: none; }
.lb-nav .ico { width: 32px; height: 32px; }
.lb-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.lb-dots i { width: 6px; height: 6px; border-radius: 3px; background: #D5D5D5; transition: background-color 150ms ease; }
.lb-dots i.on { background: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .lb-nav { display: grid; }
  .gnav:hover, .lb-nav:hover { opacity: .6; }
}
.pinfo { padding-top: 14px; display: grid; gap: 12px; align-content: start; }
.phead2 { margin: 0; display: grid; gap: 2px; font-weight: 400; }
.phead2 .brand { font-size: 22px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.phead2 .t { color: var(--muted); font-size: 16px; line-height: 1.35; }
.pprice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 22px; }
.pprice s { color: var(--muted); font-size: 18px; }
.pprice b { color: var(--sale); font-weight: 500; }
.pprice b.plain { color: var(--ink); }
.pprice .pct { font-size: 15px; line-height: 24px; }
.howlink { margin: 0; font-size: 15px; }
.howlink a { text-decoration-color: #BDBDBD; text-underline-offset: 3px; }
.buyform { display: grid; gap: 12px; }
.psizes { min-width: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
.psizes .sopt { width: 72px; }
.pnote { margin: 0; color: var(--muted); font-size: 13px; }
.bpairs { min-width: 0; margin: 0; padding: 10px 14px 12px; display: grid; gap: 8px; border: 1px solid var(--line); }
.bpairs legend { padding: 0 6px; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.bpair { padding: 6px 0; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.bpair input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--brand); }
.bph { width: 56px; flex: none; }
.bph img { aspect-ratio: 3 / 4; object-fit: cover; }
.bin { flex: 1; min-width: 0; display: grid; font-size: 14px; }
.bin b { font-weight: 500; }
.bin .note { color: var(--warn); font-size: 13px; }
.bpr { display: grid; text-align: right; }
.bpr s { color: var(--muted); font-size: 13px; }
.bpr b { color: var(--sale); font-weight: 500; }
.last { margin: 0; color: var(--sale); font-size: 14px; }
.soldout { display: grid; gap: 12px; }
.soldout p { margin: 0; font-size: 16px; }
.ask { padding: 12px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.drows { margin: 0; padding-top: 14px; padding-bottom: 4px; list-style: none; display: grid; gap: 12px; }
.drows li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; font-size: 14.5px; }
.drows p { margin: 0; }
.drows span { display: block; color: var(--muted); font-size: 13px; }
.drows em { font-style: normal; font-weight: 500; white-space: nowrap; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { padding: 16px 0; display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.acc[open] summary .ico { transform: rotate(180deg); }
.acc .in { padding-bottom: 16px; display: grid; gap: 3px; font-size: 15px; }
.acc .in p { margin: 0 0 8px; }
.acc .in span { color: var(--muted); }
/* «Детали» как у KupiVIP: строки «Бренд: Gossi» серым, без таблицы и линий. */
.dlines { margin: 0; color: var(--muted); line-height: 1.55; }
.dlines dt, .dlines dd { display: inline; margin: 0; }
.dlines dt::after { content: ":"; }
.acc .in .links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.acc .in a { text-underline-offset: 3px; }
.share { padding: 18px 0 4px; display: flex; align-items: center; gap: 4px; font-size: 15px; }
.share span { margin-right: 8px; }
.share a { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink); text-decoration: none;
  transition: opacity 150ms ease, transform 140ms var(--ease-out); }
.share a:active { transform: scale(.94); }
.share .ico { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .share a:hover { opacity: .6; }
}
.buy { position: sticky; bottom: 0; z-index: 20; margin-top: 8px; padding: 10px max(16px, var(--sr)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, var(--sl));
  display: grid; grid-template-columns: 1fr auto; gap: 8px; background: var(--bg); border-top: 1px solid var(--line); }
.buy .soon { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
/* Избранное: сердечко поверх фото в выдаче, квадратная кнопка рядом с «В корзину» в модели. */
.fav { margin: 0; }
.card .fav { position: absolute; z-index: 2; top: 2px; right: 2px; }
.favbtn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--ink);
  cursor: pointer; transition: transform 140ms var(--ease-out); }
.favbtn:active { transform: scale(.9); }
.favbtn .ico { grid-area: 1 / 1; width: 22px; height: 22px; transition: opacity 150ms ease, transform 200ms var(--ease-out); }
.favbtn .on { opacity: 0; transform: scale(.6); }
.favbtn[aria-pressed="true"] .on { opacity: 1; transform: none; }
.favbtn[aria-pressed="true"] .off { opacity: 0; }
.buy .favbtn { width: 50px; height: 50px; border: 1px solid var(--brand); }
.gone { margin: 24px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .favbtn:hover .off { opacity: .55; }
}

/* Размер уже в корзине: спокойная кнопка-ссылка вместо красной. */
.incart .ico { width: 18px; height: 18px; }
.incart .go { opacity: .65; }

/* Уведомление после действия («Пара в корзине»): тёмная плашка, появляется снизу. */
.toast { position: fixed; z-index: 60; left: max(16px, var(--sl)); right: max(16px, var(--sr)); bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  max-width: 420px; margin: 0 auto; padding: 12px 16px; background: var(--ink); color: #FFFFFF; font-size: 14px;
  box-shadow: 0 8px 24px rgba(20, 20, 20, .18); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
@starting-style {
  .toast { opacity: 0; transform: translateY(8px); }
}
.toast.out { opacity: 0; transform: translateY(4px); transition-duration: 150ms; }
.toast.error { background: var(--warn-bg); color: var(--warn); }
.toast a { margin-left: 4px; color: inherit; font-weight: 500; text-underline-offset: 3px; }
@keyframes bump { 50% { transform: scale(1.25); } }
.cartbtn .n.bump { animation: bump 240ms var(--ease-out); }

/* Служебные страницы */
.text { max-width: 760px; padding-top: 24px; padding-bottom: 16px; }
.text h1 { margin: 0 0 16px; font-size: 21px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.text h2 { margin: 28px 0 8px; font-size: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.text h3 { margin: 20px 0 6px; font-size: 15px; font-weight: 600; }
.text p, .text li { max-width: 68ch; font-size: 15px; }
.text .howto { padding: 0 0 0 20px; }
.text ul { padding: 0; list-style: none; display: grid; gap: 8px; }
.edition { margin-top: 24px; color: var(--muted); font-size: 13px; }
.actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn { width: auto; min-width: 200px; }
.stable { width: 100%; max-width: 480px; margin: 8px 0 16px; border-collapse: collapse; }
.stable th, .stable td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.stable th { color: var(--muted); font-size: 13px; font-weight: 400; }

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
  .banner-in { padding: 40px 32px 36px; }
  .banner-pct { font-size: 104px; }
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
  .results { padding-left: max(16px, var(--sl)); padding-right: max(16px, var(--sr)); }
  .grid.row { grid-auto-columns: 30%; }
}

/* Компьютер */
@media (min-width: 1024px) {
  :root { --top: 64px; --ticker: 36px; }
  .wrap { padding-left: max(32px, var(--sl)); padding-right: max(32px, var(--sr)); }
  .top-in { padding: 0 max(32px, var(--sr)) 0 max(32px, var(--sl)); }
  /* Левый край шапки одинаковый на всех страницах: «меню» и «назад» только на телефоне. */
  .hl > .iconbtn { display: none; }
  .ticker-track span { font-size: 14px; }
  .topnav { display: flex; gap: 24px; font-size: 14px; white-space: nowrap; }
  .topnav a { text-decoration: none; }
  .logo { font-size: 22px; }
  .tabbar { display: none; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; }
  .toast { left: auto; right: max(24px, var(--sr)); top: calc(var(--top) + 12px); bottom: auto; margin: 0; }
  .page-home .fab, .page-catalog .fab, .page-text .fab, .page-model .fab, .page-favorites .fab { display: grid; right: 24px; bottom: 24px; }
  .layer .panel.sheet { max-width: 420px; margin-bottom: auto; margin-top: auto; }

  .chead { padding-top: 28px; padding-bottom: 14px; }
  .chead h1 { font-size: 22px; }
  .fsbar, .quick { display: none; }
  .sizerow { padding: 14px 0; }
  .sizerow .wrap { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 4px 24px; }
  .sizerow .lbl { margin: 0; display: grid; justify-content: start; gap: 2px; }
  .sizerow .lbl span { text-align: left; }
  .sizes { display: flex; flex-wrap: wrap; gap: 6px; }
  .sz { width: 52px; height: 44px; }
  .sz.all { width: auto; padding: 0 14px; }

  .bar { border-bottom: 1px solid var(--line); }
  .bar-in { min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  /* z-index панели на телефоне здесь не нужен: иначе строка фильтра при прокрутке
     ложилась поверх липкой шапки (элемент флекса с z-index рисуется выше неё). */
  #filter { position: static; z-index: auto; display: block; background: none; }
  #filter .panel { display: block; max-width: none; height: auto; background: none; transition: none; }
  #filter .phead, #filter .pfoot { display: none; }
  #filter .pbody { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; overflow: visible; }
  .fgroup { position: relative; border: 0; }
  .fgroup.fg-size { display: none; }
  .fgroup summary { height: 40px; padding: 0 12px; border: 1px solid transparent; font-size: 15px; transition: border-color 150ms ease; }
  .fgroup summary span { max-width: 180px; font-size: 14px; }
  .fgroup summary span.dflt { display: none; }
  .fgroup[open] summary { border-color: var(--ink); }
  .fgroup .fin { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 280px; max-height: min(60vh, 480px); padding: 16px;
    overflow: auto; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transform-origin: top left; transition: opacity 150ms ease, transform 180ms var(--ease-out); }
  @starting-style {
    .fgroup[open] .fin { opacity: 0; transform: translateY(-4px) scale(.98); }
  }
  .fg-price .fin { min-width: 320px; }
  html:not(.js) .nojs-show { display: inline-flex; width: auto; min-height: 40px; }
  .barend { position: relative; flex: none; }
  .sortbtn { height: 40px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; text-decoration: none; }
  .sortbtn .ico { width: 16px; height: 16px; }
  #sort { position: absolute; inset: auto; top: calc(100% + 6px); right: 0; z-index: 40; display: none; background: none; }
  #sort:target, #sort.open { display: block; }
  #sort .panel { width: 260px; max-width: none; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); transition: none; }
  #sort .phead { display: none; }

  .results { padding-top: 28px; padding-left: max(32px, var(--sl)); padding-right: max(32px, var(--sr)); }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 44px 20px; }

  .banner { padding-top: 24px; }
  /* Компьютер: слева промокод, справа две пары с фото. */
  .banner-in.with-shots { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 48px; padding: 40px 56px; }
  .with-shots .banner-text { justify-items: start; text-align: left; }
  .with-shots .banner-code { justify-content: flex-start; }
  .banner-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .banner-tag { font-size: 14px; }
  .banner-pct { font-size: 128px; }
  .banner-for { font-size: 24px; }
  .banner-code { font-size: 16px; }
  .sec-head h1, .sec-head h2 { font-size: 20px; }
  .lead { font-size: 16px; }
  .cats { padding-top: 48px; }
  .tile-name { font-size: 18px; }
  .sizes-home { padding-top: 48px; }
  .shelf { padding-top: 48px; }
  .hsizes { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); max-width: 1000px; }
  .grid.row { margin-inline: 0; padding: 0; grid-template-columns: repeat(4, 1fr); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
  .grid.row > li:nth-child(n + 5) { display: none; }
  /* «Вы смотрели»: до 12 моделей мельче, по 6 в ряд. */
  .seen .grid.row { grid-template-columns: repeat(6, 1fr); gap: 32px 16px; }
  .seen .grid.row > li:nth-child(n + 5) { display: list-item; }
  .seen .meta .brand { font-size: 14px; }

  .notice { margin-top: 20px; }
  /* Одно окно с фото и колонка справа — рядом и по центру, без пустоты между ними. */
  .product { padding: 24px 32px 0; grid-template-columns: minmax(0, 560px) 400px; justify-content: center; column-gap: 80px; align-items: start; }
  .product > :not(.gal) { grid-column: 2; padding-left: 0; padding-right: 0; }
  .gal { position: sticky; top: calc(var(--top) + 24px); grid-column: 1; grid-row: 1 / span 6; }
  .gal .dots { display: none; }
  .thumbs { margin-top: 12px; display: flex; justify-content: center; gap: 8px; }
  .thumb { width: 64px; display: block; border: 1px solid transparent; opacity: .55; transition: opacity 150ms ease, border-color 150ms ease; }
  .thumb img { aspect-ratio: 3 / 4; object-fit: cover; }
  .thumb.on { border-color: var(--ink); opacity: 1; }
  .thumb:hover { opacity: 1; }
  .pinfo { order: 1; padding-top: 0; }
  .buy { order: 2; position: static; margin: 0; padding: 16px 0 0; border-top: 0; }
  .drows { order: 3; padding-top: 20px; }
  .accs { order: 4; margin-top: 8px; }
  .phead2 .brand { font-size: 26px; }

  .text { padding-top: 40px; }
}

/* Появление при прокрутке: shop.js прячет только то, что ниже первого экрана, и
   показывает, когда оно доезжает до окна. Без скрипта всё видно сразу. */
.reveal-pre { opacity: 0; transform: translateY(14px); }
.reveal-in { transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: var(--delay, 0ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  /* Лента стоит на месте: одна надпись по центру. */
  .ticker { justify-content: center; }
  .ticker-track { animation: none; }
  .ticker-track span { padding: 0 16px; }
  .ticker-track span + span { display: none; }
  .reveal-pre { opacity: 1; transform: none; }
  .card:hover .ph img, .tile:hover .tile-ph img, .shot:hover img { transform: none; }
  /* Полоса размеров и уведомление появляются без сдвига, только прозрачностью. */
  .ovl, .toast, .toast.out { transform: none; }
  .cartbtn .n.bump { animation: none; }
}
