/* обжиг¹²⁴⁰ — каталог-чертёж */
:root {
  --paper: #F4EFE6;
  --paper-2: #E9E2D6;
  --card: #DDD6CB;
  --dark: #201A17;
  --wine: #6B1A14;
  --wine-2: #94392C;
  --muted: #6E625A;
  --muted-card: #5E534C;
  --line: rgba(107, 26, 20, .18);
  --line-strong: rgba(107, 26, 20, .42);
  --sage: #A7B199;
  --on-dark: #EFE8DC;
  --on-dark-2: #B9AE9F;
  --pad: clamp(16px, 2.2vw, 32px);
  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-text: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--wine);
  font: 400 16px/1.5 var(--f-text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* бумажное зерно поверх всей страницы */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .16 0 0 0 .9 -.32'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
sup { font-size: .32em; vertical-align: top; position: relative; top: .1em; line-height: 1; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.process :focus-visible { outline-color: var(--on-dark); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--wine); color: var(--paper); padding: 10px 14px; font: 500 14px var(--f-text); }
.skip:focus { top: 12px; }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.45; }

/* ——— кнопки ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--wine); border-radius: 0;
  font: 500 15px/1 var(--f-text); text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn--solid { background: var(--wine); color: var(--paper); }
.btn--solid:hover { background: #4E110C; }
.btn--solid span { transition: transform .3s var(--ease); }
.btn--solid:hover span { transform: translateX(5px); }
.btn--line { background: transparent; color: var(--wine); }
.btn--line:hover { background: var(--wine); color: var(--paper); }
.link-u {
  font: 500 16px var(--f-text); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 4px; transition: background-size .4s var(--ease);
}
.link-u:hover { background-size: 30% 1px; }

.badge {
  display: inline-block; background: var(--sage); color: var(--wine);
  padding: 4px 8px 3px; font-size: 11px;
}

/* ——— бегущая строка ——— */
.ticker { background: var(--wine); color: var(--paper); overflow: hidden; height: 34px; display: flex; align-items: center; }
.ticker__track { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__run { white-space: nowrap; font: 400 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding-right: 0; }
.ticker__run i { font-style: normal; margin: 0 18px; color: var(--sage); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ——— шапка ——— */
.hdr {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad); height: 62px;
  background: rgba(244, 239, 230, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr__nav { display: flex; gap: 28px; }
.hdr__nav a, .hdr__tools a, .hdr__tools button { text-decoration: none; background: none; border: 0; padding: 6px 0; }
.hdr__nav a { font: 400 15px var(--f-text); position: relative; }
.hdr__nav a::after, .hdr__tools a::after, .hdr__tools button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.hdr__nav a:hover::after, .hdr__tools a:hover::after, .hdr__tools button:hover::after { transform: scaleX(1); }
.hdr__tools a, .hdr__tools button { position: relative; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.hdr__logo { font: 500 22px/1 var(--f-display); letter-spacing: -.02em; text-decoration: none; }
.hdr__logo sup { font-size: .5em; top: -.05em; margin-left: 2px; }
.hdr__tools { display: flex; justify-content: flex-end; gap: 24px; }
.hdr__cart.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: translateY(-3px); } }

/* ——— лист (заголовок секции в духе чертежа) ——— */
.sheet {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px var(--pad) 0; border-top: 1px solid var(--line);
  color: var(--muted);
}
.sheet > :first-child { color: var(--wine); }
.sheet__t { font: inherit; color: var(--wine); letter-spacing: inherit; }
.sheet--dark { border-color: rgba(239, 232, 220, .16); color: var(--on-dark-2); }
.sheet--dark > :first-child { color: var(--on-dark); }

.cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; color: var(--muted); font-size: 11px; }
.cap span:first-child { text-decoration: underline; text-underline-offset: 3px; color: var(--wine); }
.cap--dark { color: var(--on-dark-2); }
.cap--dark span:first-child { color: var(--on-dark); }

/* ——— HERO ——— */
.hero { padding: 0 var(--pad) 0; }
.hero__head {
  position: relative;
  padding-top: clamp(20px, 3vw, 44px);
  display: flex; justify-content: center;
}
.wordmark {
  font: 300 clamp(76px, 17.6vw, 300px)/.86 var(--f-display);
  letter-spacing: -.04em;
  display: flex; align-items: flex-start;
  margin-left: -.03em;
  white-space: nowrap;
}
.wordmark__word { display: inline-flex; }
.wordmark__word .ch { display: inline-block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.wordmark__word .ch > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 50ms + 150ms); }
@keyframes rise { to { transform: none; } }
.wordmark__idx { font: 500 .2em/1 var(--f-display); letter-spacing: 0; top: .14em; margin-left: .08em; color: var(--wine-2); min-width: 2.9em; }
.wordmark__idx .d { opacity: 0; animation: typed .01s linear forwards; animation-delay: calc(var(--i) * 110ms + 650ms); }
@keyframes typed { to { opacity: 1; } }
.wordmark__idx::after { content: ""; display: inline-block; width: .08em; height: .9em; background: currentColor; margin-left: .04em; vertical-align: -.1em; animation: caret .8s steps(1) 6 1.1s; opacity: 0; }
@keyframes caret { 0% { opacity: 1; } 50% { opacity: 0; } }

.ladder { position: absolute; display: flex; flex-direction: column; color: var(--wine); font-size: 11px; line-height: 1.35; }
.ladder span:nth-child(2) { padding-left: 2.2em; }
.ladder span:nth-child(3) { padding-left: 1em; }
.ladder span:nth-child(4) { padding-left: 3.2em; }
.ladder--l { left: 0; bottom: 4%; }
.ladder--r { right: 0; bottom: 4%; text-align: left; }

.hero__bar {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 32px;
  padding: clamp(16px, 2vw, 28px) 0 clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
}
.hero__lead { font: 300 clamp(20px, 2vw, 28px)/1.15 var(--f-display); letter-spacing: -.02em; }
.hero__meta { color: var(--muted); }

.hero__scene { position: relative; margin-top: 18px; }
.scene { position: relative; width: 100%; background: var(--paper-2); overflow: hidden; }
.scene > svg { width: 100%; height: 100%; }
.hero .scene { aspect-ratio: 16 / 9; }

.float {
  position: absolute; left: var(--x); top: var(--y); z-index: 3;
  display: flex; align-items: stretch; gap: 0;
  width: clamp(250px, 23vw, 330px);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(32, 26, 23, .45);
  opacity: 0; transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: transform;
}
.float.in { opacity: 1; transform: translateY(var(--py, 0px)); }
.float.in.settled { transition: transform .1s linear; }
.float__art { width: 34%; flex: none; background: var(--card); aspect-ratio: 4 / 5; }
.float__art svg { width: 100%; height: 100%; }
.float__txt { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.float__txt .mono { font-size: 11px; }
.float__txt b { font: 500 20px/1.1 var(--f-text); }
.float__note { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.float__add {
  flex: none; width: 44px; border: 0; border-left: 1px solid var(--line); background: transparent;
  font: 300 24px/1 var(--f-display); transition: background .25s, color .25s;
}
.float__add:hover { background: var(--wine); color: var(--paper); }

/* ——— КАТЕГОРИИ ——— */
.cats { position: relative; padding-top: clamp(60px, 8vw, 120px); }
.cats__list { margin-top: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); }
.cats__list li { border-bottom: 1px solid var(--line); text-align: center; }
.cats__list a {
  display: block; padding: clamp(8px, 1.1vw, 16px) var(--pad) clamp(10px, 1.2vw, 18px);
  font: 300 clamp(40px, 4.6vw, 68px)/1.05 var(--f-display); letter-spacing: -.03em;
  text-decoration: none; position: relative; transition: color .35s, letter-spacing .5s var(--ease);
}
.cats__list sup { font: 400 13px/1 var(--f-mono); letter-spacing: .04em; top: .55em; margin-left: .3em; color: var(--muted); }
.cats__list a::before {
  content: "↳"; position: absolute; left: var(--pad); top: 50%; transform: translate(-10px, -50%); opacity: 0;
  font: 400 18px var(--f-mono); transition: opacity .3s, transform .4s var(--ease);
}
.cats__list a:hover::before, .cats__list a:focus-visible::before { opacity: 1; transform: translate(0, -50%); }
.cats__list:hover a:not(:hover) { color: rgba(107, 26, 20, .38); }
.cats__list a:hover { letter-spacing: -.01em; }
.cats__preview {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  width: clamp(180px, 15vw, 230px); aspect-ratio: 4 / 5; background: var(--card);
  clip-path: inset(50% 0 50% 0);
  transition: clip-path .45s var(--ease);
  will-change: transform;
}
.cats__preview.on { clip-path: inset(0 0 0 0); }
.cats__pv-in, .cats__pv-in svg { width: 100%; height: 100%; }
.cats__pv-cap { position: absolute; left: 8px; bottom: 6px; font-size: 10px; color: var(--muted-card); }

/* ——— ХИТЫ ——— */
.hits { padding-top: clamp(80px, 9vw, 140px); }
.hits__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: clamp(24px, 3vw, 40px) var(--pad) 28px; }
.hits__title { font: 300 clamp(30px, 3.4vw, 50px)/1.05 var(--f-display); letter-spacing: -.03em; }
.hits__ctrl { display: flex; gap: 8px; }
.arrow {
  width: 56px; height: 56px; border: 1px solid var(--wine); background: transparent; border-radius: 0;
  font: 400 20px var(--f-mono); transition: background .25s, color .25s, opacity .25s;
  touch-action: manipulation;
}
.arrow:hover:not(:disabled) { background: var(--wine); color: var(--paper); }
.arrow:disabled { opacity: .3; cursor: default; }
.rail { position: relative; }
.rail__track {
  display: flex; gap: 16px; overflow-x: auto; padding: 0 var(--pad) 4px;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scroll-padding: 0 var(--pad);
  scrollbar-width: none; touch-action: manipulation;
}
.rail__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { .rail__track { scroll-behavior: smooth; } }
.card { flex: 0 0 calc((100% - 3 * 16px) / 4); scroll-snap-align: start; display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--card); overflow: hidden; }
.art { position: absolute; inset: 0; }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art__a { transition: transform .8s var(--ease); }
.art__b {
  background-color: var(--paper-2);
  background-image:
    linear-gradient(rgba(107, 26, 20, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 26, 20, .07) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .7s var(--ease);
}
@media (hover: hover) {
  .card__media:hover .art__b { clip-path: inset(0 0 0 0); }
  .card__media:hover .art__a { transform: scale(1.04); }
}
.card__media.flip .art__b { clip-path: inset(0 0 0 0); }
.card__file { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 10.5px; color: var(--muted-card); text-decoration: underline; text-underline-offset: 3px; }
.card__media .badge { position: absolute; left: 12px; top: 12px; z-index: 2; transition: transform .4s var(--ease); }
.card__media.flip .badge { transform: translateY(-48px); }
@media (hover: hover) { .card__media:hover .badge { transform: translateY(-48px); } }
.card__fav {
  position: absolute; right: 8px; top: 8px; z-index: 2; width: 40px; height: 40px;
  border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--wine);
  transition: transform .3s var(--ease);
}
.card__fav[aria-pressed="true"] { color: var(--paper); text-shadow: 0 0 0 var(--wine); }
.card__fav[aria-pressed="true"]::before { content: "♥"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--wine); }
.card__fav:active { transform: scale(.85); }
.card__flip {
  position: absolute; right: 10px; bottom: 8px; z-index: 2; border: 1px solid var(--line-strong); background: rgba(244, 239, 230, .7);
  font-size: 10.5px; padding: 6px 8px 5px; min-height: 28px;
}
.card__flip[aria-pressed="true"] { background: var(--wine); color: var(--paper); border-color: var(--wine); }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.card__name { font: 500 14px/1.3 var(--f-text); text-transform: uppercase; letter-spacing: .03em; }
.card__price { font: 500 17px/1 var(--f-text); white-space: nowrap; }
.passport { margin: 10px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.6; text-transform: none; letter-spacing: .02em; }
.card .btn { margin-top: auto; min-height: 46px; width: 100%; }
.rail__progress { position: relative; height: 2px; margin: 28px var(--pad) 0; background: var(--line); overflow: hidden; }
.rail__progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 40%; background: var(--wine); transform-origin: left; will-change: transform; }
.hits__all { display: inline-block; margin: 26px var(--pad) 0; }

/* ——— МАНИФЕСТ ——— */
.manifest { padding-top: clamp(100px, 11vw, 170px); }
.manifest__body { position: relative; padding: clamp(36px, 5vw, 72px) var(--pad) 0; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.manifest__text { font: 300 clamp(32px, 3.9vw, 58px)/1.12 var(--f-display); letter-spacing: -.035em; max-width: 19ch; text-wrap: balance; }
.manifest__dot { color: var(--sage); }
.stamp { position: relative; width: clamp(130px, 13vw, 190px); aspect-ratio: 1; margin-top: 8px; contain: paint; border-radius: 50%; }
.stamp svg { width: 100%; height: 100%; animation: spin 40s linear infinite; }
.stamp text { font: 400 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; fill: var(--wine); }
.stamp > span { position: absolute; inset: 0; display: grid; place-items: center; font: 500 clamp(20px, 2vw, 28px)/1 var(--f-display); letter-spacing: -.03em; }
.stamp::before { content: ""; position: absolute; inset: 27%; border: 1px solid var(--line-strong); border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.manifest__notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); padding: clamp(48px, 6vw, 88px) var(--pad) 0; }
.manifest__notes p { font-size: 15px; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.manifest__notes b { display: block; color: var(--wine); font-weight: 400; margin-bottom: 10px; }

/* ——— КОЛЛЕКЦИЯ ——— */
.coll { padding-top: clamp(100px, 11vw, 170px); }
.coll__banner { position: relative; margin: 24px var(--pad) 0; }
.scene--coll { aspect-ratio: 21 / 9; background: #E4EBEC; }
.lyr { position: absolute; inset: -26px 0; will-change: transform; }
.lyr svg { width: 100%; height: 100%; }
.coll__txt {
  position: absolute; left: clamp(20px, 3vw, 48px); top: clamp(20px, 3.4vw, 52px); bottom: clamp(20px, 3vw, 44px);
  width: min(36%, 470px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.coll__title { font: 500 clamp(48px, 7.4vw, 120px)/.9 var(--f-display); letter-spacing: -.05em; color: #1F3542; margin-top: 4px; }
.coll__txt p { font-size: 15.5px; color: #2D4350; max-width: 34ch; margin-top: auto; }
.coll__txt .link-u { color: #1F3542; }
.badge--lg { font-size: 12px; padding: 6px 10px 5px; }
.coll__file { position: absolute; right: 14px; bottom: 10px; font-size: 10.5px; color: #3E5664; text-decoration: underline; text-underline-offset: 3px; }

/* ——— ПРОЦЕСС ——— */
.process { margin-top: clamp(100px, 11vw, 170px); background: var(--dark); color: var(--on-dark); padding: 18px 0 clamp(80px, 9vw, 130px); }
.process .sheet { border-top: 0; padding-top: 0; }
.process__title { font: 300 clamp(44px, 6.4vw, 104px)/.95 var(--f-display); letter-spacing: -.045em; padding: clamp(40px, 6vw, 90px) var(--pad) clamp(40px, 5vw, 72px); }
.process__grid { display: grid; grid-template-columns: 1fr minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); padding: 0 var(--pad); align-items: start; }
.steps { counter-reset: s; }
.step { border-top: 1px solid rgba(239, 232, 220, .16); padding: 22px 0 clamp(70px, 14vh, 150px); transition: color .4s; color: rgba(239, 232, 220, .4); }
.step:last-child { padding-bottom: 32vh; }
.step__btn { display: flex; align-items: baseline; gap: 18px; background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.step__btn .mono { font-size: 13px; white-space: nowrap; }
.step__name { font: 300 clamp(28px, 3vw, 46px)/1.05 var(--f-display); letter-spacing: -.03em; }
.step p { font-size: 16px; line-height: 1.6; max-width: 44ch; margin: 18px 0 14px 0; color: inherit; }
.step__meta { font-size: 11px; color: inherit; }
.step.is-on { color: var(--on-dark); }
.step.is-on .step__meta { color: var(--sage); }
.step.is-on .step__btn .mono { color: var(--sage); }
.process__art { position: sticky; top: 86px; width: min(100%, calc((100vh - 140px) * .75)); justify-self: end; }
.process__frames { position: relative; aspect-ratio: 3 / 4; background: #2A221E; overflow: hidden; }
.pframe { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease); z-index: 1; }
.pframe.is-on { clip-path: inset(0 0 0 0); z-index: 2; }
.pframe.was { clip-path: inset(0 0 0 0); z-index: 1; }
.pframe svg { width: 100%; height: 100%; }

/* ——— НАБОРЫ ——— */
.sets { padding-top: clamp(100px, 11vw, 170px); }
.sets__split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.sets__text { padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 72px) clamp(32px, 4vw, 64px) var(--pad); border-right: 1px solid var(--line); }
.sets__title { font: 300 clamp(36px, 4.4vw, 66px)/1 var(--f-display); letter-spacing: -.04em; }
.sets__title span { display: block; font-weight: 500; color: var(--wine-2); margin-top: 10px; font-size: .62em; letter-spacing: -.02em; }
.sets__lead { margin: 26px 0 26px; max-width: 46ch; font-size: 16.5px; }
.sets__facts { border-top: 1px solid var(--line); margin-bottom: 28px; max-width: 520px; }
.sets__facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sets__facts li span:first-child { color: var(--muted); }
.sets__art { position: relative; padding: clamp(20px, 3vw, 48px); display: flex; flex-direction: column; }
.sets__art .scene { aspect-ratio: 8 / 9; background: var(--card); }

.cert { margin-top: clamp(44px, 5vw, 72px); padding-top: 28px; border-top: 1px dashed var(--line-strong); max-width: 560px; }
.cert__title { font: 500 20px/1.2 var(--f-text); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cert__title .mono { color: var(--muted); font-weight: 400; }
.cert__sum { border: 0; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cert__sum legend { color: var(--muted); margin-bottom: 8px; padding: 0; }
.cert__sum label { position: relative; }
.cert__sum input { position: absolute; inset: 0; margin: 0; cursor: pointer; appearance: none; -webkit-appearance: none; background: transparent; border: 0; width: 100%; height: 100%; }
.cert__sum span { display: block; padding: 11px 16px; border: 1px solid var(--line-strong); font: 500 15px/1 var(--f-text); transition: background .2s, color .2s; }
.cert__sum input:checked + span { background: var(--wine); color: var(--paper); border-color: var(--wine); }
.cert__sum input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.cert__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .mono { color: var(--muted); font-size: 11px; }
.field input {
  font: 400 16px var(--f-text); color: var(--wine); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 10px 0; outline: none;
  transition: border-color .2s;
}
.field input::placeholder { color: #9A8D84; }
.field input:focus { border-bottom-color: var(--wine); }
.field input:focus-visible { outline: none; box-shadow: 0 2px 0 var(--wine); }
.field.bad input { border-bottom-color: #B3261E; }
.field__err { font: normal 12.5px var(--f-text); color: #A1231B; min-height: 1em; }
.cert__ok { margin-top: 14px; font-weight: 500; }
.cert.done .cert__sum, .cert.done .cert__fields, .cert.done > .btn { display: none; }
.cert.done .cert__ok { font: 300 24px/1.25 var(--f-display); letter-spacing: -.02em; margin-top: 18px; }

/* ——— УХОД ——— */
.care { padding-top: clamp(100px, 11vw, 170px); padding-bottom: clamp(80px, 9vw, 140px); }
.care__list { margin-top: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); }
.care__list li {
  display: grid; grid-template-columns: 90px minmax(0, 1.25fr) minmax(0, 1fr) 90px; align-items: baseline; gap: 24px;
  padding: 20px var(--pad); border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.care__list li:hover { background: var(--paper-2); }
.care__list b { font: 300 clamp(22px, 2.4vw, 34px)/1.15 var(--f-display); letter-spacing: -.03em; }
.care__note { color: var(--muted); font-size: 15px; }
.care__ok { justify-self: end; color: #4F5D44; }
.care__ok--no { color: #A1231B; }
.polas { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 56px); padding: clamp(56px, 7vw, 110px) clamp(var(--pad), 6vw, 120px) 0; }
.pola { background: #FBF8F2; padding: 12px 12px 18px; box-shadow: 0 1px 0 rgba(32, 26, 23, .05), 0 22px 40px -26px rgba(32, 26, 23, .5); transform: rotate(var(--rot)); }
.pola__img { aspect-ratio: 1; background: var(--card); overflow: hidden; }
.pola__img svg { width: 100%; height: 100%; }
.pola figcaption { font-size: 14.5px; line-height: 1.45; padding: 14px 4px 0; color: #3E2A24; }
.pola figcaption .mono { display: block; color: var(--wine); margin-bottom: 6px; font-size: 11px; text-transform: none; }

/* ——— ПОДВАЛ ——— */
.foot { background: var(--paper-2); border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 72px); overflow: hidden; }
.foot__cols { display: grid; grid-template-columns: 1fr 1.3fr 1fr 1.5fr; gap: 32px; padding: 0 var(--pad); }
.foot__h { color: var(--muted); margin-bottom: 14px; }
.foot ul li { font-size: 15px; padding: 3px 0; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.title-block { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--wine); align-self: start; margin: 0; font-size: 10.5px; }
.title-block > div { border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 7px 9px; }
.title-block > div:nth-child(5), .title-block > div:last-child { border-right: 0; }
.title-block > div:last-child { border-bottom: 0; }
.title-block .tb-wide { grid-column: 1 / -1; border-right: 0; }
.title-block dt { color: var(--muted); font-size: 9.5px; }
.title-block dd { color: var(--wine); text-transform: none; letter-spacing: .02em; }
.foot__mark { height: calc(clamp(80px, 23vw, 400px) * .62); margin-top: clamp(40px, 6vw, 90px); overflow: hidden; }
.foot__mark span { display: block; font: 300 clamp(80px, 23vw, 400px)/.86 var(--f-display); letter-spacing: -.05em; white-space: nowrap; padding-left: calc(var(--pad) - .03em); }
.foot__mark sup { font-size: .2em; font-weight: 500; top: .14em; }

/* ——— мелочи ——— */
.back {
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  background: var(--paper); border: 1px solid var(--line-strong);
  padding: 7px 10px 6px; font-size: 11px; text-decoration: none;
  transition: background .25s, color .25s;
}
.back:hover { background: var(--wine); color: var(--paper); }
.mbar { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  background: var(--dark); color: var(--on-dark); padding: 12px 18px; font-size: 11.5px;
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s;
  max-width: calc(100vw - 32px);
}
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease), visibility 0s; }

/* ——— появление ——— */
.js [data-r] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-r].in { opacity: 1; transform: none; }
.js .pola[data-r] { transform: translateY(40px) rotate(0deg); }
.js .pola[data-r].in { transform: rotate(var(--rot)); }
.care__list li[data-r] { transition-delay: calc(var(--d, 0) * 70ms); }

/* ===================== 1024 ===================== */
@media (max-width: 1100px) {
  .hdr__nav { gap: 18px; }
  .hdr__tools { gap: 16px; }
  .hdr__search { display: none; }
  .card { flex-basis: calc((100% - 2 * 16px) / 3); }
  .float { width: clamp(230px, 28vw, 300px); }
  .float__note { display: none; }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
  .title-block { grid-column: 1 / -1; max-width: 640px; }
  .coll__txt { width: 44%; }
}

/* ===================== 768 ===================== */
@media (max-width: 820px) {
  .hdr { grid-template-columns: auto 1fr; }
  .hdr__nav { display: none; }
  .hdr__logo { justify-self: start; }
  .ladder { position: static; }
  .hero__head { flex-wrap: wrap; justify-content: space-between; }
  .wordmark { order: -1; width: 100%; justify-content: center; font-size: 17.2vw; }
  .ladder--l, .ladder--r { margin-top: 18px; }
  .hero__bar { grid-template-columns: 1fr auto; }
  .hero__meta { display: none; }
  .card { flex-basis: calc((100% - 16px) / 2.2); }
  .manifest__body { grid-template-columns: 1fr; }
  .stamp { position: absolute; right: var(--pad); top: -40px; width: 120px; }
  .manifest__notes { grid-template-columns: 1fr; }
  .scene--coll { aspect-ratio: 16 / 10; }
  .coll__txt { width: 56%; }
  .process__grid { grid-template-columns: 1fr; }
  .process__art { position: sticky; top: 62px; z-index: 2; order: -1; max-width: 420px; width: 70%; justify-self: end; margin-bottom: 8px; }
  .process__frames { aspect-ratio: 3 / 4; }
  .step { padding-bottom: 60px; }
  .sets__split { grid-template-columns: 1fr; }
  .sets__text { border-right: 0; }
  .sets__art { order: -1; border-bottom: 1px solid var(--line); }
  .care__list li { grid-template-columns: 60px 1fr auto; }
  .care__note { grid-column: 2 / 3; }
  .care__ok { grid-row: 1; grid-column: 3; }
  .polas { grid-template-columns: repeat(3, 1fr); padding-left: var(--pad); padding-right: var(--pad); gap: 16px; }
  .pola figcaption { font-size: 13px; }
}

/* ===================== 390 ===================== */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .foot { padding-bottom: 56px; }
  .hdr { height: 54px; }
  .hdr__tools { display: none; }
  .hdr__logo { font-size: 19px; justify-self: start; }
  .hdr::after { content: "Партия № 47"; justify-self: end; font: 400 10.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: 56px;
    display: grid; grid-template-columns: 1fr 1fr .7fr 1.3fr;
    background: var(--paper); border-top: 1px solid var(--wine);
  }
  .mbar a, .mbar button { display: flex; align-items: center; justify-content: center; gap: .4em; white-space: nowrap; text-decoration: none; background: none; border: 0; border-right: 1px solid var(--line); font: inherit; letter-spacing: inherit; text-transform: inherit; font-size: 11px; }
  .mbar button { border-right: 0; background: var(--wine); color: var(--paper); }
  .back { bottom: 66px; right: 10px; font-size: 10px; }
  .toast { bottom: 70px; }

  .hero__head { padding-top: 26px; }
  .wordmark { font-size: 20.6vw; justify-content: flex-start; }
  .ladder { font-size: 10px; }
  .hero__bar { grid-template-columns: 1fr; gap: 18px; padding: 22px 0 22px; }
  .hero__lead { font-size: 24px; }
  .hero__bar .btn { width: 100%; }
  .hero .scene { aspect-ratio: 4 / 5; }
  .hero__scene { margin-top: 0; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
  .hero__scene .cap { padding: 10px var(--pad) 0; }
  .float { position: relative; left: auto; top: auto; width: auto; margin: 0 var(--pad); }
  .float--a { margin-top: -96px; margin-left: 30%; }
  .float--b { display: none; }
  .float__note { display: block; }

  .sheet { flex-wrap: wrap; row-gap: 2px; }
  .sheet > :last-child { width: 100%; }
  .cats__list li { text-align: left; }
  .cats__list a { font-size: 34px; padding: 12px var(--pad) 14px; display: flex; justify-content: space-between; align-items: center; }
  .cats__list a::before { display: none; }
  .cats__list a::after { content: "→"; font: 400 16px var(--f-mono); }
  .cats__list sup { margin-right: auto; }
  .cats__preview { display: none; }

  .hits__head { padding-top: 24px; }
  .hits__title { font-size: 28px; }
  .arrow { width: 48px; height: 48px; }
  .hits__ctrl { display: none; }
  .card { flex-basis: 78%; scroll-snap-align: center; }
  .rail__track { gap: 12px; }

  .manifest__body { padding-top: 64px; }
  .manifest__text { font-size: 30px; }
  .stamp { top: -14px; width: 104px; }

  .coll__banner { margin: 20px 0 0; }
  .scene--coll { aspect-ratio: 4 / 5; }
  .coll__txt { position: static; width: auto; padding: 24px var(--pad) 0; gap: 14px; }
  .coll__title { font-size: 64px; color: var(--wine); }
  .coll__txt p { color: var(--muted); margin-top: 0; }
  .coll__txt .link-u { color: var(--wine); }
  .coll__file { top: 12px; bottom: auto; }

  .process__title { font-size: 44px; padding-top: 40px; }
  .process__art { width: 100%; max-width: none; top: 54px; }
  .process__frames { aspect-ratio: 5 / 4; }
  .step { padding-bottom: 40px; }
  .step__btn { gap: 12px; }
  .step__name { font-size: 27px; }
  .step p { font-size: 15px; }

  .sets__art { padding: 16px var(--pad); }
  .sets__text { padding: 32px var(--pad); }
  .cert__fields { grid-template-columns: 1fr; }
  .cert__sum span { padding: 11px 12px; font-size: 14px; }

  .care__list li { grid-template-columns: 44px 1fr auto; gap: 10px 12px; padding: 16px var(--pad); }
  .care__list b { font-size: 20px; }
  .care__note { font-size: 14px; }
  .polas { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 48px var(--pad) 24px; scrollbar-width: none; }
  .polas::-webkit-scrollbar { display: none; }
  .pola { scroll-snap-align: center; }

  .foot__cols { grid-template-columns: 1fr; gap: 28px; }
  .title-block { grid-template-columns: repeat(2, 1fr); }
  .title-block > div:nth-child(3), .title-block > div:nth-child(5) { border-right: 0; }
  .title-block > div:nth-child(5) { border-right: 1px solid var(--line-strong); }
  .foot__mark { height: calc(20.6vw * .7); }
  .foot__mark span { font-size: 20.6vw; }
}

/* ——— reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; }
  .wordmark__word .ch > span { transform: none; animation: none; }
  .wordmark__idx .d { opacity: 1; animation: none; }
  .stamp svg { animation: none; }
  .js [data-r], .js .pola[data-r] { opacity: 1; transform: none; }
  .js .pola[data-r] { transform: rotate(var(--rot)); }
  .float { opacity: 1; transform: none; }
}

/* ——— текст внутри SVG ——— */
.dt { font: 400 12px var(--f-mono); letter-spacing: .04em; fill: var(--wine); stroke: none; }
.sm, .sd { stroke: none; }
.dt--h { font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.dt--s { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; fill: var(--muted); }
.sm { font: 400 14px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.sm:not([fill]) { fill: var(--wine); }
.sd { font: 500 26px var(--f-display); letter-spacing: -.02em; }
.sd:not([fill]) { fill: var(--wine); }
.sd--xl { font-size: 44px; }
.sd--big { font-size: 150px; font-weight: 300; letter-spacing: -.05em; }
