@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Staatliches&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #edf2f4;
    font-family: 'Urbanist', sans-serif;
    color: #343434;
    line-height: 1.2;
}

main {
    flex: 1;
}

h1, h2, h3 {
    margin-bottom: 15px;
    line-height: 1.2;
}

p {
    margin-bottom: 15px;
    line-height: 1.5;
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #cfd9de;
    position: relative;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lngswitch img {
    cursor: pointer;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 0;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.nav a:hover {
    color: #3d6aff;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 20px;
    transition: color 180ms ease-in-out, opacity 160ms ease-in-out;
    text-transform: uppercase;
    display: inline-block;
    padding: 12px 14px;
    margin: 0 6px;
    position: relative;
}

.nav a.active,
.nav a[aria-current="page"] {
    color: #007BFF;
}

.nav a.active:after,
.nav a[aria-current="page"]:after {
    width: 100%;
    left: 0;
}

.nav a:after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    position: absolute;
    background: #fff;
    transition: width 0.28s ease 0s, left 0.28s ease 0s;
    width: 0;
}

.nav a:hover:after {
    width: 90%;
    left: 5%;
}

.nav a.active:after,
.nav a[aria-current="page"]:after {
    width: 90%;
    left: 5%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #007BFF;
    border-radius: 2px;
}

/* --- HERO SEKCE --- */
.hero-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 50px auto;
    padding: 30px 20px;
    color: #343434;
    max-width: 750px;
    border-radius: 30px;
    overflow: hidden;
}

.hero-left h1 {
    font-size: 32px; 
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.hero-left > * {
    position: relative;
    z-index: 2;
}

.hero-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../photos/heroleftback.jpeg') center/cover no-repeat;
    filter: blur(2px);
    z-index: 0;
}

#changing-word {
    display: inline-block;
    transition: opacity 0.5s ease-in-out;
    font-weight: bold;
    font-size: 80px; 
    color: #007BFF;
    line-height: 1.1;
    margin: 5px 0;
}

/* --- TLAČÍTKA --- */
.btn1 {
    position: relative;
    display: inline-block;
    padding: 12px 25px;
    border-radius: 7px;
    border: 1px solid #3d6aff;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    background: transparent;
    color: #343434;
    overflow: hidden;
    box-shadow: 0 0 0 0 transparent;
    transition: all 0.2s ease-in;
    margin-top: 15px;
}

.btn1 span {
    position: relative;
    z-index: 1;
    color: #343434;
    transition: color 0.2s ease;
}

.btn1:hover {
    background: rgb(61, 106, 255);
    box-shadow: 0 0 30px 5px rgba(0, 142, 236, 0.815);
    transition: all 0.2s ease-out;
}

.btn1:hover span {
    color: #fff;
}

.btn1:hover::before {
    animation: sh02 0.5s 0s linear;
}

.btn1::before {
    content: '';
    display: block;
    width: 0px;
    height: 86%;
    position: absolute;
    top: 7%;
    left: 0%;
    opacity: 0;
    background: #fff;
    box-shadow: 0 0 50px 30px #fff;
    transform: skewX(-20deg);
}

@keyframes sh02 {
    from { opacity: 0; left: 0%; }
    50% { opacity: 1; }
    to { opacity: 0; left: 100%; }
}

.btn1:active {
    box-shadow: 0 0 0 0 transparent;
    transition: box-shadow 0.2s ease-in;
}

.btn2 {
    position: relative;
    display: inline-block;
    text-decoration: none !important;
    color: #fff !important;
    background: linear-gradient(45deg, #0004ff, #6670f8, #00eaff);
    padding: 14px 25px;
    border-radius: 10px;
    font-size: 1.25em;
    cursor: pointer;
    border: none;
}

.btn2 span {
    position: relative;
    z-index: 1;
    color: #fff;
}

.btn2::before {
    content: "";
    position: absolute;
    inset: 1px;
    background: #272727;
    border-radius: 9px;
    transition: 0.5s;
}

.btn2:hover::before {
    opacity: 0.7;
}

.btn2::after {
    content: "";
    position: absolute;
    inset: 0px;
    background: linear-gradient(45deg, #0004ff, #6670f8, #00eaff);
    border-radius: 9px;
    transition: 0.5s;
    opacity: 0;
    filter: blur(20px);
}

.btn2:hover:after {
    opacity: 1;
}

/* --- NEPRŮSTŘELNÁ SCROLL ANIMACE --- */
/* V základu je web normálně vidět. Žádná opacity 0! */
.animate-on-scroll {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* JavaScript tuto třídu přidá HNED po načtení stránky a tím prvky skryje, ale jen pokud víme, že JS funguje. */
.js-hidden {
    opacity: 0 !important;
    transform: translateY(35px) !important;
}

/* Tuto třídu přidá JS, když k prvku doscroluješ. */
.js-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.benefits-grid .benefit:nth-child(1) { transition-delay: 0.05s; }
.benefits-grid .benefit:nth-child(2) { transition-delay: 0.1s; }
.benefits-grid .benefit:nth-child(3) { transition-delay: 0.15s; }
.benefits-grid .benefit:nth-child(4) { transition-delay: 0.2s; }
.benefits-grid .benefit:nth-child(5) { transition-delay: 0.25s; }
.benefits-grid .benefit:nth-child(6) { transition-delay: 0.3s; }

/* --- SEKCE STATISTIKY --- */
.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 50px 30px;
    margin: 0 auto 60px auto;
    max-width: 1000px;
    background: linear-gradient(135deg, #007BFF, #6670f8);
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.25);
    text-align: center;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: 55px;
    font-weight: 800;
    font-family: 'Fjalla One', sans-serif;
    margin-bottom: 5px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* --- BENEFITY --- */
/* --- BENEFITY --- */
.benefits {
    padding: 20px 20px 60px 20px;
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.benefits h2 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 36px;
    margin-bottom: 40px;
    color: #007BFF;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.benefit {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px 20px;
    border: 1px solid rgba(0, 123, 255, 0.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Plynulý návrat karty zpět dolů, když myší odjedeš */
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.2s ease, 
                border-color 0.2s ease;
}

/* Okamžitá reakce při najetí myší – přebije veškerá zpoždění a ihned poskočí */
.benefit:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
    transition-delay: 0s !important; /* Vynulování zpoždění pro okamžitý start */
    cursor: default; /* Kurzor zůstane jako klasická šipka */
}

.benefit h3 {
    color: #007BFF;
    margin-bottom: 15px;
    font-size: 22px;
}

.benefit p {
    font-size: 16px;
    color: #343434;
    margin-bottom: 0;
}

/* --- FOOTER --- */
.footer-basic {
    width: 100%;
    padding: 40px 0;
    background-color: #ffffff;
    color: #4b4c4d;
    flex-shrink: 0;
}

.footer-basic ul {
    padding: 0;
    list-style: none;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-basic li {
    padding: 0 10px;
}

.footer-basic ul a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
}

.footer-basic ul a:hover {
    opacity: 1;
}

.footer-basic .social {
    text-align: center;
    padding-bottom: 25px;
}

.footer-basic .social > a {
    font-size: 24px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #ccc;
    margin: 0 8px;
    color: inherit;
    opacity: 0.75;
}

.footer-basic .social > a:hover {
    opacity: 0.9;
}

.footer-basic .copyright {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 0;
}

.footer-basic .footer-logo {
    text-align: center;
    margin-top: 10px;
}

.footer-basic .footer-logo img {
    height: 40px;
    display: inline-block;
}

/* --- RESPONSIVITA --- */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 70px;
        left: -100%;
        flex-direction: column;
        width: 100%;
        background-color: #cfd9de;
        transition: left 0.3s ease-in-out;
        z-index: 999;
    }

    .nav a {
        padding: 15px 20px;
        font-size: 18px;
        text-transform: none;
        margin: 6px 0;
    }

    .nav a::after {
        display: none !important;
    }

    .nav.active {
        left: 0;
    }

    .header-right {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .hero-left {
        margin: 20px;
        max-width: 100%;
        padding: 30px 15px;
    }
    
    .hero-left h1 {
        font-size: 24px;
    }

    #changing-word {
        font-size: 50px;
        margin-left: 0;
    }

    .btn1 {
        font-size: 12px;
        padding: 10px 20px;
    }
    
    .stats {
        flex-direction: column;
        padding: 40px 20px;
        border-radius: 15px;
        margin: 0 15px 50px 15px;
    }
    
    .stat-number {
        font-size: 45px;
    }

    .benefits h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit h3 {
        font-size: 18px;
    }

    .benefit p {
        font-size: 14px;
    }

    .footer-basic {
        padding: 30px 10px;
    }

    .footer-basic .social > a {
        font-size: 20px;
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
}