/* Страницы каталога STL Lab: обычная прокрутка, без 3D-сцены. Вёрстку страниц пишет tools/stl_lab_build.py. */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/inter-tight-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/inter-tight-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/inter-tight-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/jetbrains-mono-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --pearl: #f3f2ee;
  --ink: #0a0a0b;
  --blue: #0037b9;
  --muted: #686870;
  --line: rgba(10, 10, 11, .14);
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gutter: 4vw;
  --top: 62px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top); }
body { background: var(--pearl); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
svg { width: 1.5em; height: .84em; fill: none; stroke: currentColor; stroke-width: 1.3; overflow: visible; flex: none; }

.label { display: inline-flex; gap: .9em; align-items: center; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .55; }

/* шапка */
.top { position: sticky; top: 0; z-index: 6; height: var(--top); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); background: rgba(243, 242, 238, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 800; font-size: 18px; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 8px; }
.wordmark i { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.top nav { display: flex; gap: clamp(16px, 2.4vw, 34px); font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.top nav a { padding: 8px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--blue); }

main { padding: 0 var(--gutter); }

/* каталог */
.head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 9vh 0 6vh; }
.head h1 { margin-top: 22px; font-weight: 800; font-size: clamp(54px, 11vw, 168px); letter-spacing: -.03em; line-height: .9; }
.head p { max-width: 36ch; font-size: 15px; line-height: 1.6; color: var(--muted); padding-bottom: .5em; }

.filters { position: sticky; top: var(--top); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding: 14px 0; background: var(--pearl); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: .6em; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: none; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip small { font-size: 10.5px; color: var(--muted); transition: color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--pearl); }
.chip[aria-pressed="true"] small { color: #a9a9b0; }
.sort { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sort select { min-height: 36px; padding: 0 30px 0 13px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.count { margin-left: auto; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6vh 2vw; padding: 6vh 0 14vh; }
.card { display: flex; flex-direction: column; }
.card[hidden] { display: none; }
/* фото сняты на белом: умножение растворяет белый фон в цвете страницы. У .ph нет своего контекста наложения. */
.card .ph { display: block; aspect-ratio: 1; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover img { transform: scale(1.06); }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.card .meta > span:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.card b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.card .kind { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card .price { font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { padding: 10vh 0 16vh; font-size: 17px; color: var(--muted); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.empty[hidden] { display: none; }
.empty .chip { color: var(--ink); }

/* страница изделия */
.crumbs { display: flex; align-items: center; gap: 14px; padding: 4vh 0 3vh; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: .7em; color: var(--ink); }
.crumbs a:hover { color: var(--blue); }
.crumbs span::before { content: '/'; margin-right: 14px; opacity: .5; }
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 5vw; align-items: start; padding-bottom: 12vh; }
/* липкий блок — свой контекст наложения, поэтому умножение стоит на нём самом, а не на картинках */
.shots { position: sticky; top: calc(var(--top) + 3vh); mix-blend-mode: multiply; }
.shots .main { aspect-ratio: 4 / 3; }
.shots .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.thumbs button { width: 74px; aspect-ratio: 1; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info h1 { margin: 16px 0 0; font-weight: 800; font-size: clamp(46px, 6.4vw, 104px); letter-spacing: -.03em; line-height: .94; overflow-wrap: anywhere; }
.info .price { margin: 22px 0 26px; font-weight: 800; font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sizes { border: 0; margin-bottom: 26px; }
.sizes legend { margin-bottom: 10px; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sizes .chip { position: relative; min-width: 46px; justify-content: center; padding: 0 10px; }
.sizes input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sizes .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--pearl); }
.sizes .chip:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.order { display: inline-flex; align-items: center; gap: .8em; min-height: 54px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: var(--pearl); font: 500 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: background .25s; }
.order:hover { background: var(--blue); }
.note { margin-top: 14px; max-width: 46ch; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: .8em; margin-top: 22px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.link:hover { color: var(--blue); }
.text { margin-top: 34px; max-width: 54ch; font-size: 16.5px; line-height: 1.6; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.facts dt { font-weight: 600; margin-bottom: 3px; }
.facts dd { color: #55555c; line-height: 1.5; }
.same { margin-top: 34px; }
.same h2, .more h2 { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.same h2 { margin-bottom: 8px; }
.same a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.same a span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.same a:hover { color: var(--blue); }
.more { padding-top: 5vh; border-top: 1px solid var(--line); }
.more .grid { padding-top: 4vh; }

/* подвал */
.foot { background: var(--ink); color: var(--pearl); padding: 9vh var(--gutter) 4vh; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 28px; padding-bottom: 7vh; }
.foot h4 { margin-bottom: 14px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8e8e96; }
.foot p { max-width: 38ch; font-size: 14.5px; line-height: 1.6; color: #a2a2aa; }
.foot p + p { margin-top: .5em; }
.foot .cols a { display: block; width: max-content; font-size: 15px; line-height: 1.9; border-bottom: 1px solid transparent; }
.foot .cols a:hover { border-bottom-color: currentColor; }
.foot .mark { display: block; font-weight: 800; font-size: clamp(64px, 18.6vw, 300px); letter-spacing: -.045em; line-height: .8; white-space: nowrap; }
.foot .legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(243, 242, 238, .14); font: 500 12px var(--mono); letter-spacing: .04em; color: #8e8e96; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  :root { --gutter: 6vw; --top: 56px; }
  .head { grid-template-columns: 1fr; padding: 6vh 0 4vh; }
  .head h1 { font-size: clamp(48px, 15vw, 120px); }
  /* на телефоне фильтры не липнут: в три ряда они закрывали бы треть экрана */
  .filters { position: static; gap: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; width: calc(100% + var(--gutter) * 2); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .count { margin-left: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4vh 4vw; padding: 4vh 0 10vh; }
  .card b { font-size: 15.5px; }
  .card .meta { flex-direction: column; gap: 4px; }
  .product { grid-template-columns: 1fr; gap: 4vh; padding-bottom: 8vh; }
  .shots { position: static; }
  .thumbs button { width: 62px; }
  .sizes .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; width: auto; }
  .order { width: 100%; justify-content: center; }
  .facts { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .cols > div:first-child { grid-column: 1 / -1; }
  .foot .legal { font-size: 10.5px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
  .card:hover img { transform: none; }
}
