body {
    margin: 0;
    font-family: 'Exo 2', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background: #ffffff;
}

.container {
    width: 90%;
    max-width: 1650px;
    margin: auto;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

nav a:hover {
    color: #00309c;
}

/*TOP SECTION*/
.top-section {
    position: relative;
    background: url("images/hero1.png") center right/cover no-repeat;
    overflow: visible;
}

.top-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(0, 48, 156, 0.7) 0%,
        rgba(0, 48, 156, 0.5) 27%,
        rgba(0, 48, 156, 0) 82%);
    z-index: 0;
}

/* HEADER */
header {
    position: relative;
    z-index: 50;
    background: transparent;
    border-bottom: none;
    padding: 20px 0;
    
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-name {
    color: white;
    font-size: 60px;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    position: relative;
    top: -15px;
    right: -15px;
}

nav {
    z-index: 100;
}

nav a {
    position: relative;
    top: -40px;
    margin-left: 40px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 26px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: color 0.2s ease;
}

.logo {
    height: 220px;
}

.menu-toggle {
    display: none;
}

.menu-wrapper {
    position: relative;
}

@media (max-width: 1000px) {
    .menu-wrapper {
        position: relative;
        top: -45px;
    }

    .menu-toggle {
        display: block;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        font-size: 28px;
        width: 52px;
        height: 52px;
        border-radius: 10px;
        cursor: pointer;
        position: relative;
        z-index: 101;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 0;
        right: calc(100% + 8px);
        width: 220px;
        padding: 12px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
        flex-direction: column;
        gap: 8px;
        z-index: 100;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        position: static;
        top: 0;
        margin-left: 0;
        font-size: 18px;
        font-weight: 700;
        color: #1a1a1a;
        text-decoration: none;
        padding: 12px 14px;
        border-radius: 8px;
        text-shadow: none;
        background: transparent;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .main-nav a:hover {
        color: #00309c;
        background: #eef3ff;
    }
}

/* HERO */
.hero {
    position: relative;
    z-index: 1;
    min-height: 650px;
    display: flex;
    align-items: center;
}


.hero-overlay {
    width: 100%;
    padding: 40px 0 100px;
}

/* tekst */
.hero-inner {
    position: relative;
    top: -80px;
    z-index: 2;
}

.hero h2 {
    color: white;
    font-size: clamp(50px, 4vw, 42px);
    margin-bottom: 10px;
    max-width: 700px;
}

.hero p {
    color: white;
    font-size: clamp(28px, 1.5vw, 18px);
    margin-top: 0;
    margin-bottom: 35px;
    max-width: 650px;
}

/* przycisk */
.btn {
    background: white;
    color: #00309c;
    padding: 18px 32px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
}

.btn:hover {
    background: #00309c;
    color: white;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.35);
}

.btn a:hover {
    color: red;
}


@media (max-width: 768px) {
    .hero {
        min-height: 400px;
    }

    .hero-overlay {
        background: transparent;
    }

    .hero-inner {
        text-align: center;
        margin: 0 auto;
    }
}

/* SECTIONS */

.bottom-section {

    background: #6281f0;
    background: linear-gradient(0deg,
    rgba(78, 104, 199, 1) 0%, 
    rgba(0, 48, 156, 1) 100%);

}
.section {
    background: transparent;
    padding: 50px 20px;
    color: white;

}

.section h2 {
    font-size: 30px;
    margin: 0 0 30px 0;
    text-align: center;
}

.section p {
    margin: 0;
}

.section.gray {
    background: transparent;
    color: white;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: #ff571b;
    color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
}

.card h3, 
.card p {
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.35);
    background-color: #ff4501;

}

/* FEATURES */
.features {
    list-style: none;
    padding: 0;
    max-width: 600px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 120px;
    max-width: 800px;
    margin: 0 auto;
}

.features-grid div {
    font-size: 17px;
}


/* CONTACT */
.contact {
    text-align: center;
}

.contact p,
.contact p {
    margin-top: 10px;
    font-size: 25px;
}

/* FOOTER */
footer {
    background: #ff571b;
    color: black;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

/* ANIMATION */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}