/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --white:   #ffffff;
    --gray:    #f5f5f5;
    --black:   #111111;
    --dark:    #1a1a1a;
    --mid:     #555555;
    --muted:   #888888;
    --border:  #e2e2e2;
    --accent:  #1a6eb5;
    --accent2: #1558a0;
    --radius:  10px;
    --radius-lg: 16px;
    --ease: 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ═══════════════════════════════════════
   BACKGROUNDS
═══════════════════════════════════════ */
.bg-white { background: var(--white); }
.bg-gray  { background: var(--gray);  }

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: transparent;
    transition: var(--ease);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--white);
    transition: var(--ease);
}
.navbar.scrolled .nav-logo { color: var(--black); }
.nav-logo span { color: var(--accent); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 7px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    transition: var(--ease);
}
.navbar.scrolled .nav-link { color: var(--mid); }

.nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.12);
}
.navbar.scrolled .nav-link:hover {
    color: var(--black);
    background: var(--gray);
}

.nav-link--cta {
    background: var(--accent);
    color: #fff !important;
    font-weight: 600;
    margin-left: 8px;
}
.nav-link--cta:hover {
    background: var(--accent2) !important;
    color: #fff !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--ease);
}
.navbar.scrolled .nav-toggle span { background: var(--black); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 30% 60%, rgba(26,110,181,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(26,110,181,0.10) 0%, transparent 55%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 120px 28px 80px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 24px;
}
.hero-title span { color: var(--accent); }

.hero-sub {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
}

.hero-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255,255,255,0.65);
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
    0%,100% { opacity: 0.2; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.4); }
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--ease);
    text-decoration: none;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn--primary:hover {
    background: var(--accent2);
    border-color: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,110,181,0.25);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.35);
}
.btn--outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}

.btn--white {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}
.btn--white:hover {
    background: var(--gray);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ═══════════════════════════════════════
   SECTIONS
═══════════════════════════════════════ */
.section { padding: 110px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--black);
}

/* ═══════════════════════════════════════
   O MNĚ
═══════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.about-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--ease);
}
.about-card:hover {
    border-color: #c8d8ec;
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}

.about-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: #eaf1fb;
    color: var(--accent);
    margin-bottom: 20px;
}
.about-icon svg { width: 22px; height: 22px; }

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}
.about-card p {
    font-size: 0.92rem;
    color: var(--mid);
    line-height: 1.7;
}

.blockquote-wrap {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    padding-top: 48px;
    border-top: 2px solid var(--border);
}
.blockquote-wrap blockquote {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--dark);
    font-style: italic;
    margin-bottom: 12px;
}
.blockquote-wrap cite {
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════
   SLUŽBY
═══════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px 32px;
    position: relative;
    overflow: hidden;
    transition: var(--ease);
    opacity: 0;
    transform: translateY(24px);
}
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.service-card:hover {
    border-color: #c8d8ec;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.service-card--hi {
    border-color: var(--accent);
    border-width: 2px;
}
.service-card--hi:hover { border-color: var(--accent2); }

.service-badge {
    position: absolute;
    top: 18px; right: 18px;
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.service-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ebebeb;
    line-height: 1;
    margin-bottom: 14px;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
    margin-bottom: 14px;
}
.service-card h3 em {
    font-style: italic;
    font-weight: 400;
    color: var(--mid);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-list { margin-bottom: 24px; }
.feature-list li {
    font-size: 0.87rem;
    color: var(--mid);
    padding: 5px 0 5px 18px;
    position: relative;
}
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 13px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.service-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════
   TÉMATA
═══════════════════════════════════════ */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.topic-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    transition: var(--ease);
}
.topic-item:hover {
    border-color: #c8d8ec;
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}

.topic-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #eaf1fb;
    color: var(--accent);
}
.topic-icon svg { width: 22px; height: 22px; }

.topic-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
}
.topic-item p {
    font-size: 0.85rem;
    color: var(--mid);
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   KNIHA
═══════════════════════════════════════ */
.book-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 80px;
    align-items: center;
}

.book-cover-wrap {
    display: flex;
    justify-content: center;
}

.book-img-wrap {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        -8px 0 0 0 #0d2a4a,
        0 20px 60px rgba(0,0,0,0.25),
        4px 4px 0 0 rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: perspective(800px) rotateY(-6deg);
}
.book-img-wrap:hover {
    transform: perspective(800px) rotateY(-2deg) translateY(-4px);
    box-shadow:
        -8px 0 0 0 #0d2a4a,
        0 32px 80px rgba(0,0,0,0.3),
        4px 4px 0 0 rgba(0,0,0,0.15);
}

.book-img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
}

.book-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}
.book-info p {
    font-size: 0.95rem;
    color: var(--mid);
    line-height: 1.75;
    margin-bottom: 14px;
}

.book-features {
    margin: 24px 0 32px;
}
.book-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
    padding: 6px 0;
}
.book-features li svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    color: var(--accent);
}

/* ═══════════════════════════════════════
   REFERENCE
═══════════════════════════════════════ */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
}

.ref-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--ease);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ref-card:hover {
    border-color: #c8d8ec;
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}

.ref-stars {
    font-size: 0.9rem;
    color: #f5a623;
    letter-spacing: 2px;
}

.ref-card p {
    font-size: 0.92rem;
    color: var(--mid);
    line-height: 1.75;
    flex: 1;
    font-style: italic;
}

.ref-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.ref-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #eaf1fb;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.ref-author strong {
    display: block;
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--black);
}
.ref-author span {
    font-size: 0.78rem;
    color: var(--muted);
}

/* ═══════════════════════════════════════
   VYSTOUPENÍ
═══════════════════════════════════════ */
.marquee-wrap {
    overflow: hidden;
    margin-bottom: 56px;
    padding: 16px 0;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 12px;
    animation: marquee 28s linear infinite;
    width: max-content;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.city-tag {
    flex-shrink: 0;
    padding: 10px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--mid);
    white-space: nowrap;
    transition: var(--ease);
}
.city-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stat-box {
    flex: 1;
    text-align: center;
    padding: 40px 20px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
    flex-shrink: 0;
}

.stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.stat-plus {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-lbl {
    display: block;
    margin-top: 6px;
    font-size: 0.87rem;
    color: var(--mid);
    font-weight: 500;
}

/* ═══════════════════════════════════════
   CTA
═══════════════════════════════════════ */
.cta-section {
    background: var(--dark);
    padding: 80px 0;
}
.cta-inner {
    text-align: center;
}
.cta-inner h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
}
.cta-inner p {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════
   KONTAKT
═══════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
}

.contact-card {
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px 28px;
    transition: var(--ease);
}
.contact-card:hover {
    border-color: #c8d8ec;
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}

.contact-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eaf1fb;
    color: var(--accent);
}
.contact-icon svg { width: 22px; height: 22px; }

.contact-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}
.contact-card a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
    transition: var(--ease);
}
.contact-card a:hover { color: var(--accent2); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
    background: var(--gray);
    border-top: 1px solid var(--border);
    padding: 44px 0;
}
.footer-inner { text-align: center; }

.footer-logo {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--black);
    margin-bottom: 6px;
}
.footer-logo span { color: var(--accent); }

.footer-tagline {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 20px;
}
.footer-copy {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ═══════════════════════════════════════
   ROLE STRIP (O MNĚ)
═══════════════════════════════════════ */
.roles-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding: 24px 32px;
    background: var(--gray);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.role-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.role-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #eaf1fb;
    color: var(--accent);
}
.role-icon svg { width: 22px; height: 22px; }

.role-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mid);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.role-sep {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--border);
    padding-bottom: 20px;
}

/* ═══════════════════════════════════════
   ABOUT PEREX
═══════════════════════════════════════ */
.about-perex {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
    padding: 32px;
    background: var(--gray);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.about-perex p {
    font-size: 1rem;
    color: var(--mid);
    line-height: 1.8;
}

/* ═══════════════════════════════════════
   SERVICE NOTE
═══════════════════════════════════════ */
.service-note {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   SECTION INTRO
═══════════════════════════════════════ */
.section-intro {
    font-size: 0.95rem;
    color: var(--mid);
    margin-top: 8px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════
   PRO KOHO
═══════════════════════════════════════ */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.audience-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--ease);
}
.audience-card:hover {
    border-color: #c8d8ec;
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

.audience-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: #eaf1fb;
    color: var(--accent);
}
.audience-icon svg { width: 20px; height: 20px; }

.audience-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
}
.audience-card p {
    font-size: 0.87rem;
    color: var(--mid);
    line-height: 1.65;
}

.audience-note {
    text-align: center;
    padding: 24px 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent);
}
.audience-note p {
    font-size: 0.92rem;
    color: var(--mid);
    max-width: 680px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════
   PŘEDOBJEDNÁVKA
═══════════════════════════════════════ */
.preorder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.preorder-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--ease);
    background: var(--white);
}
.preorder-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.09);
}
.preorder-card--print {
    border-color: var(--accent);
    background: linear-gradient(135deg, #f0f6ff, #ffffff);
}
.preorder-card--ebook {
    border-color: var(--border);
}

.preorder-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: #eaf1fb;
    color: var(--accent);
    flex-shrink: 0;
}
.preorder-icon svg { width: 22px; height: 22px; }

.preorder-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.preorder-type {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.preorder-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1;
}
.preorder-isbn {
    font-size: 0.72rem;
    color: var(--muted);
    font-family: monospace;
    letter-spacing: 0.02em;
}

.btn--outline-dark {
    display: inline-flex;
    align-items: center;
    padding: 13px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: transparent;
    color: var(--dark);
    cursor: pointer;
    transition: var(--ease);
    text-decoration: none;
    justify-content: center;
}
.btn--outline-dark:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   BOOK STATUS BADGE
═══════════════════════════════════════ */
.book-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #edfaf3;
    border: 1px solid #4caf50;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}
.book-status-badge svg {
    width: 16px; height: 16px;
    color: #4caf50;
}

.book-cover-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

/* ═══════════════════════════════════════
   EVENTS GRID (Reference)
═══════════════════════════════════════ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.event-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--ease);
}
.event-card:hover {
    border-color: #c8d8ec;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.event-card--more {
    border-style: dashed;
    background: var(--gray);
}

.event-year {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 8px;
    background: #eaf1fb;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.event-card--more .event-year {
    background: var(--border);
    color: var(--muted);
    font-size: 1.2rem;
}

.event-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.event-body strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
}
.event-body span {
    font-size: 0.82rem;
    color: var(--mid);
    font-style: italic;
}
.event-body small {
    font-size: 0.76rem;
    color: var(--muted);
    margin-top: 2px;
}

/* ═══════════════════════════════════════
   FADE-IN ANIMATION
═══════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

/* ─── Velký desktop (1400px+) ─────────── */
@media (min-width: 1400px) {
    .container    { max-width: 1340px; padding: 0 40px; }
    .section      { padding: 130px 0; }
    .book-layout  { grid-template-columns: 400px 1fr; gap: 100px; }
    .book-img     { max-width: 360px; }
    .events-grid  { grid-template-columns: repeat(4, 1fr); }
    .section-title { font-size: 3.2rem; }
    .cta-inner h2  { font-size: 2.8rem; }
    .stat-num      { font-size: 3.2rem; }
}

/* ─── Střední desktop / laptop (1024–1399px) ─── */
@media (min-width: 1024px) and (max-width: 1399px) {
    .book-layout { grid-template-columns: 300px 1fr; gap: 64px; }
}

/* ─── Menší laptop / velký tablet landscape (max 1024px) ─── */
@media (max-width: 1024px) {
    .book-layout { grid-template-columns: 260px 1fr; gap: 48px; }
    .nav-link    { padding: 7px 11px; font-size: 0.83rem; }
}

/* ─── Tablet portrait / malý laptop (max 900px) ─── */
@media (max-width: 900px) {
    /* 3 karty → zůstávají 3 sloupce (šířka stačí), 6 karet → 2 sloupce */
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
    .events-grid   { grid-template-columns: repeat(2, 1fr); }

    /* Služby – 1 sloupec (moc obsahu na 2 úzké karty) */
    .services-grid { grid-template-columns: 1fr; }

    .stats-row    { flex-direction: column; }
    .stat-divider { width: 60px; height: 1px; margin: 0 auto; }

    .book-layout     { grid-template-columns: 1fr; }
    .book-cover-wrap { margin-bottom: 20px; }
    .book-img-wrap   { transform: none; }
    .book-img-wrap:hover { transform: translateY(-4px); }
    .book-img        { max-width: 260px; margin: 0 auto; }

    .roles-strip { gap: 8px; padding: 16px; }
    .role-sep    { display: none; }

    .section { padding: 80px 0; }
}

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

    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        flex-direction: column;
        background: var(--white);
        padding: 80px 28px 28px;
        gap: 2px;
        border-left: 1px solid var(--border);
        box-shadow: -8px 0 32px rgba(0,0,0,0.08);
        transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow-y: auto;
    }
    .nav-menu.active { right: 0; }

    .nav-menu .nav-link { color: var(--mid); }
    .nav-menu .nav-link:hover { color: var(--black); background: var(--gray); }

    .hero-title  { font-size: clamp(3.2rem, 16vw, 5rem); }
    .topics-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid  { grid-template-columns: repeat(2, 1fr); }
    .cta-inner h2 { font-size: 1.8rem; }
}

/* ─── Malý mobil – přechod na 1 sloupec (max 600px) ─── */
@media (max-width: 600px) {
    .about-grid    { grid-template-columns: 1fr; }
    .topics-grid   { grid-template-columns: repeat(2, 1fr); }
    .audience-grid { grid-template-columns: 1fr; }
    .events-grid   { grid-template-columns: 1fr; }
    .contact-grid  { grid-template-columns: 1fr; }
    .section       { padding: 64px 0; }
}

/* ─── Extra malý mobil (max 480px) ──── */
@media (max-width: 480px) {
    .topics-grid   { grid-template-columns: 1fr; }
    .hero-actions  { flex-direction: column; align-items: center; }
    .preorder-grid { grid-template-columns: 1fr; }
    .container     { padding: 0 18px; }
    .stat-num      { font-size: 2.4rem; }
}
