/* Язык этикетки: красный, чёрный и белый из логотипа, холодный фон морозилки.
   Радиусы: кнопки и степперы полностью скруглены, карточки 22px, поля 10px. */
@font-face { font-family: "Sofia Sans Extra Condensed"; font-weight: 200 900; font-display: swap; src: url(/app/assets/fonts/sofia-condensed-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-weight: 200 900; font-display: swap; src: url(/app/assets/fonts/sofia-condensed-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url(/app/assets/fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url(/app/assets/fonts/onest-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --font-sans: "Onest", system-ui, -apple-system, sans-serif;
  --red: #c7020b;
  --red-deep: #9d0108;
  --ink: #1c1e1f;
  --ink-soft: #3a3f42;
  --frost: #eef1f3;
  --label: #fdfdfd;
  --line: #cfd6db;
  --muted: #586268;
  --ghost: #cdd5da;
  --shadow: 0 18px 44px rgba(28, 38, 46, .14);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: linear(0, .05 2.5%, .2 5.5%, .73 13%, .95 17%, 1.08 21%, 1.15 25%, 1.16 28%, 1.13 33%, 1.03 41%, .98 49%, .97 54%, 1 70%, 1);
  --gutter: max(20px, calc((100vw - 1320px) / 2));
  --radius-card: 22px;
  --radius-field: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--frost); color: var(--ink); font-family: var(--font-sans); font-variant-numeric: tabular-nums; line-height: 1.5; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.cover :focus-visible, .closing :focus-visible, .steps-board :focus-visible { outline-color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { flex: none; width: 1.25em; height: 1.25em; fill: currentColor; }
.shell { min-height: 100dvh; overflow-x: clip; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 60; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.button { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .35s var(--ease-spring), background-color .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(.97); }
.button-light { background: #fff; color: var(--red); }
.button-light:hover { background: var(--ink); color: #fff; }
.text-link { color: inherit; font-size: 16px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Шапка повторяет этикетку: рамка и выступающий герб */
.topbar { position: fixed; top: 12px; left: 50%; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(1320px, calc(100% - 24px)); height: 64px; padding: 0 12px 0 22px; border: 2px solid var(--ink); border-radius: 18px; background: var(--label); box-shadow: 0 10px 30px rgba(60, 4, 8, .22); transform: translateX(-50%); }
.topbar::before { position: absolute; inset: 3px; border: 1px solid var(--red); border-radius: 13px; content: ""; pointer-events: none; }
.brand { position: relative; display: block; width: 122px; margin-top: 14px; transition: transform .4s var(--ease-spring); }
.brand:hover { transform: scale(1.05) rotate(-2deg); }
.brand img { width: 100%; height: auto; filter: drop-shadow(0 4px 6px rgba(60, 4, 8, .28)); }
.topnav { position: relative; display: flex; gap: 28px; align-items: center; }
.topnav a, .topbar-link { color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.topnav a:hover, .topbar-link:hover { color: var(--red); text-decoration-line: underline; }
.topbar-end { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.cart-button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px 0 16px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-size: 15px; font-weight: 700; transition: background-color .2s, transform .35s var(--ease-spring); }
.cart-button:hover { background: var(--ink); }
.cart-button:active { transform: scale(.96); }
.cart-button b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--red); font-size: 13px; }

/* Обложка */
.cover { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 24px; min-height: 100dvh; padding: 108px var(--gutter) 64px; background: radial-gradient(ellipse 70% 62% at 28% 40%, #dc0512, transparent), var(--red); color: #fff; }
.cover::after, .closing::before { position: absolute; right: 0; left: 0; height: 16px; content: ""; }
.cover::after { bottom: -15px; background: radial-gradient(circle at 50% 0, var(--red) 13.5px, transparent 14px) 0 0 / 30px 16px repeat-x; }
.cover h1 { margin: 0; font-family: var(--font-display); font-size: clamp(96px, min(15vw, 25dvh), 228px); font-weight: 900; letter-spacing: -.012em; line-height: .84; text-transform: uppercase; }
.cover h1 span { display: block; animation: rise .9s var(--ease-out) backwards; }
.cover h1 span:nth-child(2) { animation-delay: .08s; }
.cover h1 span:nth-child(3) { animation-delay: .16s; }
.cover-lede { max-width: 30em; margin: 26px 0 0; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; }
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }

.fan { position: relative; width: 100%; max-width: 690px; aspect-ratio: 1 / .94; justify-self: end; }
.fan-label { position: absolute; left: var(--x); top: var(--y); z-index: var(--i); display: block; width: 60%; transform: rotate(var(--r)); transition: transform .5s var(--ease-spring); animation: deal .8s var(--ease-out) backwards; animation-delay: calc(.12s + var(--i) * .08s); }
.fan-label img { width: 100%; height: auto; filter: drop-shadow(0 16px 20px rgba(70, 0, 5, .36)); }
.fan-label:nth-child(1) { --i: 0; --x: 40%; --y: 0%; --r: 11deg; }
.fan-label:nth-child(2) { --i: 1; --x: 0%; --y: 4%; --r: -12deg; }
.fan-label:nth-child(3) { --i: 2; --x: 40%; --y: 42%; --r: 8deg; }
.fan-label:nth-child(4) { --i: 3; --x: 1%; --y: 46%; --r: -7deg; }
.fan-label:nth-child(5) { --i: 4; --x: 20%; --y: 23%; --r: -2deg; }
.fan-label:hover, .fan-label:focus-visible { z-index: 9; transform: rotate(0deg) scale(1.1); }

/* Пар: мягкие клубы поднимаются и тают, анимируются только transform и opacity */
.steam { position: absolute; inset: 0; pointer-events: none; }
.steam i { position: absolute; bottom: 8%; left: var(--x); width: var(--w); aspect-ratio: 1 / 1.7; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .78), rgba(255, 255, 255, .34) 50%, transparent); opacity: 0; will-change: transform, opacity; animation: steam var(--t) ease-in-out var(--d) infinite; }
.steam i:nth-child(1) { --x: 12%; --w: 34%; --t: 7s; --d: 0s; }
.steam i:nth-child(2) { --x: 34%; --w: 42%; --t: 8.5s; --d: 2.2s; }
.steam i:nth-child(3) { --x: 56%; --w: 32%; --t: 7.5s; --d: 4.1s; }
.steam i:nth-child(4) { --x: 24%; --w: 28%; --t: 9s; --d: 5.6s; }
.steam i:nth-child(5) { --x: 66%; --w: 26%; --t: 8s; --d: 1.2s; }
.fan-steam { z-index: 6; }
.fan-steam i { bottom: 56%; }

/* Каталог */
.catalog { padding: 104px var(--gutter) 120px; }
.catalog h2, .steps h2, .wholesale h2, .closing h2 { margin: 0; font-family: var(--font-display); font-weight: 900; letter-spacing: -.008em; line-height: .9; text-transform: uppercase; }
.catalog h2 { font-size: clamp(64px, 9vw, 132px); }
.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 32px; }
.filters { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.filters button { flex: none; min-height: 44px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; font-size: 15px; font-weight: 600; transition: background-color .2s, color .2s, transform .35s var(--ease-spring); }
.filters button:hover { background: #fff; }
.filters button:active { transform: scale(.96); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.price-note { margin: 0; color: var(--muted); font-size: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 104px 26px; margin-top: 112px; }
.product-card { position: relative; grid-column: span 2; display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: var(--radius-card); background: var(--label); box-shadow: var(--shadow); scroll-margin-top: 170px; transform: rotate(var(--tilt, 0deg)); transition: transform .5s var(--ease-spring), box-shadow .3s; }
.product-card::before { position: absolute; inset: 5px; border: 1px solid var(--red); border-radius: 16px; content: ""; pointer-events: none; }
.product-card:nth-child(1) { --tilt: -.6deg; }
.product-card:nth-child(2) { --tilt: .5deg; }
.product-card:nth-child(3) { --tilt: .4deg; }
.product-card:nth-child(5) { --tilt: -.5deg; }
.product-card:hover { box-shadow: 0 26px 56px rgba(28, 38, 46, .2); transform: translateY(-6px) rotate(0deg); }
.product-card:target { animation: found 1.1s var(--ease-out); }
.product-grid:not([data-count="1"], [data-count="2"]) .product-card:nth-child(-n + 2), .product-grid[data-count="1"] .product-card, .product-grid[data-count="2"] .product-card { grid-column: span 3; }
.product-crest { position: relative; width: min(74%, 270px); height: auto; margin: -76px auto 0; filter: drop-shadow(0 8px 10px rgba(28, 38, 46, .22)); transition: transform .5s var(--ease-spring); }
.product-card:nth-child(-n + 2) .product-crest { width: min(66%, 310px); margin-top: -88px; }
.product-card:hover .product-crest { transform: translateY(-8px) rotate(-2deg) scale(1.04); }
.product-photo { position: relative; margin: 14px 22px 0; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; background: var(--frost); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-info { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; padding: 16px 28px 26px; text-align: center; }
.product-info h3 { margin: 0; font-family: var(--font-display); font-size: clamp(50px, 5.4vw, 74px); font-weight: 900; line-height: .96; text-transform: uppercase; white-space: nowrap; }
.product-grid:not([data-count="1"], [data-count="2"]) .product-card:nth-child(n + 3) h3 { font-size: clamp(44px, 4.3vw, 62px); line-height: 1.1; }
.product-info h3.long, .product-grid:not([data-count="1"], [data-count="2"]) .product-card:nth-child(n + 3) h3.long { font-size: clamp(32px, 3vw, 44px); line-height: 1.05; white-space: normal; }
.ribbon { margin: 10px 0 0; }
.ribbon span { display: inline-block; padding: 7px 30px; background: var(--red); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%); color: #fff; font-size: 14px; font-weight: 700; }
.product-card:nth-child(even) .ribbon span { background: var(--ink); }
.product-text { max-width: 30ch; min-height: 2.9em; margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.product-specs { display: flex; margin: 16px 0 0; font-size: 14px; font-weight: 600; }
.product-specs li { padding: 0 12px; }
.product-specs li + li { border-left: 1px solid var(--line); }
.label-link { margin: 12px 0 18px; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.label-link:hover { color: var(--red); }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.product-bottom strong { font-family: var(--font-display); font-size: 46px; font-weight: 800; line-height: 1; }
.add-button { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; transition: background-color .2s, transform .35s var(--ease-spring); }
.add-button:hover { background: var(--ink); transform: translateY(-2px); }
.add-button:active { transform: scale(.96); }
.stepper { display: inline-flex; align-items: center; height: 48px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.stepper button { display: grid; place-items: center; width: 42px; height: 44px; border: 0; border-radius: 999px; background: none; transition: background-color .2s; }
.stepper button:hover:not(:disabled) { background: var(--frost); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper b { min-width: 24px; text-align: center; font-size: 16px; }
.skeleton { min-height: 420px; border: 2px solid var(--line); border-radius: var(--radius-card); background: linear-gradient(100deg, var(--frost) 30%, #fff 50%, var(--frost) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
.catalog-error { grid-column: 1 / -1; padding: 40px 0; font-size: 18px; text-align: center; }
.catalog-error button { margin-top: 14px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; }

/* Состав как плакат: строки проявляются при чтении */
.inside { padding: 120px var(--gutter) 128px; background: var(--label); }
.inside h2 { margin: 0; font-family: var(--font-display); font-size: clamp(64px, 9vw, 132px); font-weight: 900; letter-spacing: -.008em; line-height: .9; text-transform: uppercase; }
.inside-tabs { margin-top: 28px; }
.inside-lead { margin: 22px 0 0; color: var(--red); font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; }
.inside-poster { margin-top: 36px; }
.inside-poster p { margin: 0 0 .36em; font-family: var(--font-display); font-size: clamp(46px, 6.4vw, 104px); font-weight: 900; line-height: .95; text-transform: uppercase; text-wrap: wrap; }
.inside-poster b { display: block; margin-bottom: .1em; color: var(--red); font-family: var(--font-sans); font-size: 18px; font-weight: 700; line-height: 1.4; text-transform: none; }
.inside-note { max-width: 52ch; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.5; }

/* Путь заказа */
.steps { padding: 112px var(--gutter) 0; }
.steps-board { padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-card); background: var(--ink); color: #fff; }
.steps h2 { font-size: clamp(54px, 8vw, 116px); }
.steps-lede { max-width: 46ch; margin: 18px 0 0; font-size: clamp(16px, 1.5vw, 19px); }
.steps-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: clamp(32px, 5vw, 56px); }
.steps-list li { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: clamp(150px, 15vw, 196px); padding: 16px; border-radius: 12px; background: var(--ink-soft); }
.steps-list li:first-child { background: var(--red); }
.steps-list li:last-child { background: #fff; color: var(--ink); }
.steps-list strong { font-family: var(--font-display); font-size: clamp(32px, 3.3vw, 46px); font-weight: 800; line-height: 1; }
.steps-list span { font-size: 14px; line-height: 1.35; }
.steps-facts { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-top: 12px; }
.fact { padding: 28px; border-radius: var(--radius-card); background: var(--label); }
.fact strong { display: block; font-family: var(--font-display); font-size: clamp(52px, 5.4vw, 80px); font-weight: 900; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.fact p { max-width: 28ch; margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.fact-cold { background: var(--red); color: #fff; }
.fact-cold strong { font-size: clamp(96px, 13vw, 190px); line-height: .9; }
.fact-cold p { color: #fff; }

/* Опт */
.wholesale { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding: 128px var(--gutter) 140px; }
.wholesale-head { position: sticky; top: 112px; align-self: start; }
.wholesale h2 { font-size: clamp(64px, 8.4vw, 124px); }
.wholesale-head p { max-width: 34ch; margin: 22px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.5; }
.wholesale-head .text-link { display: inline-block; margin-top: 20px; color: var(--red); }
.wholesale-list article { padding: 26px 0 30px; border-top: 2px solid var(--ink); }
.wholesale-list h3 { margin: 0; font-family: var(--font-display); font-size: clamp(38px, 4.4vw, 60px); font-weight: 800; line-height: 1; }
.wholesale-list p { max-width: 46ch; margin: 10px 0 0; color: var(--muted); font-size: 17px; line-height: 1.45; }

/* Подвал */
.closing { position: relative; padding: 88px var(--gutter) 36px; background: var(--red); color: #fff; }
.closing::before { top: -15px; background: radial-gradient(circle at 50% 100%, var(--red) 13.5px, transparent 14px) 0 0 / 30px 16px repeat-x; }
.closing-main { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.closing-main img { width: 100%; height: auto; }
.closing h2 { font-size: clamp(60px, 8.6vw, 128px); }
.closing dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, max-content)); gap: 18px 56px; margin: 32px 0 0; }
.closing dt { font-size: 14px; }
.closing dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
.closing a { color: inherit; }
.closing-legal { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 64px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .42); font-size: 14px; }

/* Панели */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; background: rgba(20, 22, 24, .56); backdrop-filter: blur(4px); animation: fade .2s ease; }
.overlay-center { align-items: center; justify-content: center; padding: 20px; }
.cart-panel { display: flex; flex-direction: column; width: min(480px, 100%); height: 100%; padding: 28px; overflow-y: auto; background: var(--label); box-shadow: -20px 0 50px rgba(20, 22, 24, .2); animation: slide .4s var(--ease-out); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.panel-head h2, .checkout h2, .label-view h2 { margin: 0; font-family: var(--font-display); font-size: 56px; font-weight: 900; line-height: .95; text-transform: uppercase; }
.close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); transition: background-color .2s, color .2s; }
.close:hover:not(:disabled) { background: var(--ink); color: #fff; }
.empty { margin: auto 0; color: var(--muted); font-size: 17px; line-height: 1.5; text-align: center; }
.empty img { width: 190px; height: auto; margin: 0 auto 16px; }
.empty .primary { margin-top: 12px; }
.cart-list { margin-top: 4px; }
.cart-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 64px; height: auto; }
.cart-row strong, .cart-row small { display: block; }
.cart-row strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.cart-row small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin: auto 0 16px; padding-top: 28px; font-size: 18px; font-weight: 600; }
.cart-total strong { font-family: var(--font-display); font-size: 52px; font-weight: 900; line-height: 1; }
.primary { display: block; width: 100%; min-height: 56px; padding: 14px 22px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; transition: background-color .2s, transform .35s var(--ease-spring); }
.primary:hover:not(:disabled) { background: var(--ink); }
.primary:active:not(:disabled) { transform: scale(.98); }
.primary:disabled { opacity: .65; cursor: wait; }
.fineprint { margin: 12px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.checkout { position: relative; width: min(760px, 100%); max-height: calc(100dvh - 40px); padding: 40px; overflow-y: auto; border-radius: var(--radius-card); background: var(--label); box-shadow: 0 25px 70px rgba(20, 22, 24, .3); animation: pop .4s var(--ease-out); }
.checkout > .close { position: absolute; top: 20px; right: 20px; }
.checkout h2 { padding-right: 52px; }
.form-lede { margin: 10px 0 24px; color: var(--muted); font-size: 16px; }
.checkout form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout label { display: grid; gap: 6px; align-content: start; font-size: 14px; font-weight: 600; }
.checkout input:not([type="radio"], [type="checkbox"]), .checkout textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #8b959c; border-radius: var(--radius-field); outline: none; background: #fff; color: var(--ink); font-size: 16px; font-weight: 400; }
.checkout input::placeholder, .checkout textarea::placeholder { color: #667077; }
.checkout input:focus, .checkout textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(199, 2, 11, .22); }
.payment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; }
.payment legend { margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.checkout .payment label { display: flex; align-items: flex-start; gap: 10px; min-height: 68px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--radius-field); background: #fff; cursor: pointer; }
.payment input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); }
.payment span, .payment b, .payment small { display: block; }
.payment b { font-size: 15px; font-weight: 600; }
.payment small { margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.35; }
.checkout .payment label:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.checkout .consent, .consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; line-height: 1.4; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); }
.consent a { color: var(--red); }
.wide { grid-column: 1 / -1; }
.form-error { grid-column: 1 / -1; margin: 0; color: #a00109; font-size: 15px; font-weight: 600; }
.success { padding: 24px 8px; text-align: center; }
.success > span { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 999px; background: var(--red); color: #fff; font-size: 28px; }
.success h2 { padding: 0; }
.success p { color: var(--muted); font-size: 17px; line-height: 1.5; }
.success .primary { max-width: 300px; margin: 20px auto 0; }

.label-view { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; width: min(1000px, 100%); max-height: calc(100dvh - 40px); padding: 28px; overflow-y: auto; border-radius: var(--radius-card); background: var(--label); animation: pop .4s var(--ease-out); }
.label-view > .close { position: absolute; top: 16px; right: 16px; }
.label-view img { width: 100%; height: auto; }
.label-view h2 { padding-right: 44px; font-size: 48px; }
.label-view p { margin: 14px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }

.mobile-cart { display: none; }

/* Документы */
.legal { max-width: 760px; min-height: 100dvh; margin: 0 auto; padding: 48px 20px 80px; }
.legal > a:first-child { font-weight: 600; color: var(--red); }
.legal h1 { margin: 28px 0 8px; font-family: var(--font-display); font-size: clamp(42px, 12vw, 84px); font-weight: 900; line-height: .95; text-transform: uppercase; }
.legal h2 { margin: 32px 0 8px; font-size: 20px; font-weight: 700; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.legal ul { padding-left: 20px; list-style: disc; }

/* Личный кабинет */
.account { width: min(960px, calc(100% - 32px)); margin: auto; padding: 24px 0 80px; }
.account-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.account-top img { width: 112px; height: auto; }
.account-top a { color: var(--ink); font-weight: 600; }
.account h1 { margin: 48px 0 24px; font-family: var(--font-display); font-size: clamp(56px, 9vw, 104px); font-weight: 900; line-height: .95; text-transform: uppercase; }
.account h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; }
.account > section > h2 { margin-top: 36px; }
.account h3 { margin: 24px 0 8px; font-size: 18px; }
.account .card { margin: 12px 0; padding: 24px; border-radius: var(--radius-card); background: var(--label); }
.account .primary { display: inline-block; width: auto; min-height: 50px; padding: 12px 24px; }
.account .muted { color: var(--muted); }
.account .order { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.account .badge { color: var(--red); font-size: 13px; font-weight: 600; }
.account .hidden { display: none !important; }
.account .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.account .field { display: grid; gap: 6px; margin: 12px 0; font-size: 14px; font-weight: 600; }
.account .field input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #8b959c; border-radius: var(--radius-field); background: #fff; font-size: 16px; }
.account .field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(199, 2, 11, .22); }
.account .consent { margin: 14px 0; }
.account .error { min-height: 22px; color: #a00109; font-weight: 600; }
.account .spinner { padding: 16px 0; }
.account .telegram-link { margin-top: 12px; }
.account .card a:not(.primary) { color: var(--red); }
.account #logout { min-height: 44px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 600; }

@keyframes steam {
  0% { opacity: 0; transform: translateY(18%) scale(.72, .62); }
  22% { opacity: .78; }
  58% { opacity: .46; transform: translate(7%, -62%) scale(1.06, 1.08); }
  100% { opacity: 0; transform: translate(-7%, -128%) scale(1.5, 1.42); }
}
@keyframes slide { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes rise { from { opacity: 0; transform: translateY(.3em); } }
@keyframes deal { from { opacity: 0; transform: translate(14%, 20%) rotate(0deg) scale(.9); } }
@keyframes found { 30% { box-shadow: 0 0 0 6px var(--red), var(--shadow); } }
@keyframes ink { from { color: var(--ghost); } to { color: var(--ink); } }
@keyframes shimmer { to { background-position: -300% 0; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ink-word { animation: ink linear both; animation-timeline: view(); animation-range: entry 30% cover 46%; }
  }
}

@media (max-width: 1080px) {
  .topnav { gap: 18px; }
  .topbar-link { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid .product-card, .product-grid:not([data-count="1"], [data-count="2"]) .product-card:nth-child(-n + 2), .product-grid[data-count="1"] .product-card, .product-grid[data-count="2"] .product-card { grid-column: span 1; }
  .steps-facts { grid-template-columns: 1fr 1fr; }
  .fact-cold { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 88px; }
  .topbar { grid-template-columns: auto 1fr; height: 58px; padding: 0 8px 0 12px; }
  .topnav { display: none; }
  .brand { width: 92px; margin-top: 10px; }
  .topbar-link { display: inline; font-size: 14px; }
  .topbar-end { gap: 12px; }
  .cart-button { padding: 0 6px 0 12px; }
  .cart-button > span { display: none; }

  .cover { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; min-height: 0; padding: 96px 20px 44px; }
  .cover h1 { font-size: clamp(92px, 27vw, 150px); }
  .cover-lede { font-size: 17px; }
  .fan { justify-self: center; width: 100%; max-width: 460px; }

  .catalog { padding: 76px 20px 88px; }
  .catalog-tools { margin-top: 24px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 92px; margin-top: 96px; }
  .product-crest, .product-card:nth-child(-n + 2) .product-crest { width: min(72%, 250px); margin-top: -72px; }
  .product-info { padding: 12px 20px 22px; }
  .product-photo { margin: 12px 16px 0; }

  .inside { padding: 80px 20px 88px; }
  .inside-poster p { font-size: clamp(42px, 12.6vw, 80px); }
  .steps { padding: 76px 20px 0; }
  .steps-board { padding: 24px 16px; }
  .steps-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .steps-list li { min-height: 0; gap: 6px; padding: 14px 16px; border-radius: 10px; }
  .steps-facts { grid-template-columns: minmax(0, 1fr); }
  .fact { padding: 22px; }

  .wholesale { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 88px 20px; }
  .wholesale-head { position: static; }

  .closing { padding: 64px 20px 96px; }
  .closing-main { grid-template-columns: minmax(0, 1fr); }
  .closing-main img { width: 200px; }
  .closing dl { grid-template-columns: minmax(0, 1fr); }
  .closing-legal { margin-top: 40px; }

  .mobile-cart { position: fixed; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 10px 30px rgba(20, 22, 24, .36); }
  .mobile-cart strong { font-size: 18px; }

  .cart-panel { align-self: flex-end; height: min(88dvh, 780px); padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: var(--radius-card) var(--radius-card) 0 0; animation-name: sheet; }
  .overlay-center { align-items: flex-end; padding: 0; }
  .checkout, .label-view { max-height: 92dvh; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: var(--radius-card) var(--radius-card) 0 0; animation-name: sheet; }
  .checkout form, .payment { grid-template-columns: minmax(0, 1fr); }
  .checkout h2, .panel-head h2 { font-size: 46px; }
  .label-view { grid-template-columns: minmax(0, 1fr); }
  .label-view h2 { font-size: 40px; }
  .account .choices { grid-template-columns: minmax(0, 1fr); }
}

@keyframes sheet { from { transform: translateY(100%); } }

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