/* ===========================================
   ГЛАВНАЯ ЦВЕТОВАЯ ТЕМА
=========================================== */
:root {
    --accent: #4fd1c5;
    --accent-dark: #38b2ac;
    --bg: #000;
    --bg-soft: #0f0f0f;
    --text: #e0f7ff;
    --text-soft: #a0aec0;
    --border: #1a1a1a;
    --radius: 14px;
    --shadow: 0 0 20px rgba(79,209,197,0.25);
    --transition: 0.3s ease;
}

/* ===========================================
   ОБЩИЕ СТИЛИ
=========================================== */
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background: radial-gradient(circle at center, #020202 0%, #000 100%);
    color: var(--text);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

/* ===========================================
   HEADER
=========================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo img {
    height: 76px;
    border-radius: 16px;
}

@media (max-width: 480px) {
    .logo img {
        height: 42px;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* ===========================================
   КНОПКА ВХОДА
=========================================== */
.login-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--accent);
    color: #000;
}

/* ===========================================
   НОВОЕ МЕНЮ ЯЗЫКОВ — ФИНАЛЬНАЯ ВЕРСИЯ
=========================================== */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-current {
    font-size: 32px;
    cursor: pointer;
    user-select: none;
    transition: 0.25s;
    text-shadow: 0 0 10px #4dffe5;
}

.lang-current:hover {
    transform: scale(1.15);
}

.lang-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 45px;
    background: rgba(0,0,0,0.75);
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(79,209,197,0.4);
    box-shadow: 0 0 22px rgba(79,209,197,0.55);
    gap: 14px;

    /* Важное исправление — меню скрыто по умолчанию */
    display: none;
    pointer-events: auto;
}

.lang-menu.active {
    display: flex;
}

.lang-menu span {
    font-size: 30px;
    cursor: pointer;
    transition: 0.25s;
}

.lang-menu span:hover {
    transform: scale(1.22);
    text-shadow: 0 0 10px #4dffe5;
}

/* ===========================================
   СЛАЙДЕР
=========================================== */
.mobile-slider {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 220px;
}

@media (max-width: 480px) {
    .mobile-slider {
        height: 160px;
    }
}

.mobile-slide {
    width: 100%;
    height: 100%;
    display: none;
}

.mobile-slide.active {
    display: block;
}

.mobile-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================================
   ОСНОВНОЙ БЛОК
=========================================== */
main {
    text-align: center;
    padding: 20px 15px 40px;
}

h1 {
    color: var(--accent);
    font-size: 30px;
    text-shadow: 0 0 12px rgba(79,209,197,0.6);
}

.subtitle {
    margin-bottom: 35px;
    color: var(--text-soft);
}

/* ===========================================
   ИНВЕСТ ПАКЕТЫ
=========================================== */
.packs-section {
    padding: 20px 20px 60px;
    background: #000;
}

.packs-title {
    text-align: center;
    font-size: 32px;
    color: #4fd1c5;
    margin-bottom: 40px;
    text-shadow: 0 0 14px rgba(79,209,197,0.6);
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    padding: 0 10px;
}

.pack-card {
    background: rgba(18,18,18,0.92);
    padding: 32px 22px;
    border-radius: 22px;
    border: 1px solid rgba(79,209,197,0.22);
    text-align: center;
    box-shadow: 0 0 22px rgba(79,209,197,0.25);
    transition: 0.35s;
    opacity: 0;
    animation: fadePack 0.85s forwards;
}

@keyframes fadePack {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pack-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 26px rgba(79,209,197,0.45);
}

.pack-icon {
    font-size: 52px;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 10px rgba(79,209,197,0.35));
}

.pack-card h3 {
    font-size: 22px;
    color: #4fd1c5;
    margin-bottom: 12px;
}

.pack-card p {
    font-size: 16px;
    color: #c8f7ff;
    margin: 6px 0;
}

.pack-btn {
    margin-top: 16px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #4fd1c5, #39b2ac);
    color: #000;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(79,209,197,0.45);
    transition: 0.3s;
}

.pack-btn:hover {
    transform: scale(1.07);
    box-shadow: 0 0 20px rgba(79,209,197,0.75);
}

/* ===========================================
   ПАРТНЁРЫ
=========================================== */
.partners-seals {
    padding: 40px 15px;
    text-align: center;
    background: rgba(10,10,10,0.85);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 40px auto;
}

.partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
}

.partner img {
    width: 180px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.partner span {
    color: var(--accent);
    font-size: 16px;
}

.certificate-block img {
    width: 90%;
    max-width: 360px;
    margin: 0 auto;
    display: block;
}

@media (max-width: 480px) {
    .partner img { width: 140px; }
    .partner span { font-size: 14px; }
}

/* ===========================================
   МОДАЛЬНОЕ ОКНО
=========================================== */
.modal-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal {
    background: var(--bg-soft);
    border: 1px solid var(--accent);
    padding: 30px 40px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: var(--shadow);
}

.modal-btn {
    background: var(--accent);
    color: #000;
    font-weight: 600;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-btn:hover {
    background: var(--accent-dark);
}

/* ===========================================
   ФУТЕР
=========================================== */
footer {
    background: #0b0b0b;
    color: #888;
    text-align: center;
    padding: 15px;
    font-size: 13px;
    border-top: 1px solid var(--border);
}