/* =========================================================
   Журнальная вёрстка: тёплый белый, графит-какао, один акцент
   ========================================================= */
@property --zoom { syntax: '<number>'; inherits: false; initial-value: 1; }

:root {
  --paper: #f7f2ea;
  --paper-2: #ede5d8;
  --ink: #2b2420;
  --ink-2: #4f453d;
  --muted: #7f7266;
  --line: rgba(43, 36, 32, .16);
  --accent: #6c7a45;        /* приглушённый фисташковый */
  --accent-soft: #d9e0c4;
  --on-ink: #f7f2ea;
  --on-ink-muted: rgba(247, 242, 234, .66);
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --ui: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --hdr: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --sec: clamp(96px, 12vw, 184px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--ui); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: .98; letter-spacing: -.015em; margin: 0 0 .4em; text-wrap: balance; }
h2 { font-size: clamp(44px, 6vw, 96px); }
em { font-style: italic; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gut); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 46ch; }
.eyebrow { display: block; font: 500 12px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Кнопки и ссылки ---------- */
.arr { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font: 500 15px/1.2 var(--ui); letter-spacing: .01em; transition: color .4s var(--ease), border-color .4s var(--ease), transform .2s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fill); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease-io); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn--line:focus-visible { color: var(--paper); }
.btn:hover .arr, .btn:focus-visible .arr { transform: translateX(5px); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--dark { background: var(--ink); color: var(--paper); --fill: var(--accent); }
.btn--light { background: var(--paper); color: var(--ink); --fill: var(--accent-soft); }
.btn--line { border-color: var(--ink); color: var(--ink); --fill: var(--ink); }
.btn--line:hover { color: var(--paper); }
.btn--wide { width: 100%; }
.btn--price { justify-content: space-between; padding: 0 26px; }
.btn--price > span:first-child { font-size: 19px; font-weight: 600; }
.btn--price > span:last-child { display: inline-flex; align-items: center; gap: 10px; }

.arrow-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 500 15px/1.2 var(--ui); color: var(--ink); }
.arrow-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .5s var(--ease-io); }
a:hover .arrow-link span, .arrow-link:hover span { background-size: 0 1px; background-position: 100% 100%; }
a:hover .arrow-link .arr, .arrow-link:hover .arr, .arrow-link:focus-visible .arr { transform: translateX(6px); }

.text-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 14px/1 var(--ui); color: var(--ink); }
.text-btn .arr { width: 16px; height: 16px; }
.text-btn:hover .arr, .text-btn:focus-visible .arr { transform: translateX(5px); }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.support-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.support-link:hover { text-decoration-thickness: 2px; }

/* ---------- Кадр с фотографией ---------- */
.frame { position: relative; display: block; overflow: hidden; background: var(--paper-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; --zoom: 1;
  transform: translate3d(0, var(--py, 0px), 0) scale(calc(var(--base, 1) * var(--zoom)));
  transition: --zoom 1.1s var(--ease); }
[data-parallax] img { --base: 1.12; will-change: transform; }
@media (hover: hover) {
  a:hover .frame img, a.frame:hover img, .cat__item:hover .frame img { --zoom: 1.045; }
}

/* ---------- Шапка ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.hdr.is-scrolled, .menu-open .hdr { background: rgba(247, 242, 234, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr__in { max-width: 1440px; height: 100%; margin: 0 auto; padding-inline: var(--gut); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: #fff; padding: 2px; flex: none; }
.brand span { font: 500 22px/1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr__nav { display: flex; gap: 28px; }
.hdr__nav a { text-decoration: none; font-size: 14px; padding: 12px 0; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat; transition: background-size .45s var(--ease-io); }
.hdr__nav a:hover { background-size: 100% 1px; }
.hdr__support { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 14px; transition: background .3s, color .3s; }
.hdr__support:hover { background: var(--ink); color: var(--paper); }
.hdr__menu { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px 0 12px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.hdr__menu i { position: relative; width: 22px; height: 10px; }
.hdr__menu i::before, .hdr__menu i::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-io), top .4s var(--ease-io); }
.hdr__menu i::before { top: 0; } .hdr__menu i::after { top: 8.5px; }
.menu-open .hdr__menu i::before { top: 4px; transform: rotate(45deg); }
.menu-open .hdr__menu i::after { top: 4px; transform: rotate(-45deg); }
@media (max-width: 960px) { .hdr__nav { display: none; } .hdr__menu { display: inline-flex; } .hdr { --hdr: 60px; } }
@media (max-width: 560px) { .hdr__support { display: none; } .brand span { font-size: 20px; } .brand img { width: 36px; height: 36px; } }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--paper); padding: calc(var(--hdr) + 32px) var(--gut) 32px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu[hidden], [hidden] { display: none !important; }
.menu__nav { display: grid; }
.menu__nav a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 clamp(36px, 9vw, 56px)/1.05 var(--display); }
.menu__nav small { font: 500 12px var(--ui); color: var(--muted); letter-spacing: .1em; }
.menu .btn { margin-top: 32px; align-self: flex-start; }
.menu:not([hidden]) .menu__nav a { animation: fadeUp .7s var(--ease) both; }
.menu__nav a:nth-child(2) { animation-delay: .05s !important; } .menu__nav a:nth-child(3) { animation-delay: .1s !important; } .menu__nav a:nth-child(4) { animation-delay: .15s !important; }
.menu-open { overflow: hidden; }

/* ---------- Первый экран ---------- */
.hero { max-width: 1440px; margin: 0 auto; padding: calc(var(--hdr) + 24px) var(--gut) 0; display: grid; gap: 0 24px;
  grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; min-height: min(100svh, 1000px); }
.hero__top { grid-column: 1 / 9; grid-row: 1; position: relative; z-index: 2; padding-top: clamp(16px, 4vh, 56px); }
.hero__eyebrow { animation: fade .8s .1s both; }
.hero__title { font-size: clamp(52px, 14.5vw, 96px); line-height: .9; margin: 0; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.hero__title .line > span { display: inline-block; animation: lineUp 1.15s var(--ease-io) both; animation-delay: calc(.3s + var(--i) * .11s); }
.hero__title .line:nth-child(2) > span { font-style: italic; color: var(--accent); }
.hero__media { grid-column: 6 / 13; grid-row: 1 / 4; position: relative; margin-bottom: 40px; min-height: 420px; }
.hero__frame { position: absolute; inset: 0; overflow: hidden; background: var(--paper-2); animation: heroMask 1.35s var(--ease-io) both; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; animation: heroImg 2.1s var(--ease-io) both; }
.hero__stamp { position: absolute; left: -64px; bottom: 56px; width: 136px; height: 136px; border-radius: 50%; object-fit: contain; background: #fff; padding: 8px; border: 6px solid var(--paper); z-index: 3; animation: stamp 1s 1.05s var(--ease) both; }
.hero__bottom { grid-column: 1 / 6; grid-row: 3; align-self: end; padding-bottom: 56px; animation: fadeUp .9s .85s var(--ease) both; }
.hero__lead { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); max-width: 40ch; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
@media (min-width: 961px) { .hero__title { font-size: clamp(84px, 8.6vw, 156px); } }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; padding-top: calc(var(--hdr) + 12px); }
  .hero__top, .hero__bottom, .hero__media { grid-column: 1; grid-row: auto; }
  .hero__top { padding-top: 12px; }
  .hero__eyebrow { margin-bottom: 12px; }
  .hero__media { min-height: 0; height: clamp(260px, 40svh, 560px); margin: 20px 0 28px; }
  .hero__stamp { left: auto; right: 14px; bottom: -34px; width: 92px; height: 92px; border-width: 4px; padding: 5px; }
  .hero__bottom { padding-bottom: 8px; }
  .hero__lead { margin-bottom: 22px; }
}
@media (max-width: 960px) and (min-width: 600px) { .hero__media { height: 52svh; } }

@keyframes heroMask { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes heroImg { from { transform: scale(1.2); } to { transform: scale(1); } }
@keyframes lineUp { from { transform: translateY(108%); } to { transform: translateY(0); } }
@keyframes stamp { from { opacity: 0; transform: scale(.82) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Появление при прокрутке ---------- */
.js [data-reveal]:not([data-reveal="mask"]) { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js [data-reveal="mask"] { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-io) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* ---------- Предзаказ ---------- */
.pre { margin-top: 24px; }
.pre__in { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto 112px 56px; align-items: center; gap: 28px; padding: 20px 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.pre__label { font: 500 12px/1.5 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pre__title { font: 500 clamp(24px, 2.4vw, 36px)/1.1 var(--display); }
.pre__price { font-weight: 600; white-space: nowrap; }
.pre__price s, .price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.pre__img { width: 112px; aspect-ratio: 4 / 5; }
.pre__go { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--ink); transition: background .35s, color .35s; }
.pre__in:hover .pre__go { background: var(--ink); color: var(--paper); }
.pre__in:hover .pre__go .arr { transform: translateX(4px); }
@media (max-width: 760px) {
  .pre__in { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: 'img label' 'img title' 'img price'; gap: 4px 16px; }
  .pre__img { grid-area: img; width: 88px; align-self: start; }
  .pre__label { grid-area: label; } .pre__title { grid-area: title; font-size: 22px; } .pre__price { grid-area: price; margin-top: 6px; }
  .pre__go { display: none; }
}

/* ---------- Разделы ---------- */
.idx { display: grid; gap: clamp(72px, 10vw, 160px); padding-top: var(--sec); }
.idx__item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; text-decoration: none; }
.idx__item .frame { grid-row: 1; }
.idx__item--mk .frame { grid-column: 1 / 8; aspect-ratio: 4 / 3; }
.idx__item--mk .idx__text { grid-column: 9 / 13; grid-row: 1; align-self: end; }
.idx__item--toy .frame { grid-column: 6 / 12; aspect-ratio: 4 / 5; }
.idx__item--toy .idx__text { grid-column: 1 / 5; grid-row: 1; align-self: center; }
.idx__text { display: flex; flex-direction: column; gap: 16px; }
.idx__num { font: 500 12px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.idx__title { font: 500 clamp(40px, 4.6vw, 76px)/.98 var(--display); letter-spacing: -.015em; }
.idx__desc { color: var(--ink-2); max-width: 34ch; }
@media (max-width: 760px) {
  .idx__item { grid-template-columns: 1fr; gap: 20px; }
  .idx__item .frame, .idx__item .idx__text { grid-column: 1 !important; grid-row: auto !important; }
  .idx__item--toy .frame { aspect-ratio: 1; }
}

/* ---------- Журнальные развороты ---------- */
.spreads { padding-top: var(--sec); }
.spreads__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.spreads__head h2 { margin: 0; }
.spread { position: relative; display: grid; grid-template-columns: 7fr 5fr; background: var(--paper); }
.spread + .spread { margin-top: 64px; }
.spread__photo { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.spread__photo img { width: 100%; height: 100%; object-fit: cover; }
.spread__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4.5vw, 80px); }
.spread__num { font: 500 22px var(--display); margin-bottom: clamp(16px, 3vh, 40px); }
.spread__num i { color: var(--muted); }
.spread h3 { font-size: clamp(40px, 4.8vw, 80px); margin-bottom: .25em; }
.spread h3 a { text-decoration: none; }
.spread__sub { font: 500 12px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spread__desc { color: var(--ink-2); max-width: 40ch; }
.spread__buy { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
.spread__buy .price { font-size: 22px; }
.spread__edge, .spread__shade, .spreads__bar { display: none; }
@media (max-width: 760px) {
  .spread { grid-template-columns: 1fr; }
  .spread__text { padding: 20px var(--gut) 0; }
}

/* Режим «перелистывания»: включается скриптом, если движение не ограничено */
.spreads.is-pinned .spreads__track { height: calc(var(--count) * 100vh); height: calc(var(--count) * 100svh); }
.spreads.is-pinned .spreads__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.spreads.is-pinned .spread { position: absolute; inset: 0; margin: 0; clip-path: inset(0 0 0 calc(var(--wipe, 0) * 100%)); }
.spreads.is-pinned .spread[data-i="0"] { clip-path: none; }
.spreads.is-pinned .spread__photo { aspect-ratio: auto; height: 100%; }
.spreads.is-pinned .spread__photo img { transform: translateX(calc(var(--wipe, 0) * 9%)) scale(calc(1.02 + var(--wipe, 0) * .1)); }
.spreads.is-pinned .spread__photo, .spreads.is-pinned .spread__text { transform: translateX(calc(var(--out, 0) * -5%)); }
.spreads.is-pinned .spread__text { padding-top: calc(var(--hdr) + 24px); }
.spreads.is-pinned .spread__edge { display: block; position: absolute; top: 0; bottom: 0; width: 120px; left: calc(var(--wipe, 0) * 100%); pointer-events: none;
  background: linear-gradient(90deg, rgba(43, 36, 32, .28), rgba(43, 36, 32, 0)); opacity: var(--edge, 0); }
.spreads.is-pinned .spread__shade { display: block; position: absolute; inset: 0; background: var(--ink); opacity: calc(var(--out, 0) * .45); pointer-events: none; }
.spreads.is-pinned .spreads__bar { display: block; position: absolute; left: var(--gut); right: var(--gut); bottom: 20px; height: 1px; background: var(--line); z-index: 5; }
.spreads.is-pinned .spreads__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (max-width: 760px) {
  .spreads.is-pinned .spread { grid-template-rows: 54% 46%; }
  .spreads.is-pinned .spread__text { padding: 18px var(--gut) 40px; justify-content: flex-start; }
  .spreads.is-pinned .spread__num { margin-bottom: 8px; font-size: 18px; }
  .spreads.is-pinned .spread h3 { font-size: clamp(34px, 9vw, 44px); }
  .spreads.is-pinned .spread__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
  .spreads.is-pinned .spread__sub { margin-bottom: 8px; }
}
@media (max-width: 760px) and (max-height: 700px) { .spreads.is-pinned .spread__desc { display: none; } }

/* ---------- Как купить ---------- */
.how { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-top: var(--sec); }
.how__head { grid-column: 1 / 5; align-self: start; position: sticky; top: calc(var(--hdr) + 32px); }
.how__head h2, .faqs__head h2 { font-size: clamp(44px, 4.6vw, 84px); margin-bottom: 24px; }
.steps { grid-column: 6 / 13; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.steps__n { font: italic 500 48px/1 var(--display); color: var(--accent); }
.steps b { display: block; font: 500 clamp(26px, 2.4vw, 34px)/1.1 var(--display); margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); max-width: 44ch; }
@media (max-width: 860px) {
  .how__head, .steps { grid-column: 1 / -1; }
  .how__head { position: static; }
  .steps li { grid-template-columns: 64px minmax(0, 1fr); padding: 24px 0; }
  .steps__n { font-size: 36px; }
}

/* ---------- Вяжу на заказ ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; padding-top: var(--sec); }
.about__photo { grid-column: 1 / 8; aspect-ratio: 5 / 6; }
.about__text { grid-column: 9 / 13; }
.about__text h2 { font-size: clamp(40px, 4.6vw, 76px); }
.about__text p:not(.eyebrow) { color: var(--ink-2); margin-bottom: 32px; }
@media (max-width: 860px) {
  .about__photo, .about__text { grid-column: 1 / -1; }
  .about__photo { aspect-ratio: 4 / 5; }
  .about__text { padding-top: 12px; }
}

/* ---------- Вопросы ---------- */
.faqs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-top: var(--sec); }
.faqs__head { grid-column: 1 / 5; }
.faq { grid-column: 6 / 13; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none;
  font: 500 clamp(22px, 2vw, 28px)/1.2 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 18px; height: 18px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-io); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq summary:hover span { color: var(--accent); }
.faq__a { color: var(--ink-2); padding: 0 48px 24px 0; max-width: 64ch; }
.faq details[open] .faq__a { animation: fadeUp .5s var(--ease) both; }
.faq__a ol, .faq__a ul { padding-left: 20px; }
@media (max-width: 860px) { .faqs__head, .faq { grid-column: 1 / -1; } .faq__a { padding-right: 0; } }

/* ---------- Финальный экран ---------- */
.final { margin-top: var(--sec); background: var(--ink); color: var(--on-ink); padding: clamp(80px, 10vw, 160px) 0 clamp(56px, 6vw, 96px); }
.final__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: end; }
.final__text { grid-column: 1 / 8; }
.final__text h2 { font-size: clamp(46px, 6.6vw, 112px); margin: 0; }
.final em { color: var(--accent-soft); }
.final .eyebrow { color: var(--on-ink-muted); }
.final__form { grid-column: 9 / 13; display: grid; gap: 14px; }
.final__form p { color: var(--on-ink-muted); margin: 0 0 8px; }
.final .btn--light { justify-self: start; margin-top: 6px; }
.final .check { color: var(--on-ink-muted); }
.final .check a { color: var(--on-ink); }
.final :focus-visible { outline-color: var(--accent-soft); }
.line-field input { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(247, 242, 234, .4); background: transparent; color: var(--on-ink); font-size: 20px; border-radius: 0; }
.line-field input::placeholder { color: rgba(247, 242, 234, .5); }
.line-field input:focus { outline: none; border-bottom-color: var(--on-ink); }
.form-msg { margin: 0; font-weight: 500; color: var(--accent-soft); }
.form-msg.is-err { color: #f0b8a0; }
@media (max-width: 860px) { .final__text, .final__form { grid-column: 1 / -1; } }

/* ---------- Подвал ---------- */
.ftr { background: var(--ink); color: var(--on-ink-muted); padding: 56px 0 28px; border-top: 1px solid rgba(247, 242, 234, .12); }
.home .ftr { border-top-color: rgba(247, 242, 234, .12); }
body:not(.home) .ftr { margin-top: var(--sec); }
.ftr__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.ftr__brand { display: flex; align-items: center; gap: 18px; }
.ftr__brand img { width: 84px; height: 84px; border-radius: 50%; object-fit: contain; background: #fff; padding: 4px; }
.ftr__brand b { display: block; font: 500 26px/1.1 var(--display); color: var(--on-ink); margin-bottom: 6px; }
.ftr__brand p { margin: 0; font-size: 13px; }
.ftr__links { display: grid; gap: 4px; align-content: start; }
.ftr__links a, .ftr__links .linkbtn { color: var(--on-ink); text-decoration: none; font-size: 15px; padding: 6px 0; }
.ftr__links a:hover, .ftr__links .linkbtn:hover { color: var(--accent-soft); }
.ftr__soc { display: grid; gap: 4px; align-content: start; }
.ftr__soc a { display: inline-flex; align-items: center; gap: 12px; color: var(--on-ink); text-decoration: none; padding: 6px 0; }
.ftr__soc svg { width: 20px; height: 20px; }
.ftr__copy { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(247, 242, 234, .12); font-size: 13px; }
@media (max-width: 860px) { .ftr__in { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Каталог ---------- */
.phead { padding-top: calc(var(--hdr) + clamp(48px, 8vw, 120px)); padding-bottom: clamp(48px, 6vw, 88px); }
.phead h1 { font-size: clamp(56px, 9vw, 150px); line-height: .9; }
.phead--doc { padding-bottom: 0; }
.cat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(56px, 7vw, 104px) 24px; }
.cat__item { grid-column: span 4; }
.cat__item .frame { aspect-ratio: 4 / 5; }
.cat__item:nth-child(5n+1) { grid-column: span 7; }
.cat__item:nth-child(5n+1) .frame { aspect-ratio: 4 / 3; }
.cat__item:nth-child(5n+2) { grid-column: span 5; padding-top: clamp(48px, 9vw, 160px); }
.cat__meta { padding-top: 18px; }
.cat__tag { font: 500 12px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cat__item h3 { font-size: clamp(26px, 2.4vw, 36px); margin: 8px 0 6px; }
.cat__item h3 a { text-decoration: none; }
.cat__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 10px; }
.price { font-weight: 600; font-size: 17px; white-space: nowrap; }
.cat__item.is-sold .frame img { filter: grayscale(.6); opacity: .75; }
.empty { padding: 64px 0; font: 500 32px var(--display); color: var(--muted); }
@media (max-width: 760px) {
  .cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 14px; }
  .cat__item, .cat__item:nth-child(5n+2) { grid-column: span 1; padding-top: 0; }
  .cat__item:nth-child(5n+1) { grid-column: span 2; }
  .cat__item h3 { font-size: 22px; }
  .cat__row { flex-wrap: wrap; gap: 0 12px; }
  .cat__item:not(:nth-child(5n+1)) .cat__row { display: block; }
}

/* ---------- Товар ---------- */
.back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 14px; }
.back .arr { transform: rotate(180deg); }
.back:hover .arr { transform: rotate(180deg) translateX(5px); }
.product { padding-top: calc(var(--hdr) + 24px); }
.product__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.gallery { grid-column: 1 / 8; }
.product__info { grid-column: 9 / 13; align-self: start; position: sticky; top: calc(var(--hdr) + 24px); }
.gallery__main { aspect-ratio: 4 / 5; }
.gallery__main img { animation: fade .6s var(--ease); }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumbs button { flex: none; width: 80px; height: 100px; padding: 0; border: 0; cursor: pointer; opacity: .55; transition: opacity .3s; outline-offset: 2px; background: var(--paper-2); }
.gallery__thumbs button.is-active, .gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info h1 { font-size: clamp(42px, 3.8vw, 64px); }
.product__sub { color: var(--muted); }
.product__price .price { font: 500 36px var(--display); }
.buybox { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 12px 0 32px; }
.buybox .muted { margin: 12px 0 0; }
.sold-note { margin: 0 0 14px; }
.prose { max-width: 66ch; color: var(--ink-2); }
.prose h2 { font-size: 32px; margin-top: 1.4em; color: var(--ink); }
.prose h3 { font-size: 26px; margin-top: 1.2em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 4px; }
.prose--doc { max-width: 820px; padding-top: 16px; overflow-wrap: anywhere; }
.prose--doc h1 { font-size: clamp(40px, 6vw, 72px); color: var(--ink); }
.sticky-buy { display: none; }
@media (max-width: 860px) {
  .gallery, .product__info { grid-column: 1 / -1; }
  .product__info { position: static; }
  .has-sticky .sticky-buy { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
    background: rgba(247, 242, 234, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .has-sticky .sticky-buy .sold-note { display: none; }
  .has-sticky .ftr { padding-bottom: 110px; }
}

/* ---------- Заказ и служебные страницы ---------- */
.order { padding-top: calc(var(--hdr) + clamp(48px, 9vw, 140px)); max-width: 820px; margin: 0 auto; }
.order h1 { font-size: clamp(56px, 8vw, 120px); line-height: .92; }
.order .lead { margin-bottom: 28px; }
.loader { display: block; width: 160px; height: 1px; background: var(--line); margin: 0 0 24px; overflow: hidden; position: relative; }
.loader::after { content: ''; position: absolute; inset: 0; background: var(--ink); animation: load 1.4s var(--ease-io) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.tips { border-top: 1px solid var(--line); padding-top: 20px; margin: 40px 0 24px; }
.tips ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.demo-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Формы и окна ---------- */
.field { display: grid; gap: 6px; margin: 20px 0 8px; font-size: 13px; color: var(--muted); }
.field input { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 16px; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; margin: 10px 0; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.hint { font-size: 13px; color: #9a5b3c; margin: 0 0 4px; }
.error { color: #a4472b; font-weight: 500; font-size: 14px; margin: 8px 0; }

.modal { border: 0; padding: 0; background: transparent; width: min(500px, calc(100% - 24px)); max-height: calc(100% - 24px); color: var(--ink); }
.modal::backdrop { background: rgba(43, 36, 32, .5); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .45s var(--ease) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px); } }
.modal__box { position: relative; background: var(--paper); border-radius: 6px; padding: 36px 28px 26px; }
@media (max-width: 480px) { .modal__box { padding: 32px 20px 22px; } }
.modal__box h3 { font-size: 34px; padding-right: 36px; }
.modal__x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 26px; line-height: 1; color: var(--muted); transition: background .3s, color .3s; }
.modal__x:hover { background: var(--paper-2); color: var(--ink); }
.modal .btn--wide { margin-top: 12px; }
.support-list { margin-top: 16px; border-top: 1px solid var(--ink); }
.support-opt { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.support-opt b { display: block; font-weight: 500; }
.support-opt small { color: var(--muted); font-size: 13px; }
.support-opt__ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); }
.support-opt__ic svg { width: 22px; height: 22px; }
.support-opt:hover .arr { transform: translateX(5px); }
.support-opt:hover b { color: var(--accent); }

/* ---------- Уменьшенное движение ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  [data-parallax] img { --base: 1; }
}
