/* =========================================================
   МОЖНО ИДТИ НА КРАСНЫЙ СВЕТ? — Landing styles
   Palette tuned to the real cover:
   white background, deep blue #1E3A8A, red #DC2626, soft sky tints
   ========================================================= */

:root {
    --blue: #1E3A8A;
    --blue-dark: #16296a;
    --blue-deep: #0F1F4D;
    --red: #DC2626;
    --red-dark: #B91C1C;
    --sky: #EAF1FC;       /* light blue tint from cover */
    --sky-2: #DCE7F8;
    --cream: #FBF7EF;
    --ink: #1A1F36;
    --muted: #5B6478;
    --line: rgba(30, 58, 138, 0.12);
    --white: #FFFFFF;
    --shadow: 0 20px 60px -20px rgba(15, 31, 77, 0.35);
    --shadow-lg: 0 40px 90px -25px rgba(15, 31, 77, 0.5);
    --radius: 18px;
    --maxw: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ol { list-style: none; counter-reset: item; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}
.section { padding: 100px 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--blue-deep);
}
.section__lead {
    margin-top: 20px;
    font-size: clamp(1.02rem, 1.8vw, 1.18rem);
    color: var(--muted);
    max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 999px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
    white-space: nowrap;
}
.btn--primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 10px 30px -8px rgba(220, 38, 38, 0.6);
}
.btn--primary:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -8px rgba(220, 38, 38, 0.7);
}
.btn--ghost {
    background: var(--white);
    color: var(--blue-deep);
    border: 2px solid var(--sky-2);
    box-shadow: 0 4px 14px -6px rgba(30,58,138,0.15);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--blue); }
/* dark-background variant (final CTA) */
.btn--ghost.on-dark {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
}
.btn--ghost.on-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.16); }
.btn--xl { padding: 19px 38px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 26px clamp(20px, 5vw, 60px);
}
.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--blue-deep); font-weight: 700; font-size: 0.95rem; }
.nav__dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.25);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(220,38,38,0.25);} 50% { box-shadow: 0 0 0 9px rgba(220,38,38,0);} }
.nav__title { max-width: 220px; line-height: 1.2; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--blue); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--red); }
.nav__links .nav__cta {
    background: var(--red); color: var(--white) !important;
    padding: 10px 22px; border-radius: 999px; font-weight: 700;
    box-shadow: 0 6px 20px -6px rgba(220,38,38,0.6);
}
.nav__links .nav__cta:hover { background: var(--red-dark); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 26px; height: 2px; background: var(--blue-deep); border-radius: 2px; transition: 0.3s; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh; /* iOS: без прыжка из-за адресной строки */
    background:
        radial-gradient(ellipse at 85% 15%, rgba(220,38,38,0.10) 0%, transparent 45%),
        radial-gradient(ellipse at 5% 85%, rgba(30,58,138,0.14) 0%, transparent 50%),
        linear-gradient(175deg, #F6F9FF 0%, #EAF1FC 55%, #DCE7F8 100%);
    color: var(--ink);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(30,58,138,0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.5;
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    pointer-events: none;
}
.hero__inner {
    flex: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 50px;
    width: 100%; max-width: var(--maxw);
    margin: 0 auto;
    padding: 120px clamp(20px, 5vw, 60px) 80px;
    position: relative; z-index: 2;
}
.hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
    padding: 8px 16px; border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--sky-2);
    color: var(--blue);
    margin-bottom: 28px;
    box-shadow: 0 4px 14px -6px rgba(30,58,138,0.2);
}
.hero__badge::before { content: '🚦'; }
.hero__title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.6rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--blue-deep);
}
.hero__subtitle {
    margin-top: 24px;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    color: var(--muted);
    font-weight: 400;
    max-width: 30ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__trust { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--muted); }
.hero__trust .check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(34,197,94,0.15); color: #16a34a; font-size: 0.75rem; font-weight: 800;
}

/* ---------- Hero cover (real image in 3D frame) ---------- */
.hero__cover {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    perspective: 1800px;
}
.cover-glow {
    position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
    width: 78%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(220,38,38,0.22) 0%, transparent 60%);
    filter: blur(40px); z-index: 0;
}
.cover-wrap { position: relative; z-index: 2; }
.book3d {
    position: relative;
    width: clamp(240px, 26vw, 340px);
    aspect-ratio: 2 / 3;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(3deg);
    animation: floatBook 6s ease-in-out infinite;
}
.book3d::before { /* spine */
    content: '';
    position: absolute; top: 0; bottom: 0; left: 0; width: 18px;
    background: linear-gradient(90deg, #0F1F4D 0%, #1E3A8A 100%);
    transform: rotateY(90deg) translateX(-9px);
    transform-origin: left center;
    border-radius: 4px 0 0 4px;
}
.book3d::after { /* pages edge */
    content: '';
    position: absolute; top: 1.5%; bottom: 1.5%; right: 0; width: 8px;
    background: repeating-linear-gradient(180deg, #fff 0 1px, #e5e7eb 1px 2px);
    transform: rotateY(-90deg) translateX(4px);
    transform-origin: right center;
}
.book3d__img {
    position: relative; z-index: 1;
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 3px 10px 10px 3px;
    box-shadow: 0 35px 70px -20px rgba(15,31,77,0.55), 0 0 0 1px rgba(255,255,255,0.4);
    display: block;
}
.book3d--mini { width: clamp(200px, 22vw, 280px); animation: none; transform: rotateY(-18deg) rotateX(2deg); }
@keyframes floatBook { 0%,100% { transform: rotateY(-20deg) rotateX(3deg) translateY(0);} 50% { transform: rotateY(-17deg) rotateX(3deg) translateY(-14px);} }

/* Hero scroll cue */
.hero__scroll {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: var(--blue); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
    animation: bob 2s ease-in-out infinite;
    z-index: 3;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0);} 50% { transform: translate(-50%, 8px);} }

/* =========================================================
   ABOUT / CONTENTS
   ========================================================= */
.section--about { background: var(--cream); }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 64px; }
.benefit {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px 26px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.benefit__icon { font-size: 2.2rem; margin-bottom: 14px; }
.benefit h3 { font-family: 'Manrope', sans-serif; font-size: 1.18rem; color: var(--blue-deep); margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 0.96rem; }

/* TOC */
.toc { max-width: 820px; margin: 0 auto; }
.toc__header { text-align: center; margin-bottom: 28px; }
.toc__title { font-family: 'Manrope', sans-serif; font-size: 1.7rem; color: var(--blue-deep); }
.toc__hint { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.toc__part {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s var(--ease), border-color 0.25s;
}
.toc__part[open] { box-shadow: var(--shadow); border-color: rgba(220,38,38,0.25); }
.toc__part summary {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px;
    cursor: pointer; list-style: none;
    transition: background 0.2s;
}
.toc__part summary::-webkit-details-marker { display: none; }
.toc__part summary:hover { background: rgba(30,58,138,0.03); }
.toc__part-num {
    flex-shrink: 0;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--red); background: rgba(220,38,38,0.08);
    padding: 6px 12px; border-radius: 999px;
}
.toc__part-title { flex: 1; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.08rem; color: var(--blue-deep); }
.toc__chevron { font-size: 1.4rem; color: var(--blue); transition: transform 0.3s var(--ease); font-weight: 300; }
.toc__part[open] .toc__chevron { transform: rotate(45deg); }
.toc__list {
    padding: 0 24px 22px 24px;
    counter-reset: item;
    columns: 2; column-gap: 40px;
}
.toc__list li {
    counter-increment: item;
    position: relative;
    padding: 8px 0 8px 32px;
    font-size: 0.95rem; color: var(--ink);
    break-inside: avoid;
}
.toc__list li::before {
    content: counter(item);
    position: absolute; left: 0; top: 9px;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(30,58,138,0.08); color: var(--blue);
    font-size: 0.72rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.toc__intro-body { padding: 0 24px 22px; color: var(--muted); font-size: 0.96rem; font-style: italic; }
.toc__part--epilogue summary { border-left: 4px solid var(--red); }

/* =========================================================
   FOR WHOM
   ========================================================= */
.section--for { background: linear-gradient(180deg, var(--sky) 0%, var(--cream) 100%); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 34px 26px;
    text-align: center;
    border: 1px solid var(--line);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
    font-size: 2.6rem; margin-bottom: 16px;
    width: 72px; height: 72px; margin-left: auto; margin-right: auto;
    display: flex; align-items: center; justify-content: center;
    background: rgba(30,58,138,0.06); border-radius: 50%;
}
.card h3 { font-family: 'Manrope', sans-serif; font-size: 1.1rem; color: var(--blue-deep); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.92rem; }

/* =========================================================
   AUTHOR
   ========================================================= */
.section--author { background: var(--white); }
.author { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.author__photo { position: relative; display: flex; flex-direction: column; align-items: center; }
.author__avatar {
    width: clamp(240px, 30vw, 340px); aspect-ratio: 3 / 4;
    border-radius: 24px;
    background: var(--sky);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.author__avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.author__photo-tag {
    margin-top: 16px; font-weight: 700; color: var(--blue-deep);
    font-family: 'Manrope', sans-serif; font-size: 1.05rem;
}
.author__role { color: var(--red); font-weight: 600; margin: 6px 0 22px; font-size: 1.02rem; }
.author__bio p { color: var(--muted); margin-bottom: 14px; font-size: 1.02rem; }
.author__socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.social {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 999px;
    font-weight: 600; font-size: 0.94rem;
    transition: transform 0.25s var(--ease), background 0.25s;
}
.social--tg { background: #229ED9; color: var(--white); }
.social--tg:hover { background: #1c8dba; transform: translateY(-2px); }
.social--site { background: var(--blue); color: var(--white); }
.social--site:hover { background: var(--blue-dark); transform: translateY(-2px); }
.author__bio a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.author__bio a:hover { color: var(--red); }
.author__bio strong { color: var(--blue-deep); }

/* =========================================================
   FINAL CTA
   ========================================================= */
.section--final {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(220,38,38,0.12) 0%, transparent 50%),
        linear-gradient(160deg, var(--blue-dark) 0%, var(--blue-deep) 100%);
    color: var(--white);
}
.final { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 60px; align-items: center; }
.final__cover { display: flex; justify-content: center; perspective: 1400px; }
.book--mini { width: clamp(200px, 22vw, 280px); animation: none; transform: rotateY(-20deg) rotateX(3deg); }
.final__title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
}
.final__lead { margin: 20px 0 32px; font-size: 1.15rem; color: rgba(255,255,255,0.75); }
.final__text .btn { margin-right: 12px; margin-bottom: 12px; }
.final__meta {
    display: flex; gap: 36px; margin-top: 36px; padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.12); list-style: none;
}
.final__meta li { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.final__meta strong { display: block; font-family: 'Manrope', sans-serif; font-size: 1.8rem; color: var(--white); font-weight: 800; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--blue-deep); color: rgba(255,255,255,0.7); padding: 50px 0 40px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; }
.footer__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 0.9rem; }
.footer__links a:hover { color: var(--white); }
.footer__copy { font-size: 0.85rem; opacity: 0.6; }

/* =========================================================
   MODAL
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10, 21, 56, 0.7); backdrop-filter: blur(6px); animation: fadeIn 0.25s ease; }
.modal__dialog {
    position: relative; width: 100%; max-width: 480px;
    background: var(--cream); border-radius: 24px;
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
    max-height: 90vh; overflow-y: auto;
    animation: slideUp 0.35s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal__close {
    position: absolute; top: 16px; right: 16px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600; color: var(--muted);
    background: var(--white);
    border: 1px solid var(--line);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.modal__close:hover { background: var(--sky); color: var(--blue-deep); border-color: var(--sky-2); }
.modal__head { margin-bottom: 22px; }
.modal__title { font-family: 'Manrope', sans-serif; font-size: 1.5rem; color: var(--blue-deep); margin-bottom: 8px; }
.modal__lead { color: var(--muted); font-size: 0.96rem; }

/* Preview pages */
.preview { display: flex; gap: 14px; justify-content: center; margin: 22px 0; }
.preview__page {
    flex: 1; max-width: 120px; aspect-ratio: 3 / 4;
    background: var(--white); border: 1px solid var(--line);
    border-radius: 4px; padding: 14px 10px;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; gap: 7px;
    transform: rotate(var(--rot, 0deg));
}
.preview__page--1 { --rot: -4deg; }
.preview__page--2 { --rot: 4deg; margin-top: 10px; }
.preview__chapter { font-size: 0.6rem; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: 0.1em; }
.preview__line { height: 4px; background: rgba(30,58,138,0.15); border-radius: 2px; }
.preview__line--w1 { width: 80%; }
.preview__line--w2 { width: 60%; }

/* Form */
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.field { position: relative; }
.field input {
    width: 100%; padding: 15px 18px;
    border: 2px solid var(--line); border-radius: 12px;
    font-size: 1rem; font-family: inherit; background: var(--white);
    transition: border-color 0.2s;
}
.field input:focus { outline: none; border-color: var(--blue); }
.field input.invalid { border-color: var(--red); }
.field__error { display: block; color: var(--red); font-size: 0.82rem; margin-top: 6px; min-height: 1em; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; }
.consent a { color: var(--blue); text-decoration: underline; }
.modal__success { text-align: center; color: #16a34a; font-weight: 600; padding: 12px; background: rgba(34,197,94,0.1); border-radius: 12px; }

/* =========================================================
   REVEAL ANIMATIONS
   (только при работающем JS — иначе блоки невидимы)
   ========================================================= */
html.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
    .section { padding: 70px 0; }
    .hero__inner { grid-template-columns: 1fr; text-align: center; padding-top: 110px; padding-bottom: 60px; gap: 36px; }
    .hero__text { order: 2; }
    .hero__cover { order: 1; }
    .hero__actions, .hero__trust { justify-content: center; }
    .hero__subtitle { margin-left: auto; margin-right: auto; }
    /* 3D-обложка компактнее и без обрезки на узких экранах */
    .book3d { width: clamp(190px, 46vw, 260px); transform: rotateY(-10deg) rotateX(2deg); }
    @keyframes floatBook { 0%,100% { transform: rotateY(-10deg) rotateX(2deg) translateY(0);} 50% { transform: rotateY(-8deg) rotateX(2deg) translateY(-10px);} }
    .book3d--mini { transform: rotateY(-8deg) rotateX(2deg); }
    .cover-glow { width: 90%; filter: blur(28px); }
    .benefits { grid-template-columns: 1fr; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .author { grid-template-columns: 1fr; gap: 40px; }
    .author__info { text-align: center; }
    .author__bio { text-align: left; }
    .author__socials { justify-content: center; }
    .final { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .final__text .btn { margin: 0 6px 12px; }
    .final__meta { justify-content: center; flex-wrap: wrap; }
    .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--white); padding: 20px; gap: 16px; box-shadow: var(--shadow); border-top: 1px solid var(--sky-2); }
    .nav__links.is-open { display: flex; }
    .nav__burger { display: flex; }
}

@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .hero__inner { padding-top: 96px; padding-bottom: 48px; }
    .hero__title { font-size: clamp(2.1rem, 11vw, 3rem); }
    .hero__subtitle { font-size: 1.05rem; }
    .hero__scroll { display: none; } /* не перекрывает кнопки на маленьких экранах */
    .book3d { width: clamp(180px, 56vw, 230px); }
    .toc__list { columns: 1; }
    .toc__part summary { padding: 15px 16px; gap: 10px; align-items: flex-start; }
    .toc__part-num { font-size: 0.64rem; padding: 5px 9px; }
    .toc__part-title { font-size: 0.95rem; line-height: 1.3; }
    .toc__chevron { font-size: 1.2rem; }
    .cards { grid-template-columns: 1fr; }
    .card__icon { width: 64px; height: 64px; font-size: 2.2rem; }
    .benefit { padding: 24px 20px; }
    .btn { padding: 14px 22px; font-size: 0.94rem; }
    .btn--xl { padding: 16px 26px; width: 100%; }
    .hero__actions .btn { width: 100%; max-width: 360px; }
    .final__text .btn { width: 100%; max-width: 400px; margin-left: auto; margin-right: auto; }
    .final__meta { gap: 14px; }
    .final__meta strong { font-size: 1.35rem; }
    .author__avatar { width: min(78vw, 300px); }
    .modal__dialog { padding: 26px 18px; border-radius: 18px; }
    .modal__close { top: 10px; right: 10px; padding: 6px 10px; font-size: 0.74rem; }
    .preview__page { max-width: 96px; padding: 10px 8px; }
    .footer__inner { flex-direction: column; text-align: center; }
    .footer__links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
