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

@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;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent; }
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: 10px; width: 100%; min-height: 50px; padding: 0 16px;
  border: 1px solid var(--brand); background: var(--brand); color: #FFFFFF; font-size: 15px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; text-decoration: none; text-align: center; cursor: pointer;
  transition: opacity 150ms ease, transform 120ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn.line { background: var(--bg); color: var(--brand); }
.btn[disabled] { opacity: .4; 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]):hover { opacity: .88; }
}

/* Шапка */
.promo { padding: 7px max(16px, var(--sr)) 7px max(16px, var(--sl)); background: var(--brand); color: #FFFFFF; text-align: center; font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.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: .28em; font-size: 19px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; text-decoration: none; }
.topnav { display: none; }

/* Подвал, нижнее меню, кнопка «Напишите нам» */
.foot { margin-top: 32px; border-top: 1px solid var(--line); }
.foot-in { padding-top: 24px; padding-bottom: 32px; display: grid; gap: 16px; font-size: 13.5px; }
.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); text-decoration: none; transition: border-color 150ms ease; }
.legal { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); }
.legal a { padding: 4px 0; text-decoration: none; }
.ip { color: var(--muted); font-size: 12px; }
.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 { display: none; }
@media (hover: hover) and (pointer: fine) {
  .legal 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.two picture:nth-of-type(2) { position: absolute; inset: 0; opacity: 0; transition: opacity 200ms 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; }
}
@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; }
}
.meta { min-width: 0; padding: 0 2px; display: grid; gap: 2px; }
.meta .price { margin-bottom: 2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 16px; }
.meta .price s { color: var(--muted); font-size: 14px; }
.meta .price b { color: var(--sale); font-size: 17px; font-weight: 600; }
.meta .price b.plain { color: var(--ink); }
.meta .brand { font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere; }
.meta .t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.3; }
.chips { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.chip { padding: 2px 6px 3px; border: 1px solid var(--border); font-size: 12.5px; line-height: 1.15; text-align: center; }
.chip small { display: block; color: var(--muted); font-size: 11px; }
.chip.hit { border-color: var(--ink); }
.defect { justify-self: start; margin-top: 4px; padding: 1px 7px; background: var(--warn-bg); color: var(--warn); font-size: 12px; }
.when { margin-top: 4px; color: var(--ok); font-size: 12.5px; }
.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: 32px; 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; }

/* Главная */
.hero { padding-top: 24px; }
.hero h1 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: .05em; line-height: 1.25; text-transform: uppercase; }
.lead { max-width: 54ch; margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.pick { margin: 22px 0 10px; font-size: 15px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.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: 36px; }
.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)); }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--tile); }
.gallery::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; aspect-ratio: 3 / 4; scroll-snap-align: start; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.dots { padding-top: 12px; display: flex; justify-content: center; gap: 6px; }
.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: 20px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.phead2 .t { color: var(--muted); font-size: 15px; line-height: 1.35; }
.pprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 20px; }
.pprice s { color: var(--muted); font-size: 18px; }
.pprice b { color: var(--sale); font-weight: 500; }
.pprice b.plain { color: var(--ink); }
.pct { align-self: center; display: inline-block; padding: 0 6px; background: var(--sale); color: #FFFFFF; font-size: 15px; font-weight: 500; line-height: 24px; }
.two { display: grid; gap: 4px; font-size: 15px; }
.two span { color: var(--muted); }
.two 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); }
.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; }

/* Служебные страницы */
.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; }
.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; }
  .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; }
  .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)); }
  .menu-btn { display: none; }
  .topnav { display: flex; gap: 24px; font-size: 14px; white-space: nowrap; }
  .topnav a { text-decoration: none; }
  .logo { font-size: 22px; }
  .tabbar { display: none; }
  .page-home .fab, .page-catalog .fab, .page-text .fab, .page-model .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; }
  #filter { position: static; 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; }

  .hero { padding-top: 40px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .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; }

  .notice { margin-top: 20px; }
  .product { padding: 24px 32px 0; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 56px; 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; }
  .gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; background: none; }
  .gallery:not(.many) { grid-template-columns: minmax(0, 560px); }
  .slide { background: var(--tile); }
  .gal .dots { display: none; }
  .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: 24px; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
