/* ═══ VČELAŘSTVÍ PALEČEK — WebZítra ═══ */
/* v3 polish: Bricolage Grotesque display + Source Sans 3 body (self-hosted), animační vrstva */
/* Barvy: krémová + medová zlatá, zelený accent (z loga), espresso dark sekce */

/* ── Fonts (self-hosted, latin + latin-ext) ── */
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/BricolageGrotesque-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;
}
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/BricolageGrotesque-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: 'Source Sans 3';
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/SourceSans3-italic-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;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/SourceSans3-italic-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: 'Source Sans 3';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/SourceSans3-normal-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;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/SourceSans3-normal-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;
}

/* ── CSS Custom Properties ── */
:root {
    /* Colors — warm paper & honey */
    --primary: #E8A020;
    --primary-hover: #D18E14;
    --primary-deep: #A96F08;          /* medová pro text na světlém podkladu */
    --primary-light: rgba(232, 160, 32, 0.10);

    --bg: #FBF8F1;                    /* teplý papír */
    --bg-alt: #F4EEE0;                /* hlubší krémová */
    --bg-dark: #2B2115;               /* espresso */
    --bg-dark-2: #352918;
    --surface: #FFFEFB;
    --text: #2A2116;                  /* teplý inkoust */
    --text-muted: #6E6250;
    --text-dark: #F4EDE1;             /* text na espresso podkladu */
    --text-dark-muted: #C9B594;
    --border: #E8DFCC;
    --white: #ffffff;

    --accent: #5B9A2F;
    --accent-light: rgba(91, 154, 47, 0.12);

    /* Typography */
    --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;

    /* Spacing */
    --section-pad: clamp(4.5rem, 9vw, 7.5rem);
    --container-max: 1200px;

    /* Radius system */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;

    /* Transitions */
    --transition: 0.25s ease;

    /* Shadows — teplé, tlumené */
    --shadow-sm: 0 1px 2px rgba(43, 33, 21, 0.05);
    --shadow-md: 0 6px 24px rgba(43, 33, 21, 0.08);
    --shadow-lg: 0 18px 48px rgba(43, 33, 21, 0.12);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: #D9A13B; border-radius: 999px; border: 3px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: #C9880F; }
@supports not selector(::-webkit-scrollbar) {
    html { scrollbar-color: #D9A13B var(--bg-alt); }
}
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-deep); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
::selection { background: rgba(232, 160, 32, 0.28); }
/* žádné osamocené slovo na posledním řádku odstavce */
p, .faq-answer, .gallery-caption, .lecture-table td { text-wrap: pretty; }

h1, h2, h3, .section-title, .hero-title {
    font-family: var(--font-display);
    font-weight: 650;
    letter-spacing: -0.015em;
    font-variation-settings: 'opsz' 60;
}

/* ── Container ── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 28px; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 34px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1.3;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform 0.15s ease;
    text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--primary); color: #241B0E; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #241B0E; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(209, 142, 20, 0.38); }
.btn-outline { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-outline:hover { background: #fff; color: var(--text); border-color: #fff; }
.btn-full { width: 100%; }
.btn-small { padding: 9px 18px; font-size: 0.9375rem; }

/* ═══ NAVBAR ═══ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(251, 248, 241, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(43, 33, 21, 0.08);
    padding: 12px 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0; }
.nav-logo img { height: 38px; width: auto; transition: all var(--transition); }
.navbar.scrolled .nav-logo img { height: 32px; }
.nav-logo:hover img { opacity: 0.8; }
.nav-menu { display: flex; list-style: none; gap: 36px; }
.nav-link {
    position: relative;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    padding-bottom: 4px;
    transition: color var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: right 0.25s ease;
}
.nav-link:hover { color: var(--primary-deep); }
.nav-link:hover::after { right: 0; }
.nav-link.active { color: var(--primary-deep); }
.nav-link.active::after { right: 0; }
.navbar:not(.scrolled) .nav-link.active { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: all var(--transition); border-radius: 2px; }
.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); }

/* Navbar transparent on hero */
.navbar:not(.scrolled) .nav-logo img { filter: brightness(0) invert(1); }
.navbar:not(.scrolled) .nav-link { color: rgba(255, 255, 255, 0.85); }
.navbar:not(.scrolled) .nav-link:hover { color: var(--primary); }
.navbar:not(.scrolled) .nav-toggle span { background: #fff; }

/* ═══ HERO — Fullscreen Video Background ═══ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 0 90px;
    overflow: hidden;
    background: #16110B;
}
.hero-video-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-video-bg video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    /* žádný poster — video se vynoří z tmavého podkladu, až je připravené */
    opacity: 0;
    transition: opacity 1.1s ease;
}
.hero-video-bg video.ready { opacity: 1; }
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        100deg,
        rgba(22, 15, 8, 0.78) 0%,
        rgba(22, 15, 8, 0.5) 52%,
        rgba(22, 15, 8, 0.22) 100%
    );
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 720px;
    text-align: left;
    will-change: transform, opacity;
}
/* Hero entrance — jednorázová sekvence po načtení */
@keyframes heroRise {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-title, .hero-text, .hero-cta, .hero-stats {
    animation: heroRise 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero-text { animation-delay: 0.14s; }
.hero-cta { animation-delay: 0.28s; }
.hero-stats { animation-delay: 0.42s; }
.hero-title {
    font-size: clamp(2.75rem, 6.2vw, 4.9rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
    color: #FDFBF6;
    text-wrap: balance;
}
.hero-title em {
    font-style: normal;
    font-weight: 700;
    color: #F2C063;
}
.hero-text {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: rgba(253, 251, 246, 0.88);
    margin-bottom: 36px;
    max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats { display: flex; }
.hero-stat { text-align: left; padding: 0 44px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(253, 251, 246, 0.22); }
.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.125rem;
    font-weight: 700;
    line-height: 1.2;
    color: #F2C063;
}
.hero-stat span { font-size: 0.9375rem; color: rgba(253, 251, 246, 0.72); }

/* ═══ SECTIONS ═══ */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-dark); position: relative; z-index: 1; }
.section-title {
    font-size: clamp(2.125rem, 4vw, 2.875rem);
    line-height: 1.15;
    text-align: center;
    margin-bottom: 14px;
    text-wrap: balance;
}
.section-dark .section-title { color: #FBF6EC; }
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 64px;
    text-wrap: balance;
}
.section-dark .section-subtitle { color: var(--text-dark-muted); }
.section-dark a { color: var(--primary); }
.section-dark a:hover { color: #F2C063; }

/* ═══ ABOUT ═══ */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.about-text p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.0625rem; line-height: 1.8; }
.about-text p strong { color: var(--text); font-weight: 600; }
.about-stats { display: flex; gap: 56px; margin-top: 40px; }
.stat { text-align: left; }
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.125rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-deep);
}
.stat-label { font-size: 0.9375rem; color: var(--text-muted); }
.about-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ═══ PRODUCTS ═══ */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
/* vlajkový produkt 2×2 — mřížka 6 karet vyjde beze zbytku (2×2 + 4×1 = 8 buněk = 2 řádky + 3. řádek… viz media) */
@media (min-width: 1025px) {
    .products-grid > .product-card:first-child {
        grid-column: span 2;
        grid-row: span 2;
        display: flex;
        flex-direction: column;
    }
    .products-grid > .product-card:first-child .product-image { flex: 1; min-height: 0; }
    .products-grid > .product-card:first-child .product-image img { height: 100%; min-height: 340px; }
    .products-grid > .product-card:first-child h3 { font-size: 1.75rem; }
    .products-grid > .product-card:first-child .product-desc { max-width: 52ch; margin-left: auto; margin-right: auto; }
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-image { margin: -28px -28px 22px; overflow: hidden; }
.product-image img { width: 100%; height: 215px; object-fit: cover; display: block; transition: transform 0.45s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-card h3 { font-size: 1.375rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.product-desc { color: var(--text-muted); font-size: 0.9875rem; line-height: 1.65; margin-bottom: 18px; }
.product-price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 650;
    color: var(--primary-deep);
    margin-bottom: 12px;
}
.product-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.product-status.available { background: var(--accent-light); color: #3F7A1C; }
.product-status.soldout { background: rgba(178, 96, 44, 0.12); color: #A65526; }

.products-note {
    text-align: center;
    margin-top: 56px;
    padding: 30px 36px;
    background: var(--bg-dark);
    border: none;
    border-radius: var(--radius);
}
.products-note p { color: var(--text-dark); font-size: 1.125rem; }
.products-note p strong { color: #FBF6EC; }
.products-note a { font-weight: 650; color: var(--primary); white-space: nowrap; }
.products-note a:hover { color: #F2C063; }

/* ═══ LECTURES (PŘEDNÁŠKY) ═══ */
.lectures-intro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}
.lecture-type {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(232, 160, 32, 0.16);
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: center;
    transition: border-color var(--transition), background var(--transition);
}
.lecture-type:hover { border-color: rgba(232, 160, 32, 0.32); background: rgba(255, 255, 255, 0.06); }
.lecture-type p { color: var(--text-dark-muted); font-size: 0.9375rem; line-height: 1.6; margin-top: 10px; }
.lecture-type-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(232, 160, 32, 0.13);
    border-radius: 14px;
}

.lecture-badge {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.badge-edu { background: rgba(116, 176, 92, 0.18); color: #9ED883; }
.badge-honey { background: rgba(232, 178, 77, 0.18); color: #F0C468; }
.badge-event { background: rgba(214, 126, 70, 0.18); color: #EFAB7E; }
.badge-media { background: rgba(120, 156, 208, 0.16); color: #93B3DC; }

.lecture-year {
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}
.lecture-year:hover { border-color: rgba(232, 160, 32, 0.28); }
.year-title {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 28px;
    font-size: 1.375rem;
    color: #FBF6EC;
}
.year-number { font-weight: 600; }
.year-badge {
    font-family: var(--font);
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.year-badge.current { background: var(--accent); color: #fff; }
.year-expand {
    margin-left: auto;
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.year-toggle { cursor: pointer; }
.year-toggle:hover .year-expand { color: #F2C063; }

.lecture-table-wrapper { overflow-x: auto; }
.lecture-hidden { display: none; }

.lecture-table {
    width: 100%;
    border-collapse: collapse;
}
.lecture-table thead { background: rgba(232, 160, 32, 0.07); }
.lecture-table th {
    text-align: left;
    padding: 13px 28px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid rgba(232, 160, 32, 0.14);
}
.lecture-table td {
    padding: 15px 28px;
    font-size: 0.9875rem;
    line-height: 1.55;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.lecture-table tbody tr:hover { background: rgba(232, 160, 32, 0.045); }
.lecture-table tbody tr:last-child td { border-bottom: none; }

/* Odkazy u přednášek */
.lecture-link {
    display: inline-block;
    padding: 2px 9px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    background: rgba(232, 160, 32, 0.14);
    color: var(--primary);
    transition: background var(--transition), color var(--transition);
    margin-left: 4px;
    vertical-align: middle;
    white-space: nowrap;
}
.lecture-link:hover {
    background: var(--primary);
    color: #241B0E;
}

.lectures-links {
    margin-top: 56px;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius);
}
.lectures-links p {
    color: var(--text-dark-muted);
    margin-bottom: 10px;
    font-size: 0.9875rem;
}
.lectures-links p:last-child { margin-bottom: 0; }
.lectures-links a { color: var(--primary); font-weight: 600; }
.lectures-links a:hover { color: #F2C063; text-decoration: underline; text-underline-offset: 3px; }

/* ═══ AWARDS ═══ */
.awards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.award-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}
.award-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.award-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: var(--radius);
}
.award-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.award-card p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.65; }

/* ═══ PHOTO GALLERY ═══ */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}
.gallery-tab {
    padding: 9px 22px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}
.gallery-tab:hover { border-color: var(--primary); color: var(--primary-deep); }
.gallery-tab.active { background: var(--primary); color: #241B0E; border-color: var(--primary); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 18px;
}
/* mozaika: každé šesté foto 2×2 (24 fotek → vychází beze zbytku na 4, 3 i 2 sloupcích) */
.gallery-grid > .gallery-item:nth-child(6n+1) {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover { box-shadow: var(--shadow-md); }
.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 14px 16px;
    background: linear-gradient(transparent, rgba(22, 15, 8, 0.72));
    color: #FDFBF6;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-item.gallery-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(22, 15, 8, 0.94);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-img {
    max-width: 88vw;
    max-height: 80vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    transform: scale(0.96);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-caption {
    color: rgba(253, 251, 246, 0.85);
    font-size: 1rem;
    margin-top: 16px;
    text-align: center;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition);
    z-index: 2;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 16px 12px;
    border-radius: var(--radius-sm);
    opacity: 0.6;
    transition: all var(--transition);
    z-index: 2;
    backdrop-filter: blur(4px);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; background: rgba(255, 255, 255, 0.2); }

/* ═══ VIDEOS ═══ */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.video-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.video-card h3 { padding: 20px 22px 4px; font-size: 1.1875rem; font-weight: 600; color: var(--text); }
.video-card p { padding: 0 22px 20px; font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* ═══ FAQ ═══ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover { border-color: rgba(232, 160, 32, 0.45); }
.faq-item[open] { border-color: rgba(232, 160, 32, 0.55); box-shadow: var(--shadow-sm); }
.faq-question {
    padding: 20px 26px;
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--primary-deep); transition: transform var(--transition); flex-shrink: 0; }
.faq-item[open] .faq-question::after { content: '−'; }
.faq-answer { padding: 0 26px 22px; color: var(--text-muted); line-height: 1.75; }

/* ═══ CONTACT ═══ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 26px; }
.contact-item { display: flex; align-items: flex-start; gap: 18px; }
.contact-item svg {
    color: var(--primary-deep);
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    padding: 11px;
    background: var(--primary-light);
    border-radius: 12px;
}
.contact-item strong { display: block; margin-bottom: 2px; font-size: 1rem; }
.contact-item a { color: var(--text-muted); }
.contact-item a:hover { color: var(--primary-deep); }
.contact-item span { color: var(--text-muted); }
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9375rem; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #A79A85; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.18); background: var(--surface); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ═══ FOOTER ═══ */
.footer { background: #241B10; color: var(--text-dark-muted); padding: 72px 0 32px; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.9875rem; line-height: 1.6; max-width: 340px; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: var(--text-dark-muted); font-size: 0.9875rem; font-weight: 600; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); padding-top: 28px; display: flex; justify-content: space-between; align-items: flex-start; font-size: 0.875rem; gap: 16px; }
.footer-bottom p { line-height: 1.7; }
.footer-credit { white-space: nowrap; }
.footer-credit a { color: var(--primary); }

/* ═══ COOKIE BANNER ═══ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(30, 23, 14, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 24px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    pointer-events: none;
}
.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cookie-inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 28px;
}
.cookie-text { flex: 1; min-width: 280px; }
.cookie-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    color: #F4EDE1;
    margin-bottom: 3px;
}
.cookie-banner p {
    font-size: 0.875rem;
    color: #C7BBA8;
    line-height: 1.55;
    margin: 0;
}
.cookie-banner p a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner p a:hover { color: #F2C063; }
.cookie-settings {
    width: 100%;
    display: flex;
    gap: 12px 36px;
    flex-wrap: wrap;
    padding: 4px 0 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.cookie-cat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #C7BBA8;
    cursor: pointer;
    max-width: 46ch;
    padding-top: 8px;
}
.cookie-cat strong { color: #F4EDE1; }
.cookie-cat input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}
.cookie-cat input:disabled { cursor: default; opacity: 0.7; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: #C7BBA8; border-color: rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { color: #F4EDE1; border-color: rgba(255, 255, 255, 0.5); }
@media (max-width: 768px) {
    .cookie-inner { flex-direction: column; align-items: stretch; text-align: left; gap: 12px; }
    .cookie-actions { width: 100%; }
    .cookie-actions .btn { flex: 1 1 auto; padding: 11px 10px; font-size: 0.9375rem; }
    .cookie-settings { flex-direction: column; gap: 4px; }
}

/* ═══ SUBPAGE (zásady cookies) ═══ */
.simple-header { padding: 18px 0; border-bottom: 1px solid var(--border); background: var(--bg); }
.simple-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.simple-header img { height: 34px; width: auto; }
.back-link { font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.page-title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 10px; }
.page-lead { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 8px; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 44px 0 12px; }
.prose p { color: var(--text-muted); margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; color: var(--text-muted); }
.prose li { margin-bottom: 12px; text-wrap: pretty; }
.prose li strong, .prose p strong { color: var(--text); }
.prose code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.simple-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 0.875rem; color: var(--text-muted); }
.simple-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ═══ ACCESSIBILITY ═══ */
.btn:focus-visible, .nav-link:focus-visible, .nav-toggle:focus-visible, .gallery-tab:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}
.skip-nav {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--primary);
    color: #241B0E;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 10001;
    transition: top 0.2s;
}
.skip-nav:focus {
    top: 12px;
    color: #241B0E;
}

/* ═══ SCROLL ANIMATIONS ═══ */
/* Reveal jede přes keyframes (ne transition), aby nekolidoval s hover transformacemi karet */
[data-animate] { opacity: 0; }
[data-animate].visible {
    opacity: 1;
    animation: riseIn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
}

/* Stagger — karty v gridech nastupují po sloupcích */
.products-grid > [data-animate].visible:nth-child(3n+2),
.awards-grid > [data-animate].visible:nth-child(3n+2),
.videos-grid > [data-animate].visible:nth-child(3n+2),
.lectures-intro > [data-animate].visible:nth-child(3n+2) { animation-delay: 0.09s; }
.products-grid > [data-animate].visible:nth-child(3n),
.awards-grid > [data-animate].visible:nth-child(3n),
.videos-grid > [data-animate].visible:nth-child(3n),
.lectures-intro > [data-animate].visible:nth-child(3n) { animation-delay: 0.18s; }
.gallery-grid > [data-animate].visible:nth-child(4n+2) { animation-delay: 0.07s; }
.gallery-grid > [data-animate].visible:nth-child(4n+3) { animation-delay: 0.14s; }
.gallery-grid > [data-animate].visible:nth-child(4n) { animation-delay: 0.21s; }
.section-subtitle[data-animate].visible { animation-delay: 0.12s; }

/* Roční tabulky — jemný nástup po rozbalení */
@keyframes tableIn {
    from { opacity: 0; transform: translateY(-6px); }
}
.lecture-year.expanded .lecture-table-wrapper:not(.lecture-hidden) { animation: tableIn 0.35s ease; }

/* FAQ — plynulé otevírání (progressive enhancement, Chrome/Edge) */
@supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq-item::details-content {
        block-size: 0;
        overflow-y: clip;
        transition: content-visibility 0.35s allow-discrete, block-size 0.35s ease;
    }
    .faq-item[open]::details-content { block-size: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-animate] { opacity: 1; transform: none; transition: none; animation: none; }
    .hero-title, .hero-text, .hero-cta, .hero-stats { animation: none; }
    .hero-video-bg video { display: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .awards-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .videos-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { gap: 48px; }

    /* 3 typy přednášek: místo gridu s osiřelou kartou kompaktní vodorovné řádky */
    .lectures-intro { grid-template-columns: 1fr; gap: 14px; margin-bottom: 48px; }
    .lecture-type {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 18px;
        row-gap: 6px;
        align-items: center;
        text-align: left;
        padding: 18px 22px;
    }
    .lecture-type-icon { grid-row: 1 / 3; align-self: center; margin: 0; }
    .lecture-type .lecture-badge { grid-column: 2; justify-self: start; }
    .lecture-type p { grid-column: 2; margin-top: 0; }
}

@media (max-width: 768px) {
    body { font-size: 1rem; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(251, 248, 241, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 96px 36px 36px;
        gap: 20px;
        transition: right 0.3s ease;
        box-shadow: -12px 0 32px rgba(43, 33, 21, 0.14);
    }
    .nav-menu.active { right: 0; }
    /* v otevřeném panelu musí být odkazy tmavé i nad hero videem */
    .navbar .nav-menu .nav-link { color: var(--text); font-size: 1.125rem; }
    .navbar .nav-menu .nav-link:hover { color: var(--primary-deep); }
    .nav-toggle { display: flex; position: relative; z-index: 1001; }
    .navbar .nav-toggle.active span { background: var(--text); }

    .hero { min-height: 100svh; padding: 120px 0 70px; }
    .hero-title { font-size: 2.5rem; }
    .hero-text { font-size: 1.0625rem; }
    .hero-cta { flex-direction: column; margin-bottom: 44px; }
    .hero-cta .btn { width: 100%; }
    .hero-stats { flex-wrap: wrap; row-gap: 20px; }
    .hero-stat { padding: 0 24px; }
    .hero-stat:first-child { padding-left: 0; }
    .hero-stat strong { font-size: 1.75rem; }

    .section-subtitle { margin-bottom: 48px; }

    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-image { order: -1; }
    .about-stats { gap: 36px; }

    .products-grid { grid-template-columns: 1fr; }
    .awards-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gallery-tabs { gap: 8px; }
    .gallery-tab { padding: 7px 16px; font-size: 0.875rem; }
    .videos-grid { grid-template-columns: 1fr; }
    .lightbox-prev { left: 8px; padding: 12px 8px; font-size: 1.5rem; }
    .lightbox-next { right: 8px; padding: 12px 8px; font-size: 1.5rem; }

    /* Responsive lecture table */
    .lecture-table thead { display: none; }
    .lecture-table tr {
        display: block;
        padding: 16px 22px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .lecture-table td {
        display: block;
        padding: 4px 0;
        border: none;
        font-size: 0.9375rem;
    }
    .lecture-table td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-dark-muted);
    }
    .lecture-table td:last-child::before { content: ''; }

    .year-title { padding: 18px 22px; font-size: 1.25rem; }
    .lecture-table th { padding: 12px 22px; }

    .footer { padding: 56px 0 28px; }
    .footer-content { flex-direction: column; gap: 28px; }
    .footer-links { flex-wrap: wrap; gap: 20px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero-title { font-size: 2.125rem; }
    .hero-stat { padding: 0 16px; }
    .hero-stat:first-child { padding-left: 0; }
    .about-stats { flex-wrap: wrap; gap: 24px; }
    .product-card { padding: 24px; }
    .product-image { margin: -24px -24px 18px; }
    .product-image img { height: 185px; }
    .contact-form { padding: 28px 24px; }
    .lecture-table td { font-size: 0.9rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-tabs { gap: 6px; }
    .gallery-tab { padding: 6px 13px; font-size: 0.8125rem; }
    .lightbox-img { max-width: 95vw; max-height: 75vh; }
}
