/* Шрифты со своего сервера: без запросов к Google (скорость и персональные данные посетителей) */
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("fonts/golos-cyr.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("fonts/golos-lat.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0f2430; --ink-2: #2b4350; --muted: #5a7280; --line: #d9e4e8; --mist: #edf3f5; --paper: #ffffff; --bg: #f5f8f9;
  --teal: #0e7c86; --teal-d: #095d65; --navy: #14264a; --rose: #9a4a56; --amber: #f2b84b;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 18px; --shadow: 0 1px 2px rgba(15,36,48,.06), 0 12px 32px -16px rgba(15,36,48,.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.62 var(--sans); overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.14; margin: 0; letter-spacing: -.012em; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--teal-d); }

.ribbon { background: var(--ink); color: #d6e6ea; font-size: 14px; text-align: center; padding: 8px 16px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245,248,249,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(217,228,232,.7); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; }
.logo { text-decoration: none; font: 700 19px/1.1 var(--serif); }
.logo small { display: block; margin-top: 3px; font: 400 12.5px/1.25 var(--sans); color: var(--muted); max-width: 20em; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--ink-2); }
.nav a:hover { color: var(--teal-d); }
@media (min-width: 900px) { .nav { display: flex; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; font: 600 16px var(--sans); text-decoration: none; cursor: pointer; border: 2px solid var(--teal); background: var(--teal); color: #fff; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; box-shadow: 0 8px 20px -10px rgba(14,124,134,.7); }
.btn:hover { background: var(--teal-d); border-color: var(--teal-d); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--teal-d); box-shadow: none; }
.btn.ghost:hover { background: #fff; }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn.gold { background: var(--amber); border-color: var(--amber); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(242,184,75,.8); }
.btn.gold:hover { background: #f7c970; border-color: #f7c970; }

/* Первый экран */
.hero { position: relative; padding: 40px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 38%; height: 120%; background: radial-gradient(closest-side, rgba(14,124,134,.16), rgba(14,124,134,0) 72%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 44px; align-items: center; }
@media (min-width: 940px) { .hero { padding: 64px 0 96px; } .hero .wrap { grid-template-columns: 1.08fr 1fr; gap: 56px; } }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 14px 0 20px; }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 33em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 18px; }
.note { font-size: 14.5px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; min-width: 104px; }
.facts b { font: 700 26px/1.1 var(--serif); color: var(--navy); }
.facts span { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* Первый экран: планшет и телефон с методичкой. Устройства нарисованы отдельно, анфас, наклон считает браузер по курсору */
.stage { position: relative; display: grid; place-items: center; perspective: 1400px; }
.rig { position: relative; width: 100%; max-width: 600px; aspect-ratio: 600 / 640; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.dev { position: absolute; height: auto; backface-visibility: hidden; }
.dev.tablet { left: 0; top: 0; width: 62%; transform: translateZ(0); filter: drop-shadow(0 34px 34px rgba(15,36,48,.26)) drop-shadow(0 6px 8px rgba(15,36,48,.18)); }
.dev.phone { left: 49%; top: 36%; width: 35%; transform: translateZ(70px); filter: drop-shadow(0 28px 28px rgba(15,36,48,.3)) drop-shadow(0 5px 8px rgba(15,36,48,.2)); }
@media (hover: none), (prefers-reduced-motion: reduce) { .rig { transition: none; } }

/* Разворот */
.section { padding: 72px 0; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 12px 0 12px; }
.section-head p { color: var(--ink-2); }
.look { background: linear-gradient(180deg, var(--mist), #e4edf0); border-block: 1px solid var(--line); }
.reader { display: grid; justify-items: center; gap: 24px; }
.reader-stage { position: relative; width: min(880px, 100%); perspective: 2600px; }
.spread { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; transition: filter .35s, opacity .35s; }
.spread::before { content: ""; position: absolute; inset: 8px -8px -12px; background: linear-gradient(#f6f3ec, #e4e0d4); border-radius: 6px; box-shadow: 0 34px 56px -28px rgba(15,36,48,.65), 0 2px 0 #d8d3c4; z-index: 0; }
.spread::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 22px); width: 44px; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(60,50,30,.18) 46%, rgba(60,50,30,.22) 50%, rgba(60,50,30,.18) 54%, rgba(0,0,0,0)); z-index: 3; pointer-events: none; }
.spread.dim { filter: blur(3px) saturate(.85); opacity: .55; pointer-events: none; }
.pg { position: relative; z-index: 1; margin: 0; background: #fff; cursor: zoom-in; overflow: hidden; line-height: 0; }
.pg img { display: block; width: 100%; height: auto; image-rendering: auto; }
.pg:first-child { border-radius: 3px 0 0 3px; }
.pg:last-child { border-radius: 0 3px 3px 0; }
.pg[hidden] { display: none; }
.spread.one { grid-template-columns: minmax(0, 1fr); width: min(430px, 100%); margin-inline: auto; }
.spread.one::after { display: none; }
.spread.one .pg { border-radius: 3px; }
.pg.blank { aspect-ratio: 1400 / 1981; background: linear-gradient(90deg, #f1eee6, #fbfaf6 40%); border-radius: 0 3px 3px 0; }
.pg.blank[hidden] { display: none; }

/* Перелистывание: лист поворачивается вокруг корешка, у него две стороны, тень и подсветка */
.leaf { position: absolute; top: 0; height: 100%; z-index: 6; transform-style: preserve-3d; pointer-events: none; will-change: transform; }
.leaf.next { left: 50%; width: 50%; transform-origin: left center; animation: flip-next .95s cubic-bezier(.45,.02,.22,1) forwards; }
.leaf.prev { left: 0; width: 50%; transform-origin: right center; animation: flip-prev .95s cubic-bezier(.45,.02,.22,1) forwards; }
.leaf.one-next { left: 0; width: 100%; transform-origin: left center; animation: flip-one-next .8s cubic-bezier(.45,.02,.22,1) forwards; }
.leaf.one-prev { left: 0; width: 100%; transform-origin: right center; animation: flip-one-prev .8s cubic-bezier(.45,.02,.22,1) forwards; }
.leaf .face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; line-height: 0; }
.leaf .face img { display: block; width: 100%; height: auto; }
.leaf .face.back { transform: rotateY(180deg); }
.leaf .face.paper { background: linear-gradient(90deg, #f2efe7, #fcfbf8); }
.leaf.next .front, .leaf.prev .back { border-radius: 0 3px 3px 0; }
.leaf.next .back, .leaf.prev .front { border-radius: 3px 0 0 3px; }
.leaf .face::after { content: ""; position: absolute; inset: 0; opacity: 0; animation: leaf-shade .95s ease-in-out forwards; }
.leaf.next .front::after, .leaf.prev .back::after { background: linear-gradient(90deg, rgba(20,24,30,.55), rgba(20,24,30,0) 70%); }
.leaf.next .back::after, .leaf.prev .front::after { background: linear-gradient(270deg, rgba(20,24,30,.5), rgba(20,24,30,0) 70%); }
.cast { position: absolute; top: 0; height: 100%; width: 50%; z-index: 5; pointer-events: none; opacity: 0; animation: cast-in .95s ease-in-out forwards; }
.cast.next { left: 50%; background: linear-gradient(90deg, rgba(20,24,30,.38), rgba(20,24,30,0) 62%); }
.cast.prev { left: 0; background: linear-gradient(270deg, rgba(20,24,30,.38), rgba(20,24,30,0) 62%); }
@keyframes flip-next { to { transform: rotateY(-180deg); } }
@keyframes flip-prev { to { transform: rotateY(180deg); } }
@keyframes flip-one-next { to { transform: rotateY(-105deg); opacity: 0; } }
@keyframes leaf-shade { 0% { opacity: 0; } 45% { opacity: .75; } 100% { opacity: 0; } }
@keyframes cast-in { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 0; } }
.reader-bar { display: flex; align-items: center; justify-content: center; gap: 18px; }
.reader-bar .count { min-width: 190px; text-align: center; color: var(--ink-2); font-size: 15px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--teal); background: #fff; color: var(--teal-d); font-size: 22px; cursor: pointer; }
.arrow:hover:not(:disabled) { background: var(--teal); color: #fff; }
.arrow:disabled { opacity: .3; cursor: default; }
.locked { position: absolute; left: 50%; top: 50%; width: min(480px, 90%); transform: translate(-50%, -50%) scale(.97); opacity: 0; visibility: hidden; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; text-align: center; box-shadow: 0 24px 60px -20px rgba(15,36,48,.55); transition: opacity .3s, transform .3s, visibility .3s; }
.locked.on { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.locked h3 { font-size: 24px; margin-bottom: 8px; }
.locked p { color: var(--ink-2); margin-bottom: 18px; }
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.zoom::backdrop { background: rgba(5,12,30,.93); }
dialog.zoom img { display: block; max-height: 94vh; width: auto; max-width: 96vw; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
dialog.zoom button { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; cursor: pointer; }

/* Карточки */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.card .ico { width: 46px; height: 46px; border-radius: 14px; background: #e3f1f2; display: grid; place-items: center; margin-bottom: 16px; color: var(--teal-d); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 16px; }

/* Магазин */
.main-product { display: grid; gap: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 30px; align-items: center; box-shadow: var(--shadow); }
@media (min-width: 820px) { .main-product { grid-template-columns: 260px 1fr; padding: 40px; gap: 52px; } }
.doc { position: relative; width: 226px; margin: 0 auto; }
.doc::before, .doc::after { content: ""; position: absolute; inset: 0; background: #fff; border: 1px solid var(--line); border-radius: 3px; z-index: 0; }
.doc::before { transform: translate(10px, 10px) rotate(1.4deg); box-shadow: 0 10px 20px -12px rgba(15,36,48,.5); }
.doc::after { transform: translate(5px, 5px) rotate(.6deg); }
.cover-img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 30px 44px -22px rgba(15,36,48,.7); }
.doc-badge { position: absolute; z-index: 2; right: -12px; top: 18px; background: var(--navy); color: #fff; font: 700 13px var(--sans); letter-spacing: .06em; padding: 6px 12px; border-radius: 8px; box-shadow: 0 8px 16px -8px rgba(0,0,0,.5); }
.main-product h3 { font-size: 30px; }
.main-product ul { margin: 18px 0 24px; padding: 0; list-style: none; }
.main-product li { padding-left: 28px; position: relative; margin: 8px 0; color: var(--ink-2); }
.main-product li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #e3f1f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.5 2.4L12 5.4' fill='none' stroke='%230e7c86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.price-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.price { font: 700 36px var(--serif); margin-right: 8px; color: var(--navy); }
.minor { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 820px) { .minor { grid-template-columns: 1fr 1fr; } }
.row-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow); }
.row-card h3 { font-size: 22px; }
.row-card p { color: var(--ink-2); font-size: 16px; }
.tag { display: inline-block; justify-self: start; font-size: 13px; font-weight: 600; background: #e3f1f2; color: var(--teal-d); padding: 4px 12px; border-radius: 999px; }
.form { display: flex; gap: 8px; flex-wrap: wrap; }
.form input { flex: 1 1 200px; min-height: 50px; border-radius: 999px; border: 2px solid var(--line); padding: 0 20px; font: 16px var(--sans); background: #fff; color: var(--ink); }
.form input:focus-visible { outline-offset: 1px; }
.msg { font-size: 14px; color: var(--teal-d); min-height: 20px; }

/* Консультация */
.consult { background: var(--ink); color: #e3eef1; border-radius: 28px; padding: 64px 0; }
.consult .grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .consult .grid { grid-template-columns: 1.15fr 1fr; gap: 60px; } }
.consult h2 { font-size: clamp(28px, 3.4vw, 40px); color: #fff; margin: 12px 0 14px; }
.consult .eyebrow { color: #8fd0d6; }
.consult p { color: #bcd2d8; max-width: 34em; margin-bottom: 14px; }
.consult .card { background: #163845; border-color: #2a5361; box-shadow: none; }
.consult .card h3 { color: #fff; }
.consult .card p { color: #bcd2d8; }
.consult .form input { background: #0f2430; border-color: #2f5c6b; color: #fff; }
.consult .msg { color: var(--amber); }
.fine { font-size: 14px !important; color: #98b5bd !important; }

/* Об авторе */
.about { display: grid; gap: 34px; align-items: start; }
@media (min-width: 820px) { .about { grid-template-columns: 340px 1fr; gap: 56px; } }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; max-width: 340px; height: auto; margin-inline: auto; border-radius: 22px; box-shadow: 0 30px 50px -28px rgba(15,36,48,.6), 0 2px 6px rgba(15,36,48,.12); }
.about p { margin: 14px 0 0; max-width: 40em; color: var(--ink-2); }
.about-lead { font-size: 18.5px; color: var(--ink) !important; }
.timeline { list-style: none; margin: 22px 0 6px; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--bg); }
.timeline b { font: 700 15px var(--sans); color: var(--teal-d); letter-spacing: .02em; }
.timeline span { color: var(--ink-2); font-size: 16.5px; }
.work-photos { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 700px) { .work-photos { grid-template-columns: 1fr 1fr; } }
.work-photos figure { margin: 0; }
.work-photos img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.about-note { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.chips a { text-decoration: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 16px; font-size: 15px; font-weight: 500; }
.chips a:hover { border-color: var(--teal); color: var(--teal-d); }

/* Вопросы */
.faq { max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 22px; font: 600 17px var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--teal-d); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }

.legal-inline { flex-basis: 100%; margin-top: 8px; font-size: 14.5px; font-weight: 600; color: var(--rose); }
.legal-badge { display: inline-block; margin-top: 6px; padding: 10px 16px; border: 1.5px solid #f2b84b; background: rgba(242,184,75,.12); color: #ffe3a3; border-radius: 12px; font-weight: 600; font-size: 16px; }
.legal-band { background: #fff3d6; border-block: 2px solid #f2b84b; margin-top: 56px; }
.legal-band .wrap { padding-block: 22px; text-align: center; font: 600 clamp(17px, 2.2vw, 22px)/1.35 var(--sans); color: #5a3d00; }
footer { padding: 44px 0 100px; border-top: 1px solid var(--line); margin-top: 0; color: var(--muted); font-size: 15px; }
footer .cols { display: grid; gap: 24px; }
@media (min-width: 820px) { footer .cols { grid-template-columns: 1.2fr 1fr 1fr; } }
footer a { display: block; margin: 5px 0; }
footer strong { color: var(--ink); }
footer .disc { margin-top: 26px; font-size: 14px; }

.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 580px; margin: 0 auto; background: var(--ink); color: #e3eef1; border-radius: 16px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; font-size: 14px; z-index: 40; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); }
.cookie .btn { min-height: 40px; padding: 0 18px; font-size: 14px; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .locked, .spread { transition: none; }
  .leaf, .cast { display: none; }
  .spread.flip .pg { animation: none; }
}

/* ===== Гибридная тема: светлая основа, тёмно-синий первый экран, красный акцент, плотная типографика ===== */
:root {
  --ink: #0b1a33; --ink-2: #2a3b5c; --muted: #5d6b85; --line: #dbe3f0; --mist: #eef3fb; --bg: #f4f7fc;
  --teal: #1d4fd8; --teal-d: #1639a6; --navy: #0b1f4a; --red: #dc2438; --red-d: #c21a2d; --rose: #c21a2d; --amber: #ffc04d;
  --serif: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(11,26,51,.06), 0 18px 40px -20px rgba(29,79,216,.35);
}
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
.top { background: rgba(244,247,252,.9); border-bottom-color: rgba(219,227,240,.8); }
.logo { font-weight: 800; }
.btn { background: var(--red); border-color: var(--red); box-shadow: 0 12px 26px -12px rgba(229,38,58,.75); }
.btn:hover { background: var(--red-d); border-color: var(--red-d); }
.btn.ghost { background: transparent; color: var(--teal-d); border-color: var(--teal); box-shadow: none; }
.btn.ghost:hover { background: #fff; }
.card { transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(11,26,51,.06), 0 26px 44px -22px rgba(29,79,216,.5); }
.card .ico { background: #e4ecfd; }
.look { background: linear-gradient(180deg, var(--mist), #e3ebf8); }

.hero { background: radial-gradient(120% 90% at 78% 30%, #17399a 0%, #0b1f4a 55%, #060f2a 100%); color: #fff; padding: 48px 0 0; }
.hero::before { inset: auto; left: 8%; right: auto; top: 20%; width: 46%; height: 60%; background: radial-gradient(closest-side, rgba(229,38,58,.28), rgba(229,38,58,0) 70%); }
.hero .wrap { align-items: end; }
@media (min-width: 940px) { .hero { padding: 72px 0 0; } .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 40px; } }
.hero .eyebrow { color: #ff8793; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.05; margin: 16px 0 22px; }
.hero h1 em { font-style: normal; color: #ff5568; }
.hero .lead { color: #c9d6f2; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.12); }
.hero .note { color: #9fb2da; }
.hero .facts { border-top-color: rgba(255,255,255,.18); padding-bottom: 8px; }
.hero .facts b { color: #fff; }
.hero .facts span { color: #9fb2da; }
.hero-art { position: relative; min-height: 420px; display: grid; place-items: end center; }
.hero-art .halo { position: absolute; left: 50%; bottom: 8%; width: min(460px, 92%); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(70,120,255,.55), rgba(70,120,255,0) 72%); }
.hero-art .heart { position: absolute; right: 2%; top: 14%; width: 38%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.45)); animation: beat 2.6s ease-in-out infinite; transform-origin: 50% 60%; }
.hero-art .doc { position: relative; width: min(72%, 380px); height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.glass { position: absolute; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); font-size: 13px; color: #c9d6f2; line-height: 1.3; box-shadow: 0 18px 30px -18px rgba(0,0,0,.6); }
.glass b { display: block; font: 800 26px/1.05 var(--sans); color: #fff; }
.glass.g1 { left: 0; top: 34%; }
.glass.g2 { right: 0; bottom: 12%; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.05); } 24% { transform: scale(1); } 36% { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) { .hero-art .heart { animation: none; } }
@media (max-width: 939px) { .hero-art { min-height: 360px; } .glass.g1 { left: 2%; } .glass.g2 { right: 2%; } }
.btn { white-space: nowrap; }
@media (max-width: 420px) { .logo small { display: none; } }

/* ===== Три шага в линию и тёмный блок «29 глав» ===== */
.hero h1 { text-transform: uppercase; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; }
.section-head.center { margin-inline: auto; text-align: center; }
.steps { display: grid; gap: 22px; grid-template-columns: 1fr; counter-reset: st; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 34px; } }
.step { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 24px; box-shadow: var(--shadow); }
.step.main { border-color: var(--teal); box-shadow: 0 1px 2px rgba(11,26,51,.06), 0 28px 50px -24px rgba(29,79,216,.55); }
@media (min-width: 900px) {
  .step:not(:last-child)::after { content: ""; position: absolute; right: -29px; top: 38%; width: 24px; height: 24px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4fd8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
}
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.step-no { font: 800 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-d); }
.step-img { display: block; width: 58%; max-width: 190px; height: auto; margin: 14px auto 8px; filter: drop-shadow(0 18px 18px rgba(11,26,51,.22)); }
.step h3 { font-size: 20px; margin: 4px 0 10px; }
.step .gives { color: var(--ink-2); font-size: 15.5px; margin-bottom: 16px; }
.step .gives b { color: var(--ink); }
.step-buy { display: flex; align-items: center; gap: 16px; margin-top: auto; }
.step-buy .price { font: 800 28px/1 var(--sans); color: var(--navy); }
.step .freeform { margin-top: auto; }
.step .hint { margin-top: 12px; font-size: 14px; }
.tag.hot { background: var(--red); color: #fff; }
.steps-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: 15px; }
.steps + .steps-note + .legal-inline { text-align: center; }

.section.dark { background: radial-gradient(120% 100% at 50% 0%, #17399a 0%, #0b1f4a 60%, #060f2a 100%); color: #fff; border: 0; }
.section.dark .eyebrow { color: #ff8793; }
.section.dark .section-head p { color: #c9d6f2; }
.bgrid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .bgrid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.bcard { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 26px; transition: transform .2s, background .2s, border-color .2s; }
.bcard:hover { transform: translateY(-3px); background: rgba(255,255,255,.1); border-color: rgba(255,92,108,.55); }
.bcard .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #ff5568; background: rgba(229,38,58,.14); border: 1px solid rgba(255,85,104,.35); margin-bottom: 16px; }
.bcard h3 { font-size: 20px; margin-bottom: 8px; color: #fff; }
.bcard p { color: #c9d6f2; font-size: 15.5px; }
.bcard .chap { display: inline-block; margin-top: 14px; font: 700 14px/1 var(--sans); color: #ff5568; }

/* ===== Крупный просмотр: чёткая страница, листание стрелками, приближение пальцами ===== */
dialog.zoom { max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; display: none; }
dialog.zoom[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px 0; }
.zscroll { overflow: auto; max-width: 100vw; max-height: calc(100vh - 90px); touch-action: pan-x pan-y pinch-zoom; -webkit-overflow-scrolling: touch; }
dialog.zoom img { display: block; max-height: calc(100vh - 90px); width: auto; max-width: 96vw; margin: 0 auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.zbar { display: flex; align-items: center; gap: 18px; color: #fff; font-size: 15px; }
dialog.zoom .zarrow { position: static; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 20px; cursor: pointer; }
dialog.zoom .zarrow:disabled { opacity: .35; cursor: default; }
dialog.zoom #zoom-close { position: fixed; top: 14px; right: 14px; z-index: 5; }
@keyframes flip-one-prev { to { transform: rotateY(105deg); opacity: 0; } }

/* ===== Первый экран: фото операционной, сердце впереди, бегущая ЭКГ ===== */
.hero::after { content: ""; position: absolute; inset: 0 0 auto 0; aspect-ratio: 1800 / 419; z-index: 0; pointer-events: none; background: url("img/hero-room.jpg") center / 100% 100% no-repeat; opacity: .5; mix-blend-mode: luminosity; -webkit-mask-image: linear-gradient(#000 30%, transparent 100%); mask-image: linear-gradient(#000 30%, transparent 100%); }
.hero .wrap { z-index: 2; }
.hero-art .doc { z-index: 2; }
.hero-art .heart { z-index: 3; left: -4%; right: auto; top: 34%; width: 48%; }
.ecg { position: absolute; left: 0; width: 100%; height: 90px; bottom: 150px; z-index: 1; pointer-events: none; overflow: visible; }
.ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ecg-base { stroke: rgba(255,85,104,.22); stroke-width: 1.6; }
.ecg-run { stroke: #ff5568; stroke-width: 2.6; stroke-dasharray: 90 910; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(255,85,104,.95)); animation: ecg-run 4.2s linear infinite; }
@keyframes ecg-run { from { stroke-dashoffset: 90; } to { stroke-dashoffset: -910; } }
@media (prefers-reduced-motion: reduce) { .ecg-run { animation: none; stroke-dasharray: none; opacity: .5; } }
@media (max-width: 939px) { .ecg { bottom: 40%; height: 60px; } .hero-art .heart { left: -2%; top: 40%; width: 44%; } }

/* ===== Предупреждение внизу страницы: по ширине верстки, как у клиники ===== */
.legal-band { display: none; }
footer { padding-bottom: 48px; }
.legal-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-small { font-size: 14px; color: #8a97a8; margin: 0 0 4px; }
.legal-caps { margin: 0; font: 700 clamp(22px, 3.3vw, 38px)/1.12 var(--sans); letter-spacing: -.01em; text-transform: uppercase; color: #9aa6b8; }

/* ===== Ридер на широком экране: книга с загибом страницы ===== */
.pfbook { position: relative; margin: 0 auto; transition: filter .35s, opacity .35s; filter: drop-shadow(0 30px 40px rgba(15,36,48,.35)); }
.pfbook.dim { filter: blur(3px) saturate(.85); opacity: .55; pointer-events: none; }
.pfpage { background: #fff; overflow: hidden; cursor: zoom-in; line-height: 0; }
.pfpage img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

/* Предупреждение внизу: одной строкой на ширину верстки, как у клиники */
.legal-bottom { margin-top: 28px; padding-top: 0; border-top: 0; }
.legal-small { font-size: 14px; color: #656c7b; margin: 0 0 2px; }
.legal-caps { font: 600 clamp(15px, 2.02vw, 26px)/1.2 var(--sans); letter-spacing: 0; color: #656c7b; white-space: nowrap; }
@media (max-width: 760px) { .legal-caps { white-space: normal; font-size: 18px; } }

/* Обе строки предупреждения занимают ровно ширину верстки (размер считается от ширины блока) */
.legal-bottom { container-type: inline-size; }
.legal-small { font-size: 1.98vw; font-size: 2.12cqw; white-space: nowrap; }
.legal-caps { font-size: 2.12vw; font-size: 2.38cqw; }
@media (max-width: 760px) { .legal-small { font-size: 14px; white-space: normal; } .legal-caps { font-size: 18px; } }

/* Значки площадок рядом с названиями */
.ico-brand { flex: none; display: block; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 10px; }
.chan b { display: flex; align-items: center; gap: 10px; }
.chan b .ico-brand { width: 28px; height: 28px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h3like { font-size: 20px; margin-bottom: 8px; }

/* телефон: фоновое фото первого экрана не грузим, оно не влияет на смысл и тормозит показ */
@media (max-width: 760px) { .hero::after { display: none; } }
