:root {
    --green: #7cb342;
    --green-light: #c5e1a5;
    --green-pale: #e8f5e9;
    --blue: #4a8fe7;
    --blue-light: #bbdefb;
    --blue-pale: #e3f2fd;
    --gold: #f0c040;
    --bg: #faf9f6;
    --bg-warm: #f5f3ee;
    --text: #2d2d2d;
    --text-mid: #4d4c4c;
    --text-light: #9ca3a0;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient( to left, #ede8dc 0%, #f5f0e8 15%, #faf8f5 30%, #f0ecf8 45%, #d8cef0 65%, rgb(203, 190, 235) 100% );
/*    background: black;*/
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.nav-exit {
    color: blue;
}

img, svg {
    display: block;
    max-width: 100%;
}

.nav-links {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
}

.news-alert {
    display: none;
    font-size: 1.5em;
    margin-left: 6px;
    position: relative;
    bottom: 5px;
    color: #dc3545;
    font-weight: bold;
    animation: pulse-red-news-alert 1.5s infinite;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.7);
}

@keyframes pulse-red-news-alert {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

/* Nav */

.nav {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 5px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 1;
}


.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.codelly {
    font-family: 'Press Start 2P', cursive;
    font-size: 30px;
    color: #4ade80;
    line-height: 1.5;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #2d7a4e, 4px 4px 0 #1a4d2e;
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
    top: 2px;
    position: relative;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

    .nav-links a {
        font-size: 17px;
        font-weight: 600;
        color: var(--text-mid);
        padding: 4px 0;
        position: relative;
    }

        .nav-links a:hover, .nav-links a.active {
            color: #7cb342;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--green);
            transition: var(--transition);
        }

        .nav-links a:hover::after, .nav-links a.active::after {
            width: 100%;
        }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn-text {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.nav-btn-primary {
    padding: 10px 24px;
    background: var(--green);
    color: white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
}

    .nav-btn-primary:hover {
        background: #689f38;
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(124, 179, 66, 0.3);
    }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

    .nav-burger span {
        width: 22px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: var(--transition);
    }


.vip-gradient-text {
    background: linear-gradient(90deg, #4f34e3, #db9ec8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Nav */
.mob-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

    .mob-nav.open {
        display: flex;
    }

    .mob-nav a {
        color: var(--text);
        font-size: 28px;
        font-weight: 800;
        padding: 12px 0;
        z-index: 1; /* Добавляем z-index для ссылок */
        position: relative;
    }

.mob-close {
    position: fixed; /* Меняем на fixed вместо absolute */
    top: 20px;
    right: 24px;
    font-size: 32px;
    color: var(--text);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000; /* Выше, чем у .mob-nav */
    padding: 10px;
    line-height: 1;
    pointer-events: auto; /* Явно разрешаем клики */
}

    /* Убираем стандартные стили кнопки */
    .mob-close:hover {
        opacity: 0.8;
    }

    .mob-close:active {
        transform: scale(0.95);
    }

body.menu-open .nav-burger {
    opacity: 0;
    pointer-events: none;
}

.cookie-info-banner {
    display: none; /* Скрыто по умолчанию. ВАЖНО: не пишите здесь display: flex */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background-color: #ffffff;
    color: #333333;
    padding: 15px 20px;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-family: Arial, sans-serif;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border: 1px solid #e0e0e0;
}

    .cookie-info-banner p {
        margin: 0;
        font-size: 14px;
        line-height: 1.4;
        flex: 1;
    }

    .cookie-info-banner a {
        color: #0056b3;
        text-decoration: none;
    }

        .cookie-info-banner a:hover {
            text-decoration: underline;
        }

.cookie-close-btn {
    background: none;
    border: 1px solid #ccc;
    color: #555;
    font-size: 14px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.2s;
}

    .cookie-close-btn:hover {
        background-color: #f0f0f0;
    }


/* Footer */
.footer {
    padding: 60px 40px 24px;
    border-top: 1px solid #e8e5e0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-mid);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-col a {
    display: block;
    color: var(--text-mid);
    font-size: 14px;
    padding: 4px 0;
}

    .footer-col a:hover {
        color: var(--green);
    }

.footer-bottom {
    border-top: 1px solid #e8e5e0;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
}

.footer-socials {
    display: flex;
    gap: 10px;
}

    .footer-socials a {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: var(--bg-warm);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-mid);
        font-size: 14px;
        font-weight: 700;
    }

        .footer-socials a:hover {
            background: var(--green);
            color: white;
        }



/* Responsive */
@media (max-width: 1200px) {
    .codelly {
        display: none;
    }
}

@media (max-width: 1024px) {
    .footer-brand {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 915px) {
    .nav {
        padding: 0 20px;
    }

    .nav-links, .nav-actions {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .codelly {
        display: block;
        font-size: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .cookie-info-banner {
        flex-direction: column;
        text-align: center;
        bottom: 10px;
    }
}

@media (max-width: 350px) {
    .cookie-info-banner {
        width: 80%;
    }
}

