/* «Суворов и Ко»: стили шаблона designer-paper, перенесённые из инлайна в классы, и правки под мастерскую.
   Правки шаблона помечены «шаблон: …» — при следующей адаптации переносить отсюда. */

@font-face { font-family: 'Playfair'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('../fonts/playfair-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('../fonts/playfair-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair'; font-style: italic; font-weight: 300 900; font-display: swap; src: url('../fonts/playfair-italic-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair'; font-style: italic; font-weight: 300 900; font-display: swap; src: url('../fonts/playfair-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* шаблон: знак ₽ у Manrope лежит в latin-ext — вырезан в отдельный файл */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/manrope-rub.woff2') format('woff2'); unicode-range: U+20BD; }

:root {
  --paper: #EAE5E0; --paper-2: #E3DED7; --paper-3: #E6DED7; --card: #F4F0EA;
  --ink: #17140F; --night: #0B0A08; --cream: #EDE7DC; --accent: #C13F2D; /* красный с их сайта (--accent), в шаблоне был оранжевый #F97316 */
  --serif: 'Playfair', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: 6vw;
  --hdr: 84px;
}

/* вместо Tailwind CDN из экспорта: классов Tailwind нет, нужен только сброс */
*, ::before, ::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-padding-top: 0; }
html, body { margin: 0; padding: 0; background: var(--paper); }
body { overscroll-behavior: none; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, blockquote, figure, ul, ol { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
::selection { background: var(--ink); color: #F2EDE3; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* шаблон: маркеры ленты и карточки на телефоне вылезали за край — страница прокручивалась вбок */
main { overflow-x: clip; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--serif); }
.it { font-style: italic; }
.nb { white-space: nowrap; }

@keyframes dl-breathe { 0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .9; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes dl-bob { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(7px); opacity: .5; } }
@keyframes dl-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 1.5%); } 50% { transform: translate(1.5%, -2%); } 75% { transform: translate(-1%, -1%); } 100% { transform: translate(0, 0); } }

/* подписи: шаблон: 10px с прозрачностью .45–.55 — мелко и бледно для кириллицы, подняты до 11px и .62 */
.lbl { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: .62; }
.note { font-family: var(--serif); font-style: italic; font-size: 16px; opacity: .6; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.arr { display: inline-block; width: .82em; height: .82em; vertical-align: -.06em; flex: none; }
/* обводка задаётся на самом svg: внутрь <use> селекторы не проходят */
.arr { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; }

/* ============ ШАПКА ============ */
/* шаблон: шапка жила внутри первого экрана и гасла вместе с ним, дальше по странице навигации не было;
   пункты SHOP / ABOUT / CONTACT вели на чужие секции. Здесь шапка фиксированная, цвет — по тону секции под ней. */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 48px; color: var(--ink); transition: color .35s ease; }
.hdr::before { content: ''; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: linear-gradient(180deg, rgba(234, 229, 224, .97) 0%, rgba(234, 229, 224, .95) 68%, rgba(234, 229, 224, 0) 100%); }
.hdr.is-scrolled::before { opacity: 1; }
.hdr[data-tone="dark"] { color: var(--cream); }
.hdr[data-tone="dark"]::before { background: linear-gradient(180deg, rgba(11, 10, 8, .97) 0%, rgba(11, 10, 8, .95) 68%, rgba(11, 10, 8, 0) 100%); }
.hdr[data-tone="photo"] { color: var(--cream); }
/* шаблон: подложка на кадре была слабой и не включалась вовсе — на белой бумаге с фотографии шапка пропадала */
.hdr[data-tone="photo"]::before { background: linear-gradient(180deg, rgba(11, 10, 8, .74) 0%, rgba(11, 10, 8, .52) 58%, rgba(11, 10, 8, 0) 100%); }
/* сцена с рваной дырой: пока дыра растёт, под шапкой и бумага, и чёрное — пункт светлеет, когда дыра дошла до него (класс ставит скрипт) */
.hdr.is-reveal .on-dark { color: var(--cream); }
.hdr.is-reveal .hdr__logo, .hdr.is-reveal .hdr__burger { transition: color .35s ease; }
.hdr.is-reveal .hdr__nav a { transition: opacity .25s ease, border-color .25s ease, color .35s ease; }
.hdr__logo { font-size: 13px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.hdr__logo i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hdr__nav { display: flex; gap: 38px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.hdr__nav a { opacity: .68; padding-bottom: 4px; border-bottom: 1px solid transparent; transition: opacity .25s ease, border-color .25s ease; }
.hdr__nav a:hover, .hdr__nav a.is-active { opacity: 1; }
.hdr__nav a.is-active { border-bottom-color: currentColor; }
.hdr__right { display: flex; align-items: center; gap: 22px; }
.hdr__cta { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: 11px 18px; border: 1px solid currentColor; border-radius: 999px; white-space: nowrap; transition: background .25s ease, color .25s ease; }
.hdr__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hdr[data-tone="dark"] .hdr__cta:hover, .hdr[data-tone="photo"] .hdr__cta:hover, .hdr.is-reveal .hdr__cta.on-dark:hover { background: var(--cream); color: var(--night); border-color: var(--cream); }
.hdr__burger { display: none; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; padding: 10px 0 10px 12px; }

.menu { position: fixed; inset: 0; z-index: 70; background: var(--night); color: var(--cream); display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px 30px; visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s linear .3s; overflow-y: auto; }
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .3s ease; }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu__close { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; padding: 10px 0 10px 12px; }
.menu__list { display: flex; flex-direction: column; margin: 6vh 0; }
.menu__list a { font-family: var(--serif); font-size: clamp(30px, 9.4vw, 48px); line-height: 1.16; padding: 9px 0; border-bottom: 1px solid rgba(237, 231, 220, .14); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.menu__list a span { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; opacity: .5; }
.menu__foot { display: flex; flex-direction: column; gap: 12px; font-size: 13px; letter-spacing: .06em; }
.menu__foot a { opacity: .82; }
html.menu-lock { overflow: hidden; }

/* ============ ПЕРВЫЙ ЭКРАН ============ */
.hero { height: 440vh; position: relative; }
.hero__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
.hero__paper { position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 90% at 50% 30%, #F1EDE8 0%, #EAE5E0 46%, #E0DAD3 100%); }
#lightFocus { position: absolute; inset: 0; z-index: 1; opacity: 0; background: radial-gradient(46% 40% at 50% 50%, rgba(255, 253, 248, .9) 0%, rgba(255, 253, 248, 0) 70%); }
.hero__breath { position: absolute; left: 50%; top: 52%; width: 70vmin; height: 56vmin; z-index: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(126, 112, 96, .10), rgba(126, 112, 96, 0) 72%); animation: dl-breathe 7s ease-in-out infinite; }
#bulge { position: absolute; left: 50%; top: 52%; width: 56vmin; height: 46vmin; margin: -23vmin 0 0 -28vmin; z-index: 2; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, rgba(255, 254, 250, .85) 0%, rgba(240, 235, 228, .4) 38%, rgba(103, 90, 76, .16) 66%, rgba(103, 90, 76, 0) 78%); box-shadow: 0 30px 60px -20px rgba(90, 78, 64, .25); }
#wrinkle { position: absolute; left: 50%; top: 52%; width: 80vmin; height: 62vmin; margin: -31vmin 0 0 -40vmin; z-index: 2; opacity: 0; background: conic-gradient(from 10deg at 50% 50%, rgba(120, 106, 90, .07) 0deg, rgba(255, 255, 252, .10) 24deg, rgba(120, 106, 90, .05) 60deg, rgba(255, 255, 252, .08) 110deg, rgba(120, 106, 90, .07) 160deg, rgba(255, 255, 252, .09) 210deg, rgba(120, 106, 90, .06) 265deg, rgba(255, 255, 252, .08) 315deg, rgba(120, 106, 90, .07) 360deg); border-radius: 50%; filter: blur(14px); }
#tearShadow { position: absolute; left: 50%; top: 52%; width: 60vmin; height: 50vmin; margin: -25vmin 0 0 -30vmin; z-index: 2; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, rgba(12, 10, 8, .85) 0%, rgba(12, 10, 8, .3) 55%, rgba(12, 10, 8, 0) 74%); }
#hole { position: absolute; left: 50%; top: 52%; width: 130vmin; max-width: none; margin-left: -65vmin; margin-top: -43.5vmin; z-index: 3; opacity: 0; -webkit-mask-image: radial-gradient(46% 52% at 50% 48%, black 52%, transparent 76%); mask-image: radial-gradient(46% 52% at 50% 48%, black 52%, transparent 76%); }
#hand { position: absolute; left: 50%; top: 52%; width: 128vmin; max-width: none; margin-left: -68vmin; margin-top: -40vmin; z-index: 5; opacity: 0; }
.hero__typo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2vh; text-align: center; pointer-events: none; padding-top: 2vh; }
#typoBack { z-index: 4; }
#typoFront { z-index: 6; }
/* шаблон: кегль крупных строк имел нижний порог 58–64px — на телефоне строки шире экрана.
   Кегль считается от ширины окна под длину слова (--k — доля ширины на одну букву) и ограничен высотой. */
.h-big { font-family: var(--serif); font-weight: 500; font-size: min(var(--fs, 12.5vw), 21vh, 220px); line-height: .9; letter-spacing: .015em; color: #16130E; text-transform: uppercase; white-space: nowrap; }
.h-small { height: clamp(14px, 2.4vh, 26px); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: clamp(12px, 1.35vw, 22px); letter-spacing: .55em; text-indent: .55em; color: var(--ink); text-transform: uppercase; white-space: nowrap; }
.is-ghost { visibility: hidden; }
#sideLabels { position: absolute; left: 44px; top: 50%; transform: translateY(-50%); z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 28px; writing-mode: vertical-rl; }
#sideLabels span { transform: rotate(180deg); font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: .6; white-space: nowrap; }
#sideLabels .num { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: .14em; opacity: .85; font-variant-numeric: lining-nums; }
#bottomUI { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; padding: 0 48px 34px; }
.hero__cta { justify-self: start; display: inline-flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.hero__cta b { width: 46px; height: 46px; border: 1px solid rgba(23, 20, 15, .55); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .3s ease, color .3s ease, transform .3s ease; }
.hero__cta:hover b { background: var(--ink); color: var(--paper); transform: translateX(4px); }
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.hero__scroll i { display: block; width: 1px; height: 22px; background: currentColor; animation: dl-bob 2.4s ease-in-out infinite; }
.hero__scroll span { opacity: .72; }
.hero__tag { justify-self: end; display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; text-align: right; }
.hero__tag::before { content: ''; width: 40px; height: 1px; background: rgba(23, 20, 15, .5); flex: none; }
#portal { position: absolute; inset: 0; z-index: 40; background: var(--night); clip-path: circle(0% at 50% 52%); pointer-events: none; }

/* ============ РАБОТЫ: строки с бегущей строкой по наведению ============ */
.work { background: var(--night); color: var(--cream); padding: 12vh var(--pad) 16vh; position: relative; }
.work .sec-head { margin-bottom: 5vh; }
.menuItem { position: relative; overflow: hidden; border-top: 1px solid rgba(237, 231, 220, .14); }
.menuItem:last-child { border-bottom: 1px solid rgba(237, 231, 220, .14); }
.menuLink { display: flex; align-items: center; justify-content: space-between; gap: 3vw; padding: 4.2vh 1vw; position: relative; z-index: 1; }
.menuLink__name { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.6vw, 104px); line-height: 1.02; letter-spacing: -.005em; }
.menuLink__tag { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .6; white-space: nowrap; text-align: right; }
.menuLink__thumb { display: none; }
/* шаблон: у оверлея был класс .marquee — тот же, что у бегущих строк блока «Voices»; скрипт того блока
   сдвигал оверлеи по горизонтали, и при наведении справа оставалась чёрная полоса. Класс переименован. */
.rowMarq { position: absolute; inset: 0; background: #F4EFE6; overflow: hidden; pointer-events: none; transform: translateY(101%); z-index: 2; }
.rowMarq__inner { display: flex; align-items: center; height: 100%; width: max-content; will-change: transform; }
.rowMarq__part { display: flex; align-items: center; flex-shrink: 0; color: var(--ink); white-space: nowrap; }
.rowMarq__part b { font-family: var(--serif); text-transform: uppercase; font-weight: 400; font-size: clamp(28px, 4.4vh, 64px); line-height: 1; letter-spacing: .02em; padding: 0 1.4vw; }
.rowMarq__part em { font-family: var(--serif); font-size: 15px; opacity: .65; padding: 0 1vw; }
.rowMarq__part i { width: 14vh; height: 9vh; margin: 0 1.4vw; border-radius: 999px; background-size: cover; background-position: 50% 50%; }
.work__more { margin-top: 5vh; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.work__more p { font-size: 14px; line-height: 1.8; opacity: .68; max-width: 56ch; }
.link-u { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 6px; white-space: nowrap; }

/* ============ ФРАЗЫ ============ */
.philo { background: var(--paper); padding: 24vh 8vw; }
.philo .lbl { display: block; margin-bottom: 14vh; }
.philo__list { display: flex; flex-direction: column; gap: 26vh; max-width: 1200px; }
.phrase { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5.6vw, 92px); line-height: 1.08; }
.phrase--r { font-style: italic; align-self: flex-end; text-align: right; }
.phrase--c { font-weight: 500; font-size: clamp(34px, 6.2vw, 104px); line-height: 1.1; text-align: center; align-self: center; }

/* ============ ЭТАПЫ: стопка бумажных карточек ============ */
.proc { background: var(--paper-2); padding: 20vh 0 24vh; }
.proc .sec-head { padding: 0 8vw; margin-bottom: 12vh; }
.proc__list { display: flex; flex-direction: column; padding: 0 8vw; }
.procCard { position: sticky; top: 14vh; background: var(--card); border-radius: 2px; padding: 6vh 5vw; margin-bottom: 16vh; box-shadow: 0 30px 60px -18px rgba(60, 50, 40, .35), 0 2px 0 rgba(255, 255, 255, .8) inset; display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 300px); gap: 3vw; align-items: baseline; transform: rotate(-.4deg); }
.procCard:nth-child(2) { top: 17vh; background: #F2EDE6; transform: rotate(.5deg); }
.procCard:nth-child(3) { top: 20vh; background: #F0EBE3; transform: rotate(-.3deg); }
.procCard:nth-child(4) { top: 23vh; background: #EEE8E0; transform: rotate(.4deg); }
.procCard:nth-child(5) { top: 26vh; background: #ECE6DD; transform: rotate(-.5deg); }
.procCard:last-child { margin-bottom: 4vh; }
.procCard__n { font-family: var(--serif); font-size: 16px; font-style: italic; opacity: .6; font-variant-numeric: lining-nums; }
.procCard__t { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 76px); line-height: 1.02; }
.procCard__d { font-size: 13.5px; line-height: 1.75; opacity: .72; }

/* ============ НАПРАВЛЕНИЯ: фото проступает сквозь буквы ============ */
.caps { background: var(--night); color: var(--cream); padding: 22vh var(--pad) 20vh; }
.caps .sec-head { margin-bottom: 11vh; }
#capList { display: flex; flex-direction: column; gap: 1vh; }
.capLine { position: relative; cursor: default; padding: .3vh 0; }
.capLine--2 { margin-left: 8vw; }
.capLine--4 { margin-left: 14vw; }
.capBase, .capImg { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, var(--capfs, 8vw), 150px); line-height: 1.06; letter-spacing: .005em; white-space: nowrap; }
.capLine--2 .capBase, .capLine--2 .capImg, .capLine--4 .capBase, .capLine--4 .capImg { font-style: italic; }
.capBase { color: var(--cream); transition: color 450ms ease; }
.capLine.is-on .capBase { color: rgba(237, 231, 220, .18); }
.capImg { position: absolute; left: 0; top: .3vh; pointer-events: none; background-image: url('../img/cap-texture.webp'); background-size: 140% auto; background-position: center 42%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; -webkit-mask-image: radial-gradient(circle 0px at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(circle 0px at 50% 50%, #000 55%, transparent 100%); }
.caps__hint { margin-top: 8vh; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 40px; }
.caps__hint p { font-size: 14px; line-height: 1.8; opacity: .68; max-width: 52ch; }
#capGlass { position: fixed; top: 0; left: 0; width: 220px; height: 220px; border-radius: 50%; z-index: 40; pointer-events: none; opacity: 0; -webkit-backdrop-filter: blur(1px) brightness(1.06) saturate(1.08); backdrop-filter: blur(1px) url(#capGlassFilter) brightness(1.06) saturate(1.08); border: 1px solid rgba(255, 255, 255, .22); box-shadow: inset 0 2px 12px rgba(255, 255, 255, .28), inset 0 -8px 22px rgba(0, 0, 0, .45), 0 20px 50px -12px rgba(0, 0, 0, .6); will-change: transform; }
#capGlass::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(120% 120% at 32% 24%, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, 0) 55%); }

/* ============ КАДР В РВАНОЙ ДЫРЕ ============ */
.reveal { position: relative; }
#revealStick { height: 100vh; height: 100svh; overflow: hidden; background: #ECE7E2; position: relative; }
#revealGlow { position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 90% at 50% 40%, #F2EEE9 0%, #ECE7E2 48%, #E4DED8 100%); }
#revealVoid, #revealImgBg { -webkit-mask-image: url('../img/reveal-mask.webp'); mask-image: url('../img/reveal-mask.webp'); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
#revealVoid { position: absolute; inset: 0; z-index: 2; background: radial-gradient(50% 60% at 50% 48%, #16130E 0%, #0B0A08 74%); }
#revealImgBg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; opacity: 0; }
#revealHole { position: absolute; left: 50%; top: 48%; width: 132vmin; max-width: none; z-index: 4; transform-origin: 53.1% 51.4%; transform: translate(-53.1%, -51.4%) scale(.34); filter: drop-shadow(0 26px 46px rgba(60, 50, 40, .26)); }
#revealCap { position: absolute; left: var(--pad); top: 15vh; z-index: 6; max-width: 15ch; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 66px); line-height: 1.06; color: #1A1611; text-shadow: 0 1px 40px rgba(246, 242, 235, .9), 0 0 1px rgba(246, 242, 235, .9); }
.reveal__tag { position: absolute; right: var(--pad); top: 16vh; z-index: 6; font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #1A1611; }
.reveal__foot { position: absolute; left: 0; right: 0; bottom: 5vh; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 var(--pad); font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #1A1611; }
.reveal__foot span { padding: 6px 10px; margin: 0 -10px; border-radius: 3px; }
/* шаблон: подписи светлели все разом на 80 % сцены — теперь каждая, когда дыра дошла до неё (класс on-dark ставит скрипт) */
.reveal__foot span.on-dark, .reveal__tag.on-dark { color: #F4EFE6; text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
.reveal__foot span, .reveal__tag { transition: color .4s ease; }
/* шаблон: в открытом кадре подпись внизу справа ложилась на белую бумагу с фотографии — низ кадра затемнён (is-open ставит скрипт, когда нижние подписи уже на кадре) */
html.js-motion #revealStick::after { content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .5s ease; background: linear-gradient(180deg, rgba(11, 10, 8, 0) 66%, rgba(11, 10, 8, .58) 100%); }
html.js-motion #revealStick.is-open::after { opacity: 1; }
#revealScrollHint { display: flex; align-items: center; gap: 12px; }
#revealScrollHint i { display: block; width: 1px; height: 18px; background: currentColor; animation: dl-bob 2.4s ease-in-out infinite; }

/* ============ МАНИФЕСТ: слова осыпаются ============ */
.mani { background: var(--night); color: var(--cream); padding: 24vh 8vw; }
.mani .lbl { display: block; margin-bottom: 12vh; }
#maniStage { display: flex; flex-direction: column; gap: 2.4vh; max-width: 1400px; position: relative; min-height: 84vh; overflow: hidden; padding-bottom: 6vh; }
.maskLine { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 4.6vw, 76px); line-height: 1.16; }
.maskLine:nth-child(2) { font-style: italic; }
.maskLine span { display: inline-block; will-change: transform; }

/* ============ ЦИФРЫ ============ */
.recog { background: var(--paper-2); padding: 22vh var(--pad); }
.recog .sec-head { margin-bottom: 12vh; }
.recog__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4vw; border-top: 1px solid rgba(23, 20, 15, .15); padding-top: 8vh; }
.recog__item { display: flex; flex-direction: column; gap: 14px; }
.counter { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7.6vw, 128px); line-height: .92; font-variant-numeric: lining-nums; white-space: nowrap; }
.recog__item p { font-size: 13px; line-height: 1.6; opacity: .72; max-width: 26ch; }

/* ============ МАСТЕРСКАЯ ============ */
.studio { background: var(--night); color: var(--cream); padding: 22vh var(--pad) 20vh; overflow: hidden; }
.studio .sec-head { margin-bottom: 9vh; }
.studio__band { position: relative; margin: 0 calc(var(--pad) * -1) 10vh; padding: 3.4vh 0; border-top: 1px solid rgba(237, 231, 220, .12); border-bottom: 1px solid rgba(237, 231, 220, .12); overflow: hidden; }
.studioMarquee { display: flex; align-items: center; gap: 3vw; white-space: nowrap; width: max-content; will-change: transform; }
.studioMarquee b { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.6vw, 74px); line-height: 1.1; letter-spacing: .01em; color: var(--cream); }
.studioMarquee b.o { color: transparent; -webkit-text-stroke: 1px rgba(237, 231, 220, .5); }
.studioMarquee i { color: var(--accent); font-size: 12px; font-style: normal; }
.studio__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 5vw; align-items: start; }
.studio__copy { position: sticky; top: 16vh; display: flex; flex-direction: column; gap: 5vh; }
.studio__lead { font-family: var(--serif); font-size: clamp(24px, 3vw, 50px); line-height: 1.24; max-width: 21ch; }
.studio__text { font-size: 14.5px; line-height: 1.9; opacity: .72; max-width: 46ch; }
.studio__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 4vh 3vw; border-top: 1px solid rgba(237, 231, 220, .14); padding-top: 5vh; }
.studio__facts div { display: flex; flex-direction: column; gap: 8px; }
.studio__facts dt { font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; opacity: .58; }
.studio__facts dd { margin: 0; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.2; font-variant-numeric: lining-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1vh; }
.chips span { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 9px 16px; border: 1px solid rgba(237, 231, 220, .22); border-radius: 9999px; opacity: .86; }
.studio__figs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6vw; align-items: start; }
.pCol { display: flex; flex-direction: column; gap: 1.6vw; }
.pCol + .pCol { padding-top: 12vh; }
.studioFig__img { overflow: hidden; border-radius: 12px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85); }
/* шаблон: увеличение по наведению искало тег image-slot, которого в экспорте нет, — не работало */
.studioFig__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.22, 1, .36, 1); }
.studioFig:hover .studioFig__img img { transform: scale(1.06); }
.studioFig figcaption { margin-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .62; line-height: 1.6; }
.r34 { aspect-ratio: 3 / 4; } .r11 { aspect-ratio: 1 / 1; } .r45 { aspect-ratio: 4 / 5; } .r54 { aspect-ratio: 5 / 4; }

/* ============ КНИГА ============ */
.frames { background: var(--paper); }
#framesPin { height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.frames .sec-head { padding: calc(var(--hdr) + 3vh) var(--pad) 0; }
#framesProgress { font-variant-numeric: lining-nums; }
.frames__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 2vh var(--pad); }
#book { position: relative; width: min(1120px, 88vw); height: min(64vh, 640px); perspective: 2600px; }
.book__cover, .book__end, .leaf-back { background: linear-gradient(90deg, #ECE6DD 0%, #F4EFE6 12%); }
.book__cover { position: absolute; left: 0; top: 0; width: 50%; height: 100%; border-radius: 4px 0 0 4px; box-shadow: inset -18px 0 40px -24px rgba(60, 50, 40, .5), 0 40px 80px -40px rgba(50, 40, 30, .5); display: flex; flex-direction: column; justify-content: space-between; padding: 6vh 3vw; }
.book__cover h3 { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 44px); line-height: 1.12; }
.book__cover div { display: flex; flex-direction: column; gap: 10px; }
#bookRight { position: absolute; right: 0; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; }
.book__end { position: absolute; inset: 0; background: linear-gradient(270deg, #ECE6DD 0%, #F4EFE6 12%); border-radius: 0 4px 4px 0; box-shadow: inset 18px 0 40px -24px rgba(60, 50, 40, .5), 0 40px 80px -40px rgba(50, 40, 30, .5); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: 0 3.4vw; }
.book__end h3 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 58px); line-height: 1.04; }
.leaf { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; will-change: transform; }
/* шаблон: до закрепления сцены поверх лежал последний лист (порядок слоёв ставил только скрипт) */
.leaf:nth-of-type(1) { z-index: 8; } .leaf:nth-of-type(2) { z-index: 7; } .leaf:nth-of-type(3) { z-index: 6; } .leaf:nth-of-type(4) { z-index: 5; } .leaf:nth-of-type(5) { z-index: 4; } .leaf:nth-of-type(6) { z-index: 3; }
.leaf-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf-front { border-radius: 0 4px 4px 0; overflow: hidden; box-shadow: inset 14px 0 34px -22px rgba(60, 50, 40, .55); background: #D9D2C8; }
.leaf-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.leaf-front__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 14% 5% 5%; background: linear-gradient(0deg, rgba(11, 10, 8, .78), transparent); color: var(--cream); }
.leaf-front__cap b { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(17px, 2vw, 26px); line-height: 1.15; }
.leaf-front__cap i { font-style: normal; font-size: 11px; letter-spacing: .24em; opacity: .85; font-variant-numeric: lining-nums; }
.leaf-back { transform: rotateY(180deg); border-radius: 4px 0 0 4px; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 0 3.4vw; }
.leaf-back h3 { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 52px); line-height: 1.04; }
.leaf-back p { font-size: 13.5px; line-height: 1.8; opacity: .74; max-width: 36ch; }
.book__spine { position: absolute; left: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, rgba(60, 50, 40, .28), transparent); pointer-events: none; z-index: 999; }
.frames__bar { padding: 0 var(--pad) 6vh; }
.frames__bar div { height: 1px; background: rgba(23, 20, 15, .15); position: relative; }
#framesBar { position: absolute; left: 0; top: -.5px; height: 2px; width: 16%; background: var(--ink); }

/* ============ ОТЗЫВЫ ============ */
.testi { background: var(--paper); padding: 22vh var(--pad) 24vh; overflow: hidden; }
.testi .sec-head { margin-bottom: 4vh; }
.testi__title { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 76px); line-height: 1.08; max-width: 16ch; margin-bottom: 14vh; }
.testi__list { display: flex; flex-direction: column; gap: 12vh; }
.tCard { margin: 0; align-self: flex-start; width: min(600px, 88vw); background: var(--card); border-radius: 4px; padding: 5vh 3.5vw; box-shadow: 0 40px 80px -30px rgba(60, 50, 40, .4); display: flex; flex-direction: column; gap: 28px; }
.tCard--r { align-self: flex-end; } .tCard--c { align-self: center; }
.tCard--dark { background: var(--night); color: var(--cream); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.tCard--accent { background: var(--accent); color: #FBF4EA; box-shadow: 0 40px 80px -30px rgba(120, 40, 20, .5); }
.tCard blockquote p { font-family: var(--serif); font-size: clamp(19px, 2vw, 30px); line-height: 1.42; }
.tCard figcaption { display: flex; align-items: center; gap: 18px; }
.tCard figcaption i { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1px solid currentColor; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: 22px; opacity: .8; }
.tCard figcaption div { display: flex; flex-direction: column; gap: 4px; }
.tCard figcaption b { font-size: 14px; font-weight: 600; letter-spacing: .03em; }
.tCard figcaption span { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .66; }

/* ============ ИМЕНА И ЦИТАТА ============ */
.voices { background: var(--night); color: var(--cream); padding: 20vh 0 22vh; overflow: hidden; }
.voices > .lbl { display: block; padding: 0 var(--pad); margin-bottom: 12vh; }
.voices__rows { display: flex; flex-direction: column; gap: 2.5vh; margin-bottom: 16vh; border-top: 1px solid rgba(237, 231, 220, .12); border-bottom: 1px solid rgba(237, 231, 220, .12); padding: 5vh 0; }
.vMarq { display: flex; gap: 5vw; white-space: nowrap; will-change: transform; width: max-content; }
.marqTrack, .vMarq > span { display: inline-flex; gap: 5vw; font-family: var(--serif); font-size: clamp(28px, 4vw, 68px); line-height: 1.2; }
.vMarq--1 > span { font-style: italic; opacity: .88; }
.vMarq--2 > span { opacity: .6; }
.voices__quote { padding: 0 8vw; }
#flipQuote { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 4.2vw, 72px); line-height: 1.26; max-width: 24ch; perspective: 800px; }
#flipQuote span { display: inline-block; transform-origin: 0% 100%; transform-style: preserve-3d; }
.voices__by { display: flex; align-items: center; gap: 20px; margin-top: 6vh; font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.voices__by::before { content: ''; width: 44px; height: 1px; background: rgba(237, 231, 220, .4); flex: none; }
.voices__by span { opacity: .7; }

/* ============ ПАЗЛ ============ */
.assemble { position: relative; background: var(--paper-3); }
#assembleStick { height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5vh; position: relative; background: var(--paper-3); }
.assemble .sec-head { position: absolute; top: calc(var(--hdr) + 3vh); left: 0; right: 0; padding: 0 var(--pad); }
#puzzlePct { font-variant-numeric: lining-nums; }
#puzzleBoard { position: relative; width: min(880px, 66vw, 96vh); aspect-ratio: 3 / 2; border-radius: 3px; }
#puzzleBoard div { position: absolute; background-image: url('../img/puzzle.webp'); will-change: transform, opacity; backface-visibility: hidden; box-shadow: 0 0 0 1px rgba(231, 224, 218, .55); }
.assemble__cap { position: absolute; bottom: 8vh; left: 0; right: 0; text-align: center; padding: 0 var(--pad); font-family: var(--serif); font-size: clamp(22px, 3vw, 46px); line-height: 1.15; }

/* ============ ПОДВАЛ ============ */
.ftr { background: var(--paper); padding: 16vh var(--pad) 0; }
.ftr__top { border-top: 1px solid rgba(23, 20, 15, .15); padding-top: 4vh; }
#talkLink { display: block; font-family: var(--serif); font-weight: 500; font-size: min(var(--talkfs, 12vw), 220px); line-height: .96; letter-spacing: .005em; margin: 6vh 0 2vh; white-space: nowrap; }
#talkText span { display: inline-block; will-change: transform; transition: color 300ms ease; }
#talkArrow { display: inline-block; margin-left: .15em; transition: transform 500ms cubic-bezier(.22, 1, .36, 1); }
#talkArrow svg { width: .62em; height: .62em; vertical-align: -.02em; }
#talkLink:hover #talkArrow { transform: translateX(.35em); }
.ftr__ways { display: flex; flex-wrap: wrap; gap: 12px; margin: 4vh 0 0; }
.btn { display: inline-flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: 16px 24px; border: 1px solid var(--ink); border-radius: 999px; transition: background .25s ease, color .25s ease; }
.btn:hover, .btn--fill { background: var(--ink); color: var(--paper); }
.btn--fill:hover { background: transparent; color: var(--ink); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3vw; padding: 10vh 0 8vh; margin-top: 10vh; border-top: 1px solid rgba(23, 20, 15, .15); }
.ftr__brand { display: flex; flex-direction: column; gap: 20px; }
.ftr__brand p { font-size: 13.5px; line-height: 1.85; opacity: .72; max-width: 34ch; }
.ftr__col { display: flex; flex-direction: column; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.ftr__col h4 { opacity: .58; margin-bottom: 6px; font-size: 11px; letter-spacing: .26em; }
.ftr__col a, .ftr__col span { opacity: .84; line-height: 1.55; }
.ftr__col a { transition: opacity .2s ease; }
.ftr__col a:hover { opacity: 1; }
.ftr__col .lc { text-transform: none; letter-spacing: .02em; font-weight: 500; font-size: 13.5px; }
.ftr__bot { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 30px 0; border-top: 1px solid rgba(23, 20, 15, .15); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.ftr__bot span, .ftr__bot a { opacity: .68; }
.ftr__bot a:hover { opacity: 1; }

.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055; mix-blend-mode: multiply; animation: dl-grain .9s steps(4) infinite; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='300' height='300' filter='url(%23n)'/></svg>"); }

/* ============ ПЛАНШЕТ ============ */
@media (max-width: 1100px) {
  .hdr { padding: 22px 28px; }
  .hdr__nav { gap: 24px; }
  #sideLabels { left: 22px; }
  #bottomUI { padding: 0 28px 28px; }
  .procCard { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 250px); }
  /* на 901–1000px подпись справа отжимала место у кнопки слева: та переносилась, а кружок сплющивался */
  .hero__tag { letter-spacing: .2em; gap: 10px; }
  .hero__tag::before { width: 24px; }
  .hero__cta { white-space: nowrap; }
  .hero__cta b { flex: none; }
}
/* шаблон: ни одного медиазапроса — все сетки заданы инлайном под десктоп. Ниже 900px секции в одну колонку. */
@media (max-width: 900px) {
  :root { --hdr: 68px; }
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__burger { display: block; }
  #sideLabels { display: none; }
  .studio__grid { grid-template-columns: 1fr; gap: 9vh; }
  .studio__copy { position: static; }
  .studio__lead { max-width: 24ch; }
  .recog__grid { grid-template-columns: 1fr 1fr; gap: 7vh 6vw; }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 6vh 6vw; }
  .procCard { grid-template-columns: 64px minmax(0, 1fr); row-gap: 14px; }
  .procCard__d { grid-column: 2; }
  .hero__tag { display: none; }
  #bottomUI { grid-template-columns: 1fr auto; }
  .hero__scroll { justify-self: end; align-items: flex-end; }
}
/* ============ ТЕЛЕФОН ============ */
@media (max-width: 640px) {
  :root { --pad: 22px; }
  .hdr { padding: 16px 22px; }
  .hdr__logo { font-size: 12px; letter-spacing: .26em; }
  .lbl { letter-spacing: .24em; }
  .sec-head { flex-wrap: wrap; row-gap: 8px; }
  .hero { height: 360vh; }
  .hero__typo { gap: 1vh; padding-top: 0; }
  .h-small { letter-spacing: .42em; text-indent: .42em; font-size: 11.5px; height: 18px; }
  #bottomUI { padding: 0 22px 26px; grid-template-columns: 1fr; justify-items: center; gap: 22px; }
  .hero__cta { justify-self: center; }
  .hero__scroll { justify-self: center; align-items: center; }
  .work { padding: 10vh var(--pad) 12vh; }
  /* шаблон: бегущая строка по наведению на тач-экране недостижима — у строки появляется кадр */
  .menuLink { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 6px 16px; padding: 22px 0; }
  .menuLink__thumb { display: block; grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
  .menuLink__name { font-size: clamp(25px, 7.6vw, 40px); }
  .menuLink__tag { text-align: left; white-space: normal; letter-spacing: .18em; }
  .philo { padding: 14vh var(--pad); }
  .philo .lbl { margin-bottom: 9vh; }
  .philo__list { gap: 15vh; }
  .phrase { font-size: clamp(28px, 8.4vw, 44px); }
  .phrase--c { font-size: clamp(30px, 9vw, 48px); }
  .proc { padding: 14vh 0 12vh; }
  .proc .sec-head { padding: 0 var(--pad); margin-bottom: 8vh; }
  .proc__list { padding: 0 var(--pad); }
  .procCard { padding: 26px 22px 28px; margin-bottom: 9vh; grid-template-columns: 1fr; row-gap: 10px; top: 86px; }
  .procCard:nth-child(2) { top: 98px; } .procCard:nth-child(3) { top: 110px; } .procCard:nth-child(4) { top: 122px; } .procCard:nth-child(5) { top: 134px; }
  .procCard__d { grid-column: 1; font-size: 14px; }
  .procCard__t { font-size: clamp(28px, 8.6vw, 44px); }
  .caps { padding: 14vh var(--pad) 13vh; }
  .caps .sec-head { margin-bottom: 7vh; }
  .capBase, .capImg { font-size: var(--capfs-m, 9.6vw); }
  .capLine--2 { margin-left: 6vw; } .capLine--4 { margin-left: 10vw; }
  #capGlass { display: none; }
  #revealCap { top: 12vh; font-size: clamp(26px, 8vw, 40px); }
  .reveal__tag { top: auto; bottom: 11vh; right: auto; left: var(--pad); }
  .reveal__foot { bottom: 4vh; }
  .reveal__foot .opt { display: none; }
  .mani { padding: 14vh var(--pad); }
  .mani .lbl { margin-bottom: 7vh; }
  #maniStage { min-height: 76vh; }
  .maskLine { font-size: clamp(24px, 7vw, 36px); }
  .recog { padding: 14vh var(--pad); }
  .recog .sec-head { margin-bottom: 7vh; }
  .recog__grid { padding-top: 6vh; }
  .counter { font-size: clamp(44px, 13.5vw, 72px); }
  .studio { padding: 14vh var(--pad) 12vh; }
  .studio .sec-head { margin-bottom: 6vh; }
  .studio__band { margin-bottom: 8vh; padding: 20px 0; }
  .studio__lead { font-size: clamp(24px, 6.9vw, 34px); }
  .studio__figs { gap: 12px; } .pCol { gap: 22px; } .pCol + .pCol { padding-top: 8vh; }
  .studioFig figcaption { letter-spacing: .12em; font-size: 11px; }
  /* шаблон: на телефоне страницы книги были шириной 170px при высоте 66vh. Книга листается вверх, как блокнот. */
  #book { width: 100%; height: min(70vh, 132vw); perspective: 1800px; }
  .book__cover { width: 100%; height: 50%; border-radius: 4px 4px 0 0; padding: 22px 20px; background: linear-gradient(180deg, #F4EFE6 88%, #ECE6DD 100%); box-shadow: inset 0 -18px 40px -24px rgba(60, 50, 40, .5); }
  #bookRight { width: 100%; height: 50%; top: 50%; }
  .book__end { border-radius: 0 0 4px 4px; padding: 0 20px; gap: 14px; background: linear-gradient(0deg, #ECE6DD 0%, #F4EFE6 12%); box-shadow: inset 0 18px 40px -24px rgba(60, 50, 40, .5), 0 40px 80px -40px rgba(50, 40, 30, .5); }
  .leaf { transform-origin: center top; }
  .leaf-front { border-radius: 0 0 4px 4px; box-shadow: inset 0 14px 34px -22px rgba(60, 50, 40, .55); }
  .leaf-back { transform: rotateX(180deg); border-radius: 4px 4px 0 0; padding: 0 20px; gap: 10px; background: linear-gradient(180deg, #F4EFE6 88%, #ECE6DD 100%); }
  .leaf-back p { font-size: 13.5px; line-height: 1.6; max-width: none; }
  .book__spine { left: 0; right: 0; bottom: auto; width: auto; height: 28px; background: linear-gradient(180deg, rgba(60, 50, 40, .26), transparent); }
  .frames__bar { padding-bottom: 4vh; }
  .testi { padding: 14vh var(--pad) 15vh; }
  .testi__title { margin-bottom: 9vh; }
  .testi__list { gap: 7vh; }
  .tCard { width: 100%; padding: 26px 22px; gap: 22px; }
  .tCard p { font-size: 19px; }
  .voices { padding: 14vh 0 15vh; }
  .voices > .lbl { margin-bottom: 7vh; }
  .voices__rows { margin-bottom: 10vh; padding: 28px 0; }
  .voices__quote { padding: 0 var(--pad); }
  #flipQuote { font-size: clamp(25px, 7.4vw, 38px); }
  #puzzleBoard { width: 88vw; }
  .assemble__cap { bottom: 9vh; }
  .ftr { padding-top: 12vh; }
  .ftr__grid { grid-template-columns: 1fr; padding: 7vh 0 6vh; margin-top: 7vh; }
  .btn { width: 100%; justify-content: space-between; }
  .ftr__bot { flex-direction: column; align-items: flex-start; }
}
@media (hover: none) {
  .capLine { cursor: default; }
  #capGlass { display: none; }
  /* на тач-экране пятно само идёт по строке, пока та в середине экрана: вне пятна буквы гасли до 18 % и слово не читалось */
  .capLine.is-on .capBase { color: rgba(237, 231, 220, .5); }
}

/* ============ БЕЗ АНИМАЦИЙ ============ */
/* шаблон: prefers-reduced-motion не учитывался вовсе, а без скрипта сцены стояли пустыми экранами.
   Класс js-motion ставит скрипт в <head>, если движение не отключено; без него — итоговые состояния без закреплённых сцен. */
html:not(.js-motion) .hero__breath, html:not(.js-motion) .hero__scroll i, html:not(.js-motion) #revealScrollHint i, html:not(.js-motion) .grain { animation: none; }
html:not(.js-motion) .hero { height: auto; }
html:not(.js-motion) .hero__stick { position: relative; }
html:not(.js-motion) #hole { opacity: 1; transform: scale(.86); }
html:not(.js-motion) #hand { opacity: 1; transform: translateY(-1.5vmin) scale(1.05) rotate(2deg); filter: drop-shadow(0 46px 56px rgba(20, 16, 12, .5)); }
html:not(.js-motion) #tearShadow { opacity: 1; }
html:not(.js-motion) #typoFront .h-small { color: #F4EFE6; }
html:not(.js-motion) .hero__scroll { display: none; }
html:not(.js-motion) .procCard { position: relative; top: auto !important; margin-bottom: 4vh; }
html:not(.js-motion) #revealHole, html:not(.js-motion) #revealVoid { display: none; }
html:not(.js-motion) #revealImgBg { opacity: 1; -webkit-mask-image: none; mask-image: none; }

html:not(.js-motion) #revealScrollHint { display: none; }
html:not(.js-motion) #maniStage { min-height: 0; }
html:not(.js-motion) .vMarq { flex-wrap: wrap; width: auto; white-space: normal; padding: 0 var(--pad); row-gap: 1vh; }
html:not(.js-motion) .studio__band { overflow-x: auto; }
  /* книга раскладывается в список разворотов */
html:not(.js-motion) #framesPin { height: auto; overflow: visible; }
html:not(.js-motion) .frames__stage { overflow: visible; padding-top: 5vh; padding-bottom: 8vh; }
html:not(.js-motion) #book { height: auto; perspective: none; display: grid; gap: 18px; width: min(1120px, 100%); }
html:not(.js-motion) .book__cover, html:not(.js-motion) #bookRight, html:not(.js-motion) .book__end, html:not(.js-motion) .leaf, html:not(.js-motion) .leaf-face { position: relative; inset: auto; width: 100%; height: auto; transform: none !important; top: auto; }
html:not(.js-motion) .book__cover { padding: 5vh 3vw; gap: 4vh; border-radius: 4px; }
html:not(.js-motion) #bookRight { display: grid; gap: 18px; }
html:not(.js-motion) .leaf { display: grid; grid-template-columns: 1fr 1fr; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(50, 40, 30, .5); }
html:not(.js-motion) .leaf-front { aspect-ratio: 4 / 5; border-radius: 0; }
html:not(.js-motion) .leaf-back { padding: 5vh 3.4vw; border-radius: 0; }
html:not(.js-motion) .book__end { order: 9; padding: 6vh 3.4vw; border-radius: 4px; }
html:not(.js-motion) .book__spine, html:not(.js-motion) .frames__bar { display: none; }
html:not(.js-motion) #assembleStick { height: auto; padding: calc(var(--hdr) + 12vh) 0 12vh; }
html:not(.js-motion) .assemble .sec-head { top: calc(var(--hdr) + 3vh); }
html:not(.js-motion) .assemble__cap { position: static; }
@media (max-width: 640px) {
  html:not(.js-motion) .leaf { grid-template-columns: 1fr; }
  html:not(.js-motion) .leaf-back { padding: 24px 20px 28px; }
}

/* ============ «СУВОРОВ И КО»: чего нет в шаблоне ============ */
.philo__by { margin-top: 12vh; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; opacity: .62; display: flex; align-items: center; gap: 16px; }
.philo__by::before { content: ''; width: 44px; height: 1px; background: currentColor; opacity: .6; flex: none; }
.caps__tip { white-space: nowrap; }
@media (hover: none) { .caps__tip { display: none; } }

/* страницы книги: гравюры прессов с сайта мастерской лежат на бумаге, а не кадром во весь лист */
.leaf-front { background: linear-gradient(270deg, #ECE6DD 0%, #F4EFE6 12%); }
.leaf-front img { object-fit: contain; padding: 7% 9% 19%; }
.leaf-front__cap { background: none; color: var(--ink); padding: 0 7% 6%; align-items: baseline; }
.leaf-front__cap b { font-size: clamp(18px, 2.1vw, 30px); }
.leaf-front__cap i { opacity: .62; font-weight: 600; }
.book__end p { font-size: 13.5px; line-height: 1.8; opacity: .74; max-width: 36ch; }
.leaf-back .lbl { letter-spacing: .2em; line-height: 1.6; }

.testi__more { margin-top: 12vh; display: flex; justify-content: center; }
.tCard blockquote { margin: 0; }

/* цены: сетка цифр и разбор примера */
.prices { background: var(--night); color: var(--cream); padding: 22vh var(--pad) 20vh; }
.prices .sec-head { margin-bottom: 10vh; }
.prices__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4vw; border-top: 1px solid rgba(237, 231, 220, .16); padding-top: 7vh; }
.prices__item { display: flex; flex-direction: column; gap: 12px; }
.prices__item b { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.3vw, 74px); line-height: 1; white-space: nowrap; font-variant-numeric: lining-nums; }
.prices__item p { font-size: 13px; line-height: 1.6; opacity: .72; }
.prices__calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6vw; align-items: start; margin-top: 14vh; }
.prices__why { display: flex; flex-direction: column; gap: 3vh; }
.prices__why h3 { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 52px); line-height: 1.12; max-width: 14ch; }
.prices__why p { font-size: 14.5px; line-height: 1.9; opacity: .74; max-width: 48ch; }
.prices__card { background: var(--card); color: var(--ink); border-radius: 3px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); transform: rotate(.6deg); }
.prices__table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.prices__table caption { caption-side: top; text-align: left; padding: 30px 32px 18px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.9vw, 28px); }
.prices__table th, .prices__table td { padding: 15px 32px; border-top: 1px solid rgba(23, 20, 15, .14); font-weight: 500; text-align: left; vertical-align: baseline; }
.prices__table td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; font-weight: 600; }
.prices__table tfoot th, .prices__table tfoot td { padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--ink); font-family: var(--serif); font-size: clamp(22px, 2.1vw, 32px); font-weight: 500; }
.prices__table tfoot td span { display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; opacity: .66; margin-top: 4px; }

.ftr__lead { font-size: 15px; line-height: 1.8; opacity: .76; max-width: 58ch; margin-top: 3vh; }
#talkLink { --talkfs: 8.1vw; }
address { font-style: normal; }

/* окно работы: кадр и подпись из галереи мастерской */
.lb { border: 0; padding: 0; max-width: min(1100px, 94vw); width: 100%; max-height: 92vh; max-height: 92svh; background: var(--card); color: var(--ink); border-radius: 4px; box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .8); overflow: hidden; }
.lb::backdrop { background: rgba(11, 10, 8, .82); }
.lb__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); max-height: 92vh; max-height: 92svh; }
.lb__body img { width: 100%; height: 100%; max-height: 92vh; max-height: 92svh; object-fit: cover; background: #1b1916; }
.lb__text { padding: 76px 40px 44px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; overflow-y: auto; }
.lb__text h3 { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 44px); line-height: 1.08; }
.lb__text p { font-size: 14.5px; line-height: 1.8; opacity: .78; }
.lb__close { position: absolute; top: 18px; right: 20px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; padding: 10px 14px; border: 1px solid currentColor; border-radius: 999px; background: var(--card); }
.lb__close:hover { background: var(--ink); color: var(--card); }

@media (max-width: 900px) {
  .prices__grid { grid-template-columns: 1fr 1fr; gap: 6vh 6vw; }
  .prices__calc { grid-template-columns: 1fr; gap: 7vh; margin-top: 10vh; }
  .hero__tag { display: block; grid-column: 1 / -1; justify-self: start; text-align: left; order: -1; max-width: 34ch; line-height: 1.7; }
  .hero__tag::before { display: none; }
  #talkLink { --talkfs: 8.6vw; }
  .h-big { --fs: 14.6vw; }
}
@media (max-width: 640px) {
  .hero__tag { justify-self: center; text-align: center; font-size: 11px; letter-spacing: .18em; max-width: none; }
  .h-big { --fs: 16.4vw; }
  .philo__by { margin-top: 8vh; letter-spacing: .18em; }
  .capBase, .capImg { --capfs-m: 8.4vw; }
  .leaf-front img { padding: 5% 34% 5% 6%; }
  .leaf-front__cap { left: auto; width: 36%; top: 0; bottom: 0; flex-direction: column-reverse; justify-content: center; align-items: flex-start; gap: 8px; padding: 0 5% 0 0; }
  .leaf-front__cap b { font-size: 19px; }
  .leaf-back h3 { font-size: 23px; }
  .book__end h3 { font-size: 25px; }
  .book__end p { font-size: 13px; line-height: 1.6; }
  .testi__more { margin-top: 8vh; }
  .prices { padding: 14vh var(--pad) 13vh; }
  .prices .sec-head { margin-bottom: 6vh; }
  .prices__item b { font-size: clamp(27px, 8.2vw, 40px); }
  .prices__card { transform: none; }
  .prices__table { font-size: 13.5px; }
  .prices__table caption { padding: 22px 20px 14px; }
  .prices__table th, .prices__table td { padding: 13px 20px; }
  .prices__table th { padding-right: 8px; }
  .ftr__lead { font-size: 14.5px; }
  .lb__body { grid-template-columns: 1fr; overflow-y: auto; }
  .lb__body img { max-height: 56vh; }
  .lb__text { padding: 24px 22px 30px; }
}
html:not(.js-motion) .leaf-front img { position: relative; height: auto; padding: 8% 12% 4%; }
html:not(.js-motion) .leaf-front { aspect-ratio: auto; }
html:not(.js-motion) .leaf-front__cap { position: relative; padding: 0 7% 7%; width: auto; flex-direction: row; }

.hero__cta b .arr { width: 15px; height: 15px; }
.link-u .arr, .btn .arr, .ftr__bot .arr { width: 12px; height: 12px; }

/* статичный вид: кадр открыт целиком, подписи светлые; пазл собран; бегущие строки не едут */
html:not(.js-motion) #revealCap, html:not(.js-motion) .reveal__tag, html:not(.js-motion) .reveal__foot span { color: #F4EFE6; text-shadow: 0 1px 22px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .6); }
html:not(.js-motion) #revealStick::after { content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(180deg, rgba(11, 10, 8, .55) 0%, rgba(11, 10, 8, 0) 46%, rgba(11, 10, 8, 0) 72%, rgba(11, 10, 8, .5) 100%); }
html:not(.js-motion) #puzzleBoard { background: url('../img/puzzle.webp') center / cover; }
html:not(.js-motion) .vMarq span span { white-space: nowrap; }
.studio__band:has(.studioMarquee:empty) { display: none; }
html:not(.js-motion) .marqTrack { flex-wrap: wrap; row-gap: 1vh; }
/* без скрипта шапка не знает тона секции — остаётся в начале страницы */
html:not(.js) .hdr { position: absolute; }
/* на планшете подпись тоже в две строки — вторая начиналась с точки-разделителя */
@media (max-width: 900px) { .hero__tag .sep { display: none; } .hero__tag .nb { display: block; } }
