:root {
    --dark-blue: #006d77;
    --teal: #83c5be;
    --light: #edf6f9;
    --white: #ffffff;
    --coral: #e29578;

    --dark-card: rgba(10, 18, 32, 0.82);
    --dark-card-border: rgba(255, 255, 255, 0.14);

    --dark-section: #12223a;
    --dark-section-2: #162a47;

    --container: 1100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: var(--light);
    color: #333;
    line-height: 1.6;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
}

section,
.hero .overlay,
footer {
    width: 100%;
}

section > *:not(.cards):not(.numbers),
.cards,
.numbers,
.cta > * {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.hero {
    background: url("header.jpg") center/cover no-repeat;
    color: white;
    padding: 120px 20px;
    position: relative;
}

.hero .overlay {
    background: rgba(0, 0, 0, 0.55);
    padding: 60px 30px;
    display: inline-block;
    border-radius: 15px;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 56px);
    color: var(--white);
    margin: 0 0 10px;
}

.hero .subtitle {
    font-size: clamp(18px, 3.2vw, 28px);
    color: var(--light);
    margin: 0 0 24px;
}

.btn {
    background: var(--dark-blue);
    color: #fff;
    font-size: clamp(16px, 2.6vw, 22px);
    padding: 14px 40px;
    border-radius: 999px;
    text-decoration: none;
    transition: 0.25s ease;
    cursor: pointer;
    border: 0;
    display: inline-block;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        background: var(--coral);
        transform: scale(1.04);
    }
}

section {
    padding: 80px 40px;
}

section h2 {
    font-size: clamp(28px, 5vw, 62px);
    color: var(--dark-blue);
    margin: 0 0 20px;
}

.big-text {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 600;
    text-align: center;
    margin: 0 auto 10px;
}

.about,
.advantages {
    background: radial-gradient(
            1200px 600px at 50% 0%,
            rgba(131, 197, 190, 0.14),
            transparent 60%
        ),
        linear-gradient(180deg, var(--dark-section), var(--dark-section-2));
}

.about {
    padding-bottom: 20px;
}

.about h2,
.advantages h2 {
    color: var(--teal);
}

.about .big-text {
    color: rgba(255, 255, 255, 0.86);
}

.advantages {
    padding-top: 70px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
    justify-items: stretch;
}

.card {
    background: var(--white);
    color: #0f172a;
    padding: 34px 30px;
    border-radius: 18px;
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    text-align: left;
}

.card h3 {
    font-size: clamp(18px, 2.4vw, 28px);
    margin: 0 0 12px;
    color: #0f172a;
    font-weight: 800;
}

.card p {
    font-size: clamp(16px, 2.1vw, 22px);
    margin: 0;
    color: #334155;
    font-weight: 600;
    line-height: 1.55;
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-8px);
        box-shadow:
            0 18px 40px rgba(0, 0, 0, 0.22),
            0 1px 0 rgba(255, 255, 255, 0.06) inset;
    }
}

.stats {
    background: url("dark_down.jpg") center/cover no-repeat;
    color: white;
    padding: 90px 20px;
}

.numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.num {
    background: var(--dark-card);
    border: 1px solid var(--dark-card-border);
    padding: 46px 34px;
    border-radius: 22px;
    flex: 1 1 280px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.num h3 {
    font-size: clamp(44px, 9vw, 100px);
    font-weight: 900;
    margin: 0 0 12px;
    color: var(--coral);
    letter-spacing: 0.5px;
}

.num p {
    font-size: clamp(16px, 2.2vw, 25px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    max-width: 32ch;
}

.cta {
    background: var(--teal);
    color: white;
    padding: 90px 20px;
    text-align: center;
}

.cta h2 {
    color: #0f172a;
}

.cta-subtitle {
    font-size: clamp(16px, 2.8vw, 26px);
    font-weight: 600;
    text-align: center;
    margin: 20px 0 40px;
    color: #ffffff;
}

.cta .btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 14px;
    width: min(420px, 100%);
    text-align: center;
    position: relative;
    max-height: 80vh;
    overflow: auto;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 24px;
    color: var(--dark-blue);
}

.modal-content a {
    display: block;
    margin: 15px 0;
    font-size: 20px;
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: bold;
    word-break: break-word;
}

.modal-content a:hover {
    color: var(--coral);
}

.close {
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--coral);
}

footer {
    background: #222222;
    color: #ffffff;
    padding: 18px 14px;
}

.copy {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

@media (max-width: 980px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 18px;
    }

    .hero {
        padding: 90px 16px;
    }

    .hero .overlay {
        padding: 34px 18px;
    }

    .about {
        padding-bottom: 10px;
    }

    .advantages {
        padding-top: 45px;
    }

    .stats {
        padding: 70px 16px;
    }

    .num {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .cta {
        padding: 70px 16px;
    }
}

@media (max-width: 620px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 24px 20px;
        border-radius: 16px;
        text-align: center;
    }
}

@media (max-width: 420px) {
    body {
        font-size: 18px;
    }

    .num p {
        max-width: 28ch;
    }
}