:root {
    --primary: #39ff14;
    /* Neon Green */
    --secondary: #c0c0c0;
    /* Silver */
    --accent: #ff003c;
    /* Neon Red */
    --dark-bg: #121212;
    --dark-card: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --nav-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.8);
    transform: translateY(-2px);
}

.btn-large {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    width: 100%;
    max-width: 500px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
    height: var(--nav-height);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

.logo img {
    height: 50px;
    border-radius: 5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    position: relative;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: #000 !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #000;
}

/* Sections */
section {
    padding: 80px 20px;
    width: 100%;
    /* margin: 0 auto; Removed global max-width centering */
}

/* Hero */
#hero {
    height: 60vh;
    /* Reduced from 100vh */
    min-height: 450px;
    /* Reduced from 600px */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/rast-svalov-probolan.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    max-width: 100%;
    margin-top: 0;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    margin: 0 auto;
}

.hero-content h1 {
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
}

.hero-content h2 {
    border: none;
    font-size: 1.5rem;
    color: #ddd;
    margin-bottom: 40px;
    text-transform: none;
    font-weight: 400;
}

/* LAYOUT CONTAINER */
.page-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 40px;
    padding: 0 20px;
}

/* MAIN CONTENT (Fixed Width) */
.main-content {
    width: 764px;
    flex-shrink: 0;
}

/* SIDEBAR */
.sidebar {
    flex-grow: 1;
    min-width: 300px;
    position: relative;
    /* Context for sticky if needed */
}

/* Container for sticky content */
.sidebar-sticky-container {
    position: sticky;
    top: 100px;
    /* Header height + 20px */
}

.sidebar-widget {
    background: var(--dark-card);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #333;
    /* Removed sticky from individual widgets to prevent stacking overlap issues if they were sticky */
}

/* Sidebar TOC */
.toc-sidebar ul {
    list-style: none;
    padding: 0;
}

.toc-sidebar li {
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.toc-sidebar li:last-child {
    border-bottom: none;
}

.toc-sidebar a {
    color: var(--text-muted);
    display: block;
}

.toc-sidebar a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Content Blocks */
.content-block {
    margin-bottom: 60px;
}

.content-img {
    width: 100%;
    max-width: 764px;
    /* Ensure images don't overflow content area */
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

/* Testimonial/Citation Box (Hebe) */
.citation-box {
    background: #000;
    border: 1px solid #333;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.citation-logo {
    width: 100px;
    border-radius: 5px;
}

.citation-text {
    font-style: italic;
    color: #ccc;
}

/* Features/Pricing */
/* Pricing typically full width or in main content? If outside container, need centering */
#objednavka {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.price-card {
    background: var(--dark-card);
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.price-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.1);
}

.price-card h3 {
    color: #fff;
    margin-bottom: 10px;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
}

.price-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
}

.faq-question {
    padding: 20px;
    background: var(--dark-card);
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    background: #151515;
    color: #ccc;
}

.faq-answer.active {
    padding: 20px;
    max-height: 200px;
}

/* Partners */
.partners-logo img {
    height: 60px;
    filter: grayscale(100%);
    transition: 0.3s;
    opacity: 0.7;
    max-width: 100%;
}

.partners-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer */
footer {
    background: #000;
    text-align: center;
    padding: 50px 20px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #222;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: #888;
    margin: 0 10px;
    font-size: 0.8em;
}

/* Responsive */
@media (max-width: 1024px) {
    .page-container {
        flex-direction: column;
    }

    .main-content {
        width: 100%;
    }

    .sidebar {
        width: 100%;
        min-width: auto;
    }

    .sidebar-widget {
        position: static;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: #fff;
        /* Updated to match header bg */
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .toc ul {
        columns: 1;
    }

    .citation-box {
        flex-direction: column;
        text-align: center;
    }
}