/* ==========================================================================
   Vienna ED — landing page knihy „Tělo, mysl a disciplína"
   Implementace dle design_handoff_vienna_ed_landing (hi-fi reference v2)
   ========================================================================== */

/* ---------- Font (lokální Mulish — variabilní, 400–700) ---------- */
@font-face {
    font-family: "Mulish";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../assets/fonts/mulish-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Mulish";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../assets/fonts/mulish-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
    /* Barvy */
    --bg: #FBFAF7;
    --bg-white: #FFFFFF;
    --bg-support: #F4F2EB;
    --dark: #16150F;
    --text: #16150F;
    --text-strong: #33321F;
    --text-secondary: #55534A;
    --text-tertiary: #8A8878;
    --line: rgba(22, 21, 15, 0.10);
    --line-strong: rgba(22, 21, 15, 0.16);
    --line-dark: rgba(251, 250, 247, 0.12);
    --line-dark-strong: rgba(251, 250, 247, 0.2);
    --btn-dark-hover: #33321F;
    --btn-light-hover: #E8E6DD;
    --on-dark: #FBFAF7;
    --on-dark-75: rgba(251, 250, 247, 0.75);
    --on-dark-50: rgba(251, 250, 247, 0.5);

    /* Typografie */
    --font: "proxima-nova", "Proxima Nova", "Mulish", system-ui, sans-serif;

    /* Layout */
    --container: 1240px;
    --container-narrow: 880px;
    --pad-x: 28px;
    --section-y: 104px;
    --section-y-lg: 112px;

    /* Animace */
    --ease-out-book: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

section[id] {
    scroll-margin-top: 76px;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding-block: var(--section-y);
    border-top: 1px solid var(--line);
}

.section-white { background: var(--bg-white); }
.section-cream { background: var(--bg); }
.section-support { background: var(--bg-support); }

.section-dark {
    background: var(--dark);
    color: var(--on-dark);
    border-top: none;
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 56px;
    align-items: start;
}

.split-wide {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 72px;
}

.section-head {
    max-width: 640px;
    margin-bottom: 64px;
}

.section-head-tight {
    margin-bottom: 48px;
}

.eyebrow {
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.eyebrow-dark {
    color: var(--on-dark-50);
}

.section-title {
    font-weight: 600;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: pretty;
}

/* ---------- Tlačítka (ostré hrany všude) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-lg {
    font-size: 16px;
    padding: 17px 34px;
}

.btn-dark {
    color: var(--bg);
    background: var(--dark);
}

.btn-dark:hover {
    background: var(--btn-dark-hover);
    transform: translateY(-1px);
}

.btn-outline {
    color: var(--dark);
    background: transparent;
    border: 1px solid rgba(22, 21, 15, 0.3);
    padding: 14px 30px;
}

.btn-outline.btn-lg {
    padding: 16px 34px;
}

.btn-outline:hover {
    border-color: var(--dark);
    background: rgba(22, 21, 15, 0.04);
}

.btn-text {
    color: var(--text-secondary);
    background: transparent;
    font-weight: 500;
    padding: 14px 18px;
}

.btn-text:hover {
    color: var(--dark);
}

/* Varianty na tmavém podkladu */
.btn-light {
    color: var(--dark);
    background: var(--on-dark);
}

.btn-light:hover {
    background: var(--btn-light-hover);
    transform: translateY(-1px);
}

.btn-outline-light {
    color: var(--on-dark);
    background: transparent;
    border: 1px solid rgba(251, 250, 247, 0.35);
    padding: 14px 30px;
}

.btn-outline-light.btn-lg {
    padding: 16px 34px;
}

.btn-outline-light:hover {
    border-color: var(--on-dark);
    background: rgba(251, 250, 247, 0.06);
}

.btn-text-light {
    color: rgba(251, 250, 247, 0.7);
    background: transparent;
    font-weight: 500;
    padding: 14px 18px;
}

.btn-text-light:hover {
    color: var(--on-dark);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cta-row-center {
    justify-content: center;
}

/* ---------- Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 250, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 18px;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.brand-mark {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-sub {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--dark);
}

.btn-nav {
    font-size: 14px;
    padding: 11px 22px;
}

.btn-nav:hover {
    transform: none;
}

/* Hamburger (jen mobil) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 64px;
    align-items: center;
    padding-block: 96px 120px;
}

.hero-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 56px;
    opacity: 0.5;
    animation: slowDrift 9s ease-in-out infinite alternate;
}

.hero-line {
    height: 1px;
    transform-origin: center;
    animation: breathLine 7s ease-in-out infinite;
}

.hero-line-1 { background: linear-gradient(90deg, transparent, rgba(22, 21, 15, 0.14), transparent); }
.hero-line-2 { background: linear-gradient(90deg, transparent, rgba(22, 21, 15, 0.10), transparent); animation-delay: 1.2s; }
.hero-line-3 { background: linear-gradient(90deg, transparent, rgba(22, 21, 15, 0.14), transparent); animation-delay: 2.4s; }
.hero-line-4 { background: linear-gradient(90deg, transparent, rgba(22, 21, 15, 0.08), transparent); animation-delay: 3.6s; }

.hero-content {
    position: relative;
    min-width: 0;
}

.hero-content .eyebrow {
    margin-bottom: 22px;
}

.hero-title {
    margin-bottom: 26px;
    font-weight: 700;
    font-size: clamp(44px, 6.5vw, 88px);
    line-height: 1.0;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero-claim {
    margin-bottom: 18px;
    max-width: 540px;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 600;
    text-wrap: pretty;
}

.hero-text {
    margin-bottom: 40px;
    max-width: 540px;
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    text-wrap: pretty;
}

/* Hero entrance (stagger) */
.hero-fade { animation: heroFadeUp 0.9s ease-out both; }
.hero-fade-1 { animation-duration: 0.8s; }
.hero-fade-2 { animation-delay: 0.15s; }
.hero-fade-3 { animation-delay: 0.3s; }
.hero-fade-4 { animation-delay: 0.42s; }
.hero-fade-5 { animation-delay: 0.55s; }

/* ---------- Obálka knihy ---------- */
.hero-book {
    position: relative;
    display: flex;
    justify-content: center;
    animation: heroBookIn 1.1s var(--ease-out-book) 0.35s both;
}

.book-cover {
    position: relative;
    width: min(320px, 80%);
    aspect-ratio: 2 / 3;
    background: linear-gradient(160deg, #1D1C15 0%, #16150F 60%, #0F0E0A 100%);
    box-shadow: 24px 32px 60px rgba(22, 21, 15, 0.28), inset 6px 0 12px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 30px;
    overflow: hidden;
}

/* Skutečná obálka překryje CSS mockup; při chybějícím souboru se odstraní */
.book-cover-img {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover-spine {
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.book-cover-author {
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(251, 250, 247, 0.55);
}

.book-cover-title {
    font-weight: 600;
    font-size: 30px;
    line-height: 1.15;
    color: var(--on-dark);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.book-cover-rule {
    display: block;
    width: 36px;
    height: 1px;
    background: rgba(251, 250, 247, 0.4);
    margin-bottom: 14px;
}

.book-cover-tagline {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(251, 250, 247, 0.65);
}

.book-cover-publisher {
    margin-top: 12px;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(251, 250, 247, 0.4);
}

/* ---------- Textové bloky (prose) ---------- */
.prose {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.prose p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    text-wrap: pretty;
}

.prose .prose-strong {
    color: var(--text-strong);
}

/* ---------- Mřížky s 1px linkami ---------- */
.hairline-grid {
    display: grid;
    gap: 1px;
    background: var(--line-strong);
    border: 1px solid var(--line-strong);
}

.hairline-grid-dark {
    background: var(--line-dark-strong);
    border-color: var(--line-dark-strong);
}

/* ---------- Co v knize najdete ---------- */
.findings-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.finding-card {
    background: var(--bg);
    padding: 38px 32px;
    transition: background 0.25s ease;
}

.finding-card:hover {
    background: var(--bg-white);
}

.finding-num {
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.finding-title {
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.finding-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    text-wrap: pretty;
}

/* ---------- Pro koho je kniha určena ---------- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
}

.audience {
    border-top: 2px solid var(--dark);
    padding-top: 22px;
}

.audience-title {
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 700;
}

.audience-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    text-wrap: pretty;
}

/* ---------- Kniha pro firmy (tmavá) ---------- */
.section-dark {
    padding-block: var(--section-y-lg);
}

.firm-intro {
    margin-bottom: 72px;
}

.dark-text {
    margin-top: 24px;
    max-width: 540px;
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--on-dark-75);
    text-wrap: pretty;
}

.dark-text + .dark-text {
    margin-top: 20px;
}

.dark-text-last {
    margin-bottom: 40px;
}

.list-heading {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--on-dark-50);
}

.reason-list li {
    display: flex;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line-dark);
}

.reason-list p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(251, 250, 247, 0.85);
    text-wrap: pretty;
}

.square-bullet {
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 8px;
    background: var(--dark);
}

.square-bullet-light {
    background: var(--on-dark);
    opacity: 0.7;
}

/* Světlé varianty seznamu (sekce Podpora) */
.list-heading-light-bg {
    color: var(--text-tertiary);
}

.reason-list-light-bg li {
    border-bottom-color: rgba(22, 21, 15, 0.14);
}

.reason-list-light-bg p {
    color: var(--text-strong);
}

.benefit-panels .benefit-panel {
    background: var(--dark);
    padding: 40px 36px;
}

.benefit-panel .list-heading {
    margin-bottom: 22px;
}

.dash-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dash-list li {
    display: flex;
    gap: 14px;
    font-size: 15.5px;
    line-height: 1.55;
    color: rgba(251, 250, 247, 0.8);
}

.dash-list li span:first-child {
    flex: none;
    color: var(--on-dark);
}

/* ---------- Podpořte vydání ---------- */
.support-text {
    margin-top: 24px;
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    text-wrap: pretty;
}

.support-text + .support-text {
    margin-top: 20px;
}

.support-text-strong {
    color: var(--text-strong);
    font-weight: 600;
}

.support-text-last {
    margin-bottom: 40px;
}

/* ---------- Cenové karty (Objednávka) ---------- */
.price-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
    margin: 40px auto 44px;
    text-align: center;
}

.price-card {
    background: var(--bg-white);
    padding: 32px 24px;
}

.price-format {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.price-value {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 10px;
}

.price-isbn {
    font-size: 12.5px;
    color: var(--text-secondary);
}

/* ---------- Balíčky zapojení (Podpora) ---------- */
.packages {
    margin-top: 72px;
}

.packages-heading {
    margin-bottom: 24px;
}

.package-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.package-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    padding: 36px 30px;
    transition: background 0.25s ease;
}

.package-card:hover {
    background: #fffdf8;
}

.package-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 18px;
}

.package-title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.package-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    text-wrap: pretty;
    margin-bottom: 22px;
}

.package-price {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.packages-cta {
    margin-top: 32px;
}

/* ---------- Timeline (Proč kniha vznikla) ---------- */
.story .story-head {
    position: sticky;
    top: 110px;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: rgba(22, 21, 15, 0.15);
}

.timeline li {
    position: relative;
    padding: 0 0 48px 40px;
}

.timeline li:last-child {
    padding-bottom: 0;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 11px;
    height: 11px;
    background: var(--bg);
    border: 1px solid rgba(22, 21, 15, 0.5);
}

.timeline-title {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 21px;
    letter-spacing: -0.01em;
}

.timeline-text {
    max-width: 540px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    text-wrap: pretty;
}

/* ---------- Accordion (Obsah knihy) ---------- */
.accordion {
    border-top: 1px solid rgba(22, 21, 15, 0.14);
}

.accordion-item {
    border-bottom: 1px solid rgba(22, 21, 15, 0.14);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 24px 4px;
    color: var(--text);
    transition: opacity 0.2s;
}

.accordion-trigger:hover {
    opacity: 0.7;
}

.accordion-num {
    flex: none;
    width: 28px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.accordion-title {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.accordion-icon {
    display: inline-block;
    font-size: 20px;
    font-weight: 400;
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
}

.accordion-item.is-open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.45s var(--ease-out-book), opacity 0.35s ease;
}

.accordion-item.is-open .accordion-panel {
    max-height: 260px;
    opacity: 1;
}

.accordion-panel p {
    margin: 0;
    padding: 0 4px 26px 52px;
    max-width: 640px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    text-wrap: pretty;
}

/* ---------- Ukázka z knihy (čtečka) ---------- */
.reader-lead {
    margin-top: 16px;
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    text-wrap: pretty;
}

.reader {
    max-width: 720px;
}

/* „Papír" ukázky */
.reader-viewport {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--line-strong);
    box-shadow: 0 1px 3px rgba(22, 21, 15, 0.04);
    outline: none;
}

.reader-viewport:focus-visible {
    box-shadow: 0 0 0 2px var(--dark);
}

.reader-page {
    padding: 52px clamp(28px, 5vw, 64px);
}

/* Fallback bez JS: stránky pod sebou s dělicí linkou */
.reader-page + .reader-page {
    border-top: 1px solid var(--line);
}

/* Paged režim po inicializaci JS */
.reader.is-ready .reader-page {
    display: none;
}

.reader.is-ready .reader-page.is-active {
    display: block;
    animation: readerPageIn 0.4s var(--ease-out-book) both;
}

.reader.is-ready .reader-page + .reader-page {
    border-top: none;
}

@keyframes readerPageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.reader-page-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.reader-chapter {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.reader-folio {
    flex: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.reader-heading {
    margin-bottom: 22px;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.reader-subheading {
    margin: 28px 0 14px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.reader-page p {
    margin-bottom: 16px;
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--text-strong);
    text-align: justify;
    text-wrap: pretty;
    hyphens: auto;
}

.reader-page p:last-child {
    margin-bottom: 0;
}

.reader-lead-in {
    font-weight: 700;
    color: var(--text) !important;
}

.reader-list {
    margin: 0 0 16px;
    padding-left: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reader-list li {
    position: relative;
    padding-left: 22px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-strong);
    text-wrap: pretty;
}

.reader-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--dark);
}

.reader-end {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    text-align: center !important;
}

/* Ovládání */
.reader-controls {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.reader.is-ready .reader-controls {
    display: flex;
}

.reader-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    background: transparent;
    border: 1px solid rgba(22, 21, 15, 0.3);
    padding: 12px 22px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

.reader-btn:hover:not(:disabled) {
    border-color: var(--dark);
    background: rgba(22, 21, 15, 0.04);
}

.reader-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.reader-progress {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}

.reader-current {
    color: var(--dark);
}

/* Skrytý text jen pro čtečky obrazovky */
.reader-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.reader-cta {
    margin-top: 36px;
    justify-content: flex-start;
}

@media (prefers-reduced-motion: reduce) {
    .reader.is-ready .reader-page.is-active {
        animation: none;
    }
}

/* ---------- Co čtenář získá ---------- */
.gain-list li {
    display: flex;
    gap: 22px;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid rgba(22, 21, 15, 0.12);
}

.gain-num {
    flex: none;
    width: 28px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.gain-list p {
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-strong);
    text-wrap: pretty;
}

/* ---------- O autorovi + nakladatelství ---------- */
.about-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.about-panel {
    background: var(--bg-white);
    padding: 48px 40px;
}

.about-title {
    margin-bottom: 22px;
    font-weight: 600;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.about-text {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    text-wrap: pretty;
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-text-strong {
    color: var(--text-strong);
}

.about-links {
    margin-top: 28px;
}

.about-links .btn {
    font-size: 14px;
    padding: 12px 22px;
}

.about-links .btn-text {
    padding: 12px 14px;
}

/* ---------- Objednávka ---------- */
.section-order {
    padding-block: 128px 110px;
}

.order {
    text-align: center;
}

.order-title {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-wrap: pretty;
}

.order-text {
    margin: 0 auto 48px;
    max-width: 600px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-secondary);
    text-wrap: pretty;
}

/* ---------- Kontakt ---------- */
.section-contact {
    padding-block: 96px;
}

.contact {
    text-align: center;
}

.contact-title {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: pretty;
}

.contact-text {
    margin: 0 auto 40px;
    max-width: 520px;
    font-size: 16.5px;
    line-height: 1.65;
    color: rgba(251, 250, 247, 0.7);
    text-wrap: pretty;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    border-top: 1px solid rgba(251, 250, 247, 0.15);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-block: 36px;
}

.footer-copy {
    font-size: 13px;
    color: var(--on-dark-50);
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 13px;
    color: var(--on-dark-50);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--on-dark);
}

/* ---------- Animace ---------- */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroBookIn {
    from { opacity: 0; transform: translateY(48px) rotate(4deg); }
    to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

@keyframes breathLine {
    0%, 100% { transform: scaleX(0.72); opacity: 0.45; }
    50% { transform: scaleX(1); opacity: 1; }
}

@keyframes slowDrift {
    from { transform: translateY(0); }
    to { transform: translateY(-14px); }
}

/* Scroll reveal — řídí JS (IntersectionObserver) */
html:not(.no-js) [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s var(--ease-out-book);
}

html:not(.no-js) [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html:not(.no-js) [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Responzivita
   ========================================================================== */

@media (max-width: 900px) {
    :root {
        --section-y: 72px;
        --section-y-lg: 80px;
    }

    .hero {
        padding-block: 56px 80px;
    }

    .story .story-head {
        position: static;
    }

    .firm-intro {
        margin-bottom: 48px;
    }
}

/* Mobilní navigace */
@media (max-width: 760px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line-strong);
        box-shadow: 0 16px 40px rgba(22, 21, 15, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }

    .nav-links.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-link {
        padding: 16px var(--pad-x);
        font-size: 16px;
        border-bottom: 1px solid var(--line);
    }

    .btn-nav {
        margin: 12px var(--pad-x) 20px;
        justify-content: center;
        font-size: 15px;
        padding: 15px 22px;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .accordion-title {
        font-size: 17px;
    }

    .accordion-panel p {
        padding-left: 52px;
    }

    .about-panel {
        padding: 36px 28px;
    }

    .benefit-panels .benefit-panel {
        padding: 32px 28px;
    }
}
