@font-face {
    font-family: 'SF Pro Display';
    src: local('SF Pro Display'), local('.SFNSDisplay');
}

:root {
    /* Barvy pozadí a textu */
    --bg: #fbfbfd;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --subtle: #86868b;
    --surface: #ffffff;
    --surface-border: rgba(0, 0, 0, .06);
    --surface-hover: #f5f5f7;
    
    /* Značkové barvy */
    --accent: #d9534f; 
    --accent-hover: #c9302c;
    --accent-ink: #ffffff;
    --ring: rgba(217, 83, 79, .25);
    
    /* Geometrie a stíny */
    --radius: 20px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, .06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .15);
    
    /* Rozvržení a animace */
    --content-max: 1200px;
    --nav-h: 70px;
    --nav-z: 100;
    --nav-bg: rgba(251, 251, 253, .85);
    --nav-blur: 20px;
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    line-height: 1.58;
    -webkit-font-smoothing: antialiased;
    padding-top: calc(var(--nav-h) + 20px);
    font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease-out); }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ======= CENTROVÁNÍ OBSAHU ======= */
.content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 16px;
}

/* ======= HLAVNÍ NAVIGACE ======= */
.topnav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: center;
    z-index: var(--nav-z);
    background: var(--nav-bg);
    backdrop-filter: saturate(1.8) blur(var(--nav-blur));
    -webkit-backdrop-filter: saturate(1.8) blur(var(--nav-blur));
    border-bottom: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
}

.topnav .inner {
    width: 100%; max-width: var(--content-max);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
}

.nav-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; transition: opacity 0.2s;
    flex-shrink: 0;
}
.nav-brand:hover { opacity: 0.85; text-decoration: none; }
.nav-brand img { height: 32px; width: auto; }
.nav-brand span { font-weight: 700; font-size: 1.2rem; color: var(--accent); letter-spacing: -0.5px; }
.nav-brand span small { font-weight: 400; font-size: 1rem; color: var(--muted); margin-left: 2px; }

.nav-links { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.nav-links a {
    padding: 8px 14px; border-radius: 980px;
    color: var(--text); font-weight: 600; font-size: 0.9rem;
    transition: background .2s var(--ease-out), color .2s;
}
.nav-links a:hover { background: var(--surface-hover); text-decoration: none; }
.nav-links a.active { background: var(--text); color: var(--surface); }

.nav-toggle {
    display: none; border: none; background: none; cursor: pointer;
    color: var(--text); font-weight: 600; font-family: inherit; font-size: 0.9rem;
    padding: 8px 14px; border-radius: 980px;
}
.nav-toggle:hover { background: var(--surface-hover); }

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: calc(var(--nav-h) + 10px);
        right: 16px; left: 16px; flex-direction: column;
        background: var(--surface); border: 1px solid var(--surface-border);
        border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-lg);
    }
    .nav-links.open { display: flex; }
    .nav-links a { width: 100%; text-align: center; padding: 12px; }
    .nav-toggle { display: block; }
}

/* ======= KARTY ======= */
.card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .4s var(--ease-out);
    margin-bottom: 24px;
}
.card:hover { box-shadow: var(--shadow-md); }

/* ======= TLAČÍTKA ======= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 18px; cursor: pointer; border: none; border-radius: var(--radius-sm);
    font-weight: 600; font-family: inherit; font-size: 0.9rem;
    transition: all .2s var(--ease-out); text-align: center; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); text-decoration: none;}
.btn:active { transform: translateY(1px); }
.btn-primary { background-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background-color: var(--accent-hover); color: var(--accent-ink); }

/* ======= TABULKY ======= */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 10px; font-size: 0.95rem; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--surface-border); }
th { background: var(--surface-hover); font-weight: 600; color: var(--muted); }
tbody tr { transition: background .2s; }
tbody tr:hover td { background: rgba(0, 0, 0, .02); }
td.info-row { text-align: center; color: var(--muted); font-size: 0.9rem; }


/* ==================================================
   SPECIFICKÉ STYLY PRO PREZENTAČNÍ STRÁNKU (LANDING)
   ================================================== */

.section-card { scroll-margin-top: calc(var(--nav-h) + 24px); }

.card h2 { margin-top: 0; margin-bottom: 15px; font-size: clamp(24px, 3vw, 32px); color: var(--text); letter-spacing: -0.02em; }
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.65; margin-bottom: 15px; }
.lead strong { color: var(--text); font-weight: 600; }

.feature-list { padding-left: 20px; margin: 15px 0 25px; }
.feature-list li { color: var(--muted); margin-bottom: 10px; line-height: 1.55; }
.feature-list li::marker { color: var(--accent); }

/* ======= HERO VIDEO ======= */
.right-media {
    position: relative; float: right; width: 260px; height: 460px;
    margin: 5px 0 20px 30px; border-radius: 24px; overflow: hidden;
    background: var(--surface-hover); border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-lg); transition: transform .4s var(--ease-out);
}
.right-media video { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.right-media:hover { transform: translateY(-5px); }

@media (max-width: 900px) {
    .right-media {
        float: none; width: 100%; height: auto; aspect-ratio: 9 / 16;
        margin: 20px auto; max-width: 320px; display: block;
    }
}

/* ======= OBRÁZKOVÁ GALERIE ======= */
.gallery-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px; margin: 30px 0;
}
.gallery-container img {
    width: 100%; height: 240px; object-fit: cover; cursor: pointer;
    border-radius: var(--radius-sm); border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm); transition: all .35s var(--ease-out);
}
.gallery-container img:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ======= LIGHTBOX ======= */
#lightbox {
    position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .8); backdrop-filter: blur(15px); z-index: 200; padding: 24px;
    animation: fadeIn .3s var(--ease-out);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
#lightbox img {
    max-width: min(1200px, 92vw); max-height: 90vh; border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .4); cursor: zoom-out;
    animation: scaleIn .35s var(--ease-spring);
}
@keyframes scaleIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ======= SCROLL REVEAL ANIMACE ======= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(15px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: .19s; }