* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    position: relative;

    /* základní přechodové pozadí */
    background:
        linear-gradient(to top,
            #003380 0%,
            #001d46 35%,
            #001126 55%,
            #000000 80%);

    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;

    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

.mobile-menu.open~.navbar {
    opacity: 0;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
    border-bottom: none;

    transition:
        background 0.25s ease,
        backdrop-filter 0.25s ease,
        -webkit-backdrop-filter 0.25s ease,
        box-shadow 0.25s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
}

.navbar-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 80px;
    width: auto;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav-link {
    position: relative;
    color: #e1d4ff;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-cta {
    padding: 9px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #e1d4ff;
    background: linear-gradient(135deg, #1e5fff, #3a78ff);
    box-shadow: 0 4px 18px rgba(0, 60, 255, 0.35);
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.nav-cta:hover {
    color: #ffffff;
    border-color: #c084fc;
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(168, 85, 255, 0.45);
}

/* HAMBURGER BUTTON – čisté X */


/* HAMBURGER BUTTON – čisté X */
.nav-burger {
    display: none;
    width: 22px;
    /* menší šířka */
    height: 22px;
    /* menší výška */
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
}

/* čárky */
.nav-burger span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        top 0.25s ease,
        bottom 0.25s ease;
}

/* ROZESTUPY – větší mezery mezi čárkami */
.nav-burger span:nth-child(1) {
    top: 4px;
    /* bylo 7px → teď menší hamburger + větší mezery */
}

.nav-burger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.nav-burger span:nth-child(3) {
    bottom: 4px;
    /* bylo 7px → teď více prostoru */
}

/* OTEVŘENO → krásně symetrické X */
.nav-burger.open span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
    opacity: 0;
}

.nav-burger.open span:nth-child(3) {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
}



main {
    padding: 120px 16px 120px;
}

/* ============= HERO SECTION ============= */

.hero-inner {
    max-width: 1000px;
    margin: 0 auto 120px;
    display: flex;
    align-items: stretch;
    gap: 40px;
    padding: 32px 32px 40px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.4), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.35), transparent 55%),
        rgba(3, 7, 18, 0.9);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
}

.hero-text {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #cbd5f5;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 38px;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #e5e7ff;
    max-width: 480px;
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-cta-primary,
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hero-cta-primary {
    background: linear-gradient(135deg, #1e5fff, #3a78ff);
    color: #f9fafb;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
}

.hero-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.7);
}

.hero-cta-secondary {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.hero-cta-secondary:hover {
    background: rgba(15, 23, 42, 0.9);
}

/* pravá část – tři “card” bloky */
.hero-visual {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
}

.hero-card {
    height: 190px;
    border-radius: 18px;
    background:
        linear-gradient(to bottom, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.9)),
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.7), transparent 55%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-card-img {
    width: 70%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.7));
}

.hero-card.middle {
    transform: translateY(-12px);
    background:
        linear-gradient(to bottom, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.95)),
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.9), transparent 55%);
}

/* ================= COURSE SECTION ================= */

.course-section {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 24px;  
}

.course-heading {
    margin-bottom: 32px;
}

.course-kicker {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #cbd5f5;
    margin-bottom: 8px;
}

.course-main-title {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 8px;
}

.course-subtitle {
    font-size: 18px;
    color: #d1d5ff;
    max-width: 520px;
}

/* karta */

.course-card {
    margin-top: 28px;   /* větší mezera mezi kartami */
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.35), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.25), transparent 55%),
        rgba(10, 17, 35, 0.92);
    border-radius: 26px;
    padding: 30px 40px;   /* více místa = karta působí vyšší i širší */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    min-height: 260px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85);
    opacity: 0.9;
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}


.course-card-text {
    flex: 1.1;
}

.course-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.course-card-text p {
    font-size: 13px;
    line-height: 1.55;
    color: #e4e4e4;
    margin-bottom: 10px;
}

.course-card-text p:last-child {
    margin-bottom: 0;
}

.course-card-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-card-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.course-card.reverse {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
}

/* ======================
   E-BOOK PLANS SECTION
====================== */

.ebook-plans {
    max-width: 1000px;
    margin: 160px auto 120px;
    text-align: center;
    margin-bottom: 150px;
    padding: 0 16px;
}

.ebook-heading {
    font-size: 36px;
    font-weight: 700;
}

.ebook-sub {
    margin-top: 4px;
    font-size: 16px;
    color: #cbd5f5;
    margin-bottom: 48px;
}

.ebook-plans-wrapper {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.ebook-card {
    background: rgba(15, 22, 40, 0.9);
    border-radius: 26px;
    padding: 32px;
    flex: 1;
    min-width: 260px;
    max-width: 380px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.ebook-card.bestseller {
    border: 1px solid #3b82f6;
    box-shadow: 0 0 32px rgba(56, 189, 248, 0.35);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #3a78ff, #6b9dff);
    padding: 6px 14px;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: white;
    border-radius: 999px;
    font-weight: 700;
}

.ebook-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ebook-desc {
    font-size: 14px;
    color: #d1d5ff;
    margin-bottom: 18px;
}

.ebook-list {
    list-style: none;
    margin-bottom: 20px;
    text-align: left;
    color: #d6d6d6;
    font-size: 14px;
}

.ebook-list li {
    margin-bottom: 6px;
}

.ebook-price {
    font-size: 32px;
    font-weight: 600;
    margin: 18px 0;
    color: #ffffff;
    margin-top: auto;
}

.ebook-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: #26345c;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
    text-align: center;
}

.ebook-btn:hover {
    background: #33446e;
}

.ebook-btn.highlight {
    background: linear-gradient(135deg, #1e5fff, #3a78ff);
    box-shadow: 0 0 18px rgba(0, 60, 255, 0.35);
}

.ebook-btn.highlight:hover {
    transform: translateY(-2px);
}

/* ===================== CONTACT SECTION ===================== */

.contact-section {
    max-width: 1000px;
    margin: 140px auto 40px;
    padding: 0 16px;
}

.contact-inner {
    display: flex;
    gap: 32px;
    align-items: stretch;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.35), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.25), transparent 55%),
        rgba(10, 17, 35, 0.96);
    border-radius: 26px;
    padding: 32px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.contact-text {
    flex: 1.2;
}

.contact-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #cbd5f5;
    margin-bottom: 6px;
}

.contact-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #dde3ff;
    max-width: 420px;
}

.contact-card {
    flex: 1;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 20px;
    padding: 22px 22px 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3c9;
}

.contact-email {
    font-size: 18px;
    font-weight: 600;
    color: #f9fafb;
}

.contact-button {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, #1e5fff, #3a78ff);
    color: #f9fafb;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.6);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.contact-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.8);
}

.contact-note {
    margin-top: 4px;
    font-size: 12px;
    color: #9ca3c9;
}

/* ===================== FOOTER ===================== */

.footer {
    width: 100%;
    padding: 32px 0;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links a,
.footer-links p {
    color: #dbe1ff;
    font-size: 13px;
    opacity: 0.9;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
    color: white;
    opacity: 1;
}

.footer-links .dot {
    opacity: 0.4;
    color: #fff;
}

/* =========================================================
   Sjednocení designu dvou hlavních oken (hero + contact)
   ========================================================= */

.uniform-section {
    max-width: 1000px;
    margin: 0 auto;
}

.education-section,
.contact-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 16px;
}

/* =============== MOBILE MENU OVERLAY (Apple style) =============== */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-panel {
    position: relative;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.3), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.25), transparent 55%),
        #020617;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* VERTIKÁLNÍ zarovnání menu */
    align-items: center;
    /* HORIZONTÁLNÍ zarovnání menu */
}



.mobile-nav-links {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;

    /* zarovnání CELÉHO menu doprostřed */
    align-items: center;
    text-align: center;
}

.mobile-nav-link {
    font-size: 24px;
    /* větší písmo v hamburgeru */
    font-weight: 600;
    letter-spacing: 0.18em;
    /* můžeš dát míň, když bude moc */
    text-transform: uppercase;
    text-decoration: none;
    color: #f9fafb;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {

    .hero-inner {
        flex-direction: column;
        margin-bottom: 80px;
    }

    .hero-visual {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        height: 170px;
    }

    .hero-card {
        height: 100%;
    }

    .course-main-title {
        font-size: 34px;
    }

    .course-card.reverse {
        flex-direction: row;
    }
}

/* pod 800px – hamburger, karty pod sebou */

@media (max-width: 800px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .hero-inner {
        padding: 24px 20px 28px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .course-card.reverse {
        flex-direction: column-reverse;
    }

    .course-card,
    .course-card.reverse {
        flex-direction: column;
        padding: 24px 20px;
    }

    .course-card .course-card-text {
        order: 1;
    }

    .course-card .course-card-image {
        order: 2;
    }

    .course-card-image img {
        max-height: 220px;
    }

    .contact-inner {
        flex-direction: column;
        padding: 24px 20px;
    }

    .contact-title {
        font-size: 26px;
    }

    .contact-subtitle {
        max-width: none;
    }

    .contact-card {
        align-self: stretch;
    }
}

@media (max-width: 600px) {
    main {
        padding: 80px 14px 64px;
    }

    .course-main-title {
        font-size: 28px;
    }

    .course-subtitle {
        font-size: 16px;
    }

    .course-card-text p {
        font-size: 13px;
    }
}

@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;   /* ZAROVNÁNÍ NA STŘED */
        text-align: center;    /* ať texty nejsou doleva */
        gap: 12px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .footer-links .dot {
        display: none;
        /* tečky úplně vypneme */
    }

    .footer-links a,
    .footer-links p {
        font-size: 13px;
    }
}

/* Když je otevřené mobilní menu – navbar má stejnou barvu jako panel menu */
body.menu-open .navbar {
    background: transparent;
    box-shadow: none;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* schováme logo, odkazy a tlačítko, necháme jen křížek */
body.menu-open .nav-logo,
body.menu-open .nav-links,
body.menu-open .nav-cta {
    opacity: 0;
    pointer-events: none;
}
/* ===================== PRELOADER ===================== */

#preloader {
    position: fixed;
    inset: 0;
    z-index: 200; /* nad navbar (ten má 100) */
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.3), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.25), transparent 55%),
        #020617;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* po načtení stránky script přidá tuto třídu */
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* mřížka 2x2 + rotace celé kostky */
.preloader-square {
    width: 64px;
    height: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;

    /* rotace celé kostky = efekt "převalování" */
    animation: rotateGrid 1.2s linear infinite;
}

/* základ každého čtverečku */
.preloader-square .quad {
    border-radius: 10px;
    background: linear-gradient(135deg, #1e5fff, #3a78ff);
    opacity: 0.25;
    transform: scale(0.9);
    animation: quadGlow 1.2s infinite ease-in-out;
}

/* postupné "projíždění" světla přes 4 kostky */
.preloader-square .q1 {
    animation-delay: 0s;
}

.preloader-square .q2 {
    animation-delay: 0.15s;
}

.preloader-square .q4 {
    animation-delay: 0.30s;
}

.preloader-square .q3 {
    animation-delay: 0.45s;
}

/* rotace celé mřížky */
@keyframes rotateGrid {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* světelný průchod přes jednotlivé kostky */
@keyframes quadGlow {
    0% {
        opacity: 0.25;
        transform: scale(0.9);
    }
    20% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 14px rgba(59, 130, 246, 0.9);
    }
    40% {
        opacity: 0.4;
        transform: scale(0.95);
        box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
    }
    100% {
        opacity: 0.25;
        transform: scale(0.9);
        box-shadow: none;
    }
}