/* CSS Variables pro světlý Jony Ive styl (Apple Design) */
:root {
    --bg-color: #f7f7f9; /* Velmi jemně světle šedá (Apple style) pro moderní vzhled */
    --text-primary: #1d1d1f; /* Hluboká temně šedá pro maximální čitelnost a prémiový vzhled */
    --text-secondary: #86868b;
    --accent-color: #0066cc; /* Apple modrá */
    --accent-glow: rgba(0, 102, 204, 0.2);
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --glass-blur: blur(20px);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    
    --transition-speed: 0.4s;
}

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

html, body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 64px; /* Navbar height + safe area */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Jemná hloubka pro prémiový vzhled */
}

/* --- Ambientní textury odstraněny pro podporu čistě bílé -- */

/* Navigace - Glassmorphism Navbar pro světlý motiv */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    padding: 0; /* Minimalistický tenký header */
    background: rgba(255, 255, 255, 0.98); /* Čistě bílá s velmi lehkou průhledností */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 44px; /* Standardní Apple header height */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); /* Zvýšena hloubka pro prémiový pocit */
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Silnější a rozptýlenější stín při scrollu */
}

.nav-container {
    max-width: 1200px; /* Zvětšeno pro více položek menu */
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px; /* Sníženo pro úsporu místa */
    width: 100%;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo-img {
    height: 18px; /* Velmi decentní Apple-style logo */
    width: auto;
    transition: opacity 0.3s ease;
}

.navbar-logo-img:hover {
    opacity: 0.7;
    transform: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); /* Jemný stín pro "vyseknutý" prémiový vzhled textu */
}

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

.nav-sep {
    width: 1px;
    height: 14px;
    background: rgba(0, 0, 0, 0.1);
    align-self: center;
}

.nav-contact-btn {
    padding: 6px 14px !important;
    background: #007aff !important; /* Apple Blue */
    color: #ffffff !important;
    border-radius: 20px;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
}

.nav-portal-btn {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

.nav-portal-btn:hover {
    color: #007aff !important;
}

.nav-contact-btn:hover {
    background: #0056b3 !important;
    transform: scale(1.05);
}

/* Hlavní Hero Sekce */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 80px 20px 20px 20px; /* Sníženo kvůli tenčí liště */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: none; /* Odstraněno omezení pro široké monitory */
    width: 90%; /* Využívá 90 % šířky stránky */
    transform: translateY(-30px); /* Zmírněno z -60px aby logo nelezlo pod menu na nižších rozlišeních */
}

.logo-container {
    margin-bottom: 2rem;
    position: relative;
}

.main-logo {
    max-width: 255px; /* Zvětšeno o 15 % (z 220px) */
    height: auto;
    /* mix-blend-mode: multiply; -- Odstraněno pro podporu průhledného PNG loga */
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.12)); /* Silnější stín pro hloubku a "vystoupení" */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden; /* Pro hladší 3D rotaci */
}

.main-logo:hover {
    transform: rotateY(360deg) scale(1.05); /* Plynulé 3D otočení kolem svislé osy */
}

.hero h1 {
    font-size: 4.8rem;
    font-weight: 700;
    letter-spacing: -2.5px;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #007aff 0%, #21d072 100%); /* Modro-zelený přechod přesně podle předlohy */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
    white-space: nowrap; /* Nadpis na jednom řádku pro dospělé monitory */
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25)); /* Ponechán výrazný stín pro hloubku */
}

.hero .subtitle {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Jemný stín pro lepší čitelnost a hloubku */
}

.hero-services {
    display: flex;
    gap: 2rem;
    width: 100%; /* Roztaženo na celou šířku kontejneru (90 % stránky) */
    margin-top: 2.5rem;
}

.hero-card {
    flex: 1;
    background: #ffffff;
    border-radius: 40px;
    padding: 3.5rem 2.5rem;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05); /* Jemný hluboký stín */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.hero-card.wide-image {
    flex: 2; /* Tato karta bude širší než ostatní */
    flex-direction: row;
    padding: 0;
    overflow: hidden;
}

.card-image-side {
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.card-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-text-side {
    flex: 1;
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.hero-card:not(.wide-image) .service-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.service-icon {
    font-size: 3rem;
    line-height: 1;
}

.hero-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.2;
    margin: 0;
}

.hero-card p {
    font-size: 1.05rem;
    color: #86868b;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.hero-quote {
    width: 100%;
    margin-top: 1rem;
}

.philosophy-card {
    text-align: center;
    padding: 2.2rem 3rem; /* Vertikálně rozšířeno pro dva řádky */
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.philosophy-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Velmi slabý hover efekt */
    transform: translateY(-2px);
}

.quote-text {
    font-family: 'Playfair Display', serif; /* Kaligrafické patkové písmo */
    font-size: 1.2rem !important; /* Zmenšeno o 20 % */
    font-weight: 700 !important;
    color: #86868b !important; /* Šedivá barva */
    font-style: italic;
    line-height: 1.2 !important;
    max-width: 100%;
    margin: 0 auto !important;
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); /* Ještě jemnější stín */
    
    /* Antialiasing pro vyhlazení patkového písma */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.quote-subtitle {
    font-size: 0.75rem !important; /* Poloviční font oproti quote-text */
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8babd5 !important; /* Jemně modrá pro odlišení, nebo nechat šedou */
    margin-top: 1rem !important;
    opacity: 0.8;
}

.hero-scroll-next {
    display: inline-block;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #86868b;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.6;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-scroll-next:hover {
    opacity: 1;
    color: #1d1d1f;
    transform: translateY(2px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(8px);}
    60% {transform: translateY(4px);}
}

/* Sekce Společné Styly */
.section {
    padding: 140px 20px;
    position: relative;
}

.section-container {
    width: 90%;
    max-width: none;
    margin: 0 auto;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -1.2px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-left {
    text-align: left;
}

/* Glassmorphism Komponenty (Apple Frosted Glass) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 45px;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.glass-panel:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08); /* silnější stín při hoveru místo hrany */
}

/* O nás Sekce */
.philosophy-grid {
    display: flex;
    gap: 2rem;
    width: 100%;
    margin-top: 4rem;
    justify-content: center;
}

.philosophy-card {
    flex: 1;
    background: #ffffff;
    border-radius: 40px;
    padding: 2.2rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.philosophy-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #1d1d1f;
}

.philosophy-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.philosophy-card.highlight {
    background: #ffffff;
    border: 1px solid rgba(0, 122, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 122, 255, 0.04);
}

/* Brand Quote Section */
.quote-statement-section {
    padding: 8rem 0;
    background: #ffffff;
    text-align: center;
}

.brand-statement {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 900px;
    margin: 0 auto;
    color: #1d1d1f;
    letter-spacing: -1.5px;
    font-family: var(--font-main);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); /* Trochu silnější pro tento manifest */
}

@media (max-width: 768px) {
    .brand-statement {
        font-size: 1.8rem;
        padding: 0 20px;
    }
    .quote-statement-section {
        padding: 6rem 0;
    }
}

/* Služby Sekce - Jony Ive Style */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    margin-top: 4rem;
}

.service-wide-card {
    min-height: 400px;
    margin-bottom: 0 !important;
}

/* Styly pro Segmenty */
.segments-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 4rem;
}

.segment-card {
    border-radius: 50px !important;
}

/* Tým Sekce */
.team-grid {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    margin-top: 4rem;
}

.team-card {
    flex: 1;
    max-width: 500px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05); /* Jemný stín pro hloubku */
}

.team-image {
    width: 100%;
    height: 400px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-image img {
    transform: scale(1.08);
}

.team-info {
    padding: 2.5rem;
    text-align: center;
}

.team-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.team-role {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0066cc;
    margin-bottom: 1.5rem;
}

.team-bio {
    font-size: 1rem;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .team-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* Styly pro Segmenty */
.segments-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 4rem;
}

.segment-card {
    border-radius: 50px !important; /* Extra zaoblení pro prémiový feel */
}

.segment-card .card-text-side {
    background: #ffffff;
}

/* Tým Sekce */
.team-grid {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 4rem;
}

.team-card {
    flex: 1;
    max-width: 450px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.team-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 3rem 2.5rem;
    text-align: center;
}

.team-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.team-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .team-grid {
        flex-direction: column;
        align-items: center;
    }
}

.service-wide-card.reverse {
    flex-direction: row-reverse;
}

.service-benefit {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important; /* Ponecháme modrou/primární pro akcent */
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.5px;
}

.service-wide-card p:not(.service-benefit) {
    max-width: 90%;
}

/* Enterprise Sekce */
.premium-glass {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.enterprise-content .lead-text {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.enterprise-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    font-weight: 400;
}

/* Tlačítka (Světlý Apple styl) */
.glass-button {
    display: inline-block;
    padding: 14px 34px;
    background: var(--text-primary); /* Výrazné tmavé tlačítko na světlém pozadí */
    border-radius: 30px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.glass-button:hover {
    background: #000000;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Patička */
.footer {
    padding: 80px 20px 40px;
    background: #f5f5f7; /* AppleFooterGrey */
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-content.partners-layout {
    justify-content: space-around;
    gap: 40px;
    padding: 20px 0;
}

.partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%) opacity(0.7);
}

.partner-link:hover {
    transform: scale(1.05);
    filter: grayscale(0%) opacity(1);
}

.partner-logo {
    max-height: 80px;
    max-width: 250px;
    width: auto;
    height: auto;
}

.partner-logo.logo-vak {
    max-height: 100px;
}

.footer-bottom {
    text-align: center;
    color: #86868b;
    font-size: 0.85rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 25px;
    margin-top: 20px;
}

.copyright-pi {
    display: inline-block;
    font-weight: 700;
    font-size: 1.8em;
    vertical-align: -0.1em;
    line-height: 0;
    margin-right: 2px;
}

/* --- ANIMACE a REVEAL TŘÍDY (ovládáno přes JS) --- */

.hidden-onload {
    opacity: 0;
    transform: translateY(-20px);
}

.reveal-onload {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.reveal-onload.delay-1 { animation-delay: 0.2s; }
.reveal-onload.delay-2 { animation-delay: 0.4s; }
.reveal-onload.delay-3 { animation-delay: 0.8s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-onscroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-onscroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONZIVITA PRO STŘEDNÍ OBRAZOVKY (Laptopy) --- */
@media (max-width: 1440px), (max-height: 900px) {
    .main-logo {
        max-width: 200px;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero .subtitle {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    .hero-services {
        margin-top: 2rem;
        gap: 1.5rem;
    }
    .hero-card {
        padding: 2.5rem 2rem;
    }
    .card-text-side {
        padding: 2.5rem 2rem;
    }
}

/* Responzivita - Vylepšená mobilní verze */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 40px;
    }
    .hero-services {
        flex-direction: column;
        align-items: center;
    }
    .hero-card {
        width: 100%;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    .navbar.scrolled {
        padding: 5px 0;
    }
    .nav-container {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .hero {
        padding-top: 120px; /* Zvětšeno aby logo nenaráželo do horní lišty */
    }

    .hero-content {
        transform: none !important; /* Na mobilu musí být posun vypnutý */
    }
    
    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
        white-space: normal; /* Na mobilu se musí zalamovat */
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-services {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .hero-card {
        padding: 2.5rem 2rem;
        border-radius: 30px;
        gap: 1rem;
    }

    .hero-card.wide-image {
        flex-direction: column !important; /* Vždy na výšku na mobilu */
        flex: none;
    }

    .quote-text {
        white-space: normal !important; /* Na mobilu se musí zalamovat */
        font-size: 1.1rem !important;
    }

    .card-image-side {
        height: 250px;
        width: 100%;
    }

    .hero-card h3 {
        font-size: 1.4rem;
    }

    .main-logo {
        max-width: 160px; /* Ještě o něco menší na mobilu pro jistotu */
    }
    
    .section {
        padding: 80px 15px;
    }
    .section-title {
        font-size: 2.3rem;
    }
    
    .glass-panel {
        padding: 30px 20px;
    }
    
    .service-card.full-width {
        grid-template-columns: 1fr;
    }
    
    .service-card.full-width .icon-placeholder {
        margin-bottom: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .contact-info {
        text-align: center;
    }
}

/* Value Props Section */
.value-props-grid {
    display: flex;
    gap: 2rem;
    width: 100%;
    margin-bottom: 2rem;
}

.value-card {
    flex: 1;
    text-align: center;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.value-icon {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.value-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

@media (max-width: 992px) {
    .value-props-grid {
        flex-direction: column;
    }
}

/* --- CONTACT MODAL (macOS Style) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    width: 90%;
    max-width: 600px;
    padding: 2.5rem;
    border-radius: 30px;
    position: relative;
    transform: scale(0.9) translateY(40px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1d1d1f;
    margin-left: 2px;
}

.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="text"] {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background: #ffffff;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}

.radio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.4);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.radio-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.radio-item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #c7c7cc;
    border-radius: 50%;
    margin: 0;
    position: relative;
    cursor: pointer;
}

.radio-item input[type="radio"]:checked {
    border-color: #007aff;
    background: #007aff;
}

.radio-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.hidden-input {
    display: none;
    margin-top: 8px;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    animation: slideDown 0.3s ease forwards;
}

.hidden-input.show {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 15px !important;
    font-size: 1rem !important;
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-size: 0.85rem;
    min-height: 20px;
    font-weight: 500;
}

.form-status.success { color: #21d072; }
.form-status.error { color: #ff3b30; }

@media (max-width: 600px) {
    .modal-content {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .modal-header h2 {
        font-size: 1.6rem;
    }
}

/* Skrytý vstup pro admina (π) */
.admin-access-pi {
    position: fixed;
    top: 10px;
    right: 15px;
    z-index: 2000;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.1); /* Velmi jemné, skoro neviditelné */
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.admin-access-pi:hover {
    color: #007aff;
    transform: scale(1.2);
    opacity: 1;
}

@media (max-width: 768px) {
    .admin-access-pi {
        top: 5px;
        right: 10px;
        font-size: 1rem;
    }
}
