/* =========================================
   1. ZÁKLADNÍ NASTAVENÍ A PROMĚNNÉ
   ========================================= */
:root {
    /* --- BARVY --- */
    --bg-main: #ffffff;
    --bg-secondary: #f9f9f9; /* Velmi jemná šedá pro oddělení sekcí */
    --text-main: #1a1a1a;
    --text-light: #666666;
    
    /* Neon Green Palette (Vaše značka) */
    --accent-primary: #00f81d;
    --accent-hover: #00c062;
    --accent-dark: #00d34b;
    
    --border-color: #e5e5e5;
    --font-main: 'Montserrat', sans-serif;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth; /* Plynulé scrollování při kliku na kotvu */
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden; /* Zabrání vodorovnému posouvání */
}

/* =========================================
   2. TYPOGRAFIE A OBECNÉ PRVKY
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* Štítek nad nadpisem sekce */
.section-tag {
    display: inline-block;
    color: var(--accent-hover);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: rgba(0, 248, 29, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

/* Zvýraznění textu */
.highlight { color: var(--accent-hover); }
.highlight-text { 
    background: linear-gradient(120deg, rgba(0,248,29,0) 0%, rgba(0,248,29,0.3) 100%);
    padding: 0 5px;
}

/* Kontejner pro středění obsahu */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.center { text-align: center; }

/* Třída pro skrytí prvků (např. cookie banner po zavření) */
.hidden { display: none !important; }

/* =========================================
   3. TLAČÍTKA (BUTTONS)
   ========================================= */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

/* Hlavní tlačítko (zelené) - OPRAVENO */
.btn.primary, .btn-primary {
    background-color: var(--accent-primary);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 248, 29, 0.3);
    /* Tyto řádky odstraní ten hnusný rámeček a sjednotí vzhled: */
    border: none; 
    padding: 0.8rem 1.5rem; /* Upravené paddingy pro cookie lištu */
    border-radius: 50px;    /* Nebo 4px, pokud chcete hranatější */
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;   /* Aby seděl font */
}

/* Pokud chcete v cookie liště hranatější tlačítka (jako na obrázku ty ostatní),
   přidejte ještě tento řádek speciálně pro ně: */
.cookie-btns .btn-primary {
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
}

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

/* Sekundární tlačítko (průhledné s rámečkem) */
.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    margin-left: 1rem;
}

.btn.secondary:hover {
    background-color: var(--text-main);
    color: #fff;
}

/* Tlačítka v cookie liště a modalech */
.btn-outline {
    background: transparent;
    border: 1px solid #666;
    color: #fff;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
    font-family: inherit;
    font-weight: 600;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-text { 
    background: none; border: none; color: #888; cursor: pointer; text-decoration: underline; 
}

.full-width { width: 100%; border: none; cursor: pointer; }

/* =========================================
   4. NAVIGACE
   ========================================= */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo-img {
    height: 100px; 
    width: auto;
    display: block;
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Tlačítko "Kontaktovat" v menu */
.btn-nav {
    background: var(--text-main);
    color: #fff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}

.btn-nav:hover { background: var(--accent-primary); color: #000 !important; }

/* Hamburger menu (mobil) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* =========================================
   5. SEKCE: HERO (Úvodní obrazovka)
   ========================================= */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

#hero p {
    max-width: 550px;
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

/* Dekorace na pozadí */
.hero-shape {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0,248,29,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    border-radius: 50%;
}

/* =========================================
   6. SEKCE: O NÁS
   ========================================= */
#about { padding: 8rem 0; }

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.lead { font-size: 1.2rem; font-weight: 500; margin-bottom: 2rem; }

.tech-stack {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
}

.tech-list {
    list-style: none;
    margin-top: 1rem;
}

.tech-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.tech-list i { 
    color: var(--accent-hover); 
    width: 20px;
    text-align: center;
}

.image-block img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* =========================================
   7. SEKCE: SLUŽBY
   ========================================= */
#services { padding: 6rem 0; background: var(--bg-secondary); }

/* Mřížka služeb */
.services-grid-clean {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Desktop: 4 vedle sebe */
@media (min-width: 1024px) {
    .services-grid-clean {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Karta služby */
.service-card-clean {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    cursor: pointer; /* Indikuje, že je celá karta klikací */
}

.service-card-clean:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 248, 29, 0.1);
}

.icon-clean {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.2rem;
}

.service-card-clean h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
    font-weight: 700;
}

.service-card-clean p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Odkaz "Více informací" */
.service-link-clean {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    background: none; border: none; font-family: inherit;
}

.service-card-clean:hover .service-link-clean {
    color: var(--accent-primary);
}

.service-card-clean:hover .service-link-clean i {
    transform: translateX(5px);
}

/* =========================================
   8. SEKCE: PROCES (Slider)
   ========================================= */
#process {
    padding: 6rem 0;
    background-color: var(--bg-main);
}

.process-slider-container {
    position: relative;
    padding: 0 50px; /* Místo pro šipky, pokud by byly */
}

.process-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: none;
    align-items: stretch; /* Stejná výška karet */
    scroll-snap-type: x mandatory;
}

.process-slider::-webkit-scrollbar { display: none; }

/* Karta procesu */
.process-card {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    scroll-snap-align: start;
    height: auto;
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

/* Číslo kroku / Ikona */
.step-number, .step-icon {
    min-width: 60px; max-width: 60px;
    min-height: 60px; max-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

/* Styl pro běžné (bílé) karty */
.process-card .step-number {
    background: rgba(0, 248, 29, 0.1);
    color: var(--accent-hover);
}

.process-card h3 {
    font-size: 1.3rem; margin-bottom: 1rem; color: #1a1a1a;
}
.process-card p {
    color: #666; line-height: 1.6; font-size: 0.95rem; margin: 0; flex-grow: 1;
}

/* Speciální karta (Raketa) */
.highlight-card {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

.highlight-card .icon-rocket {
    font-size: 2rem;
    color: var(--accent-primary);
    background: #ffffff;
    
    /* --- OPRAVA ROZMĚRŮ --- */
    width: 60px;       /* Pevná šířka (aby se neroztahovala) */
    height: 60px;      /* Pevná výška */
    min-width: 60px;   /* Pojistka */
    align-self: flex-start; /* Zajistí, že zůstane vlevo a neroztáhne se */
    /* ---------------------- */

    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 12px; 
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

.highlight-card h3, .highlight-card p { color: #000 !important; }

/* Šipky slideru */
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 45px; height: 45px; border-radius: 50%;
    background: #fff; border: 1px solid #eee;
    color: var(--text-main); cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.slider-arrow:hover { background: var(--accent-primary); border-color: var(--accent-primary); color: #000; }
.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }

/* =========================================
   9. SEKCE: TÝM
   ========================================= */
#team { 
    padding: 8rem 0; 
    background-color: var(--bg-secondary);
}

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

.team-card { text-align: center; cursor: pointer; }

.team-img-wrapper {
    width: 100%; aspect-ratio: 4/5;
    overflow: hidden; border-radius: 12px;
    margin-bottom: 1.5rem; background: #eee;
    position: relative;
}

.team-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
    filter: grayscale(0%);
}

/* Efekt overlay (plusko) přes fotku */
.team-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: all 0.3s ease;
}

.team-overlay i {
    color: var(--accent-primary); font-size: 4rem;
    transform: scale(0.5) rotate(-90deg);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card:hover .team-overlay { opacity: 1; }
.team-card:hover .team-overlay i { transform: scale(1) rotate(0deg); }
.team-card:hover .team-img-wrapper img { transform: scale(1.05); }

.role { color: var(--accent-dark); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }

/* =========================================
   10. SEKCE: PORTFOLIO
   ========================================= */
#portfolio { padding: 4rem 0 4rem; background: var(--bg-main); }

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

.project-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: block; text-decoration: none; color: inherit;
}

.project-item img {
    width: 100%; display: block; transition: transform 0.5s;
}

.project-item:hover img { transform: scale(1.1); }

.overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff; opacity: 0; transition: 0.3s;
}

.project-item:hover .overlay { opacity: 1; }
.project-item:hover .fa-play-circle { transform: scale(1.1); transition: transform 0.3s ease; }
.overlay span { color: var(--accent-primary); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }

/* Klienti Slider */
.clients-section {
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
    overflow: hidden;
}
.clients-title {
    text-align: center; color: var(--text-light); font-size: 0.8rem;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 2rem;
}
.logo-scroller { width: 100%; overflow: hidden; }
.logo-track {
    display: flex; gap: 4rem; width: max-content;
    justify-content: center; align-items: center;
}
.logo-track.animate {
    animation: slide 20s linear infinite; justify-content: flex-start;
}
.client-logo {
    font-size: 1.5rem; font-weight: 900; color: #ddd; text-transform: uppercase;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* =========================================
   11. SEKCE: RECENZE
   ========================================= */
#reviews {
    padding: 8rem 0;
    background-color: var(--bg-main);
}

.reviews-scroller {
    display: flex; overflow-x: auto; gap: 2rem;
    padding: 1rem 0.5rem 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.reviews-scroller::-webkit-scrollbar { display: none; }

.review-card {
    flex: 0 0 350px;
    width: 350px;
    scroll-snap-align: center;
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex; flex-direction: column; justify-content: space-between;
}

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

.stars { color: #ffc107; margin-bottom: 1.5rem; font-size: 0.9rem; }
.review-text { font-style: italic; margin-bottom: 2rem; line-height: 1.6; color: var(--text-main); }
.reviewer-info h4 { margin-bottom: 0.2rem; font-size: 1.1rem; font-weight: 700; }
.reviewer-info span { color: var(--text-light); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* =========================================
   12. SEKCE: FAQ
   ========================================= */
#faq { padding: 6rem 0 8rem; background-color: var(--bg-secondary); }

.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.2rem; }

.faq-card {
    background: #ffffff; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden; transition: all 0.3s ease;
    cursor: pointer; border: 1px solid transparent;
}

.faq-card:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.faq-card.highlight-border { border: 1px solid rgba(0, 248, 29, 0.3); }
.faq-card.active { border-color: var(--accent-primary); box-shadow: 0 10px 30px rgba(0, 248, 29, 0.1); }

.faq-head {
    padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; background: #fff; user-select: none;
}
.faq-head h3 { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--text-main); padding-right: 20px; transition: color 0.3s; }
.faq-card.active .faq-head h3 { color: var(--accent-dark); }

.icon-wrapper {
    min-width: 32px; height: 32px; border-radius: 50%;
    background: #f5f5f5; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.faq-card.active .icon-wrapper { transform: rotate(135deg); background: var(--accent-primary); color: #fff; }

.faq-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
    background: #fff; opacity: 0;
}
.faq-card.active .faq-body { max-height: 500px; opacity: 1; }
.faq-body p { padding: 0 2rem 2rem 2rem; color: #555; line-height: 1.6; margin: 0; font-size: 0.95rem; }

/* =========================================
   13. SEKCE: KONTAKT A CALENDLY
   ========================================= */
#contact { padding: 8rem 0; background: var(--bg-secondary); }

.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
}

.direct-contact {
    display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem;
}

.contact-link {
    text-decoration: none; color: var(--text-main); font-size: 1.2rem; font-weight: 600; transition: color 0.3s;
}
.contact-link:hover { color: var(--accent-hover); }
.contact-link i { width: 30px; color: var(--accent-primary); }

/* Styl pro Calendly (Cal.com) obal */
.cal-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    width: 100%;
    height: 700px; /* Pevná výška */
    overflow: hidden;
    position: relative;
}

/* =========================================
   14. PATIČKA (FOOTER)
   ========================================= */
footer {
    padding: 4rem 0 2rem;
    background: #111;
    color: #888;
    font-size: 0.9rem;
}

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

.footer-logo { color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 900; }
.footer-col h4 { color: #fff; margin-bottom: 1.5rem; }
.footer-col p { margin-bottom: 0.5rem; }

/* Odkazy v patičce */
.footer-col a {
    color: inherit; text-decoration: none; transition: 0.3s;
}
.footer-col a:hover { color: #fff; }

.socials { display: flex; gap: 1rem; margin-top: 1rem; }
.socials a { color: #fff; font-size: 1.2rem; transition: 0.3s; }
.socials a:hover { color: var(--accent-primary); }

.footer-bottom { border-top: 1px solid #333; padding-top: 2rem; text-align: center; }

/* =========================================
   15. COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #1a1a1a; color: #fff;
    padding: 1.5rem; box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
    z-index: 9999; display: flex; justify-content: center;
}

.cookie-content {
    max-width: 1200px; width: 100%;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1.5rem;
}

.cookie-text p { margin: 0; font-size: 0.9rem; color: #ccc; }
.cookie-text a { color: var(--accent-primary); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.8rem; }

/* Cookie Modální okno */
.cookie-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
}

.cookie-modal-content {
    background: #fff; color: #333; padding: 2rem;
    width: 90%; max-width: 500px;
    border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.cookie-option {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #eee;
}
.cookie-modal-btns { margin-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }

/* =========================================
   16. MODÁLNÍ OKNA (POP-UPY) - S ANIMACÍ
   ========================================= */

/* 1. Definice animací (Keyframes) */

/* Animace pro ztmavení pozadí */
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animace pro vyskočení okna (Pop-up efekt s lehkým odrazem) */
@keyframes modalPopUp {
    0% {
        opacity: 0;
        /* Začíná menší a posunuté dolů */
        transform: scale(0.9) translateY(30px);
    }
    100% {
        opacity: 1;
        /* Končí v normální velikosti uprostřed */
        transform: scale(1) translateY(0);
    }
}


/* 2. Stylování prvků */

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); z-index: 2000;
    display: none; /* V základu skryté */
    justify-content: center; align-items: center;
    padding: 20px;
    /* Plynulý přechod pro ZAVÍRÁNÍ okna */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Stav, když je okno aktivní (přidáno JavaScriptem) */
.modal-overlay.active {
    display: flex;
    /* Spustí animaci ztmavení pozadí */
    animation: overlayFadeIn 0.3s ease forwards;
}

.modal-content {
    background: #fff; width: 90%; max-width: 500px;
    margin: 0 auto; border-radius: 16px; padding: 2.5rem;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 248, 29, 0.15);
    border: 1px solid #eee;
    max-height: 90vh; overflow-y: auto;
    /* Plynulý přechod pro ZAVÍRÁNÍ obsahu */
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0; /* Výchozí stav pro zavírání */
}

/* Stav, když je okno aktivní - animace obsahu */
.modal-overlay.active .modal-content {
    opacity: 1;
    /* Spustí animaci vyskočení okna. 
       cubic-bezier vytváří ten "pružný" efekt na konci. */
    animation: modalPopUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}


/* --- Ostatní prvky modalu (beze změny) --- */

.close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 2rem; cursor: pointer; color: #888; transition: 0.3s;
}
.close-modal:hover { color: var(--accent-primary); }

.modal-header {
    text-align: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #eee;
}
.modal-header i { font-size: 2.5rem; color: var(--accent-primary); margin-bottom: 1rem; display: block; }
.modal-header h3 { margin-bottom: 0; font-size: 1.5rem; }

/* Obrázek v hlavičce modalu (Tým) */
.modal-header img, .modal-avatar {
    width: 120px !important; height: 120px !important;
    object-fit: cover; border-radius: 50%;
    border: 3px solid var(--accent-primary);
    margin: 0 auto 1rem auto; display: block;
}

.modal-body p { color: #666; margin-bottom: 1.5rem; text-align: center; }
.modal-body ul {
    list-style: none; margin-bottom: 2rem; background: var(--bg-secondary);
    padding: 1.5rem; border-radius: 8px;
}
.modal-body ul li {
    margin-bottom: 0.8rem; padding-left: 0;
    border-bottom: 1px solid #eee; padding-bottom: 0.5rem; color: #444;
}
.modal-body ul li strong { color: var(--text-main); display: block; }

/* =========================================
   17. RESPONZIVITA (MOBILNÍ ÚPRAVY)
   ========================================= */

@media (max-width: 900px) {
    
    /* 1. ZMENŠENÍ LOGA (aby menu nezabíralo půlku displeje) */
    .nav-logo-img {
        height: 80px !important; /* Na PC je 100px, tady dáme 60px */
        width: auto;
    }

    /* 2. OPRAVA MEZERY V HERO SEKCI */
    #hero {
        align-items: flex-start !important; /* DŮLEŽITÉ: Zarovná text nahoru, ne doprostřed */
        padding-top: 120px !important;      /* Pevná mezera od horního menu */
        min-height: auto !important;        /* Zruší roztažení na celou výšku displeje */
        padding-bottom: 4rem !important;    /* Mezera pod tlačítky */
        text-align: left;                   /* Ujistíme se, že text je vlevo (nebo center, dle preference) */
    }

    /* Úprava mezer mezi nadpisy, aby to bylo kompaktnější */
    .subtitle {
        margin-bottom: 0.5rem !important;
    }
    
    #hero h1 {
        margin-bottom: 1rem !important;
        font-size: 2.2rem !important; /* Menší písmo pro nadpis na mobilu */
    }

    #hero p {
        margin-bottom: 2rem !important;
    }

    /* --- Zbytek původního nastavení pro mobily --- */
    
    /* Menu */
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 80%;
        background: #fff; flex-direction: column; justify-content: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: 0.4s ease; z-index: 1000;
    }
    .nav-links.active { right: 0; }
    
    /* Hamburger */
    .hamburger { display: flex; z-index: 1001; }
    .hamburger.active .line:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active .line:nth-child(2) { opacity: 0; }
    .hamburger.active .line:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* Rozložení */
    .split-layout, .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    
    /* Bublina na pozadí - posuneme ji, aby nepřekážela */
    .hero-shape { width: 80vw; height: 80vw; top: -10%; right: -20%; } 
    
    .btn.secondary { margin-left: 0; margin-top: 1rem; display: block; text-align: center; }
    .btn.primary { display: block; text-align: center; }
    .cookie-content { flex-direction: column; text-align: center; }
    
    /* Zvýšení výšky kalendáře na mobilu */
    .cal-wrapper { height: 800px; }
}

@media (max-width: 768px) {
    /* Proces slider */
    .process-slider-container { padding: 0; }
    .slider-arrow { display: none; }
    .process-slider .process-card { flex: 0 0 85vw; }
    
    /* Služby - jeden sloupec */
    .services-grid-clean { grid-template-columns: 1fr; gap: 1.5rem; }
    
    /* Cookie tlačítka */
    .cookie-btns { flex-direction: column; width: 100%; }
    .cookie-btns button { width: 100%; }
    
    /* Recenze */
    .reviews-scroller .review-card { width: 85vw; }
    
    /* Modaly */
    .modal-content { padding: 1.5rem; width: 90%; max-height: 85vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .close-modal { top: 10px; right: 15px; font-size: 2.2rem; padding: 5px; }
}

@media (max-width: 380px) {
    .modal-content { padding: 1rem; width: 95%; }
    .section-header h2 { font-size: 2rem; }
}