@import url('https://fonts.cdnfonts.com/css/bounded');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --gradient: linear-gradient(90deg, #62B7F6, #96CEF8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Bounded', system-ui, sans-serif;
    background: #0A1325;
    color: white;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    letter-spacing: 0.2px;
}

/* фон сетка */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url("./src/grid.svg") center/cover no-repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: -10;
}

/* diamonds */
.diamond {
    position: absolute;
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 19, 37, 0.5);
    backdrop-filter: blur(12px);
}

.logo {
    font-size: 26px;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    z-index: 1001;
}

/* Стили бургера */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 2px;
    background: #6DBCF6;
    margin: 5px 0;
    transition: 0.3s;
}

/* nav */
.nav-buttons {
    display: flex;
    gap: 12px;
}

.nav-btn {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    transition: 0.3s ease;
    text-decoration: none;
}

.nav-btn.proxy {
    background: transparent;
    border: 2px solid #6DBCF6;
    color: #6DBCF6;
}

.nav-btn.proxy:hover {
    background: rgba(109, 188, 246, 0.15);
}

.nav-btn.buy {
    background: var(--gradient);
    color: #0A1325;
    font-weight: 600;
}

/* HERO */
.hero {
    padding-top: 140px;
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    overflow: hidden; /* Чтобы огромный бриллиант в 500px не создавал горизонтальную прокрутку */
}

.title {
    font-size: clamp(42px, 8vw, 88px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    padding: 0 10px;
}

.slogan {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 400;
    color: #B0D8FF;
    margin-bottom: 45px;
}

/* cards */
.benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-bottom: 70px;
    padding: 0 20px;
}

.benefit-card {
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(144, 206, 248, 0.1);
    border-radius: 18px;
    padding: 18px 34px;
    min-width: 260px;
    font-size: 17px;
    color: #E0F0FF;
}

/* sections */
.section-title {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 600;
    color: #A0D4FF;
    margin-bottom: 24px;
}

.tariff {
    background: rgba(0, 0, 0, 0.24);
    border-radius: 18px;
    padding: 14px 32px;
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 40px;
}

/* countries */
.countries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    max-width: 920px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto 50px;
}

.country {
    background: rgba(0, 0, 0, 0.24);
    border-radius: 14px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.country:hover {
    box-shadow: 0 0 0 2px #6DBCF6;
    background: rgba(109, 188, 246, 0.05);
}

.flag {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* text */
.extra-info {
    font-size: 18px;
    color: #A8D0FF;
    margin-bottom: 55px;
    padding: 0 20px;
}

/* button */
.buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: #0A1325;
    font-size: 22px;
    font-weight: 600;
    padding: 20px 56px;
    border-radius: 60px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(98, 183, 246, 0.2);
}

.buy-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(98, 183, 246, 0.3);
}

/* footer */
footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 13px;
    opacity: 0.6;
}

/* МЕДИА-ЗАПРОСЫ ДЛЯ АДАПТИВА */
@media (max-width: 768px) {
    .menu-icon {
        display: block; /* Показываем иконку бургера */
    }

    .nav-buttons {
        position: fixed;
        top: 0;
        right: -100%; /* Прячем за экран */
        width: 70%;
        height: 100vh;
        background: rgba(10, 19, 37, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        gap: 25px;
    }

    /* Логика открытия меню */
    .menu-toggle:checked ~ .nav-buttons {
        right: 0;
    }

    /* Анимация иконки бургера */
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-btn {
        width: 80%;
        text-align: center;
        font-size: 18px;
    }

    .diamond {
        opacity: 0.3; /* Чтобы не мешали на маленьких экранах */
    }

    .benefit-card {
        min-width: 100%;
    }
}