/* === Обнуление === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    /* ЧЁРНЫЙ ФОН УБРАН */
    background: transparent;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* === Фон === */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/news.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    filter: brightness(0.3);
}

/* === Логотип === */
header {
    padding: 20px;
    position: relative;
    text-align: center;
}

.logo {
    max-width: 300px;
    height: auto;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.logo img {
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

/* === Меню === */
.navbar {
    position: relative; /* ← БЫЛО fixed — МЕШАЛО на мобильных */
    padding: 10px 0;
    text-align: center;
    z-index: 9;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
}

/* Подчёркивание */
.navbar li:not(.store-btn) a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #6e45e2, #88d3ce);
    transition: width 0.3s ease;
}

.navbar li:not(.store-btn) a:hover::after {
    width: 100%;
}

/* Кнопка "Магазин" */
.navbar .store-btn a {
    background: #ffcc00 !important;
    color: #000 !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    position: relative;
    z-index: 2;
}

.navbar .store-btn a::after {
    display: none !important;
}

.navbar .store-btn a:hover {
    background: linear-gradient(135deg, #6e45e2, #88d3ce) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(110, 69, 226, 0.7) !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.navbar li a:hover {
    animation: pulse 1s infinite;
}

/* === Новости === */
.news-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 1.5rem 60px; /* отступ под логотип + меню */
    padding-bottom: max(env(safe-area-inset-bottom, 20px), 60px);
}

.page-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    font-family: 'Orbitron', sans-serif;
}

.news-grid {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(100, 100, 255, 0.2);
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(60, 60, 255, 0.3);
    border-color: rgba(120, 120, 255, 0.4);
    background: rgba(40, 40, 50, 0.7);
}

.news-date {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.news-card p {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    color: #4a9eff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.read-more:hover {
    color: #6db5ff;
    text-decoration: underline;
}

/* === Футер — ТОЧНО КАК В ВАШЕМ КОДЕ === */
.footer-social {
    padding: 0rem 0;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    text-align: center;
}

.social-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-block;
    padding: 0.75rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.social-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.social-icon:hover img {
    filter: hue-rotate(30deg);
}

.copyright {
    color: #ccc;
    font-size: 0.85rem;
    padding: 2px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Orbitron', sans-serif;
}


/* === МОБИЛЬНАЯ АДАПТАЦИЯ === */
@media (max-width: 768px) {
    /* Логотип */
    .logo {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 auto 20px;
        max-width: 200px;
    }

    .logo img {
        height: 32px;
    }

    /* Меню */
    .navbar ul {
        flex-direction: column;
        gap: 10px;
        padding: 0 1rem;
    }

    .navbar li a {
        padding: 12px 20px;
        width: 80%;
        max-width: 250px;
        margin: 0 auto;
        display: block;
        font-size: 1rem;
    }

    /* Новости */
    .news-page {
        padding: 90px 1rem 50px;
        padding-bottom: max(env(safe-area-inset-bottom, 20px), 50px);
    }

    .page-title {
        font-size: 1.8rem;
    }

    .news-card h3 {
        font-size: 1.25rem;
    }

    .news-card p {
        font-size: 0.95rem;
    }

    /* Футер */
    .social-icon img {
        width: 32px;
        height: 32px;
    }

    .copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.6rem;
    }

    .news-card {
        padding: 1.2rem;
    }

    .read-more {
        font-size: 0.95rem;
    }
}