:root {
    --bg-main: #05070a;
    --bg-darker: #020305;
    --bg-card: #0d1117;
    --text-main: #f5f5f5;
    --text-muted: #8b949e;
    --gradient: linear-gradient(90deg, rgb(44, 204, 196) 0%, rgb(149, 193, 31) 100%);
    --border-color: #1f2328;
    --transition-speed: 0.3s;
}

/* Reset stylů */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-muted {
    color: var(--text-muted);
}

/* ================= NAVBAR A HLAVIČKA ================= */
.navbar {
    position: fixed;
    top: 0; 
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-main);
    letter-spacing: 1px;
}

/* Tlačítko Fotografie (bílý/světlý obrys) */
.btn-outline-white {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Jemný bílý rámeček */
    color: var(--text-main);
}

.btn-outline-white:hover {
    border-color: rgb(212, 175, 55); /* Při najetí se zbarví do tvé tyrkysové */
    color: rgb(212, 175, 55);
    transform: translateY(-2px);
}

/* ================= TLAČÍTKA ================= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-gradient {
    background: var(--gradient);
    color: #000;
    border: none;
}

.btn-gradient:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
}

/* ================= OBECNÉ ROZVRŽENÍ ================= */
.content-section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.bg-darker {
    background-color: var(--bg-darker);
    max-width: 100%;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 4rem;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ================= MODERNÍ HERO SEKCE ================= */
.hero-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5% 4rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
    position: relative;
}

/* --- Levá část (Texty) --- */
.hero-content-left {
    max-width: 650px;
    z-index: 10;
}

.hero-tagline {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.hero-title-main {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 550px;
}

/* --- Pravá část (Fotka a záře) --- */
.hero-visual-right {
    position: relative;
    width: 55%; /* Zvětšili jsme prostor pro pravou část */
    max-width: 800px; /* Zvětšeno z 650px na 800px */
    height: 85vh; /* Větší prostor na výšku */
    max-height: 900px;
    display: flex;
    align-items: flex-end; /* Stále držíme fotku ukotvenou dole */
    justify-content: center;
}

/* Obrovská, velmi jemná záře tvořící atmosféru */
.ambient-glow {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%; /* Rozšířená záře, aby pokryla větší fotku */
    height: 90%;
    background: var(--gradient);
    filter: blur(150px); /* Ještě hladší rozmazání */
    opacity: 0.18; /* Lehké zesílení světla */
    border-radius: 50%;
    z-index: 1;
    animation: ambient-pulse 5s ease-in-out infinite alternate;
}

/* Filmový portrét - Nyní mnohem větší */
.portrait-cinematic {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 110%;
    object-fit: contain;
    object-position: bottom center;
    z-index: 2;
    mix-blend-mode: lighten; /* Vymaže černé pozadí fotky */
    
    /* TADY JE KOUZLO ZVĚTŠENÍ */
    transform: scale(1.35); /* Zvětší fotku o 35 % */
    transform-origin: bottom center; /* Zvětšuje se přirozeně směrem nahoru od spodní hrany */
    
    /* Lineární maska (lehce upravená pro větší formát) */
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

/* Obrovská, velmi jemná záře tvořící atmosféru */
.ambient-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: var(--gradient);
    filter: blur(130px); /* Extrémní rozmazání = žádné tvrdé hrany */
    opacity: 0.15; /* Velmi decentní */
    border-radius: 50%;
    z-index: 1;
    animation: ambient-pulse 5s ease-in-out infinite alternate;
}

/* Filmový portrét */
.portrait-cinematic {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
    z-index: 2;
    mix-blend-mode: lighten; /* Vymaže černé pozadí fotky */
    /* Lineární maska: nahoře je fotka 100% vidět, dole plynule zmizí do tmy */
    -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 95%);
    mask-image: linear-gradient(to bottom, black 65%, transparent 95%);
}

@keyframes ambient-pulse {
    0% { transform: translateX(-50%) scale(1); opacity: 0.12; }
    100% { transform: translateX(-50%) scale(1.05); opacity: 0.2; }
}

/* --- Responzivita pro Hero --- */
@media (max-width: 992px) {
    .hero-modern {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 10rem;
    }
    .hero-content-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-tagline {
        border-bottom: none;
        position: relative;
    }
    .hero-tagline::after {
        content: '';
        position: absolute;
        bottom: -5px; left: 50%; transform: translateX(-50%);
        width: 40px; height: 2px;
        background: var(--gradient);
    }
    .hero-visual-right {
        width: 100%;
        height: 60vh;
    }
}

/* ================= RESPONSIVE PRO HERO ================= */
@media (max-width: 992px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding-top: 10rem;
    }
    .hero-text-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-image-container {
        width: 250px;
        height: 250px;
    }
}

/* ================= SLUŽBY S IKONAMI (2x2) ================= */
.services-section {
    padding: 8rem 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.service-card-modern {
    position: relative;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Jemná ambientní záře při hoveru */
.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(44, 204, 196, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card-modern:hover {
    transform: translateY(-4px);
    border-color: rgba(44, 204, 196, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.service-card-modern:hover::before {
    opacity: 1;
}

/* Obal pro minimalistickou gradientní ikonu */
.service-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 38px;
    height: 38px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(44, 204, 196, 0.25));
}

.service-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    letter-spacing: -0.3px;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Responzivita */
@media (max-width: 820px) {
    .services-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card-modern {
        padding: 2.2rem 1.8rem;
        gap: 1.4rem;
    }

    .service-icon {
        width: 40px;
        height: 40px;
    }

    .service-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* ================= AI BOX ================= */
.ai-box {
    background: var(--bg-card);
    padding: 4rem 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.ai-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
}

/* ================= PORTFOLIO ================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-card);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.portfolio-item img:hover {
    transform: scale(1.05);
}

/* ================= LIGHTBOX (Zvětšování fotek) ================= */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1; pointer-events: all;
}

.lightbox img {
    max-width: 90%; max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    color: var(--text-muted); font-size: 40px; cursor: pointer;
    z-index: 2001; transition: color 0.3s;
}

.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 40px; cursor: pointer;
    padding: 20px; z-index: 2001; transition: color 0.3s;
    user-select: none;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover {
    color: rgb(44, 204, 196);
}

/* ================= BANNER KNIHY POD GALERIÍ ================= */
.gallery-feature-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px; /* Přesně stejná šířka jako má galerie nad tím */
    margin: 2.5rem auto 0; /* Vycentrování na střed */
    padding: 2rem 3rem;
    background: rgba(13, 17, 23, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-sizing: border-box;
}

/* Ambientní záře v pozadí banneru při hoveru */
.gallery-feature-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 50%, rgba(44, 204, 196, 0.12), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-feature-banner:hover {
    transform: translateY(-4px);
    border-color: rgba(44, 204, 196, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.gallery-feature-banner:hover::before {
    opacity: 1;
}

/* Textová část vlevo */
.banner-book-content {
    flex: 1;
    z-index: 2;
    text-align: left;
}

.banner-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.banner-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    max-width: 600px;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: gap 0.3s ease;
}

.gallery-feature-banner:hover .banner-btn .arrow {
    transform: translateX(5px);
}

/* Kniha napravo */
.banner-book-wrapper {
    flex-shrink: 0;
    width: 300px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.banner-book-img {
    max-width: 200%;
    max-height: 200%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
    transition: transform 0.4s ease;
}

.gallery-feature-banner:hover .banner-book-img {
    transform: scale(1.05) rotate(2deg);
}

/* Responzivita pro menší obrazovky */
@media (max-width: 900px) {
    .gallery-feature-banner {
        flex-direction: column-reverse;
        text-align: center;
        padding: 2.2rem 1.8rem;
        gap: 1.5rem;
        margin-left: 5%;
        margin-right: 5%;
    }

    .banner-book-content {
        text-align: center;
    }

    .banner-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .banner-book-wrapper {
        height: 140px;
    }
}

/* ================= PROCES SPOLUPRÁCE ================= */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1;
}

.process-step h3 {
    margin-bottom: 1rem;
}

/* ================= KONTAKTNÍ SEKCE A FORMULÁŘ ================= */
.footer-section {
    padding: 8rem 5% 3rem;
    border-top: 1px solid var(--border-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 6rem;
    align-items: center;
}

.massive-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.email-link {
    display: inline-block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 100%; height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.form-container {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(44, 204, 196);
}

.honeypot-field {
    opacity: 0;
    position: absolute;
    top: 0; left: 0; height: 0; width: 0; z-index: -1;
}

/* ================= PATIČKA ================= */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cross-link {
    color: var(--text-main);
    font-weight: 600;
    margin-left: 0.5rem;
}

.cross-link:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
}

/* ================= RESPONSIVNÍ DESIGN ================= */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .contact-wrapper .massive-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-prev, .lightbox-next { 
        padding: 10px; font-size: 30px; 
    }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
}

/* ================= PROČ GRAFIK & AI ================= */
.ai-compare-section {
    padding: 8rem 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-subtitle-lead {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 760px;
    margin: 1.2rem auto 0;
    line-height: 1.7;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.ai-feature-card {
    position: relative;
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s ease;
}

.ai-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(44, 204, 196, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.ai-feature-card .service-icon {
    margin-bottom: 1.5rem;
}

.ai-feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    letter-spacing: -0.3px;
}

.ai-feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Responzivita pro tablety a mobily */
@media (max-width: 992px) {
    .ai-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ai-feature-card {
        padding: 2.2rem 1.8rem;
    }
}

/* ================= PODSTRÁNKA KNIHA ================= */
.book-page {
    padding-top: 6rem;
}

.book-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

/* 1. Úvodní Hero knihy - kompaktní šířka a jemné podbarvení */
.book-intro-section {
    padding: 6rem 5% 5rem;
    width: 100%;
    position: relative;
    background: radial-gradient(circle at 50% 45%, rgba(44, 204, 196, 0.08), transparent 70%);
    border-bottom: 1px solid var(--border-color);
}

.book-intro-container {
    max-width: 1000px; /* Zúženo z původní velké šířky pro čistou typografii */
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

/* Obal pro obálku knihy */
.book-cover-wrapper {
    flex: 0 0 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* Příprava pro 3D prostor */
}

/* Kniha + plynulý přechod */
.book-cover-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.7));
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

/* Decentní interaktivní efekt po najetí myší */
.book-cover-img:hover {
    transform: translateY(-6px) scale(1.03) rotate(-1.5deg);
    filter: drop-shadow(0 22px 35px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 15px rgba(44, 204, 196, 0.2));
}

/* Textové představení */
.book-intro-text {
    flex: 1;
    max-width: 650px;
}

.book-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.book-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.book-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.book-intro-container {
    display: flex;
    align-items: center;
    gap: 4.5rem;
}

.book-cover-wrapper {
    flex: 0 0 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-cover-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.7));
    border-radius: 4px;
}

.book-intro-text {
    flex: 1;
}

.book-title {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.book-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.book-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.book-actions {
    display: flex;
    gap: 1rem;
}

/* 2. Bibliografická tabulka */
.book-details-section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.book-meta-table {
    max-width: 750px;
    margin: 2.5rem auto 0;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 1.1rem 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.meta-value {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

/* 3. Tři velké ukázky bez rámečků a bez popisků */
.book-gallery-section {
    padding: 5rem 0 6rem;
    border-top: 1px solid var(--border-color);
}

.book-gallery-section .book-section-inner {
    max-width: 1300px; /* Rozšířený prostor, aby byly náhledy opravdu velké */
}

.book-static-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.book-clean-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4; /* Pevný knižní poměr stran na výšku (případně změň na 4 / 3) */
    object-fit: cover;
    display: block;
    border-radius: 6px;
    border: none;
    background: transparent;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6); /* Decentní prostorový stín místo rámečku */
    pointer-events: none; /* Nejde rozkliknout */
    user-select: none;
}

/* Responzivita pro tablety a mobily */
@media (max-width: 900px) {
    .book-static-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 4. Blok VÚA-VHU */
.book-archive-section {
    padding: 3rem 0 5rem;
}

.archive-box {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: rgba(13, 17, 23, 0.4);
    border: 1px solid var(--border-color);
    border-left: 3px solid rgb(44, 204, 196);
    border-radius: 8px;
    padding: 2.2rem 2.5rem;
}

.archive-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: rgb(44, 204, 196);
}

.archive-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--text-main);
}

.archive-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* 5. Velké stažení na středu */
.book-download-cta {
    padding: 6rem 0 7rem;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 50% 50%, rgba(44, 204, 196, 0.06), transparent 70%);
}

.download-card-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-xl {
    padding: 1.2rem 3rem;
    font-size: 1.15rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(44, 204, 196, 0.25);
    border-radius: 8px;
}

.btn-xl:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(44, 204, 196, 0.35);
}

.download-info {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* ================= FOOTER ================= */
.footer {
    background-color: var(--bg-darker);
    padding: 6rem 5% 4rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity var(--transition-speed, 0.3s) ease;
}

.contact-info a:hover {
    opacity: 0.8;
}

.footer .divider {
    color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed, 0.3s) ease;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* Mobilní responzivita */
@media (max-width: 900px) {
    .book-intro-container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .book-actions {
        justify-content: center;
    }

    .book-static-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .meta-row {
        flex-direction: column;
        gap: 0.3rem;
        text-align: left;
    }

    .meta-value {
        text-align: left;
    }

    .archive-box {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ================= KNIHOVNY ================= */
.book-libraries-section {
    padding: 3rem 0 5rem;
}

.libraries-box {
    background: rgba(13, 17, 23, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 3rem 3.5rem;
    position: relative;
    overflow: hidden;
}

/* Jemná ambientní záře v pravém rohu */
.libraries-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(44, 204, 196, 0.08), transparent 70%);
    pointer-events: none;
}

.libraries-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    letter-spacing: -0.3px;
}

.libraries-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 650px;
    margin-bottom: 2.2rem;
}

.libraries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 3rem;
}

.library-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lib-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gradient);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(44, 204, 196, 0.6);
}

.lib-name {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Mobilní responzivita */
@media (max-width: 768px) {
    .libraries-box {
        padding: 2.2rem 1.8rem;
    }

    .libraries-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}/* ================= KNIHOVNY ================= */
.book-libraries-section {
    padding: 3rem 0 5rem;
}

.libraries-box {
    background: rgba(13, 17, 23, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 3rem 3.5rem;
    position: relative;
    overflow: hidden;
}

/* Jemná ambientní záře v pravém rohu */
.libraries-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(44, 204, 196, 0.08), transparent 70%);
    pointer-events: none;
}

.libraries-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    letter-spacing: -0.3px;
}

.libraries-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 650px;
    margin-bottom: 2.2rem;
}

.libraries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 3rem;
}

.library-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lib-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gradient);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(44, 204, 196, 0.6);
}

.lib-name {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Mobilní responzivita */
@media (max-width: 768px) {
    .libraries-box {
        padding: 2.2rem 1.8rem;
    }

    .libraries-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

/* ================= MOBILNÍ HLAVIČKA (miklik.art) ================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
    }
    
    .header-buttons {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
    }
    
    .header-buttons .btn {
        flex: 1; /* Obě tlačítka se rovnoměrně roztáhnou na 50 % šířky */
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* ================= COOKIE LIŠTA ================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 450px;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: flex;
    transform: translateY(150%); /* Výchozí stav: schováno dole */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Zobrazení lišty po načtení JS */
.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
}

.cookie-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: left;
}

.cookie-content a {
    color: rgb(44, 204, 196); /* Tvůj tyrkysový akcent */
    text-decoration: none;
    font-weight: 600;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Responzivita - na mobilech přes celou šířku */
@media (max-width: 576px) {
    .cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .cookie-content .btn {
        width: 100%;
    }
}