/* ====== ШРИФТЫ EA ====== */
@font-face {
    font-family: "EA Display";
    src: url("https://eaaccounts.akamaized.net/resource_signin_ea_com/551.0.20250830.1116.4e0e3623ff71/p/statics/juno/css/fonts/electronic-arts-display-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "EA Display";
    src: url("https://eaaccounts.akamaized.net/resource_signin_ea_com/551.0.20250830.1116.4e0e3623ff71/p/statics/juno/css/fonts/electronic-arts-display-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "EA Text";
    src: url("https://eaaccounts.akamaized.net/resource_signin_ea_com/551.0.20250830.1116.4e0e3623ff71/p/statics/juno/css/fonts/electronic-arts-text-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "EA Text";
    src: url("https://eaaccounts.akamaized.net/resource_signin_ea_com/551.0.20250830.1116.4e0e3623ff71/p/statics/juno/css/fonts/electronic-arts-text-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ====== ТЕМА ====== */
:root {
    --bg: #1D2033;
    --panel: #141724;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #276AFC;
    --ok: #27E499;
    --text: #E9ECF1;
    --muted: #B7BFCE;
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    --radius: 14px;
    --gap: 22px;
    --card-w: 320px;
    --container-w: calc(var(--card-w) * 3 + var(--gap) * 2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "EA Text", Arial, sans-serif;
    line-height: 1.45;
}

/* ====== ШАПКА ====== */
header {
    padding: 22px 16px 8px;
    display: flex;
    justify-content: center;
    /* Центрируем по горизонтали */
    position: relative;
    /* Для позиционирования favicon */
}

.header-content {
    display: flex;
    align-items: flex-start;
    /* Выравниваем по верхнему краю */
    max-width: var(--container-w);
    /* Ограничиваем ширину контейнера */
    width: 100%;
    justify-content: center;
    /* Центрируем содержимое */
    position: relative;
    /* Относительное позиционирование для favicon */
}

.header-favicon {
    width: 74px;
    /* Размер favicon */
    height: 74px;
    /* Примерная высота title + subtitle */
    object-fit: contain;
    /* Сохраняем пропорции */
    flex-shrink: 0;
    position: absolute;
    /* Убираем favicon из потока */
    left: calc(50% - 200px - 72px);
    /* Центр страницы минус gap и ширина favicon */
    top: -1px;
    /* Сдвиг вниз для выравнивания по середине текста */
    transition: filter 0.2s ease;
    /* Плавный переход для свечения */
}

.header-favicon:hover {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
    /* Белое свечение по форме PNG */
}

.header-text {
    display: flex;
    flex-direction: column;
    /* Вертикальное расположение title и subtitle */
    align-items: center;
    /* Центрируем текст внутри header-text */
    text-align: center;
    /* Центрируем текст */
}



.title {
    margin: 0;
    font-family: "EA Display", sans-serif;
    font-weight: 700;
    font-size: 28px;
}

.subtitle {
    margin: 8px 0 0;
    font-size: 15px;
    color: var(--muted);
}

/* ====== КОНТЕЙНЕР ====== */
.container {
    width: min(100%, var(--container-w));
    margin: 12px auto 40px;
    padding: 0 16px;
    position: relative;
}

/* ====== СЕТКА КАРТОЧЕК ====== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

@media (max-width: 1060px) {
    :root {
        --container-w: calc(var(--card-w) * 2 + var(--gap));
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    :root {
        --container-w: var(--card-w);
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

/* ====== КАРТОЧКА ====== */
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    /* cursor: pointer; */
    display: flex;
    /* Add flex display */
    flex-direction: column;
    /* Stack content vertically */
    min-height: 400px;
    /* Set a minimum height for consistency */
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.2);
}

.card h2 {
    margin: 0 0 12px;
    font-family: "EA Display", sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    justify-content: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.card .tagline {
    margin: 2px 0 14px;
    color: var(--muted);
    font-size: 13.5px;
    text-align: left;
    font-family: "EA Display", sans-serif;
    font-weight: 400;
}

.list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 15px;
}

.list li {
    position: relative;
    padding-left: 22px;
}

.list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ok);
    font-weight: 700;
    line-height: 1;
}

/* ====== ОБЩИЙ БЛОК ====== */
.advantages {
    margin: 25px 0 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.advantages:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.2);
}

.advantages h3 {
    margin: 0 0 20px;
    font-family: "EA Display", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--accent);
    text-align: center;
}

.advantages .list li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 6px;
}

/* ====== ИКОНКИ ====== */
.icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.icon img {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
}


/* ====== ПЛАШКА (МОДАЛЬНОЕ ОКНО) ====== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow);
    position: relative;
}

.modal-content h2 {
    font-family: "EA Display", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--accent);
    margin: 0 0 20px;
    text-align: center;
}

.modal-content .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
}

.modal-content .close-btn:hover {
    color: var(--text);
}

.modal.show {
    display: flex;
}


/* ====== ЦЕННИКИ ====== */
.card-sep {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.14);
    margin: 14px 0 10px;
    margin-top: auto;
    /* Push separator to the bottom */
}

/* обертка ценника, чтобы красиво центрировать/растягивать */
.price-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
    /* Ensure spacing below separator */
}

.price-note {
    font-weight: 400;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* бейдж цены */
.price-pill {
    --pill-bg: rgba(39, 106, 252, 0.12);
    --pill-border: rgba(39, 106, 252, 0.45);
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--pill-border);
    background: radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 60%), var(--pill-bg);
    box-shadow: 0 6px 18px rgba(39, 106, 252, 0.18);
    font-family: "EA Display", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--accent);
    letter-spacing: 0.2px;
    transform: translateZ(0);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

/* Hover effect for price-pill */
.price-pill:hover {
    transform: scale(1.055) translateY(-1px);
    /* Combine scale and translateY */
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 20px rgba(39, 106, 252, 0.3);
}

/* Adjust card hover effect to avoid overriding price-pill transform */
.card:hover .price-pill {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 24px rgba(39, 106, 252, 0.28);
    /* Remove transform: translateY(-1px) to avoid conflict */
}




/* Стили для контейнера вариантов оплаты */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

/* Стили для каждой кнопки оплаты */
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-family: "EA Text", Arial, sans-serif;
    font-size: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Эффект наведения на кнопку */
.payment-option:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 6px 12px rgba(39, 106, 252, 0.3);
    background: rgba(39, 106, 252, 0.1);
}

/* Стили для иконок */
.payment-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}


/* Фоновая панель для комплектов и преимуществ */
.highlight-panel {
    background: rgba(255, 255, 255, 0.05);
    /* Полупрозрачный светлый фон */
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 0px;
    /* Отступ снизу, чтобы отделить от отзывов */
}


/* Scroll to Reviews button */
.scroll-to-reviews {
    display: flex;
    justify-content: center;
    margin: 0px 0;
}

.scroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: "EA Display", sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.3s ease;
    margin-top: 7px;
}

.scroll-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 6px 12px rgba(39, 106, 252, 0.3);
    background: rgba(39, 106, 252, 0.1);
}

.arrow-down {
    font-size: 18px;
    color: var(--accent);
}

/* Hide button when not needed */
.scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
}


/* Медиа-запрос для мобильных устройств */
@media (max-width: 720px) {
    .language-selector {
        right: 8px;
        top: -40px;
    }

    .language-toggle {
        border-radius: 14px 14px 0 0;
        border-bottom: none;
        background: rgba(255, 255, 255, 0.05);
        height: 40px;
    }

    .language-dropdown {
        border-radius: 0 0 14px 14px;
        border-top: none;
        background: rgba(255, 255, 255, 0.05);
    }

    .language-flag {
        width: 28px;
        height: 28px;
    }

    /* Скрываем элементы на мобильных */
    .header-favicon {
        display: none;
    }

    .scroll-to-reviews {
        display: none;
    }
}






/* ====== FOOTER ====== */
.site-footer {
    background: rgba(255, 255, 255, 0.05);
    /* Тот же фон, что у highlight-panel */
    border-top: 1px solid var(--border);
    /* Граница сверху для отделения */
    padding: 16px 0;
    text-align: center;
    margin-top: 40px;
    /* Отступ от контента */
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    /* Отступ между иконкой и текстом */
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 16px;
}

.footer-logo {
    width: 32px;
    /* Размер иконки */
    height: 32px;
    object-fit: contain;
}

.site-footer p {
    font-family: "EA Text", Arial, sans-serif;
    font-size: 14px;
    color: var(--text-light);
    /* Светлый цвет текста */
    margin: 0;
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--accent-hover);
    /* Цвет при наведении */
}



.mobile-br {
    display: none;
}

.desktop-only {
    display: inline;
}

@media (max-width: 720px) {
    .mobile-br {
        display: block;
        /* перенос строки */
        line-height: 0;
        /* убираем лишний зазор */
    }

    .desktop-only {
        display: none;
        /* скрываем точку на мобильных */
    }
}