/* Сайт книг. Цвета и шрифты: стиль 1225 Digital Design. */

@font-face { font-family: "Oswald"; src: url("../fonts/Oswald-Variable.ttf") format("truetype"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --light: #F5F8F6;
  --tint: #E2EAE5;          /* светлый оттенок зелёного для карточек */
  --green: #1B4136;
  --gold: #C19A48;
  --ink: #131515;
  --ink-60: rgba(19, 21, 21, .62);
  --on-dark: rgba(245, 248, 246, .92);
  --on-dark-muted: rgba(245, 248, 246, .72);
  --line: rgba(19, 21, 21, .12);
  --head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: "Manrope", "Inter", system-ui, sans-serif;
  --pad: clamp(16px, 2.2vw, 40px);
  --h2: clamp(38px, 5.4vw, 96px);
  --gap: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--light); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { padding-inline: var(--pad); }
.label { font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.h2 { font-family: var(--head); font-weight: 700; font-size: var(--h2); line-height: 1.02; letter-spacing: .01em; text-wrap: balance; }
.h2 em, .h1 em { font-style: normal; font-weight: 300; color: var(--green); }
.dark .h2 em, .dark .h1 em { color: var(--gold); }
.lead { max-width: 34em; font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-60); text-wrap: pretty; }
.dark { background: var(--green); color: var(--on-dark); }
.dark .lead { color: var(--on-dark-muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Заголовок по буквам */
.split .wd { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(6deg); filter: blur(6px); transition: opacity .6s var(--ease), transform .9s var(--ease), filter .6s var(--ease); transition-delay: calc(var(--i) * 18ms); }
.split.in .ch { opacity: 1; transform: none; filter: none; }

/* Появление блоков */
[data-reveal] { opacity: 0; translate: 0 48px; transition: opacity .9s var(--ease), translate 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
[data-reveal].in { opacity: 1; translate: 0 0; }

/* Кнопки */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; height: 58px; padding: 0 8px 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; white-space: nowrap; background: var(--ink); color: var(--light); --fill: var(--gold); --on-fill: var(--ink); transition: color .5s var(--ease) .1s; }
.btn__ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--fill); color: var(--ink); }
.btn__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn::before { content: ""; position: absolute; z-index: -1; top: 50%; right: 8px; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; background: var(--fill); transform: scale(0); transition: transform .7s var(--ease); }
@media (hover: hover) {
  .btn:hover::before { transform: scale(14); }
  .btn:hover { color: var(--on-fill); }
}
.btn--light { background: var(--light); color: var(--ink); }
.btn--tint { background: var(--tint); color: var(--ink); --fill: var(--green); --on-fill: var(--light); }
.btn--tint .btn__ic { color: var(--light); }
.btn--plain { padding: 0 22px; justify-content: center; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; font-family: var(--head); font-weight: 600; font-size: 26px; line-height: 1; }
.price s { font-family: var(--body); font-weight: 400; font-size: 15px; opacity: .6; }
.off { align-self: center; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--light); font-family: var(--body); font-weight: 600; font-size: 12px; }

/* Шапка */
.logo { position: fixed; z-index: 60; top: clamp(14px, 1.6vw, 26px); left: var(--pad); width: clamp(72px, 6vw, 104px); }
.logo img { width: 100%; transition: opacity .4s var(--ease); }
.logo img + img { position: absolute; inset: 0; opacity: 0; }
.on-dark .logo img { opacity: 0; }
.on-dark .logo img + img { opacity: 1; }
.header { position: fixed; z-index: 60; top: clamp(12px, 1.4vw, 22px); right: var(--pad); display: flex; gap: 10px; }
.header .btn { height: 52px; font-size: 15px; }
.header .btn__ic { width: 36px; height: 36px; }
.burger { display: grid; place-content: center; gap: 6px; width: 52px; height: 52px; border-radius: 50%; background: var(--tint); }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .5s var(--ease); }
.burger span + span { width: 12px; margin-left: 8px; }
.menu-open .burger span { width: 20px; margin: 0; transform: translateY(4px) rotate(45deg); }
.menu-open .burger span + span { transform: translateY(-4px) rotate(-45deg); }
.mpanel { position: fixed; z-index: 55; top: clamp(8px, 1vw, 16px); right: calc(var(--pad) - 6px); width: min(360px, calc(100vw - 20px)); padding: 84px 26px 24px; border-radius: var(--r); background: var(--tint); box-shadow: 0 2px 6px rgba(19,21,21,.06), 0 24px 60px rgba(19,21,21,.16); opacity: 0; visibility: hidden; translate: 0 -12px; transition: opacity .4s var(--ease), translate .6s var(--ease), visibility 0s .4s; }
.menu-open .mpanel { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.mpanel a { display: block; padding: 5px 0; font-family: var(--head); font-weight: 600; font-size: 24px; line-height: 1.2; }
.mpanel__soc { display: flex; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.mpanel__soc a { font-family: var(--body); font-size: 14px; }

/* Бегущие строки */
.rows { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; pointer-events: none; }
.row { display: flex; width: max-content; font-family: var(--head); font-weight: 700; font-size: clamp(54px, 9.5vw, 170px); line-height: 1.05; text-transform: uppercase; white-space: nowrap; color: var(--tint); animation: run 40s linear infinite; }
.row:nth-child(even) { animation-direction: reverse; font-weight: 300; }
.row span { padding-right: .35em; }
.row i { font-style: normal; color: rgba(27, 65, 54, .28); }
@keyframes run { to { transform: translateX(-33.3333%); } }

/* Книга-обложка */
.cover { position: relative; aspect-ratio: 3 / 4; border-radius: 4px 10px 10px 4px; background: var(--green); color: var(--on-dark); padding: 9% 9% 8% 12%; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; box-shadow: 0 2px 4px rgba(19,21,21,.12), 0 30px 60px -18px rgba(19,21,21,.38); --cw: 240px; }
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5%; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0) 70%, rgba(255,255,255,.08)); }
.cover__k { font-family: var(--head); font-weight: 600; font-size: calc(var(--cw) * .05); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cover__t { font-family: var(--head); font-weight: 700; font-size: calc(var(--cw) * .13); line-height: 1.02; }
.cover__a { font-size: calc(var(--cw) * .046); color: var(--on-dark-muted); }
.cover--alt { background: var(--ink); }
.cover--tint { background: var(--tint); color: var(--ink); }
.cover--tint .cover__k { color: var(--green); }
.cover--tint .cover__a { color: var(--ink-60); }

/* Обложка-картинка */
.cover--img { padding: 0; background: var(--ink); }
.cover--img::before { z-index: 1; }
.cover--img img { width: 100%; height: 100%; object-fit: cover; }

/* Главная: первый экран */
.hh { --top: clamp(92px, 12vh, 132px); --bot: clamp(20px, 3vh, 36px); position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(20px, 2.6vw, 48px); padding: var(--top) var(--pad) var(--bot); }
.hh__left { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-width: 0; }
.hh .h1 { font-size: clamp(40px, 4.7vw, 92px); }
/* Фигура без фона: стоит на нижнем краю экрана и слегка следует за мышью */
.hh { height: 100svh; min-height: 540px; grid-template-rows: minmax(0, 1fr); padding-bottom: 0; overflow: hidden; }
.hh .h1 { font-size: clamp(34px, min(4.7vw, 8.4vh), 92px); }
.hh__left, .hh__right { position: relative; z-index: 2; padding-bottom: var(--bot); }
.hh { grid-template-columns: minmax(0, .82fr) auto minmax(0, 1.18fr); }
.hh__photo { align-self: end; height: min(90svh, 62vw); aspect-ratio: var(--ar); margin: 0; pointer-events: none; opacity: 0; translate: 0 60px; transform-origin: 50% 100%; transform: translate(calc(var(--mx, 0) * 10px), calc(var(--my, 0) * 4px)) rotate(calc(var(--mx, 0) * .6deg)); transition: opacity 1.2s var(--ease) .15s, translate 1.6s var(--ease) .15s, transform 1.4s var(--ease); will-change: transform; }
.hh__photo img { width: 100%; height: 100%; }
.ready .hh__photo { opacity: 1; translate: 0 0; }
.hh__right { display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; min-width: 0; }
.hh__right .label { margin-bottom: 12px; }
.hh__lead { max-width: 25em; font-size: clamp(15px, 1.2vw, 18px); color: var(--ink-60); text-wrap: pretty; }
.hh__lead strong { font-weight: 600; color: var(--ink); }
.hh__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px clamp(12px, 1.6vw, 28px); margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.hh__stats > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.hh__stats dt { font-family: var(--head); font-weight: 600; font-size: clamp(24px, 2.3vw, 40px); line-height: 1; white-space: nowrap; }
.hh__stats dd { margin: 0; font-size: clamp(11px, .86vw, 13px); line-height: 1.35; color: var(--ink-60); white-space: nowrap; }
.hh__hint { position: absolute; left: 50%; bottom: calc(var(--bot) + 14px); translate: -50% 0; padding: 8px 16px; border-radius: 999px; background: rgba(245, 248, 246, .92); font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 50% { translate: -50% 6px; } }

/* Главная: второй экран. Первый экран сжимается в карточку на тёмном фоне */
.intro { position: relative; height: 340vh; }
.intro__pin { position: sticky; top: 0; height: 100svh; min-height: 540px; overflow: hidden; background: var(--green); }
.intro__label { color: var(--on-dark); }
.intro__card { position: absolute; inset: 0; z-index: 2; background: var(--light); transform-origin: 50% 50%; will-change: transform, clip-path; }
.intro__card .hh__left, .intro__card .hh__right, .intro__card .hh__hint { opacity: var(--txt, 1); }
.intro__card .hh__photo img { opacity: calc(1 - var(--logo, 0)); }
.intro__logo { position: absolute; left: 50%; top: 50%; width: 30%; translate: -50% -50%; opacity: var(--logo, 0); pointer-events: none; }
.intro__rows { opacity: var(--rows, 0); gap: .04em; }
.intro__rows .row { color: var(--on-dark); font-size: clamp(48px, 8.4vw, 150px); }
.intro__rows .row:nth-child(even) { color: var(--gold); }
.intro__rows .row i { color: inherit; }
.intro__label { position: absolute; z-index: 3; top: clamp(22px, 3.4vh, 40px); left: 50%; translate: -50% 0; opacity: var(--foot, 0); }
.intro__foot { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: clamp(20px, 3.4vh, 40px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; opacity: var(--foot, 0); }
.intro__foot p { max-width: 27em; font-size: clamp(15px, 1.25vw, 19px); color: var(--on-dark); text-wrap: pretty; }
@media (max-width: 1000px) {
  .intro { height: auto; }
  .intro__pin { position: static; height: auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: 36px; }
  .intro__card { position: static; order: 1; }
  .intro__logo { display: none; }
  .intro__label { position: static; order: 2; translate: none; opacity: 1; margin: 36px var(--pad) 0; }
  .intro__rows { position: static; order: 3; opacity: 1; padding: 18px 0 26px; }
  .intro__foot { position: static; order: 4; opacity: 1; flex-direction: column; align-items: flex-start; padding-inline: var(--pad); }
}

/* Главная: третий экран. Главная мысль, слова загораются по прокрутке */
/* низ тёмного фона уходит полукругом, как в референсе */
.philo { position: relative; height: 240vh; padding-bottom: clamp(60px, 9vw, 150px); border-radius: 0 0 50% 50% / 0 0 clamp(70px, 12vw, 190px) clamp(70px, 12vw, 190px); }
.philo__pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(18px, 3vh, 34px); padding: 90px var(--pad) 40px; text-align: center; }
.philo__text { max-width: 15em; font-family: var(--head); font-weight: 700; font-size: clamp(38px, 6.4vw, 112px); line-height: 1.04; letter-spacing: .01em; text-wrap: balance; }
.philo .w { opacity: .16; transition: opacity .6s var(--ease); }
.philo .w.on { opacity: 1; }
.philo .w--em { font-weight: 300; color: var(--gold); }
.philo__note { max-width: 36em; font-size: clamp(15px, 1.25vw, 19px); color: var(--on-dark-muted); opacity: 0; translate: 0 16px; transition: opacity .8s var(--ease), translate 1s var(--ease); text-wrap: pretty; }
.philo__note.on { opacity: 1; translate: 0 0; }
@media (max-width: 1000px) { .philo { height: 200vh; } }

/* Главная: четвёртый экран. Коллаж из трёх фото и четыре факта */
.life { position: relative; z-index: 4; padding-bottom: var(--gap); }
.life__shots { display: flex; justify-content: center; align-items: flex-end; margin-top: clamp(-150px, -13vw, -70px); margin-bottom: clamp(48px, 6vw, 96px); }
.life__shots { perspective: 1400px; }
/* фото: объёмные, смещаются и наклоняются за мышью (--mx/--my), каждое на свою глубину (--dz) */
.lshot { position: relative; margin: 0; width: clamp(104px, 17vw, 260px); border-radius: clamp(18px, 2.4vw, 34px); overflow: hidden; background: var(--tint); box-shadow: 0 2px 4px rgba(19,21,21,.08), 0 18px 30px -14px rgba(19,21,21,.3), 0 50px 80px -30px rgba(19,21,21,.42); transform: translate3d(calc(var(--mx, 0) * var(--dz, 16px)), calc(var(--py, 0px) + var(--my, 0) * var(--dz, 16px) * .6), 0) rotateY(calc(var(--mx, 0) * 9deg)) rotateX(calc(var(--my, 0) * -7deg)) rotate(var(--rot, 0deg)); transition: transform .9s var(--ease); will-change: transform; }
.lshot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 2px 1px rgba(255,255,255,.55), inset 0 -22px 34px -20px rgba(19,21,21,.28), inset 0 0 0 1px rgba(255,255,255,.14); background: linear-gradient(calc(115deg + var(--mx, 0) * 30deg), rgba(255,255,255,.2), transparent 38%); }
.lshot img { width: 100%; height: auto; }
.lshot--l { --rot: -6deg; --dz: 34px; margin-right: -3.5%; margin-bottom: 7%; }
.lshot--c { --dz: 14px; z-index: 1; width: clamp(150px, 25vw, 380px); }
.lshot--r { --rot: 6deg; --dz: 46px; margin-left: -3.5%; margin-bottom: 3%; }

/* карточки-факты: "дутые", с рисованной иконкой */
.life .facts { margin-top: 0; }
.life .facts .card { min-height: clamp(240px, 23vw, 320px); border-radius: clamp(26px, 2.6vw, 38px); box-shadow: inset 0 2px 1px rgba(255,255,255,.5), inset 0 -26px 36px -22px rgba(19,21,21,.22), 0 2px 3px rgba(19,21,21,.05), 0 30px 50px -26px rgba(19,21,21,.38); }
.life .facts .card:nth-child(1) { min-height: clamp(270px, 27vw, 380px); }
.life .facts .card:nth-child(3) { min-height: clamp(290px, 29vw, 420px); }
.life .facts .card:nth-child(4n+2), .life .facts .card:nth-child(4n+3) { box-shadow: inset 0 2px 1px rgba(255,255,255,.16), inset 0 -26px 36px -22px rgba(0,0,0,.5), 0 30px 50px -26px rgba(19,21,21,.5); }
.life .facts .card:nth-child(4n+4) { background: #fff; }
.life .facts .card h3 { transform: translateZ(38px); }
.life .facts .card p { transform: translateZ(26px); }
.fic { position: absolute; top: clamp(18px, 2vw, 30px); left: clamp(18px, 2vw, 30px); width: clamp(50px, 4.8vw, 68px); aspect-ratio: 1; transform: translateZ(50px); opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease) .2s, translate 1s cubic-bezier(.34, 1.56, .64, 1) .2s; }
.fic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.fic path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.7s cubic-bezier(.6, 0, .2, 1) .35s; }
.card.in .fic { opacity: 1; translate: 0 0; }
.card.in .fic path { stroke-dashoffset: 0; }
.life .facts .card:nth-child(4n+2) .fic, .life .facts .card:nth-child(4n+3) .fic { color: var(--gold); }
@media (hover: hover) { .card.in:hover .fic { animation: ficNudge 1.2s var(--ease); } }
@keyframes ficNudge { 30% { rotate: -8deg; scale: 1.08; } 60% { rotate: 6deg; } }
@media (max-width: 1000px) {
  .life .facts .card:nth-child(n) { min-height: 190px; }
}
@media (max-width: 560px) {
  .life .facts { grid-template-columns: 1fr; }
  .life .facts .card:nth-child(n) { min-height: 0; padding-top: 78px; }
}

/* Главная: пятый экран. Каталог из трёх книг */
.catalog { padding-block: clamp(20px, 4vw, 60px) var(--gap); }
.catalog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); align-items: start; max-width: 1280px; margin: clamp(36px, 5vw, 72px) auto 0; }
.prod-col:nth-child(2) { margin-top: clamp(40px, 6vw, 96px); }
.prod-col:nth-child(3) { margin-top: clamp(16px, 2.6vw, 40px); }
.prod-col { will-change: transform; }
.prod { position: relative; display: flex; flex-direction: column; padding: 10px 10px 22px; border-radius: clamp(26px, 2.6vw, 38px); background: var(--tint); transform-style: preserve-3d; box-shadow: inset 0 2px 1px rgba(255,255,255,.5), inset 0 -26px 36px -22px rgba(19,21,21,.2), 0 2px 3px rgba(19,21,21,.05), 0 34px 56px -28px rgba(19,21,21,.4); }
.prod-col:first-child .prod { background: var(--green); color: var(--on-dark); box-shadow: inset 0 2px 1px rgba(255,255,255,.16), inset 0 -26px 36px -22px rgba(0,0,0,.5), 0 34px 56px -28px rgba(19,21,21,.5); }
.prod__cover { position: relative; display: block; border-radius: clamp(18px, 1.9vw, 28px); overflow: hidden; background: var(--ink); }
.prod__cover img { width: 100%; height: auto; transition: scale 1.1s var(--ease); }
@media (hover: hover) { .prod:hover .prod__cover img { scale: 1.05; } }
.prod__tag { position: absolute; top: 12px; left: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(245, 248, 246, .94); color: var(--ink); font-size: 12px; font-weight: 600; }
.prod__info { display: grid; gap: 6px; padding: 18px 12px 0; }
.prod__num { font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.prod__name { font-family: var(--head); font-weight: 700; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.05; }
.prod__sub { font-family: var(--head); font-weight: 300; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.2; }
.prod-col:first-child .prod__sub { color: var(--gold); }
.prod__desc { font-size: 14px; opacity: .78; }
.prod .price { margin-top: 8px; font-size: clamp(26px, 2.2vw, 34px); }
.prod__actions { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.prod .btn { height: 54px; flex: 1; max-width: 200px; }
.prod .btn__ic { width: 38px; height: 38px; }
@media (max-width: 1000px) {
  .catalog__grid { display: flex; gap: 12px; margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 40px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .catalog__grid::-webkit-scrollbar { display: none; }
  .prod-col { flex: 0 0 min(78vw, 340px); scroll-snap-align: center; }
  .prod-col:nth-child(n) { margin-top: 0; }
}

/* Главная: шестой экран. Набор "Все три книги + 2 подарка" */
.bundle { position: relative; margin-inline: clamp(8px, 1vw, 16px); padding: var(--gap) var(--pad); border-radius: clamp(28px, 4vw, 60px); background: var(--ink); overflow: hidden; }
.bundle .label { color: var(--gold); opacity: 1; margin-bottom: 14px; }
/* веер из пяти обложек: раскрывается при появлении, слегка следует за мышью */
.fan5 { --cw: clamp(96px, 15.5vw, 230px); --sp: 0; position: relative; height: calc(var(--cw) * 1.62); margin: clamp(36px, 5vw, 72px) auto clamp(28px, 4vw, 56px); perspective: 1600px; opacity: 1; translate: none; transition: --sp 0s; }
.fan5.in { --sp: 1; }
.fcard { position: absolute; left: 50%; top: 6%; width: var(--cw); margin: 0 0 0 calc(var(--cw) / -2); border-radius: clamp(12px, 1.5vw, 22px); overflow: hidden; background: var(--ink); z-index: calc(3 - max(var(--o), -1 * var(--o))); box-shadow: 0 0 0 1px rgba(245,248,246,.1), 0 24px 40px -14px rgba(0,0,0,.7), 0 50px 80px -30px rgba(0,0,0,.8); transform: translate3d(calc(var(--o) * var(--cw) * .88 * var(--sp) + var(--mx, 0) * var(--o) * 10px), calc(max(var(--o), -1 * var(--o)) * var(--cw) * .09 * var(--sp) + var(--my, 0) * 8px), 0) rotate(calc(var(--o) * 6.5deg * var(--sp))) rotateY(calc(var(--mx, 0) * 7deg)); transition: transform 1.3s var(--ease); will-change: transform; }
.fan5 .fcard { transition-delay: calc(max(var(--o), -1 * var(--o)) * 90ms); }
.fcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 2px 1px rgba(255,255,255,.3), inset 0 -20px 30px -18px rgba(0,0,0,.5); background: linear-gradient(calc(115deg + var(--mx, 0) * 30deg), rgba(255,255,255,.16), transparent 40%); }
.fcard img { width: 100%; height: auto; }
.gcover { aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: space-between; padding: 11% 10%; background: var(--light); color: var(--ink); }
.gcover__k { font-family: var(--head); font-weight: 600; font-size: calc(var(--cw) * .062); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.gcover__t { font-family: var(--head); font-weight: 700; font-size: calc(var(--cw) * .118); line-height: 1.04; }
.gcover__a { font-size: calc(var(--cw) * .052); color: var(--ink-60); }

.bundle__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; max-width: 1180px; margin-inline: auto; }
.bundle__list { list-style: none; margin: 0; padding: 0; }
.bundle__list li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 15px 0; border-top: 1px solid rgba(245, 248, 246, .14); }
.bundle__list li:last-child { border-bottom: 1px solid rgba(245, 248, 246, .14); }
.bundle__kind { font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.bundle__what { font-size: 14px; line-height: 1.4; color: var(--on-dark-muted); }
.bundle__what b { display: block; margin-bottom: 2px; font-family: var(--head); font-weight: 600; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.15; color: var(--on-dark); }
.bundle__price { font-family: var(--head); font-weight: 600; font-size: 18px; white-space: nowrap; }
.bundle__price.is-gift { color: var(--gold); }
.bundle__buy { display: grid; gap: 14px; justify-items: start; }
.bundle__line { font-size: 15px; color: var(--on-dark-muted); }
.bundle__buy .price { font-size: clamp(56px, 6.4vw, 104px); }
.bundle__buy .btn { height: 62px; min-width: 240px; }
.bundle__note { max-width: 26em; font-size: 13px; color: var(--on-dark-muted); }
@media (max-width: 1000px) {
  .bundle__grid { grid-template-columns: 1fr; }
  .bundle__buy { justify-items: stretch; }
  .bundle__buy .btn { width: 100%; }
}
@media (max-width: 560px) {
  .fan5 { --cw: 22vw; }
  .fcard { transform: translate3d(calc(var(--o) * var(--cw) * .7 * var(--sp)), calc(max(var(--o), -1 * var(--o)) * var(--cw) * .1 * var(--sp)), 0) rotate(calc(var(--o) * 6deg * var(--sp))); }
  .bundle__list li { grid-template-columns: minmax(0, 1fr) auto; }
  .bundle__kind { grid-column: 1 / -1; margin-bottom: -8px; }
}

/* Мысли клиента у курсора */
.thought { position: absolute; z-index: 3; pointer-events: none; max-width: 230px; padding: 9px 15px; border-radius: 18px 18px 18px 5px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.3; box-shadow: 0 1px 2px rgba(19,21,21,.06), 0 12px 28px -8px rgba(19,21,21,.22); opacity: 0; filter: blur(6px); transform: translate(calc(-50% + var(--dx, 0px)), -130%) rotate(var(--rot, 0deg)) scale(.86); transition: opacity .5s var(--ease), filter .5s var(--ease), transform .9s var(--ease); will-change: transform, opacity; }
.thought--dark { background: var(--green); color: var(--on-dark); }
.thought.on { opacity: 1; filter: none; transform: translate(calc(-50% + var(--dx, 0px)), -170%) rotate(var(--rot, 0deg)) scale(1); }
.thought.off { opacity: 0; filter: blur(5px); transform: translate(calc(-50% + var(--dx, 0px)), -235%) rotate(var(--rot, 0deg)) scale(.96); transition-duration: .8s, .8s, 1.2s; }

.mini { display: grid; grid-template-columns: minmax(0, 1fr) clamp(84px, 8.5vw, 132px); gap: 6px 14px; align-items: end; width: min(100%, 400px); padding: 18px 18px 16px; border-radius: var(--r); background: var(--tint); }
.mini__text { display: grid; gap: 6px; }
.mini__name { font-family: var(--head); font-weight: 600; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.05; }
.mini__meta { font-size: 14px; color: var(--ink-60); }
.mini .price { margin-top: 4px; font-size: clamp(26px, 2.2vw, 34px); }
.mini__cover { align-self: center; margin: -34px -10px -6px 0; filter: drop-shadow(0 16px 18px rgba(19,21,21,.28)); transition: translate .7s var(--ease), rotate .7s var(--ease); }
.mini__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.mini .btn { height: 52px; flex: 1; max-width: 190px; }
.mini .btn__ic { width: 36px; height: 36px; }
@media (hover: hover) { .mini:hover .mini__cover { translate: 0 -8px; rotate: 3deg; } }

/* Узкие ноутбуки: фигура чуть меньше, подписи цифр переносятся сами */
@media (min-width: 1001px) and (max-width: 1279px) {
  .hh { grid-template-columns: minmax(0, .9fr) auto minmax(0, 1.1fr); gap: 18px; }
  .hh__photo { height: min(88svh, 52vw); }
  .hh__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
  .hh__stats dd { white-space: normal; }
  .hh__stats dd br { display: none; }
}

/* Низкие экраны: всё должно помещаться без прокрутки */
@media (min-width: 1001px) and (max-height: 720px) {
  .hh { --top: 84px; --bot: 16px; }
  .hh__left, .hh__right { gap: 14px; }
  .mini { padding: 14px 16px 12px; }
  .mini__meta { display: none; }
  .mini .btn { height: 46px; }
  .mini .btn__ic { width: 32px; height: 32px; }
  .mini__cover { margin-top: -20px; }
  .hh__lead { font-size: 15px; line-height: 1.4; }
  .hh__stats { padding-top: 12px; }
  .hh__stats dt { font-size: 26px; }
  .hh__hint { display: none; }
}
@media (max-width: 1000px) {
  .hh { grid-template-columns: 1fr; gap: 22px; padding-top: 96px; padding-bottom: 28px; }
  .hh__left { display: contents; }
  .hh .h1 { order: 1; font-size: clamp(40px, 11vw, 72px); }
  .hh { height: auto; grid-template-rows: none; padding-bottom: 28px; }
  .hh { min-height: 0; }
  .hh__photo { order: 2; width: 78%; height: auto; margin: 0 auto; -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
  .hh__stats { grid-template-columns: 1fr; gap: 14px; }
  .hh__stats > div { grid-template-columns: 96px 1fr; align-items: baseline; }
  .hh__stats dt { font-size: 28px; }
  .hh__stats dd { font-size: 14px; white-space: normal; }
  .hh__right { order: 3; padding-bottom: 0; margin-top: -8px; }
  .mini { order: 4; width: 100%; }
  .hh__hint { display: none; }
}

/* 1. Первый экран */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: clamp(96px, 11vh, 140px) var(--pad) 28px; text-align: center; overflow: hidden; }
.hero__top { position: relative; z-index: 2; display: grid; gap: 14px; justify-items: center; }
.h1 { font-family: var(--head); font-weight: 700; font-size: clamp(40px, 6vw, 104px); line-height: 1; letter-spacing: .01em; text-wrap: balance; }
.hero__book { position: relative; z-index: 2; flex: 1; display: grid; place-items: center; width: 100%; padding: 24px 0; perspective: 1400px; }
/* первый экран книги всегда помещается в один экран: книга занимает то, что осталось между заголовком и кнопкой */
.hero { height: 100svh; min-height: 560px; padding-top: clamp(84px, 11vh, 120px); padding-bottom: clamp(16px, 2.6vh, 28px); }
.hero .h1 { font-size: clamp(32px, min(5vw, 7.2vh), 88px); max-width: 16em; }
.hero .lead { font-size: clamp(14px, min(1.2vw, 2.1vh), 18px); }
.hero__book { min-height: 0; padding: clamp(10px, 2vh, 24px) 0; }
.hero .rows { padding-top: 22vh; }
.hero__buy .price { font-size: clamp(26px, 2.6vw, 40px); }
.hero__book .cover { height: 100%; max-height: 62vh; aspect-ratio: 3 / 4; box-shadow: 0 2px 4px rgba(19,21,21,.14), inset 0 2px 1px rgba(255,255,255,.2), 0 30px 50px -18px rgba(19,21,21,.5), 0 60px 90px -40px rgba(19,21,21,.5); }
@media (max-width: 720px) { .hero { height: auto; min-height: 100svh; } .hero__book .cover { height: auto; width: min(62vw, 300px); max-height: none; } }
.hero__book .cover { transform: rotateY(calc(-18deg + var(--mx, 0) * 10deg)) rotateX(calc(4deg + var(--my, 0) * -6deg)); transition: transform .9s var(--ease); will-change: transform; }
.hero__buy { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; }

/* 2. Для кого */
.who { padding-block: var(--gap); }
.who__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.who__book { position: sticky; top: 120px; padding-inline: 8%; perspective: 1200px; }
.who__book .cover { transform: rotateY(14deg) rotateX(3deg); }
.who__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(24px, 3vw, 44px); }
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: clamp(180px, 17vw, 260px); padding: clamp(20px, 2vw, 32px); border-radius: var(--r); background: var(--tint); transform-style: preserve-3d; }
.card h3 { font-family: var(--head); font-weight: 600; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; }
.card p { font-size: 15px; opacity: .78; }
.card:nth-child(4n+2) { background: var(--green); color: var(--on-dark); }
.card:nth-child(4n+3) { background: var(--ink); color: var(--on-dark); }
.card:nth-child(4n+4) { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.card .num, .flag { position: absolute; top: 20px; left: 20px; padding: 4px 10px; border-radius: 6px; background: var(--ink); color: var(--light); font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .06em; }
.card:nth-child(4n+3) .num { background: var(--gold); color: var(--ink); }
.tilt { transition: transform .6s var(--ease); will-change: transform; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.2), transparent 60%); opacity: var(--go, 0); transition: opacity .4s var(--ease); }

/* 3. Что внутри */
.inside { position: relative; }
.inside__pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto 1fr; justify-items: center; padding: clamp(88px, 10vh, 120px) var(--pad) 96px; overflow: hidden; }
.inside__stage { position: relative; width: 100%; display: grid; place-items: center; }
.chapters { position: absolute; z-index: 3; left: 0; top: 50%; width: min(26vw, 300px); translate: 0 -50%; }
.chapter { position: absolute; left: 0; top: 0; width: 100%; translate: 0 -50%; padding: 64px 22px 22px; border-radius: var(--r); background: var(--tint); opacity: 0; scale: .94; transition: opacity .5s var(--ease), scale .7s var(--ease), translate .7s var(--ease); }
.chapter:nth-child(3n+2) { background: var(--green); color: var(--on-dark); }
.chapter:nth-child(3n+3) { background: var(--ink); color: var(--on-dark); }
.chapter:nth-child(3n+3) .flag { background: var(--gold); color: var(--ink); }
.chapter.on { opacity: 1; scale: 1; }
.chapter.past { translate: 0 -72%; }
.chapter h3 { font-family: var(--head); font-weight: 600; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; }
.chapter p { margin-top: 8px; font-size: 15px; opacity: .78; }
.inside__count { position: absolute; right: 0; bottom: 0; font-family: var(--head); font-weight: 300; font-size: clamp(40px, 5vw, 84px); line-height: 1; color: var(--green); opacity: .35; }

.book3d { --pw: min(30vw, 300px, 36vh); position: relative; width: calc(var(--pw) * 2); aspect-ratio: 6 / 4; perspective: 2200px; transform: translateX(calc(var(--shift, -.5) * var(--pw))) rotateX(18deg); transform-style: preserve-3d; }
.leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; transform: rotateY(var(--ry, 0deg)); }
.leaf__f, .leaf__b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fbfcfb; padding: 10%; overflow: hidden; display: flex; flex-direction: column; gap: 6%; box-shadow: inset 12px 0 18px -14px rgba(19,21,21,.3); border-radius: 2px 8px 8px 2px; }
.leaf__b { transform: rotateY(180deg); box-shadow: inset -12px 0 18px -14px rgba(19,21,21,.3); border-radius: 8px 2px 2px 8px; }
.leaf__f.cover { padding: 9% 9% 8% 12%; border-radius: 4px 10px 10px 4px; gap: 0; }
.pg__h { font-family: var(--head); font-weight: 600; font-size: clamp(11px, 1.3vw, 17px); line-height: 1.15; color: var(--green); }
.pg__l { height: 5px; border-radius: 3px; background: var(--tint); }
.pg__l:nth-child(3n) { width: 72%; }
.pg__box { flex: 1; border-radius: 6px; background: var(--tint); }
.pg__n { margin-top: auto; font-size: 10px; color: var(--ink-60); }
.book3d::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -9%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(19,21,21,.26), transparent); transform: translateZ(-40px); }

/* 4. Что изменится */
.result { padding-block: var(--gap); border-radius: clamp(28px, 4vw, 60px) clamp(28px, 4vw, 60px) 0 0; }
.result__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 4vw, 64px); }
.result .card { background: var(--tint); color: var(--ink); min-height: clamp(220px, 22vw, 320px); rotate: calc(var(--t, 0) * 1deg); }
.result .card:nth-child(2) { background: var(--light); --t: 2; margin-top: 28px; }
.result .card:nth-child(1) { --t: -3; }
.result .card:nth-child(3) { background: var(--ink); color: var(--on-dark); --t: -1.5; }
.result .card:nth-child(4) { background: var(--gold); box-shadow: none; --t: 3; margin-top: 40px; }

/* 5. Автор */
.about { padding-block: var(--gap); }
.about__shots { display: flex; justify-content: center; align-items: flex-end; margin-bottom: clamp(40px, 5vw, 80px); }
.shot { display: grid; place-items: center; width: clamp(120px, 17vw, 260px); aspect-ratio: 4 / 5; border-radius: 22px; background: var(--tint); color: var(--ink-60); font-size: 13px; box-shadow: 0 2px 4px rgba(19,21,21,.05), 0 24px 48px -20px rgba(19,21,21,.25); }
.shot:nth-child(1) { rotate: -5deg; margin-right: -3%; aspect-ratio: 1; }
.shot:nth-child(2) { z-index: 1; width: clamp(160px, 24vw, 360px); background: #D3DED8; }
.shot:nth-child(3) { rotate: 6deg; margin-left: -3%; aspect-ratio: 1; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: clamp(32px, 4vw, 64px); }
.facts .card:nth-child(1) { min-height: clamp(260px, 26vw, 380px); }
.facts .card:nth-child(3) { min-height: clamp(280px, 28vw, 420px); }
.about__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* 6. Цена */
.cost { padding-block: var(--gap); }
.cost__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(32px, 4vw, 64px); }
.stats { display: grid; }
.stat { display: grid; grid-template-columns: clamp(80px, 8vw, 130px) 1fr; align-items: baseline; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.stat b { font-family: var(--head); font-weight: 300; font-size: clamp(34px, 3.4vw, 56px); line-height: 1; color: var(--green); }
.cost__book { padding-inline: 8%; }
.cost__buy { display: grid; gap: 18px; justify-items: start; }
.cost__buy .price { font-size: clamp(48px, 5vw, 84px); }
.cost__buy .price s { font-size: 18px; }
.cost__note { max-width: 26em; font-size: 14px; color: var(--ink-60); }

/* 7. Отзывы */
.reviews { padding-block: var(--gap); overflow: hidden; }
.reviews__track { display: flex; gap: 14px; margin-top: clamp(32px, 4vw, 64px); padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reviews__track::-webkit-scrollbar { display: none; }
.rv { flex: 0 0 clamp(220px, 20vw, 300px); display: grid; place-items: center; padding: 8px; border-radius: 26px; background: var(--tint); scroll-snap-align: start; rotate: calc(var(--t, 0) * 1deg); transition: rotate .6s var(--ease), background .4s var(--ease); }
.rv div { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / var(--h, 4); border-radius: 19px; background: var(--light); color: var(--ink-60); font-size: 13px; }
@media (hover: hover) { .rv:hover { rotate: 0deg; background: #D3DED8; } }
.arrows { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.arrow { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--tint); transition: background .4s var(--ease); }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .arrow:hover { background: var(--gold); } }

/* 8. Вопросы */
.faq { padding-block: var(--gap); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.faq__side { position: sticky; top: 120px; display: grid; gap: 18px; justify-items: start; }
/* заголовок всегда в две строки и крупнее обычного */
.faq__side .h2 { font-size: clamp(52px, 7.2vw, 132px); line-height: .98; }
.faq__side .h2 em { display: block; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa__q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: clamp(18px, 2vw, 28px) 0; text-align: left; font-weight: 600; font-size: clamp(17px, 1.5vw, 22px); }
.qa__ic { flex: none; position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); transition: background .4s var(--ease), transform .6s var(--ease); }
.qa__ic::before, .qa__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); }
.qa__ic::after { transform: rotate(90deg); }
.qa.open .qa__ic { background: var(--gold); transform: rotate(135deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.qa.open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { max-width: 38em; padding: 0 60px clamp(20px, 2.2vw, 30px) 0; font-size: 17px; color: var(--ink-60); }

/* 9. Другие книги */
.also { padding-block: var(--gap); overflow: hidden; }
.fan { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 80px); padding-bottom: 30px; }
.bcard { flex: 0 0 clamp(220px, 21vw, 300px); padding: 10px 10px 20px; border-radius: 30px; background: var(--tint); rotate: calc(var(--o) * 7deg); translate: calc(var(--o) * -12%) calc(var(--a) * 26px); transition: translate .7s var(--ease), rotate .7s var(--ease), box-shadow .7s var(--ease); box-shadow: 0 2px 4px rgba(19,21,21,.05), 0 24px 50px -22px rgba(19,21,21,.3); }
.bcard:nth-child(2) { z-index: 2; background: #D3DED8; }
@media (hover: hover) { .bcard:hover { translate: calc(var(--o) * -12%) calc(var(--a) * 26px - 16px); rotate: calc(var(--o) * 3deg); z-index: 3; } }
.bcard .cover { border-radius: 20px; }
.bcard .cover::before { display: none; }
.bcard__info { display: grid; gap: 6px; padding: 16px 10px 0; }
.bcard__info h3 { font-family: var(--head); font-weight: 600; font-size: 22px; line-height: 1.1; }
.bcard__info p { font-size: 14px; color: var(--ink-60); }
.bcard .price { font-size: 22px; margin-top: 4px; }

/* Подвал */
.footer { position: relative; margin-top: 8px; padding: clamp(40px, 5vw, 72px) var(--pad) 28px; background: var(--ink); color: var(--on-dark); border-radius: clamp(28px, 4vw, 60px) clamp(28px, 4vw, 60px) 0 0; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1fr auto auto auto; gap: clamp(24px, 5vw, 96px); }
.footer__logo { width: 104px; }
.footer__col { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.footer__col b { margin-bottom: 6px; font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.footer .row { margin: clamp(40px, 6vw, 100px) calc(var(--pad) * -1); color: var(--on-dark); font-size: clamp(64px, 12vw, 210px); animation-duration: 50s; }
.footer .row i { color: var(--gold); font-weight: 300; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-top: 20px; border-top: 1px solid rgba(245,248,246,.14); font-size: 13px; color: var(--on-dark-muted); }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* Липкая плашка покупки */
.buybar { position: fixed; z-index: 50; left: 50%; bottom: 16px; display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 24px; border-radius: 999px; background: var(--light); box-shadow: 0 2px 6px rgba(19,21,21,.08), 0 18px 44px rgba(19,21,21,.2); translate: -50% 140%; transition: translate .8s var(--ease); max-width: calc(100vw - 20px); }
.buybar.on { translate: -50% 0; }
.buybar .price { font-size: 22px; flex-wrap: nowrap; }
.buybar .btn { height: 52px; }
.buybar .btn__ic { width: 36px; height: 36px; }

/* Окно покупки */
.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(19,21,21,.5); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; overflow-y: auto; }
.modal.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal__win { position: relative; width: min(520px, 100%); padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--light); translate: 0 30px; transition: translate .7s var(--ease); }
.modal.on .modal__win { translate: 0 0; }
.modal__x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); font-size: 22px; line-height: 1; }
.modal h2 { font-family: var(--head); font-weight: 700; font-size: 32px; line-height: 1.05; padding-right: 50px; }
.modal__item { display: flex; justify-content: space-between; gap: 16px; margin: 18px 0; padding: 14px 0; border-block: 1px solid var(--line); font-weight: 600; }
.field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; }
.field input { height: 54px; padding: 0 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.check { display: flex; gap: 10px; margin: 10px 0; font-size: 13px; color: var(--ink-60); }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); }
.check a { text-decoration: underline; }
.modal .btn { width: 100%; margin-top: 12px; }
.modal__note { margin-top: 12px; font-size: 13px; color: var(--ink-60); }

/* Переход между страницами */
.pt { position: fixed; z-index: 999; inset: 0; pointer-events: none; }
.pt i { position: absolute; inset: 0; background: var(--green); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.76, 0, .24, 1); }
.pt i + i { background: var(--light); transition-delay: .12s; }
.pt.out i { transform: scaleY(1); }
.pt.in i { transform: scaleY(1); transform-origin: 50% 0; transition: none; }
.pt.in.go i { transform: scaleY(0); transition: transform .8s cubic-bezier(.76, 0, .24, 1); }
.pt.in.go i:first-child { transition-delay: .12s; }

/* Планшет и телефон */
@media (max-width: 1000px) {
  .who__grid, .faq__grid, .cost__grid { grid-template-columns: 1fr; }
  .who__book { display: none; }
  .faq__side { position: static; }
  .result__cards, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result .card:nth-child(n) { margin-top: 0; }
  .cost__book { order: -1; max-width: 300px; margin-inline: auto; padding: 0; width: 70%; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .header .btn span:first-child { display: none; }
  .header .btn { padding: 0 8px; }
  .inside__pin { padding-bottom: 88px; }
  .inside__stage { grid-template-rows: 1fr auto; align-items: center; gap: 18px; }
  .book3d { --pw: min(40vw, 30vh); }
  .chapters { position: relative; left: auto; top: auto; translate: none; width: 100%; height: 150px; }
  .chapter { translate: none; padding: 54px 18px 18px; }
  .chapter.past { translate: 0 -14px; }
  .inside__count { display: none; }
  .who__cards { grid-template-columns: 1fr 1fr; }
  .card { min-height: 170px; padding: 16px; }
  .card h3 { font-size: 19px; }
  .card p { font-size: 14px; }
  .card .num { top: 14px; left: 14px; }
  .fan { justify-content: flex-start; gap: 12px; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .bcard { flex-basis: 72vw; rotate: 0deg; translate: 0 0; scroll-snap-align: center; }
  .buybar { left: 10px; right: 10px; translate: 0 140%; justify-content: space-between; padding-left: 20px; }
  .buybar.on { translate: 0 0; }
  .buybar .price s, .buybar .off { display: none; }
  .qa__a p { padding-right: 0; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .split .ch, [data-reveal] { opacity: 1; transform: none; filter: none; translate: 0 0; }
}

/* ===== Страница книги: сквозная 3D-книга ===== */
/* Места, куда встаёт книга в каждом блоке. Сама книга одна, она переезжает между ними */
.slot { aspect-ratio: 3 / 4; }
.slot--hero { height: 100%; max-height: 62vh; }
.slot--who { width: 100%; }
.slot--inside { height: min(50vh, 38vw, 460px); }
.gbook { position: fixed; left: 0; top: 0; z-index: 6; width: 720px; height: 480px; pointer-events: none; perspective: 2400px; transform-origin: 0 0; will-change: transform; visibility: hidden; }
.gbook .book3d { --pw: 360px; position: absolute; inset: 0; width: auto; aspect-ratio: auto; perspective: none; transform-style: preserve-3d; transform-origin: 50% 50%; will-change: transform; }
.gbook .book3d::after { left: 50%; right: 2%; bottom: -8%; height: 10%; transform: translateZ(-30px); transition: left .6s var(--ease); }
.gbook.is-open .book3d::after { left: 4%; }
.gbook .leaf__f, .gbook .leaf__b { background: #fff; }
.gbook .leaf--img { padding: 0; display: block; }
.gbook .pgimg { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gbook .leaf__f.cover { box-shadow: 0 2px 4px rgba(19,21,21,.14), 0 34px 60px -20px rgba(19,21,21,.55); }
/* тень у корешка на страницах */
.gbook .leaf--img::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.gbook .leaf__f.leaf--img::after { background: linear-gradient(90deg, rgba(19,21,21,.2), transparent 9%); }
.gbook .leaf__b.leaf--img::after { background: linear-gradient(270deg, rgba(19,21,21,.2), transparent 9%); }
/* торец книги: виден, когда книга повёрнута */
.book3d__edge { position: absolute; left: 100%; top: .7%; width: 15px; height: 98.6%; transform-origin: 0 50%; transform: translateZ(15px) rotateY(90deg); background: repeating-linear-gradient(90deg, #fff 0 1.5px, #d5dbd7 1.5px 3px); border-radius: 0 2px 2px 0; }

.hero .lead strong { font-weight: 600; color: var(--ink); }
.who__book { padding-inline: 12%; }
/* "Для кого": первая карточка на всю ширину, под ней четыре сеткой 2x2 */
.who__cards .card:first-child { grid-column: 1 / -1; min-height: clamp(150px, 13vw, 200px); }
.who__cards .card { min-height: clamp(190px, 17vw, 250px); }

/* "Что изменится": тёмный блок уходит вниз полукругом, на него заходит коллаж автора */
.result { padding-bottom: calc(var(--gap) + clamp(70px, 12vw, 190px)); border-radius: clamp(28px, 4vw, 60px) clamp(28px, 4vw, 60px) 50% 50% / clamp(28px, 4vw, 60px) clamp(28px, 4vw, 60px) clamp(70px, 12vw, 190px) clamp(70px, 12vw, 190px); }
.about.life { padding-top: 0; }
.about.life .facts { margin-top: clamp(32px, 4vw, 64px); }

/* блок цены: готовый 3D-макет обложки */
.cost__book { padding-inline: 0; }
.cost__3d { width: 100%; height: auto; }

@media (max-width: 720px) {
  .slot--hero { height: auto; width: min(58vw, 280px); max-height: none; }
  .slot--inside { height: min(38vh, 56vw); }
  .who__cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .who__cards { grid-template-columns: 1fr; }
  .result__cards { grid-template-columns: 1fr; }
}
.gbook .leaf__f.cover { padding: 0; background: var(--ink); border-radius: 3px 8px 8px 3px; }
.gbook .leaf__f.cover img { width: 100%; height: 100%; object-fit: cover; }
.slot--inside { height: min(46vh, 28vw, 440px); }
@media (max-width: 720px) { .slot--inside { height: min(38vh, 56vw); } }
/* длинные заголовки не должны наезжать на номер */
.result .card { padding-top: 70px; min-height: clamp(260px, 25vw, 360px); }
.result .card h3 { font-size: clamp(19px, 1.7vw, 27px); }
@media (max-width: 1000px) { .result .card { min-height: 0; } }
/* зелёные титулы частей растягиваются на весь лист */
.gbook .pgimg--fill { object-fit: cover; }
/* карточка главы не должна касаться раскрытой книги */
@media (min-width: 721px) { .chapters { width: min(22vw, 270px); } }
/* обложки гайдов-подарков в стиле серии: тёмно-зелёные, золотой заголовок капсом */
.gcover { background: var(--green); color: var(--on-dark); padding: 12% 10% 11%; }
.gcover__k { color: var(--on-dark-muted); font-size: calc(var(--cw) * .05); }
.gcover__t { color: var(--gold); text-transform: uppercase; font-size: calc(var(--cw) * .112); line-height: 1.02; letter-spacing: .01em; margin-top: auto; margin-bottom: 8%; }
.gcover__a { color: var(--on-dark); font-family: var(--head); font-weight: 600; font-size: calc(var(--cw) * .046); letter-spacing: .1em; text-transform: uppercase; }

/* ===== Cookie-баннер ===== */
.cookie { position: fixed; z-index: 90; left: clamp(10px, 1.4vw, 24px); bottom: clamp(10px, 1.4vw, 24px); width: min(440px, calc(100vw - 20px)); padding: clamp(20px, 2vw, 28px); border-radius: var(--r); background: var(--light); color: var(--ink); box-shadow: inset 0 2px 1px rgba(255,255,255,.6), 0 2px 6px rgba(19,21,21,.08), 0 30px 70px -20px rgba(19,21,21,.4); opacity: 0; visibility: hidden; translate: 0 30px; transition: opacity .5s var(--ease), translate .8s var(--ease), visibility 0s .5s; }
.cookie.on { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.cookie__title { font-family: var(--head); font-weight: 700; font-size: 24px; line-height: 1.1; }
.cookie__text { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-60); }
.cookie__text a { color: var(--ink); text-decoration: underline; }
.cookie__more { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cookie__more[hidden] { display: none; }
.cookie__row { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--ink-60); cursor: pointer; }
.cookie__row b { display: block; font-size: 14px; color: var(--ink); }
.cookie__row input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); }
.cookie__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.cookie__btns .btn { height: 50px; padding: 0 12px; font-size: 14px; }
.cookie__btns .btn--tint { --on-fill: var(--light); }
.cookie__link { grid-column: 1 / -1; justify-self: center; padding: 6px 10px; font-size: 13px; font-weight: 600; text-decoration: underline; color: var(--ink-60); }
.footer__cookie { font: inherit; color: inherit; text-decoration: underline; }
@media (max-width: 400px) { .cookie__btns { grid-template-columns: 1fr; } }

/* ===== Юридические страницы ===== */
.legal { max-width: 860px; margin-inline: auto; padding: clamp(110px, 14vh, 160px) var(--pad) var(--gap); overflow-wrap: anywhere; }
.legal h1 { font-family: var(--head); font-weight: 700; font-size: clamp(36px, 5vw, 72px); line-height: 1.02; margin-bottom: 14px; }
.legal h1 + p { color: var(--ink-60); margin-bottom: 36px; }
.legal h2 { font-family: var(--head); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; margin: 40px 0 12px; }
.legal h3 { font-family: var(--head); font-weight: 600; font-size: 19px; line-height: 1.2; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal__back { margin-top: 48px; }
.legal__back a { text-decoration: none; }
