@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary: #660066;       /* GNJ Fialová */
    --primary-light: #993399;
    --dark: #111111;
    --gray: #f4f7f6;
    --text-gray: #555;
    --glass: rgba(255, 255, 255, 0.95);
    --shadow: 0 20px 60px rgba(0,0,0,0.12);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: var(--dark);
    overflow-x: hidden;
}

/* --- NAVIGACE --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Ujisti se, že máš logo.png ve složce obrazky, jinak se nezobrazí */
.nav-logo {
    height: 60px;
    width: auto;
}

.logo-text {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.logo-text span { color: var(--primary); }

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

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
}

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

.btn-school {
    padding: 10px 20px;
    background-color: rgba(102, 0, 102, 0.08);
    color: var(--primary) !important;
    border-radius: 50px;
    font-weight: 700 !important;
}

/* --- MOBILNÍ HAMBURGER MENU --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

.nav-links.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 0;
    gap: 0;
}

/* --- HERO SEKCE --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: 160px 40px 80px 40px; /* Odsazení shora kvůli menu */
    min-height: 90vh;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 650px;
}

.tag {
    background: #f3eef3;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 4.5rem; /* Velký nadpis */
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 900;
    letter-spacing: -2px;
    color: #111;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary), #c040c0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 90%;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 15px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn.primary {
    background-color: var(--dark);
    color: #fff;
}

.btn.secondary {
    border: 2px solid #eee;
    color: var(--dark);
}

/* --- 3D MODEL (FINÁLNÍ OSTRÁ VERZE) --- */
.hero-3d {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: flex-end;
    height: 100%;
}

.model-container {
    width: 100%;
    height: 600px; /* Výška okna */
    background: white;
    border-radius: 30px;
    box-shadow: var(--shadow);
    overflow: hidden; /* Důležité: ořízne přečuhující části */
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0,0,0,0.05);
}

.sketchfab-embed-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.sketchfab-embed-wrapper iframe {
    border: none;
    position: absolute;
    
    /* TRIK PRO OSTROST: */
    /* Roztáhneme iframe fyzicky na 160% velikosti kontejneru. */
    /* Tím se model vyrenderuje ve větším rozlišení (bude ostrý). */
    width: 160%; 
    height: 160%;
    
    /* A teď ho vycentrujeme, aby byla vidět škola uprostřed */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); 
}

.blob {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(102,0,102,0.1) 0%, rgba(255,255,255,0) 70%);
    top: -10%;
    right: -10%;
    z-index: 1;
}

/* --- OSTATNÍ SEKCE --- */
.features {
    padding: 80px 40px 60px 40px;
    background-color: #fafafa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    font-weight: 800;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.card {
    background: #fff;
    padding: 45px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: 0.3s;
}

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

.icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 25px;
    background: #fdf0fd;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card h3 { margin-bottom: 15px; font-size: 1.4rem; font-weight: 700; }
.card p { color: var(--text-gray); font-size: 1.05rem; line-height: 1.6; }

footer {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-gray);
    border-top: 1px solid #eee;
    background: #fff;
}

/* --- RESPONZIVITA (Mobil a Tablet) --- */
@media (max-width: 1200px) {
    .hero h1 { font-size: 3.5rem; }
    .model-container { height: 500px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nav-content {
        padding: 0 20px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-links.mobile-active {
        display: flex !important;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 20px;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .hero {
        flex-direction: column;
        padding: 120px 20px 60px 20px;
        text-align: center;
        gap: 40px;
    }

    .hero-text { max-width: 100%; }
    .cta-buttons { justify-content: center; }
    .hero h1 { font-size: 3rem; }

    .hero-3d {
        display: none;
    }

    .model-container { height: 400px; }
    
    /* Na mobilu nemusíme tolik zvětšovat (šetříme výkon) */
    .sketchfab-embed-wrapper iframe { 
        width: 120%; 
        height: 120%; 
    }

    .grid-3 { grid-template-columns: 1fr; }
    
    footer {
        padding: 25px 15px;
        font-size: 0.9rem;
    }
    
    footer p {
        margin: 8px 0;
    }
}

/* Nové styly pro sekci Akce/Novinky */
.news-section {
    padding: 80px 20px;
    max-width: 800px; /* Aby text nebyl roztažený přes celou obrazovku */
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: var(--dark);
    font-size: 2.5rem;
    margin-bottom: 40px;
    margin-top: 10px;
}

.news-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Jemný stín */
    overflow: hidden;
    transition: transform 0.3s ease;
    border-left: 5px solid var(--primary); /* Barevný proužek vlevo */
}

.news-card:hover {
    transform: translateY(-5px); /* Efekt zvednutí při najetí myší */
}

.news-header {
    background-color: #f8f9fa;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    margin-top: 0;
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.news-content p {
    line-height: 1.6;
    color: #444;
    margin-bottom: 0;
}

/* Zvýraznění důležitých dat v textu */
.highlight {
    background-color: rgba(var(--primary-rgb), 0.1); /* Pokud nemáš RGB verzi, použij světlejší barvu */
    color: var(--primary); 
    font-weight: bold;
    padding: 0 4px;
    border-radius: 4px;
}

/* --- ČLENOVÉ SEKCE --- */
.clenove {
    max-width: 800px;
    margin: 120px auto;
    padding: 0 20px; /* Změněno z 150px, aby se text na mobilu nezdeformoval */
    text-align: center;
}

.clenove h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.clenove p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 8px;
}

/* --- SCROLLBAR STYLIZACE --- */
/* Pro Chrome, Safari, Edge */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #ddd;
}

::-webkit-scrollbar-thumb:hover {
    background: #f0f0f0;
}

/* Pro Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #ffffff transparent;
}