:root {
    --bg-main: #0b0b0c;
    --bg-secondary: #131316;
    --bg-card: #1a1a1f;
    --border-color: #2c2c34;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --red: #d91e2a;
    --red-dark: #b0151f;
    --white: #ffffff;
    --radius: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, .logo-tag {
    font-family: 'Chakra Petch', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.red {
    color: var(--red);
}

.container {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}

/* Navigace */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 11, 12, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--red);
}

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

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    background: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
}

.logo-fallback {
    flex-direction: column;
}

.logo-tag {
    font-size: 1.6rem;
    font-weight: 700;
    font-style: italic;
    color: var(--white);
}

.logo-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
}

.btn-nav {
    background: var(--red);
    color: var(--white) !important;
    padding: 0.45rem 1rem;
    border-radius: 6px;
}

.btn-nav:hover {
    background: var(--red-dark);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--white);
    font-size: 1.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
}

/* Hero sekce */
.hero {
    position: relative;
    padding: 5.5rem 0 4.5rem;
    background: radial-gradient(circle at top right, rgba(217, 30, 42, 0.22), transparent 55%),
                linear-gradient(180deg, #141418 0%, var(--bg-main) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2.5rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(217, 30, 42, 0.15);
    border: 1px solid rgba(217, 30, 42, 0.5);
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    line-height: 1.12;
    margin-bottom: 1.2rem;
    color: var(--white);
}

.hero h1 .accent {
    color: var(--red);
}

.hero-lead {
    max-width: 650px;
    font-size: 1.08rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    border: 3px solid var(--red);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.hero-emblem {
    max-width: 100%;
    max-height: 230px;
    height: auto;
    display: block;
}

.hero-emblem-svg {
    width: 100%;
    max-width: 320px;
    background: var(--bg-main);
    border-radius: 10px;
    padding: 0.5rem;
}

/* Tlačítka */
.btn {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
}

.btn-secondary {
    background: var(--white);
    color: var(--bg-main);
}

.btn-secondary:hover {
    background: #e4e4e7;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--red);
}

.btn-outline:hover {
    background: rgba(217, 30, 42, 0.18);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Sekce */
.section {
    padding: 4.5rem 0;
}

.section-dark {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.section-badge-logo {
    height: 85px;
    width: auto;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    color: var(--white);
}

.section-header h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--red);
    margin-top: 0.4rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Tabulky */
.table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.race-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.race-table th, .race-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.race-table th {
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--white);
}

.race-table tr:last-child td {
    border-bottom: none;
}

.table-link {
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
}

.table-link:hover {
    text-decoration: underline;
    color: #f87171;
}

/* Štítky (Tags) */
.tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.tag-race {
    background: var(--red);
    color: var(--white);
}

.tag-trip {
    background: var(--white);
    color: var(--bg-main);
}

/* Mřížky a karty */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mt-2 {
    margin-top: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.6rem;
}

.card-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: var(--white);
}

.meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Filtry jezdců */
.filter-bar {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.45rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.race-number {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
}

.bike-model {
    color: var(--white);
    margin-bottom: 0.8rem;
}

.specs-list {
    list-style: none;
    margin: 0.8rem 0 1rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.specs-list li {
    margin-bottom: 0.35rem;
}

.rider-quote, .quote-box {
    border-left: 3px solid var(--red);
    padding-left: 0.9rem;
    font-style: italic;
    color: #e4e4e7;
    margin: 1rem 0;
}

/* Záložky (Tabs) */
.tabs-nav {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.8rem 1.4rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stat-row div {
    display: flex;
    flex-direction: column;
}

.stat-row strong {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.35rem;
    color: var(--red);
}

.stat-row span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tip-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--white);
    padding: 0.7rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: 1rem 0;
}

/* Galerie */
.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-thumb {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
    border-bottom: 2px solid var(--red);
}

.gallery-body {
    padding: 1.4rem;
}

.gallery-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0.5rem 0 1rem;
}

/* Checklist & Oživení */
.trophy-card {
    border-color: var(--red);
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.checklist-group {
    margin-top: 1.2rem;
}

.checklist-group h4 {
    font-size: 0.95rem;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.checklist-group label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
    cursor: pointer;
}

.checklist-group input[type="checkbox"] {
    accent-color: var(--red);
    width: 16px;
    height: 16px;
}

/* Partneři */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.partner-box {
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    padding: 2rem 1rem;
    text-align: center;
    border-radius: var(--radius);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    color: var(--white);
}

.sponsor-cta {
    background: linear-gradient(135deg, rgba(217, 30, 42, 0.2), rgba(255, 255, 255, 0.04));
    border: 1px solid var(--red);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
}

.sponsor-cta p {
    color: var(--text-muted);
    margin: 0.5rem 0 1.2rem;
}

/* Patička */
.footer {
    background: #070708;
    border-top: 2px solid var(--red);
    padding-top: 3.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.8rem;
}

.footer h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--red);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 1.2rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responzivita & Tisk */
@media (max-width: 850px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-logo-box {
        max-width: 340px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 1.5rem;
        border-bottom: 2px solid var(--red);
    }
    .nav-links.open {
        display: flex;
    }
}

@media print {
    body * {
        visibility: hidden;
    }
    #printableChecklist, #printableChecklist * {
        visibility: visible;
    }
    #printableChecklist {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #fff;
        color: #000;
        border: none;
    }
    .no-print {
        display: none !important;
    }
}
