:root {
    --bg-main: #0a0505;
    --bg-surface: #140808;
    --bg-card: #1f0c0c;
    --primary: #ef4444;
    --primary-dark: #dc2626;
    --primary-glow: rgba(239, 68, 68, 0.25);
    --accent: #f87171;
    --text-main: #f9fafb;
    --text-muted: #a8a2a2;
    --border: #3f1a1a;
    --radius: 12px;
    --transition: all 0.3s ease;
}

html {scroll-behavior: smooth;}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Zmenšená navigační lišta a pevná velikost loga */
header {
    background: rgba(10, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px !important;
    width: auto !important;
    max-height: 40px;
    object-fit: contain;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary);
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: var(--bg-surface);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--bg-card);
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(239, 68, 68, 0.1);
}

section {
    padding: 7rem 5% 4rem;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary);
    filter: blur(160px);
    opacity: 0.12;
    border-radius: 50%;
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-inline: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card p, .card ul {
    color: var(--text-muted);
}

.card ul {
    list-style-position: inside;
    margin-top: 1rem;
}

.card ul li {
    margin-bottom: 0.5rem;
}

.ref-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.ref-img:hover {
    opacity: 0.9;
    border-color: var(--primary);
}

/* CSS Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}
.lightbox:target {
    display: flex;
}
.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    border: 2px solid var(--border);
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 3rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.price-card {
    background: var(--bg-surface);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
}

.price-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-surface) 100%);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem 0;
}

.price-amount span {
    font-size: 1rem;
    color: var(--text-muted);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   === MOBILNÍ MENU STYLY (Základní pro funkčnost) === 
   ========================================= */

/* Výchozí stav hamburger ikony (na desktopu skrytá) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

/* Animace hamburger ikony na křížek po aktivaci */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responzivita pro mobilní zařízení (pod 900px) */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex; /* Zobrazení hamburgeru na mobilu */
    }

    nav ul.nav-list {
        position: fixed;
        top: 0;
        right: -100%; /* Skryto mimo obrazovku vpravo */
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 2rem;
        border-left: 1px solid var(--border);
    }

    /* Zobrazení menu po kliknutí (třídu přidává JavaScript) */
    nav ul.nav-list.active {
        right: 0;
    }

    /* Úprava rozbalovacího menu (dropdown) pro mobily */
    .dropdown {
        height: auto !important;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        background: transparent !important;
        border: none !important;
        display: block !important; /* Na mobilu rozbaleno automaticky v rámci sekce */
        text-align: center;
        margin-top: 0.5rem;
    }

    .dropdown-content a {
        padding: 6px 0 !important;
        color: var(--text-muted) !important;
        font-size: 0.9rem;
        border: none !important;
    }
}