/* ==========================================================================
   BVM ALARM SYSTEM - PROFESSIONAL DESIGN SYSTEM v2.0
   Identita: Deep Black, Signal Red, Security Yellow.
   Typografia: Inter & JetBrains Mono
   ========================================================================== */

/* ==========================================================================
   1. CSS PREMENNÉ (VARIABLES)
   ========================================================================== */
:root {
    /* Brand Colors */
    --brand-yellow: #fcd116;    /* Bezpečnostná žltá */
    --brand-red: #e61e25;       /* Akčná červená */
    --brand-red-bright: #ff1a22;
    
    /* Neutrals */
    --black: #050505;           /* Hlboká čierna */
    --dark-gray: #0d0d0d;       /* Sekundárne pozadie */
    --gray-left: #111111;
    --gray-right: #1a1a1a;
    --light-gray: #a0a0a0;      /* Textová sivá */
    --white: #ffffff;
    
    /* UI Details */
    --square-size: 40px;
    --square-color: rgba(252, 209, 22, 0.015); /* Jemná žltá mriežka */
    --transition-fast: 0.25s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 90px;
    --border-glow: 0 0 20px rgba(230, 30, 37, 0.15);
    
    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   2. RESET A ZÁKLADNÉ NASTAVENIA
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--white);
    background-color: var(--black);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;

    /* REFRESHED BACKGROUND: Technický industriálny look */
    background-image:
        linear-gradient(to bottom, rgba(5,5,5,0.8), var(--black)),
        linear-gradient(45deg, var(--square-color) 25%, transparent 25%, transparent 75%, var(--square-color) 75%, var(--square-color) 100%),
        linear-gradient(90deg, var(--square-color) 25%, transparent 25%, transparent 75%, var(--square-color) 75%, var(--square-color) 100%);
    
    background-size:
        cover,
        var(--square-size) var(--square-size),
        var(--square-size) var(--square-size);

    background-attachment: fixed;
}

/* Výber textu v brand farbe */
::selection {
    background: var(--brand-yellow);
    color: var(--black);
}

/* Profesionálny Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--black);
}
::-webkit-scrollbar-thumb {
    background: var(--brand-yellow);
    border: 2px solid var(--black);
    border-radius: 10px;
}

/* ==========================================================================
   3. TYPOGRAFIA A KOMPONENTY
   ========================================================================== */
h1, h2, h3, h4 {
    text-transform: uppercase;
    letter-spacing: -0.03em;
    font-weight: 800;
    line-height: 1.1;
}

strong {
    color: var(--brand-yellow);
}

a {
    color: var(--brand-red);
    text-decoration: none;
    transition: var(--transition-fast);
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.btn-primary {
    display: inline-block;
    background: var(--brand-red);
    color: var(--white);
    padding: 1.1rem 2.4rem;
    border-radius: 4px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    transition: var(--transition-slow);
    box-shadow: 0 4px 0px #9b1418; /* Industriálny "3D" efekt */
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--brand-red-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 30, 37, 0.4);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ==========================================================================
   4. HLAVIČKA (HEADER) - Branding BVM
   ========================================================================== */
header {
    background: var(--brand-yellow); /* Kľúčový vizuálny prvok z UI Kit */
    border-bottom: 4px solid var(--brand-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    color: var(--black);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-box {
    padding-top: 5px;  
    height: 55px;
    display: flex;
    align-items: center;
}

.logo-box img {
    height: 150%;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(0, 0, 0, 0.8);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-red);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--brand-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger (Black for Yellow background) */
.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--black);
}

/* ==========================================================================
   5. HERO SEKCIA (Aktualizovaná o rozdelenie s obrázkom)
   ========================================================================== */
.hero {
    padding: 120px 0 60px 0;
}

/* Nový flexibilný obal pre text vľavo a obrázok vpravo */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap; /* Umožní pretečenie na menších obrazovkách */
}

.hero-content {
    flex: 1 1 500px;
}

/* Nastavenia pre kontajner s obrázkom */
.hero-image {
    flex: 1 1 400px;
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(252, 209, 22, 0.2);
    transition: transform var(--transition-slow);
}

.hero-image img:hover {
    transform: scale(1.02);
    border-color: var(--brand-yellow);
}

.hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    color: var(--white);
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--light-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    border-left: 4px solid var(--brand-yellow);
    padding-left: 25px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.stat-item {
    background: linear-gradient(145deg, #111, #080808);
    padding: 35px;
    border-radius: 4px;
    border: 1px solid rgba(252, 209, 22, 0.1);
    text-align: center;
    transition: var(--transition-slow);
}

.stat-item:hover {
    transform: translateY(-8px);
    border-color: var(--brand-yellow);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--brand-yellow);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--light-gray);
}

.popis {
    width: 100%;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.popis p {
    color: var(--light-gray);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

/* ==========================================================================
   6. SEKCIA O NÁS (PREČO MY) - Aktualizované o Akordeón
   ========================================================================== */
.tagline {
    color: var(--brand-red);
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 30px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Základný dizajn karty */
.about-card {
    background: var(--gray-left);
    padding: 45px;
    border-radius: 4px;
    border-bottom: 3px solid transparent;
    transition: var(--transition-slow);
    cursor: pointer; /* Zmena kurzora pre indikáciu kliknutia */
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    background: #151515;
    border-bottom-color: var(--brand-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-icon {
    font-size: 3.5rem;
    color: var(--brand-yellow);
    margin-bottom: 25px;
    display: block;
}

.about-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Krátky text viditeľný hneď */
.short-text {
    color: var(--light-gray);
    margin-bottom: 0;
}

/* 1. Základný stav - detail je skrytý */
.expanded-content {
    max-height: 0;         /* Výška je nula */
    overflow: hidden;      /* Text nepretteká von */
    opacity: 0;            /* Text je neviditeľný */
    transition: max-height 0.6s ease, opacity 0.4s ease; /* Animácia rozbalenia */
}

/* 2. Stav po kliknutí - detail sa rozbalí */
.about-card.active .expanded-content {
    max-height: 1000px;    /* Hodnota musí byť vyššia ako reálny text */
    opacity: 1;
    margin-top: 15px;      /* Medzera medzi úvodom a detailom */
}

/* 3. Voliteľné: Animácia šípky */
.read-more i {
    transition: transform 0.3s ease;
}

.about-card.active .read-more i {
    transform: rotate(180deg); /* Šípka sa otočí smerom hore */
}

.read-more {
    margin-top: 15px;
    color: var(--brand-yellow);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Tlačidlo / text pre rozbalenie */
.read-more {
    margin-top: 25px;
    font-size: 0.9em;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--brand-yellow);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color var(--transition-fast);
}

.read-more i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animácia šípky pri otvorení karty */
.about-card.active .read-more i {
    transform: rotate(180deg);
    color: var(--brand-red);
}

.about-card-details h4 {
    color: var(--brand-yellow);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* Pôvodný stav - skryté */
.expanded-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
}

/* Stav po kliknutí (Aktívne) */
.about-card.active .expanded-content {
    max-height: 1000px; /* Dostatočne veľké pre 15+ riadkov */
    opacity: 1;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: max-height 0.8s ease-in, opacity 0.5s ease-in;
}

/* Otočenie šípky pri otvorení */
.about-card.active .read-more i {
    transform: rotate(180deg);
    color: var(--brand-red);
}

.read-more {
    margin-top: 20px;
    font-weight: 700;
    color: var(--brand-yellow);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.read-more i {
    transition: transform 0.3s ease;
}

/* ==========================================================================
   7. SEKCIA SLUŽBY - BVM Design
   ========================================================================== */
.service-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: rgba(15,15,15,0.6);
    border: 1px solid rgba(255,255,255,0.03);
    margin-bottom: 20px;
    border-radius: 4px;
}

.service-row:hover {
    border-color: var(--brand-yellow);
}

.service-img {
    background: #000;
    color: var(--brand-yellow);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.service-text h3 {
    color: var(--brand-yellow);
}

.service-features li::before {
    content: "✓";
    color: var(--brand-red);
}

.service-row.active {
    border-left: 5px solid var(--brand-red);
    background: #111;
}

/* ==========================================================================
   8. GALÉRIA (REALIZÁCIE)
   ========================================================================== */
.gallery-item {
    border: 1px solid rgba(255,255,255,0.05);
    filter: grayscale(0.5);
    transition: 0.5s;
}

.gallery-item:hover {
    filter: grayscale(0);
    border-color: var(--brand-yellow);
}

.gallery-overlay {
    background: linear-gradient(transparent, rgba(252, 209, 22, 0.9));
}

.gallery-info h4 {
    color: var(--black);
    font-weight: 800;
}

/* ==========================================================================
   9. FAQ (AKORDEÓN)
   ========================================================================== */
.faq-item {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
}

.faq-question:hover {
    background: rgba(252, 209, 22, 0.05);
}

.faq-item.active {
    border-color: var(--brand-yellow);
}

.faq-item.active .faq-question {
    color: var(--brand-yellow);
}

/* ==========================================================================
   10. KONTAKT A MAPA
   ========================================================================== */
.contact-container {
    gap: 60px;
}

.info-icon {
    background: var(--brand-yellow);
    color: var(--black);
    font-weight: 900;
    box-shadow: 0 0 15px rgba(252, 209, 22, 0.2);
}

.map-frame {
    border: 2px solid #1a1a1a;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.contact-form {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-top: 4px solid var(--brand-red);
}

.form-group label {
    font-family: var(--font-mono);
    color: var(--brand-yellow);
}

.form-control {
    background: #050505;
    border: 1px solid #222;
    padding: 18px;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: var(--brand-yellow);
}

/* ==========================================================================
   11. BACK TO TOP
   ========================================================================== */
#backToTop {
    background: var(--brand-yellow);
    color: var(--black);
    font-weight: 900;
}

/* ==========================================================================
   12. PÄTIČKA (FOOTER)
   ========================================================================== */
footer {
    background: #000;
    border-top: 4px solid var(--brand-yellow);
}

.footer-links h4 {
    color: var(--brand-yellow);
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
}

.footer-links a:hover {
    color: var(--brand-yellow);
}

/* ==========================================================================
   13. HOUSE CONFIGURATOR (ŠPECIÁLNA SEKCIA)
   ========================================================================== */
.house-configurator {
    background: #080808;
    border-left: 6px solid var(--brand-yellow);
    padding: 40px;
}

.room-checkbox {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--brand-yellow);
}

.room-checkbox:hover {
    background: var(--brand-yellow);
}

.room-checkbox:hover .label-text {
    color: var(--black);
}

.checkmark {
    border: 2px solid var(--brand-red);
}

.room-checkbox input:checked ~ .checkmark {
    background-color: var(--brand-red);
}

/* ==========================================================================
   14. RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Upravené pre kompatibilitu s .hero-split */
    .hero-split {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        order: -1; /* Presunie obrázok nad text na menších obrazovkách, ak to tak chceš */
        margin-bottom: 20px;
    }

    .hero-content p { 
        border-left: none; 
        border-top: 3px solid var(--brand-yellow); 
        padding: 20px 0 0 0; 
        margin-left: auto; 
        margin-right: auto; 
    }
    
    .about-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    header { height: 75px; }
    
    .nav-links { 
        top: 75px;
        background: var(--brand-yellow);
    }

    .nav-links a { color: var(--black); border-bottom: 1px solid rgba(0,0,0,0.1); width: 100%; padding: 15px; }

    .section-title { font-size: 2.2rem; }
    .stat-number { font-size: 2.2rem; }
    
    .contact-container { flex-direction: column; }
    
    .about-grid { grid-template-columns: 1fr; } /* Karty o nás budú na mobile pekne pod sebou */
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.4rem; }
    .btn-primary { width: 100%; text-align: center; }
    .stat-item { padding: 20px; }
    .hero-cta { flex-direction: column; gap: 1rem; }
}

/* Nastavenie pre zrolovaný obsah */
.expanded-content {
    max-height: 0;           /* Dôležité: na začiatku je výška 0 */
    overflow: hidden;        /* Skryje pretekajúci text */
    opacity: 0;              /* Text je priesvitný */
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

/* Nastavenie pre ROZBALENÝ obsah (po kliknutí) */
.about-card.active .expanded-content {
    max-height: 1000px;      /* Hodnota musí byť vyššia ako reálna výška textu */
    opacity: 1;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animácia šípky */
.read-more i {
    transition: transform 0.4s ease;
}

.about-card.active .read-more i {
    transform: rotate(180deg); /* Šípka sa otočí hore */
}

.read-more {
    margin-top: 20px;
    color: var(--brand-yellow);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Pridaj alebo uprav v style.css */

/* Predvolený stav pre prvky s triedou reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Stav, keď sa prvok objaví na obrazovke (vďaka JS) */
.reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Akordeón ostáva nezmenený - reaguje len na .active, 
   ktorú pridávaš kliknutím (onclick v HTML) */
.about-card.active .expanded-content {
    max-height: 1000px;
    opacity: 1;
    margin-top: 20px;
    /* ... zvyšok tvojho kódu ... */
}

/* Kontajner referencií */
.testimonials-container {
    margin-top: 100px;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dva stĺpce */
    gap: 30px;
    margin-top: 50px;
}

/* Základná karta */
.testimonial-card {
    background: var(--dark-gray);
    padding: 40px;
    border-radius: 4px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Ikona úvodzoviek */
.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    opacity: 0.1;
    color: var(--white);
}

/* Hviezdičky */
.rating {
    margin-bottom: 15px;
    color: var(--brand-yellow);
    font-size: 0.8rem;
}

/* Text referencie */
.testimonial-text {
    font-style: italic;
    color: var(--light-gray);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Autor */
.testimonial-author {
    font-family: var(--font-mono);
    font-weight: 700;
    font-style: normal;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto; /* Tlačí autora na spodok karty */
}

/* Farebné varianty */
.border-yellow { border-left: 4px solid var(--brand-yellow); }
.border-red { border-left: 4px solid var(--brand-red); }

.author-yellow { color: var(--brand-yellow); }
.author-red { color: var(--brand-red); }

/* Mobilná responzivita */
@media (max-width: 850px) {
    .testimonials-grid {
        grid-template-columns: 1fr; /* Na mobile pod sebou */
    }
}

/* KONTAKTNÝ FORMULÁR - PREMIUM DESIGN */
.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width { grid-column: span 2; }

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-yellow);
    font-size: 0.9rem;
    pointer-events: none;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 15px 15px 45px;
    color: var(--white);
    border-radius: 6px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    border-color: var(--brand-yellow);
    background: rgba(252, 209, 22, 0.05);
    outline: none;
    box-shadow: 0 0 15px rgba(252, 209, 22, 0.1);
}

/* Radio buttons styling */
.form-radio-group {
    margin: 10px 0;
}

.form-radio-group p {
    color: var(--brand-yellow);
    font-weight: 800;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.radio-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.radio-item input[type="radio"] {
    accent-color: var(--brand-yellow);
    width: 18px;
    height: 18px;
}

.form-submit-btn {
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 18px;
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .contact-form-wrapper { padding: 25px; }
}

/* ==========================================================================
   15. KOMPLEXNÁ MOBILNÁ RESPONZIVITA (VŽDY NA KONCI SÚBORU)
   ========================================================================== */

/* --- TABLETY (do 1024px) --- */
@media (max-width: 1024px) {
    /* Oprava formulára a kontaktov - poukladá sa pod seba */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Referencie a služby na 2 stĺpce namiesto 3 */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* O nás karty */
    .about-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --- MOBILNÉ TELEFÓNY (do 768px) --- */
@media (max-width: 768px) {
    /* 1. Zmenšenie obrovských textov a medzier */
    .section-title { font-size: 2.2rem !important; }
    .hero-content h1 { font-size: 2.4rem !important; }
    section, .hero { padding-top: 60px !important; padding-bottom: 40px !important; }

    /* 2. Všetky mriežky striktne do jedného stĺpca (pod seba) */
    .grid-3, .grid-2, .about-grid, .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* 3. Hero sekcia (Hlavný banner) */
    .hero-cta {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .hero-cta a { margin-left: 0 !important; justify-content: center; display: block; }
    .hero-stats { grid-template-columns: 1fr; } /* Štatistiky pod seba */

    /* 4. Mobilné Menu (Hamburger) */
    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: -100%; /* Schová menu mimo obrazovku */
        flex-direction: column;
        background: var(--brand-yellow);
        width: 100%;
        text-align: center;
        transition: left 0.4s ease-in-out;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    /* Keď sa klikne na menu, JS pridá triedu .active */
    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        display: block;
        padding: 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        width: 100%;
    }

    /* 5. Úprava kontaktných blokov a vizuálu */
    .contact-sidebar, .contact-form-wrapper {
        padding: 20px !important;
    }
    
    /* Zabezpečenie, aby obrázky a iframy (mapa) nepretekali z displeja */
    img, iframe {
        max-width: 100% !important;
    }
}

/* --- MALÉ TELEFÓNY (do 480px) --- */
@media (max-width: 480px) {
    .about-card { padding: 25px !important; }
    .stat-number { font-size: 2rem; }
    .form-grid { grid-template-columns: 1fr !important; }
    .full-width { grid-column: span 1 !important; }
}

@media (max-width: 768px) {
    /* Oprava loga, aby nebolo na kraji a nebolo useknuté */
    .logo {
        padding-left: 20px; /* Pridá bezpečný odstup od ľavého okraja */
    }

    .nav-logo {
        height: 50px; /* Mierne zmenšíme na mobile, aby nezaberalo veľa miesta */
        width: auto;
        object-fit: contain;
    }

    /* Štýl pre Hamburger Ikonu */
    .menu-toggle {
        display: block;
        cursor: pointer;
        padding-right: 20px; /* Odstup od pravého okraja */
        z-index: 1001;
    }

    .menu-toggle .bar {
        display: block;
        width: 30px;
        height: 3px;
        margin: 6px auto;
        background-color: var(--brand-yellow);
        transition: all 0.3s ease-in-out;
    }

    /* Animácia krížika pri otvorení (voliteľné) */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Úprava nav-links pre mobil */
    .nav-links {
        display: none; /* Štandardne skryté */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--black); /* Tmavé pozadie */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex; /* Zobrazí sa po kliknutí */
    }
}

@media (max-width: 768px) {
    /* Vynútené skrytie menu v základnom stave */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px; /* Výška tvojho headera */
        left: 0;
        width: 100%;
        background-color: #050505; /* Čierne pozadie */
        padding: 20px 0;
        z-index: 999;
        border-bottom: 2px solid var(--brand-yellow);
    }

    /* Zobrazenie menu po kliknutí (keď JS pridá triedu .active) */
    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    /* Zobrazenie hamburgera */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--brand-yellow);
        border-radius: 3px;
    }
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
#cookie-banner {
    position: fixed;
    bottom: -100px; /* Skryté dole */
    left: 0;
    width: 100%;
    background-color: var(--bg-card, #111);
    color: var(--text-main, #fff);
    padding: 20px 0;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    border-top: 3px solid var(--brand-yellow, #f39c12);
    transition: bottom 0.5s ease-in-out;
    visibility: hidden;
}

#cookie-banner.show {
    bottom: 0;
    visibility: visible;
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-sec, #ccc);
}

.cookie-text a {
    color: var(--brand-yellow, #f39c12);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.btn-cookie {
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-primary {
    background-color: var(--brand-yellow, #f39c12);
    color: #000;
    border: none;
}

.btn-primary:hover {
    background-color: #d68910;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main, #fff);
    border: 1px solid var(--text-sec, #ccc);
}

.btn-secondary:hover {
    border-color: var(--brand-yellow, #f39c12);
    color: var(--brand-yellow, #f39c12);
}

/* Responzivita pre mobily */
@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    .btn-cookie {
        width: 100%;
    }
}

/* Oprava bieleho textu v select menu */
select {
    background-color: var(--bg-card, #111) !important;
    color: var(--text-main, #fff) !important;
    border: 1px solid var(--border-color, #333);
    padding: 10px;
    cursor: pointer;
}

/* Štýlovanie jednotlivých možností (funguje vo väčšine prehliadačov) */
select option {
    background-color: #111;
    color: #fff;
}