/* Развилка и лендинги: единый стиль «Проявка», два имени. Контейнер .fr задаёт ширину для cqw. */
:root {
  color-scheme: dark;
  --room: #0F0B09; --room2: #18120F; --room3: #261D18; --rline: rgba(255,232,220,.14); --rline2: rgba(255,232,220,.28);
  --ink: #F4ECE5; --dim: #B8ACA2;
  --paper: #F4F1EA; --paper2: #EAE6DC; --sheet: #FBFAF6; --graph: #15120E; --g2: #575148; --g3: #6B645A; --pline: rgba(21,18,14,.13); --pline2: rgba(21,18,14,.3);
  --sig: #FF4F1A; --sig-ink: #140A06; --ok: #1E9A61; --wait: #D59A00; --okl: #3FC48A; --waitl: #F0BB2E;
  --f-d: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-t: "Golos Text", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-m: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r1: 2px; --r2: 6px; --r3: 12px;
  --e-out: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--room); color: var(--ink); font: 400 15px/1.5 var(--f-t); -webkit-font-smoothing: antialiased; }
.fr { container: fr / inline-size; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 2px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
p { text-wrap: pretty; }
canvas.sc { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.mono { font: 500 10.5px/1.4 var(--f-m); letter-spacing: .08em; text-transform: uppercase; }
.dim { color: var(--dim); }
.sig { color: var(--sig); }
.wl-skip { position: absolute; left: 12px; top: -60px; z-index: 9; background: var(--ink); color: var(--room); padding: 8px 12px; border-radius: var(--r2); }
.wl-skip:focus { top: 12px; }

@keyframes dev { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dv { animation: dev .62s var(--e-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; }
@media (prefers-reduced-motion: reduce) { .dv { animation: none !important; } * { transition-duration: 0s !important; } }

.drum { display: inline-flex; font-variant-numeric: tabular-nums; line-height: 1; vertical-align: baseline; }
.drum .dc { display: inline-block; height: 1em; overflow: hidden; }
.drum .ds { display: block; transition: transform .7s var(--e-out); }
.drum .ds i { display: block; height: 1em; font-style: normal; text-align: center; }
.drum .sp { display: inline-block; min-width: .3em; }

.film { --perf: var(--rline2); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding-block: 7px; position: relative; background-image: repeating-linear-gradient(90deg, var(--perf) 0 5px, transparent 5px 13px), repeating-linear-gradient(90deg, var(--perf) 0 5px, transparent 5px 13px); background-size: 100% 3px; background-position: 0 0, 0 100%; background-repeat: no-repeat; }
.film .f { min-width: 0; padding: 8px 8px 7px; border: 1px solid var(--rline); background: transparent; text-align: left; display: flex; flex-direction: column; gap: 3px; border-radius: var(--r1); color: var(--dim); }
.film .f .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-size: 9.5px; letter-spacing: .05em; }
.film .f.done { background: var(--room3); color: var(--ink); }
.film .f.now { background: var(--sig); border-color: var(--sig); color: var(--sig-ink); }
.film .f { font: inherit; cursor: pointer; }
.film.onpaper { --perf: var(--pline2); }
.film.onpaper .f { border-color: var(--pline); color: var(--g3); }
.film.onpaper .f.done { background: var(--paper2); color: var(--graph); }
.film.onpaper .f.now { background: var(--sig); color: var(--sig-ink); border-color: var(--sig); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px; font-weight: 600; font-size: 14px; border-radius: var(--r2); text-decoration: none; border: 1px solid transparent; transition: transform .12s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--sig); color: var(--sig-ink); }
.btn.pri:hover { background: #ff6a3d; }
.btn.sec { border-color: var(--rline2); color: var(--ink); }
.btn.sec:hover { border-color: var(--ink); }
.onp .btn.sec, .btn.sec.p { border-color: var(--pline2); color: var(--graph); }
.onp .btn.sec:hover, .btn.sec.p:hover { border-color: var(--graph); }
.btn.big { min-height: 54px; padding: 14px 24px; font-size: 15.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn.arr::after { content: "→"; transition: transform .2s var(--e-out); }
.btn:hover.arr::after { transform: translateX(4px); }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.btn.ink { background: var(--graph); color: var(--paper); }
.on-room .btn.sec { background: var(--room); }

.hd { height: 56px; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; background: var(--room); border-bottom: 1px solid var(--rline); position: sticky; top: 0; z-index: 30; color: var(--ink); }
.hd .l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hd .r { display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
.wl-mark { font-size: 17px; color: inherit; text-decoration: none; }
/* Назад к развилке /welcome (владелец 13.11.2026): квадрат слева от знака, пиксельная стрелка как у «дальше». */
.hdback { display: grid; place-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--rline2); border-radius: var(--r2); color: var(--dim); transition: color .2s ease, border-color .2s ease; }
.hdback svg { width: 14px; height: 14px; fill: currentColor; shape-rendering: crispEdges; }
.hdback:hover, .hdback:focus-visible { color: var(--ink); border-color: var(--ink); }
@media (max-width: 560px) { .hdback { width: 44px; height: 44px; } }
/* Логотип в шапке по весу равен знаку «Было-Было» и пунктам меню, а не крупнее их. */
.mi-logo { display: block; height: 28px; width: auto; }
.hd a:has(> .mi-logo) { display: block; padding: 4px 0; border-radius: var(--r1); transition: opacity .2s ease; }
.hd a:has(> .mi-logo):hover { opacity: .82; }
@media (max-width: 560px) { .hd .mi-logo { height: 26px; } }
.hd { min-height: 64px; }

.fork { height: 100%; min-height: 560px; position: relative; display: flex; overflow: hidden; background: var(--room); }
.fork .side { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px clamp(20px, 4cqw, 56px); text-align: left; transition: transform .5s cubic-bezier(.7, 0, .3, 1); overflow: hidden; cursor: pointer; }
.fork .l { background: var(--room); color: var(--ink); }
.fork .rr { background: var(--paper); color: var(--graph); }
/* Переход: развилка раздвигается — соседняя половина уезжает, выбранная следом. Только transform, без пересчёта раскладки. */
.fork.go .ask, .fork.go .forkfoot, .fork.go .side > .bits { opacity: 0; }
/* Шторка перехода: пиксели цвета выбранной половины. Вход с развилки закрыт цветом до первой отрисовки. */
.curtain { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 80; pointer-events: none; }
/* Загрузка «Проявка» (/welcome-enter.js): пока экран закрыт, анимации страницы стоят и стартуют при открытии. */
html.boot body * { animation-play-state: paused !important; }
.fork .pic { position: absolute; inset: 0; opacity: 1; transition: opacity .5s ease, transform 1.2s var(--e-out); }
.fork .rr .pic { opacity: .9; }
.fork .side:hover .pic { opacity: 1; transform: scale(1.03); }
.fork .l .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,11,9,.72) 0 34%, rgba(15,11,9,.1) 58%, rgba(15,11,9,.95) 92%); }
.fork .rr .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244,241,234,.8) 0 34%, rgba(244,241,234,.1) 58%, rgba(244,241,234,.97) 92%); }
.fork .bits { position: relative; display: flex; flex-direction: column; gap: 10px; transition: opacity .25s ease; }
.fork .big { font: 500 clamp(26px, 4.2cqw, 62px)/1.02 var(--f-d); letter-spacing: -.04em; }
.fork .sub { max-width: 40ch; font-size: clamp(14px, 1.2cqw, 16px); opacity: .85; }
.fork .go { margin-top: 8px; }
.ask { position: absolute; left: 0; right: 0; top: clamp(60px, 9cqh, 96px); z-index: 3; margin: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: baseline; font: 500 clamp(30px, 4.4cqw, 68px)/1 var(--f-d); letter-spacing: -.045em; pointer-events: none; transition: opacity .2s ease; }
/* Вопрос разрезан швом развилки: «Вы к нам» на тёмной половине, «за чем?» на светлой, на шве оранжевый квадрат. */
.ask span:first-child { text-align: right; padding-right: .3em; color: var(--ink); }
.ask span:last-child { position: relative; padding-left: .3em; color: var(--graph); }
.ask span:last-child::before { content: ""; position: absolute; left: -.12em; top: .36em; width: .24em; height: .24em; background: var(--sig); }
.forkhd { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 4; pointer-events: none; }
.forkhd > * { pointer-events: auto; }
.forkfoot u { text-underline-offset: 3px; text-decoration-color: var(--sig); }
.fork { height: auto; min-height: max(620px, 100dvh); }
.fork .side { color: inherit; text-decoration: none; }
.fork .side.l { color: var(--ink); } .fork .side.rr { color: var(--graph); }
.fork .big { font-size: clamp(26px, 3.7cqw, 54px); }
.fork .go { align-self: flex-start; }
.fork .wl-mark { align-self: flex-start; margin-bottom: 6px; font-size: clamp(15px, 1.5cqw, 21px); }
.fork .mi-logo { height: clamp(36px, 3.6cqw, 52px); margin-bottom: 8px; align-self: flex-start; }
.forkfoot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; margin: 0; font-size: 13px; text-align: center; background: var(--room2); color: var(--ink); border-top: 1px solid var(--rline2); padding: 11px 16px; transition: opacity .2s ease; }
.fork .side { padding-bottom: 66px; }
.fork .l .pic::after { background: linear-gradient(180deg, rgba(15,11,9,.85) 0, rgba(15,11,9,0) 17%, rgba(15,11,9,0) 62%, rgba(15,11,9,.9) 73%, rgba(15,11,9,1) 90%); }
.fork .side:focus-visible { outline: 2px solid var(--sig); outline-offset: -6px; }
.fork .rr .pic::after { background: linear-gradient(180deg, rgba(244,241,234,.9) 0, rgba(244,241,234,0) 17%, rgba(244,241,234,0) 60%, rgba(244,241,234,.94) 72%, rgba(244,241,234,1) 90%); }
.fork .rr .pic { opacity: 1; }
@container fr (max-width: 620px) {
  .fork { flex-direction: column; min-height: max(780px, 100svh); } /* телефон: обе половины в экране; на низких (664 px у iPhone 13 с панелями Safari) — лёгкая прокрутка вместо наложения сцен на текст */
  .fork .side { padding: 16px 20px 18px; flex: 1 1 0; } .fork .bits { gap: 8px; } .fork .sub { font-size: 13.5px; line-height: 1.4; } .fork .go { margin-top: 2px; }
  .fork .mi-logo { height: 24px; margin-bottom: 0; } .fork .wl-mark { font-size: 15px; margin-bottom: 0; }
  .ask { top: 58px; display: block; padding-inline: 20px; font-size: min(32px, 8.2cqw); }
  .ask span:first-child { padding: 0; }
  .ask span:last-child { padding: 0; color: var(--sig); }
  .ask span:last-child::before { display: none; }
  .fork .big { font-size: 26px; }
  .fork .rr { padding-bottom: 70px; }
  .fork .rr .pic::after { background: linear-gradient(180deg, rgba(244,241,234,.85) 0, rgba(244,241,234,0) 6%, rgba(244,241,234,0) 40%, rgba(244,241,234,.95) 50%, rgba(244,241,234,1) 64%); }
}
@container fr (max-width: 880px) {
  .fork .side canvas.fx { transform: translateY(-26%); -webkit-mask-image: linear-gradient(#000 42%, transparent 62%); mask-image: linear-gradient(#000 42%, transparent 62%); }
  .fork .side canvas.fx[data-fx="book"], .fork .side canvas.fx[data-fx="workshop"] { transform: none; -webkit-mask-image: none; mask-image: none; }
}
.fork .side .pv-logo__w2 { opacity: .85; }

.lp { color: var(--ink); background: var(--room); min-height: 100%; --scr: calc(100svh - 64px); }
/* Блок = экран: первый экран и каждый смысловой блок не ниже окна под шапкой, содержимое по центру; рядом стоящие
   тёмные блоки разделены линией. На телефоне блоки обычной высоты. */
.lp > section:not(.cine) { min-height: var(--scr); display: flex; flex-direction: column; justify-content: center; }
.lp > section > .inner { width: 100%; min-width: 0; }
.lp > section.on-room + section.on-room { border-top: 1px solid var(--rline); }
@media (max-width: 760px) { .lp > section:not(.cine) { min-height: 0; } }
/* Вход блока: содержимое проявляется, когда блок появляется на экране (классы ставит welcome.js). */
.rv .rvi { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--e-out), transform .55s var(--e-out); transition-delay: calc(var(--i, 0) * 40ms); }
.rv.in .rvi { opacity: 1; transform: none; }
.lp section { --padb: clamp(46px, 7cqw, 100px); padding-block: var(--padb); padding-inline: clamp(20px, 5cqw, 72px); position: relative; }
.lp .paper { background: var(--paper); color: var(--graph); }
.lp .inner { max-width: 1240px; margin: 0 auto; }
.lp h2 { font: 400 clamp(26px, 3.4cqw, 48px)/1.08 var(--f-d); letter-spacing: -.03em; max-width: 22ch; }
.lp .lead { font-size: clamp(16px, 1.4cqw, 19px); line-height: 1.5; max-width: 52ch; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4cqw, 56px); align-items: center; min-height: min(84cqh, 780px); }
.hero h1 { font: 400 clamp(34px, 5.4cqw, 82px)/1 var(--f-d); letter-spacing: -.045em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cross { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; font-size: 13.5px; color: var(--dim); text-decoration: underline; text-decoration-color: var(--rline2); text-underline-offset: 3px; }
.sheet24 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.sheet24 .ph { aspect-ratio: 3/4; background: var(--room2); overflow: hidden; position: relative; border-radius: 1px; }
.who3 { display: grid; gap: 1px; background: var(--pline); border: 1px solid var(--pline); }
.who3 div { background: var(--sheet); padding: 14px 16px; display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--pline); margin-top: 30px; border: 1px solid var(--pline); }
.feat > div { background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 8px; min-height: 170px; }
.feat b { font: 500 17px/1.2 var(--f-d); letter-spacing: -.02em; }
.feat p { color: var(--g2); font-size: 14px; }
.final { text-align: left; }
/* Два абзаца под развилкой: кто мы, словами для людей и поисковиков. Первый экран развилки не меняется. */
.forkabout { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 40px; padding: 28px clamp(20px,5cqw,72px) 24px; color: var(--dim); font-size: 13.5px; line-height: 1.55; }
.forkabout p { margin: 0; max-width: 60ch; }
.forkabout b { color: var(--ink); font-weight: 500; }
.foot { padding: 24px clamp(20px,5cqw,72px); border-top: 1px solid var(--rline); display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; color: var(--dim); font-size: 12.5px; }
.foot a { color: inherit; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.nw { white-space: nowrap; }
.eb { display: block; margin-bottom: 10px; }
.eb.g3 { color: var(--g3); }
.paper .lead { color: var(--g2); }
.feat.dark { background: var(--rline); border-color: var(--rline); }
.feat.dark > div { background: var(--room); min-height: 0; }
.feat.dark p { color: var(--dim); }
.who3 span:first-child { color: var(--g3); }
.mt14 { margin-top: 14px; } .mt18 { margin-top: 18px; } .mt22 { margin-top: 22px; } .mt26 { margin-top: 26px; }
.cross.onp-c { color: var(--g2); text-decoration-color: var(--pline2); }
.sig-deep { color: #D93B0D; }
.under { text-decoration: underline; text-underline-offset: 3px; }
.final h2 { font-size: clamp(30px, 5cqw, 68px); max-width: 17ch; }
.final .cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.terms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: 26px; background: var(--pline); border: 1px solid var(--pline); }
.terms > div { background: var(--paper); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.terms dt { font-size: 13px; color: var(--g2); }
.terms dd { font: 500 clamp(15px, 1.4cqw, 18px)/1.2 var(--f-d); letter-spacing: -.02em; }
.prints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
.prints h3 { font: 500 20px/1.2 var(--f-d); margin-bottom: 8px; }
.prints li { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-top: 1px solid var(--rline); }
.prints li b { font-weight: 500; white-space: nowrap; }

.bookhero { display: grid; grid-template-columns: 1fr 1fr; min-height: var(--scr); }
.bookhero > div { padding: clamp(28px, min(5cqw, 6svh), 72px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.bookhero .a { background: var(--room); align-items: center; position: relative; overflow: hidden; }
/* Фон под книгой: спокойный прилив, к краям растворяется — без обрыва на стыке. */
.bookhero .a > canvas.fx[data-fx="sunset"] { pointer-events: none; }
/* Книга на закате парит, под ней тёплое пятно света. */
.bookhero .book3d { animation: bob 6s ease-in-out infinite; }
.bookhero .book3d::before { background: radial-gradient(closest-side, rgba(255,200,120,.35), rgba(255,122,61,.12) 55%, transparent 75%); }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .bookhero .book3d { animation: none; } }
.bookhero > .b { background: radial-gradient(110% 70% at 100% 0, #FFE2C7 0, rgba(255,226,199,0) 62%), radial-gradient(80% 60% at 0 100%, #F9E7D2 0, rgba(249,231,210,0) 70%), var(--paper); }
.bookhero .fmt button { background: rgba(255,255,255,.55); }
.bookhero .fmt button[aria-pressed="true"] { background: var(--sig); border-color: var(--sig); color: #fff; box-shadow: 0 10px 26px -12px rgba(255,79,26,.75); }
.bookhero .fmt button[aria-pressed="true"] small { color: rgba(255,255,255,.85); }
.bookhero .b { background: var(--paper); color: var(--graph); }
.bookhero h1 { font: 400 clamp(30px, min(4cqw, 6.2svh), 60px)/1.02 var(--f-d); letter-spacing: -.045em; }
.fmt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 24px; }
.fmt button { padding: 12px; border: 1px solid var(--pline2); border-radius: var(--r2); text-align: left; display: flex; flex-direction: column; gap: 3px; transition: background .15s ease; min-height: 80px; min-width: 0; }
.fmt button b { font-weight: 600; }
.fmt button small { color: var(--g3); font-size: 12px; }
.fmt button:hover { background: var(--paper2); }
.fmt button[aria-pressed="true"] { background: var(--graph); color: var(--paper); border-color: var(--graph); }
.fmt button[aria-pressed="true"] small { color: #c9c1b4; }
.pricebig { font: 500 clamp(32px, 3.6cqw, 50px)/1 var(--f-d); letter-spacing: -.03em; margin-top: 20px; display: flex; align-items: baseline; gap: 10px; }
/* Книга — цельный брусок: шесть граней, квадратный корешок, светлая обложка видна на тёмном. */
.book3d { --t: 26px; --w: min(62cqw, 320px); width: var(--w); aspect-ratio: 4/5; perspective: 1400px; position: relative; isolation: isolate; }
.book3d::before { content: ""; position: absolute; inset: -30% -40%; background: radial-gradient(closest-side, rgba(255,196,150,.2), rgba(255,140,80,.06) 55%, transparent 75%); pointer-events: none; }
.book3d::after { content: ""; position: absolute; left: 4%; right: -8%; bottom: -9%; height: 12%; background: radial-gradient(closest-side, rgba(0,0,0,.7), transparent); filter: blur(4px); pointer-events: none; z-index: -1; }
.book3d .b3 { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(var(--ry, 18deg)) rotateX(var(--rx, 6deg)); transition: transform .45s var(--e-out); }
.book3d .b3 > div { position: absolute; backface-visibility: hidden; }
.book3d .cov { inset: 0; transform: translateZ(calc(var(--t) / 2)); background: #F2ECE1; color: var(--graph); padding: 7% 7% 8%; display: flex; flex-direction: column; gap: 6%; box-shadow: inset 0 0 0 1px rgba(21,18,14,.08), inset -1px 0 0 rgba(255,255,255,.6); }
.book3d .cov .ph { position: relative; flex: 1; min-height: 0; background: var(--room); overflow: hidden; }
.book3d .cov .t { font: 500 clamp(18px, 2.4cqw, 30px)/1.02 var(--f-d); letter-spacing: -.04em; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.book3d .cov .t small { font: 500 clamp(9px, .75cqw, 10.5px)/1.3 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--g3); text-align: right; }
.book3d .bk { inset: 0; transform: translateZ(calc(var(--t) / -2)) rotateY(180deg); background: #E6DED0; }
.book3d .sp { top: 0; bottom: 0; left: calc(var(--t) / -2); width: var(--t); transform: rotateY(-90deg); background: #E2D8C7; box-shadow: inset 1px 0 0 rgba(255,255,255,.5), inset -1px 0 0 rgba(21,18,14,.18); transition: width .5s var(--e-out), left .5s var(--e-out); }
.book3d .sp::after { content: "БЫЛО ▪ БЫЛО"; position: absolute; inset: 0; display: grid; place-items: center; writing-mode: vertical-rl; font: 500 clamp(5px, calc(var(--t) * .42), 8px)/1 var(--f-m); letter-spacing: .14em; color: var(--g2); }
.book3d .pg { top: 1.2%; bottom: 1.2%; right: calc(var(--t) / -2 + 1px); width: calc(var(--t) - 2px); transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #F7F3EA 0 1px, #D9D1C2 1px 2px); transition: width .5s var(--e-out), right .5s var(--e-out); }
.book3d .tp { left: 0; right: 1px; top: calc(var(--t) / -2 + 1px); height: calc(var(--t) - 2px); transform: rotateX(90deg); background: repeating-linear-gradient(0deg, #F7F3EA 0 1px, #DCD4C5 1px 2px); transition: height .5s var(--e-out), top .5s var(--e-out); }
.book3d .bt { left: 0; right: 1px; bottom: calc(var(--t) / -2 + 1px); height: calc(var(--t) - 2px); transform: rotateX(-90deg); background: #CFC6B6; transition: height .5s var(--e-out), bottom .5s var(--e-out); }
canvas.px { display: block; width: 100%; height: 100%; image-rendering: pixelated; object-fit: cover; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 30px; }
.steps4 .s { border: 1px solid var(--rline); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.steps4 .pic { aspect-ratio: 4/3; background: var(--room2); overflow: hidden; }
.steps4 b { font: 500 16px/1.2 var(--f-d); }
.steps4 p { font-size: 13.5px; color: var(--dim); }
/* Примеры разворотов стоят рядом без прокрутки: их всего два, листать нечего. */
.reel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.reel .spread { width: auto; }
@media (max-width: 760px) { .reel { grid-template-columns: minmax(0, 1fr); } }
.spread { flex: none; width: min(78cqw, 620px); aspect-ratio: 2/1.25; background: var(--sheet); display: grid; grid-template-columns: 1fr 1fr; padding: 3px; position: relative; scroll-snap-align: center; box-shadow: 0 14px 40px rgba(21,18,14,.2); }
.spread::after { content: ""; position: absolute; inset: 0 calc(50% - 16px); background: linear-gradient(90deg, transparent, rgba(0,0,0,.14) 48%, rgba(0,0,0,.14) 52%, transparent); pointer-events: none; }
.spread .pgx { padding: 7%; display: flex; flex-direction: column; gap: 8%; color: var(--graph); overflow: hidden; min-height: 0; }
.spread .ph { flex: 1; min-height: 0; overflow: hidden; background: var(--paper2); }
.spread .ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spread .full { padding: 0; }
.spread .cap { font: 500 clamp(9px, 1.5cqw, 15px)/1.15 var(--f-d); letter-spacing: -.02em; }
.spread .mic { font: 400 clamp(10px, .8cqw, 11px)/1.3 var(--f-m); color: var(--g3); }
.pricebig .small { font-family: var(--f-t); letter-spacing: 0; font-weight: 400; }
.cover-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }


canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
canvas.fx.mask-r { -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 72%); mask-image: linear-gradient(90deg, transparent 18%, #000 72%); }
.hasfx { position: relative; overflow: clip; }
.hasfx > *:not(.fx) { position: relative; z-index: 1; }

.pricing h3 { font: 500 16px/1.2 var(--f-d); letter-spacing: -.02em; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rline2); border: 1px solid var(--rline2); margin-top: 26px; }
.facts > div { background: var(--room); padding: 16px; display: flex; flex-direction: column; gap: 5px; }
.facts b { font: 500 clamp(17px, 1.7cqw, 22px)/1.1 var(--f-d); letter-spacing: -.02em; }
.facts span { color: var(--dim); font-size: 13px; }
/* Одна цена партнёрам (12.11): что входит — списком, без калькулятора. */
.lines > div { display: flex; justify-content: space-between; gap: 10px; padding-block: 7px; border-top: 1px solid var(--rline); font-size: 13.5px; }
.lines span { color: var(--dim); }
.sbg { min-height: 150px; }
.stx { padding: clamp(16px, 2cqw, 26px); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; justify-content: center; }
.stx h3 { font-size: clamp(20px, 2cqw, 28px); }
.stx p { color: var(--dim); max-width: 58ch; }
.badge { font: 600 10.5px var(--f-m); letter-spacing: .06em; text-transform: uppercase; background: var(--sig); color: var(--sig-ink); padding: 5px 8px; border-radius: var(--r1); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 30px; background: var(--room); padding: 20px; border: 1px solid var(--rline); }
.rules ul { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--dim); }
.rules a { color: var(--ink); }

@container fr (max-width: 880px) {
  .hero, .bookhero { grid-template-columns: minmax(0, 1fr); }
  .hero, .bookhero { min-height: 0; }
  .feat, .steps4 { grid-template-columns: 1fr 1fr; }
  .bookhero .a { padding-block: 36px; }
  .film { grid-auto-columns: minmax(84px, 1fr); overflow-x: auto; }
  .rules, .prints { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sbg { min-height: 110px; }
  canvas.fx.mask-r { -webkit-mask-image: none; mask-image: none; opacity: .55; }
}
@container fr (max-width: 620px) {
  .sheet24 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet24 .ph:nth-child(n+10) { display: none; }
}
@container fr (max-width: 480px) {
  .feat { grid-template-columns: minmax(0, 1fr); }
  .steps4 .s { padding: 12px; min-height: 0; }
  .steps4 b { font-size: 14.5px; }
  .steps4 p { font-size: 12.5px; }
  .fmt button { padding: 10px; }
}

/* Сборка книги без входа: книга слева стоит на месте, справа выбор, итог прилипает снизу. */
.build { display: flex; flex-direction: column; }
.build > .hd { background: var(--room); color: var(--ink); }
.split2 { display: grid; grid-template-columns: 1.15fr 1fr; }
.split2 > .a { background: var(--room); color: var(--ink); padding: clamp(18px,3cqw,40px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.split2 > .b { background: var(--paper); color: var(--graph); padding: clamp(18px,3cqw,40px); display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.split2 > .a.hasfx > .fx { position: absolute; inset: 0; }
.bstage { position: sticky; top: 0; height: 100vh; align-items: center; justify-content: center; overflow: hidden; }
.bookbox { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 340px; }
.bookbox .book3d { --w: min(32cqw, 330px); }
.bspec { position: relative; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; width: 100%; color: var(--dim); font-size: 10.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* Прежняя цена рядом с новой (решение владельца 12.11.2026): тот же цвет текста, приглушённо, без нового цвета. */
.was { font-weight: 400; opacity: .6; text-decoration-thickness: 1px; white-space: nowrap; }
.pricebig .was, .bsum strong .was { font-size: .5em; letter-spacing: 0; }
/* Прежняя цена — отдельной строкой: цифры новой цены не разрываются, «₽» не уходит вниз. */
.tot .pricebig .was { grid-column: 1 / -1; justify-self: end; }
.fmt button .was { display: block; font-size: 12px; }
.fmt button b:last-of-type { white-space: nowrap; }
.was[hidden] { display: none; }
.small { font-size: 13px; line-height: 1.45; color: var(--g3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--pline2); border-radius: var(--r2); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.chips button:hover { background: var(--paper2); }
.chips button[aria-pressed="true"] { background: var(--graph); color: var(--paper); border-color: var(--graph); }
.stepper { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--pline2); border-radius: var(--r2); }
.stepper button { width: 42px; height: 42px; font-size: 18px; }
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 30px; text-align: center; font: 500 15px var(--f-m); }
.bq { display: flex; flex-direction: column; gap: 10px; }
.bq[hidden], .optrow[hidden], .chips[hidden] { display: none; }
.bq h1 { font: 500 clamp(26px, 3cqw, 38px)/1.08 var(--f-d); letter-spacing: -.03em; }
.bq h2 { font: 500 15px/1.2 var(--f-t); display: flex; gap: 8px; align-items: center; }
.bq h2 i { font: 500 10px var(--f-m); width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--graph); color: var(--paper); }
.bq .fmt { margin-top: 0; }
.fmt .fp { font-weight: 600; margin-top: 5px; font-size: 14px; }
.field input { width: 100%; height: 46px; border: 1px solid var(--pline2); background: var(--sheet); border-radius: var(--r2); padding: 0 12px; color: var(--graph); font-size: 16px; }
.field input:focus { outline: 2px solid var(--sig); outline-offset: 0; border-color: transparent; }
.optrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 10px; border-top: 1px solid var(--pline); }
.optrow.col { flex-direction: column; align-items: stretch; }
.optrow > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.optrow small { color: var(--g3); font-size: 13px; }
.bsum { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--graph); padding-top: 14px; position: sticky; bottom: 0; z-index: 5; background: var(--paper); box-shadow: 0 -14px 20px -14px rgba(21,18,14,.18); padding-bottom: 14px; }
.bsum .bt { display: flex; justify-content: space-between; align-items: baseline; }
.bsum strong { font: 500 clamp(30px, 3cqw, 42px)/1 var(--f-d); letter-spacing: -.03em; display: inline-flex; gap: 8px; align-items: baseline; }
.bnotes { padding-bottom: 24px; }
@container (max-width: 860px) {
  .split2 { grid-template-columns: minmax(0, 1fr); }
  .bstage { position: relative; top: 0; height: auto; }
  .bookbox { min-height: 250px; }
  .bookbox .book3d { --w: min(44cqw, 210px); }
  .bsum { margin-inline: -18px; padding: 10px 18px 12px; gap: 6px; }
  .bsum strong { font-size: 26px; }
  .build > .hd .t { display: none; }
  .build > .hd { grid-template-columns: 1fr auto; }
}

/* Партнёры: кино-экран. Стена разворотов на весь экран, текст на затемнении слева. */
.cine { min-height: var(--scr); display: flex; align-items: center; background: var(--room); position: relative; overflow: hidden; }
.cine canvas.wall { position: absolute; inset: 0; width: calc(100% + 2px); height: 100%; display: block; image-rendering: pixelated; }
.cine::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(130% 100% at 18% 82%, rgba(11,9,8,.97) 0, rgba(11,9,8,.82) 40%, rgba(11,9,8,.12) 76%), linear-gradient(180deg, rgba(11,9,8,.55), transparent 18%), /* затухание стены книзу: вместо маски на холсте */ linear-gradient(180deg, rgba(15,11,9,0) 70%, #0F0B09); }
.cine .inner { /* текст отдельным слоем: стена под ним перерисовывается каждый кадр, буквы не мигают */ position: relative; z-index: 1; width: 100%; max-width: 1560px; transform: translateZ(0); backface-visibility: hidden; }
.cine h1 { font: 400 clamp(38px, min(6.4cqw, 10.5svh), 128px)/.98 var(--f-d); letter-spacing: -.045em; max-width: 11ch; }
/* Телефон: самое длинное слово заголовка («верстальщиком.» = 9,72 кегля) целиком помещается в блок; от 415 px кегль прежний. */
@media (max-width: 430px) { .cine h1 { font-size: min(38px, calc((100vw - 42px) / 9.8)); } }
.cine .lead { color: #E9E0D7; margin-top: 18px; }
.cine .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cine .note { display: flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 12.5px; color: var(--dim); }
.cine .note::before { content: ""; width: 6px; height: 6px; background: var(--sig); flex: none; }
/* Калькулятор: сначала дети, потом книга; лишнее свёрнуто. */
.more { border-top: 1px solid var(--pline); padding-top: 4px; }
.more summary, .fold summary, .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-weight: 600; padding-block: 12px; }
.more summary::-webkit-details-marker, .fold summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.more summary::after, .fold summary::after, .faq summary::after { content: "+"; font: 500 16px var(--f-m); color: var(--g3); transition: transform .25s var(--e-out); }
.more[open] summary::after, .fold[open] summary::after, .faq details[open] summary::after { transform: rotate(45deg); }
.more > div { display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; }
.facts.thin { margin-top: 14px; }
.folds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rline); border: 1px solid var(--rline); margin-top: 14px; }
.fold { background: var(--room); padding: 4px 18px 6px; }
.fold summary { font: 500 15px/1.2 var(--f-d); letter-spacing: -.02em; }
.fold ul { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; font-size: 14px; color: var(--dim); }
.fold a { color: var(--ink); }
/* Кабинет: живой список заказов вместо карточек. */
.cab { display: grid; grid-template-columns: 190px minmax(0, 1fr); margin-top: 30px; border: 1px solid var(--rline2); border-radius: var(--r2); overflow: hidden; background: var(--room2); }
.cab nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--rline); }
.cab nav span { padding: 9px 10px; border-radius: var(--r1); color: var(--dim); font-size: 14px; }
.cab nav span.on { background: var(--room3); color: var(--ink); }
.cab .ol { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ord { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 16px; background: var(--room); border: 1px solid var(--rline); border-radius: var(--r2); }
.ord b { font: 500 15px/1.25 var(--f-d); letter-spacing: -.02em; }
.ord small { color: var(--dim); font-size: 13px; }
.ord .film { grid-column: 1 / -1; padding-block: 5px; margin-top: 4px; }
.ord .film .f { padding: 0; height: 6px; border-radius: 1px; }
.tag { font: 500 10px/1 var(--f-m); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: var(--r1); background: var(--room3); color: var(--ink); white-space: nowrap; justify-self: end; }
.tag.s { background: rgba(255,79,26,.16); color: #FF8A60; }
/* Вопросы. */
.faq { margin-top: 26px; border-top: 1px solid var(--pline2); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--pline2); }
.faq summary { font: 500 clamp(16px, 1.5cqw, 19px)/1.3 var(--f-d); letter-spacing: -.02em; padding-block: 18px; }
.faq p { padding-bottom: 18px; max-width: 64ch; color: var(--g2); }
.on-room .faq, .on-room .faq details { border-color: var(--rline2); }
.on-room .faq p { color: var(--dim); }
/* Книга: темы примеров. */
.themes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.themes button { min-height: 40px; padding: 8px 16px; border: 1px solid var(--pline2); border-radius: 999px; font-size: 14px; transition: background .15s ease, color .15s ease; }
.themes button:hover { background: var(--paper2); }
.themes button[aria-pressed="true"] { background: var(--graph); color: var(--paper); border-color: var(--graph); }
.spread .grid2 { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 5%; min-height: 0; }
.spread .grid2 .wd { grid-column: 1 / -1; }
.spread .grid2 > div { overflow: hidden; background: var(--paper2); min-height: 0; }
.incl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--pline); border: 1px solid var(--pline); margin-top: 26px; }
.incl > div { background: var(--sheet); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.incl b { font: 500 clamp(18px, 1.8cqw, 24px)/1.1 var(--f-d); letter-spacing: -.03em; }
.incl span { color: var(--g2); font-size: 14px; }
@container fr (max-width: 880px) {
  .folds, .incl { grid-template-columns: minmax(0, 1fr); }
  .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cab { grid-template-columns: minmax(0, 1fr); }
  .cab nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--rline); }
  .cab nav span { white-space: nowrap; }
  .cine { align-items: flex-end; }
  .cine .inner { padding-top: 36svh; }
}
@container fr (max-width: 480px) {
  .ord { grid-template-columns: minmax(0, 1fr); }
  .tag { justify-self: start; }
}

/* Доплаты прямо в калькуляторе: строка — название слева, цена справа. */
/* Особые случаи свёрнуты: калькулятор по умолчанию — два вопроса и итог. */
.lines b { white-space: nowrap; }

/* Переход между страницами лендингов: браузер плавно сменяет кадр, новая страница проявляется своим .dv. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* Стыки секций: поле калькулятора проявляется сверху, а не обрывается. */
.pricing > canvas.fx.mask-r { -webkit-mask-image: linear-gradient(transparent, #000 160px), linear-gradient(90deg, transparent 18%, #000 72%); -webkit-mask-composite: source-in; mask-image: linear-gradient(transparent, #000 160px), linear-gradient(90deg, transparent 18%, #000 72%); mask-composite: intersect; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Структура лендингов 09.11: ссылки шапки, опции расчёта, блок «что мы берём», мобильная плашка. */
/* Блок = экран: к блоку прокручиваем так, чтобы он вставал ровно под шапку. */
.lp > section, .lp section[id], .lp [id="formats"] { scroll-margin-top: 64px; }
.hd .hdl { color: var(--dim); font-size: 13.5px; text-decoration: none; padding: 6px 8px; border-radius: var(--r1); white-space: nowrap; }
.hd .hdl:hover, .hd .hdl:focus-visible { color: var(--ink); }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4cqw, 56px); align-items: stretch; }
.duo-t { display: flex; flex-direction: column; justify-content: center; }
.duo-p { min-height: 460px; border-radius: var(--r2); background: var(--room); }
.offl { margin: 26px 0 0; display: flex; flex-direction: column; gap: 18px; }
.offl > div { border-top: 1px solid var(--pline2); padding-top: 14px; }
.offl dt { font: 500 clamp(18px, 1.8cqw, 24px)/1.15 var(--f-d); letter-spacing: -.02em; }
.offl dd { margin: 6px 0 0; color: var(--g2); max-width: 46ch; }
.who3.onroom { background: var(--rline); border-color: var(--rline); }
.who3.onroom div { background: var(--room2); }
.who3.onroom span:first-child { color: var(--dim); }
.facts.onp { background: var(--pline2); border-color: var(--pline2); }
.facts.onp > div { background: var(--sheet); }
.facts.onp span { color: var(--g2); }
@container fr (max-width: 880px) {
  .hd .hdl.wide { display: none; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo-p { min-height: 420px; }
}
@media (max-width: 760px) {
  .mbar { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; background: var(--room2); color: var(--ink); border: 1px solid var(--rline2); border-radius: var(--r2); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s var(--e-out), opacity .3s ease; }
}
.ftab { margin-top: 26px; border: 1px solid var(--pline2); border-radius: var(--r2); overflow: hidden; background: var(--sheet); max-width: 860px; }
.ftab > div { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--pline); align-items: baseline; transition: background .25s ease; }
.ftab > .fr0 { border-top: 0; font: 500 10.5px var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--g3); padding-block: 10px; }
.ftab > div b { font: 500 17px/1.2 var(--f-d); letter-spacing: -.02em; }
.ftab > div > :last-child { text-align: right; white-space: nowrap; }
.ftab > div.on { background: rgba(255,79,26,.08); box-shadow: inset 3px 0 0 var(--sig); }
.ftn { margin: 14px 0 0; color: var(--g2); }
.faq.onroom { border-top-color: var(--rline2); }
.faq.onroom details { border-bottom-color: var(--rline2); }
.faq.onroom summary::after { color: var(--dim); }
.faq.onroom p { color: var(--dim); }
.prints.onp li { border-top-color: var(--pline); }
@media (max-width: 560px) { .ftab > div { grid-template-columns: 1.1fr .8fr 1fr 1fr; padding-inline: 12px; gap: 8px; } .ftab > div b { font-size: 15px; } }

/* Памятная книга: о чём книга, сколько книг, главная кнопка. */
.mood { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 18px; }
.mood button { min-height: 36px; padding: 7px 14px; border: 1px solid var(--pline2); border-radius: 999px; font-size: 13.5px; background: rgba(255,255,255,.5); transition: background .18s ease, color .18s ease, border-color .18s ease, transform .16s var(--e-out); }
.mood button:hover { background: #fff; }
.mood button:active, .fmt button:active { transform: scale(.97); }
.mood button[aria-pressed="true"] { background: var(--graph); color: var(--paper); border-color: var(--graph); }
.hw { transition: opacity .2s ease, filter .2s ease; }
.hw.sw { opacity: 0; filter: blur(6px); }
.tot { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 20px; flex-wrap: wrap; margin-top: 18px; }
.qty { display: flex; align-items: center; gap: 14px; }
.qty .stepper { flex: none; }
.qty .lbl { font-weight: 600; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.qty .lbl small { font-weight: 400; font-size: 12.5px; color: var(--g3); }
.tot .pricebig { margin: 0; display: grid; grid-template-columns: auto auto; justify-content: end; align-items: baseline; gap: 4px 10px; }
.tot .pricebig .small { grid-column: 1 / -1; text-align: right; font-size: 13px; color: var(--g3); }
.gobook { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 64px; margin-top: 18px; padding: 0 12px 0 26px; border-radius: var(--r2); background: var(--sig); color: #fff; font: 600 17px/1 var(--f-t); text-decoration: none; box-shadow: 0 18px 36px -18px rgba(255,79,26,.85), inset 0 -2px 0 rgba(0,0,0,.12); transition: transform .16s var(--e-out), box-shadow .2s ease, background .2s ease; }
.gobook:hover { background: #FF6230; box-shadow: 0 24px 44px -18px rgba(255,79,26,.95), inset 0 -2px 0 rgba(0,0,0,.12); }
.gobook:active { transform: scale(.98); }
.gobook:focus-visible { outline: 2px solid var(--graph); outline-offset: 3px; }
.gobook i { width: 42px; height: 42px; flex: none; border-radius: calc(var(--r2) - 3px); background: rgba(255,255,255,.18); display: grid; place-items: center; font-style: normal; transition: transform .2s var(--e-out); }
.gobook i::before { content: "→"; font-size: 19px; }
.gobook:hover i { transform: translateX(3px); }
/* Пиксельный блик: раз в несколько секунд по кнопке проходит полоса зерна «Проявки». */
.gobook::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: conic-gradient(rgba(255,255,255,.3) 25%, transparent 0 50%, rgba(255,255,255,.3) 0 75%, transparent 0) 0 0 / 6px 6px; -webkit-mask: linear-gradient(100deg, transparent 38%, #000 50%, transparent 62%) 100% 0 / 300% 100% no-repeat; mask: linear-gradient(100deg, transparent 38%, #000 50%, transparent 62%) 100% 0 / 300% 100% no-repeat; animation: sheen 6.5s ease-in-out 1.4s infinite; }
@keyframes sheen { 0% { -webkit-mask-position: 100% 0; mask-position: 100% 0; } 30%, 100% { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.buynote { margin-top: 10px; font-size: 13px; color: var(--g3); }
/* Невысокий экран ноутбука: первый экран памятной книги плотнее, чтобы главная кнопка была видна без прокрутки. */
@media (max-height: 820px) and (min-width: 900px) {
  .bookhero .b > .eb { display: none; }
  .bookhero .mood { margin-top: 0; }
  .bookhero .fmt { margin-top: 16px; }
  .bookhero .fmt button { min-height: 0; padding: 9px 12px; }
  .bookhero .lead { margin-top: 10px; }
  .gobook { min-height: 56px; margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { .gobook::after { animation: none; opacity: 0; } .rv .rvi { opacity: 1; transform: none; } }
/* Шаги памятной книги рядом со сценой: активный шаг подсвечивается вместе с ней. */ .on-room .duo-p { border: 1px solid var(--rline); }
.flow { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; counter-reset: fl; }
.flow li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; padding: 11px 14px; border: 1px solid transparent; border-radius: var(--r2); transition: background .35s ease, border-color .35s ease; }
.flow li::before { counter-increment: fl; content: "0" counter(fl); grid-row: span 2; padding-top: 5px; font: 500 11px var(--f-m); color: var(--dim); transition: color .35s ease; }
.flow b { font: 500 clamp(16px, 1.5cqw, 19px)/1.2 var(--f-d); letter-spacing: -.02em; }
.flow p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.45; }
.flow li.on { background: var(--room2); border-color: var(--rline2); }
.flow li.on::before { color: var(--sig); }
/* Отклик на нажатие у всех переключателей: короткое сжатие сразу под пальцем, без задержки двойного касания. */ button, summary, .check, a.btn, .gobook { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.chips button, .stepper button, .ptar button, .themes button, .film .f { transition: transform .14s var(--e-out), background-color .18s ease, border-color .18s ease, color .18s ease; }
.chips button:active, .stepper button:active:not(:disabled), .ptar button:active, .themes button:active, .film .f:active { transform: scale(.97); }
.more summary, .fold summary, .faq summary, .xo > summary { transition: opacity .15s ease; }
.more summary:active, .fold summary:active, .faq summary:active, .xo > summary:active { opacity: .72; }
/* Кто мы — плашкой на тёмной подложке: поверх пёстрой стены разворотов мелкий текст иначе теряется. */ .since { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 18px; padding: 9px 14px 9px 12px; background: rgba(15,11,9,.88); border: 1px solid var(--rline2); border-radius: var(--r2); box-shadow: 0 8px 24px rgba(0,0,0,.35); font-size: 12px; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.since i { width: 8px; height: 8px; flex: none; background: var(--sig); } .since .sep { width: 1px; height: 12px; background: var(--rline2); } .since .nw { color: var(--sig); }
@media (max-width: 560px) { .since { font-size: 10.5px; gap: 3px 10px; margin-bottom: 10px; padding: 6px 10px; } .since .sep { display: none; } }
/* Кнопка регистрации всегда под рукой: после первого экрана плашка с ценой выезжает снизу (на компьютере — справа). */ .mbar { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 10px 10px 18px; background: var(--room2); color: var(--ink); border: 1px solid var(--rline2); border-radius: var(--r2); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s var(--e-out), opacity .3s ease; }
.mbar[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
.mbar span { display: flex; flex-direction: column; line-height: 1.15; } .mbar b { font: 500 18px var(--f-d); letter-spacing: -.02em; } .mbar small { color: var(--dim); font-size: 12px; }
@media (max-width: 760px) { .mbar { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); gap: 12px; padding-left: 16px; } }
/* К следующему блоку: в блоке стрелка липкая — держится у низа экрана, пока виден блок, и садится в его конец; на первых экранах — внизу по центру. */ .nx { z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 14px; border: 1px solid color-mix(in srgb, currentColor 24%, transparent); border-radius: 999px; font: 500 11px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: color .2s ease, border-color .2s ease; }
.lp > section:not(.cine) > .nx { position: sticky; bottom: calc(16px + env(safe-area-inset-bottom)); align-self: center; margin-top: calc(var(--padb) - 50px); margin-bottom: calc(18px - var(--padb)); } .lp > section:not(.cine) > .inner { margin-block: auto; }
.lp > .cine > .nx, .lp > .bookhero > .nx { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); } .lp > .bookhero { position: relative; } .lp > .bookhero > .nx { left: 75%; z-index: 5; }
.on-room > .nx, .cine > .nx { background: rgba(15,11,9,.86); color: var(--dim); } .paper > .nx, .bookhero > .nx { background: rgba(244,241,234,.94); color: var(--g2); } .on-room > .nx:hover, .cine > .nx:hover { color: var(--ink); } .paper > .nx:hover, .bookhero > .nx:hover { color: var(--graph); } .nx:hover { border-color: var(--sig); }
.nx svg { width: 14px; height: 14px; fill: var(--sig); shape-rendering: crispEdges; animation: nxb 2.4s var(--e-out) infinite; }
@keyframes nxb { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(3px); } } @media (prefers-reduced-motion: reduce) { .nx svg { animation: none; } }
@media (max-width: 980px) { .lp > section:not(.cine) > .nx { bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (max-width: 760px) { .lp > section:not(.cine) > .nx { position: static; margin: 24px auto 0; } .lp > .cine > .nx, .lp > .bookhero > .nx { position: static; transform: none; margin: 32px auto 0; display: flex; width: max-content; } .lp > .cine { flex-direction: column; justify-content: flex-end; align-items: stretch; } }
/* Телефон: «к следующему блоку» — квадратная кнопка в нижней плашке, всегда под пальцем; плавающих стрелок над текстом нет. */
.nxm { display: none; } @media (max-width: 760px) { .mbar .nxm { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--rline2); border-radius: var(--r2); } .mbar .nxm svg { width: 14px; height: 14px; fill: var(--sig); shape-rendering: crispEdges; } .mbar .nxm:active { background: var(--room3); } .mbar { gap: 10px; padding-left: 10px; } .mbar span { margin-right: auto; } .mbar b { font-size: 16px; white-space: nowrap; } .mbar small { font-size: 11px; white-space: nowrap; } .mbar .btn { padding-inline: 14px; } }
/* Цена партнёров (13.11.2026): белый чек слева, от каждой строки выноска к пояснению «почему мы» на матовом стекле справа; линейки чека и пояснений общие. Телефон — пояснение под строкой внутри чека. */
#calc .inner { max-width: 1240px; } #calc .sig.eb { color: var(--dim); }
.lp .pricing h2.rc-h { font: 400 clamp(30px, 3.8cqw, 54px)/1.06 var(--f-d); letter-spacing: -.04em; margin: 14px 0 0; max-width: 20ch; color: var(--ink); }
.rc-g { background: linear-gradient(100deg, #F4ECE5 0%, #D9C3AF 45%, #F4ECE5 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-grid { --w: 440px; margin-top: 48px; display: grid; grid-template-columns: var(--w) 64px minmax(0, 1fr); position: relative; }
.rc-grid > .r2 { grid-row: 2; } .rc-grid > .r3 { grid-row: 3; } .rc-grid > .r4 { grid-row: 4; } .rc-grid > .r5 { grid-row: 5; } .rc-grid > .r6 { grid-row: 6; } .rc-grid > .r7 { grid-row: 7; } .rc-grid > .r8 { grid-row: 8; } .rc-grid > .r9 { grid-row: 9; } .rc-grid > .r10 { grid-row: 10; }
.rc-paper { grid-column: 1; grid-row: 1 / span 10; background: #fff; border-radius: var(--r2) var(--r2) 0 0; box-shadow: 0 40px 90px -20px rgba(0,0,0,.55); -webkit-mask: radial-gradient(circle at 9px calc(100% + 1px), transparent 8px, #000 8.5px) -9px 0/18px 100% repeat-x; mask: radial-gradient(circle at 9px calc(100% + 1px), transparent 8px, #000 8.5px) -9px 0/18px 100% repeat-x; }
.rc-glass { grid-column: 2 / span 2; grid-row: 2 / span 7; margin: -10px 0; border-radius: var(--r2); background: linear-gradient(160deg, rgba(244,236,229,.10), rgba(244,236,229,.04)); border: 1px solid rgba(244,236,229,.12); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1); }
.rc-grid::before, .rc-grid::after { content: ""; position: absolute; top: -14px; width: 22px; height: 22px; pointer-events: none; border: 0 solid rgba(244,236,229,.4); border-top-width: 1px; }
.rc-grid::before { left: -14px; border-left-width: 1px; } .rc-grid::after { left: calc(var(--w) - 8px); border-right-width: 1px; }
.rc-top, .rc-line, .rc-tot, .rc-act { grid-column: 1; position: relative; color: var(--graph); padding-inline: 28px; }
.rc-top { grid-row: 1; display: flex; justify-content: space-between; font: 500 10.5px var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--g3); padding: 26px 0 16px; margin: 0 28px 6px; border-bottom: 1px dashed var(--pline2); }
.rc-line { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 74px; font-size: 15px; border-bottom: 1px dotted var(--pline2); margin-inline: 28px; padding-inline: 0; }
.rc-line i { font: 600 10.5px/1 var(--f-m); font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--pline2); color: var(--g2); }
.rc-line b { font-weight: 600; white-space: nowrap; } .rc-line b.s { font: 500 10px var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--g2); background: var(--paper2); border-radius: 3px; padding: 4px 7px; }
.rc-tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 22px; padding-bottom: 18px; }
.rc-tot span { font: 500 11px var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--g3); } .rc-tot b { font: 500 34px/1 var(--f-d); letter-spacing: -.03em; }
.rc-act { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 40px; }
.btn.rc-btn { min-height: 54px; background: var(--graph); color: var(--sheet); font-size: 15px; } .btn.rc-btn:hover { background: #2a251f; }
.rc-mgr { text-align: center; font-size: 13px; color: var(--g3); text-decoration: underline; text-underline-offset: 3px; } .rc-mgr:hover { color: var(--graph); }
.rc-lead { grid-column: 2; align-self: center; height: 1px; background: repeating-linear-gradient(90deg, rgba(244,236,229,.45) 0 3px, transparent 3px 7px); position: relative; z-index: 1; }
.rc-lead::before, .rc-lead::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; }
.rc-lead::before { left: -4px; background: var(--graph); box-shadow: 0 0 0 2px #fff; } .rc-lead::after { right: -4px; border: 1px solid var(--ink); background: #1a1511; }
.rc-note { grid-column: 3; align-self: stretch; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-content: center; column-gap: 6px; padding: 16px 28px 16px 14px; border-bottom: 1px dotted rgba(244,236,229,.16); position: relative; z-index: 1; }
.rc-note.r8 { border-bottom: 0; } .rc-note em { font-style: normal; font-weight: 600; color: var(--ink); }
.rc-k { grid-row: 1 / span 2; font: 500 11px/1.9 var(--f-m); color: var(--dim); letter-spacing: .06em; }
.rc-note b { font: 500 18px/1.25 var(--f-d); letter-spacing: -.015em; color: var(--ink); } .rc-note p { margin: 6px 0 0; color: #D8CCC1; font-size: 14.5px; line-height: 1.55; }
.rc-x { grid-column: 3; grid-row: 9 / span 2; align-self: end; margin: 0 0 40px; padding: 14px 18px 14px 60px; font-size: 13px; line-height: 1.5; color: var(--dim); max-width: 56ch; }
@container fr (max-width: 980px) {
  .rc-grid { display: flex; flex-direction: column; background: #fff; border-radius: var(--r2); margin-top: 28px; padding-bottom: 4px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.5); }
  .rc-paper, .rc-glass, .rc-lead, .rc-grid::before, .rc-grid::after { display: none; }
  .rc-top { margin-inline: 20px; padding-top: 20px; }
  .rc-line { margin-inline: 20px; border-bottom: 0; min-height: 0; padding-top: 16px; font-weight: 600; }
  .rc-note { display: block; padding: 4px 0 14px 32px; margin-inline: 20px; border-bottom: 1px dotted var(--pline2); }
  .rc-note.r8 { border-bottom: 1px dotted var(--pline2); }
  .rc-note .rc-k, .rc-note b { display: none; } .rc-note p { color: var(--g2); font-size: 13.5px; margin: 0; } .rc-note em { color: var(--graph); }
  .rc-tot, .rc-act { padding-inline: 20px; } .rc-act { padding-bottom: 22px; }
  .rc-x { margin: 0; padding: 0 20px 20px; color: var(--g2); }
}

/* Возврат после оплаты: короткая страница без данных. */
.paid { display: grid; gap: 16px; justify-items: start; max-width: 560px; margin: 0 auto; padding: 56px 20px; }
.paid h1 { font: 400 clamp(24px, 6cqw, 34px)/1.15 var(--f-d); }
.paid .hint { font-size: 14px; color: var(--dim); }
