/* ==================== Общие стили ==================== */
html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    color: #fff;
    font-family: Arial, sans-serif;
    overflow-x: hidden;

    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: Arial, sans-serif;

    display: block; /* убираем flex */
    padding-top: 60px; /* отступ сверху, чтобы меню не перекрывалось */

    background:
        radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.08), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 255, 0.08), transparent 45%),
        #0b0b0b;
    background-size: cover; /* фон занимает весь экран */
    background-repeat: no-repeat;

    box-shadow: inset 0 0 120px rgba(0,0,0,0.9);

    animation: backgroundBreath 12s ease-in-out infinite;
    transition: opacity 0.18s ease;
}





body {
    animation: backgroundBreath 12s ease-in-out infinite;
}

@keyframes fogMove {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.35;
    }
    100% {
        transform: translateY(-20px) translateX(15px);
        opacity: 0.5;
    }
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;

    background:
        radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.08), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 255, 0.08), transparent 45%),
        #0b0b0b;

    background-size: 110% 110%;
    animation: backgroundBreath 12s ease-in-out infinite;
}




body::before {
    content: "";
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    z-index: -2;

    background:
        radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.08), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 255, 0.08), transparent 45%),
        #0b0b0b;

    animation: backgroundMove 14s ease-in-out infinite alternate;
}


@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-3%, -3%);
    }
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

.box {
    margin: 0 auto 60px; /* центрируем по горизонтали, отступ снизу */
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 1;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.4);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(255,0,0,0.2);
}

/* ==================== Логотип / название ==================== */
.logo {
    font-size: 90px;
    font-weight: bold;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ff0000, #ff5555, #ff0000, #990000, #ff0000);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s ease infinite;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255,0,0,0.5), 0 0 20px rgba(255,0,0,0.2);
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==================== Заголовки и текст ==================== */
h1 {
    color: #ff0000;
    font-size: 60px;
    margin-bottom: 10px;
}

p {
    font-size: 20px;
    margin: 5px 0;
}

/* ==================== Кнопки ==================== */
.buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.buttons a {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    text-decoration: none;
    border-radius: 14px;

    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow:
        0 6px 18px rgba(46, 204, 113, 0.35),
        inset 0 0 0 rgba(255,255,255,0);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

/* ✨ Подсветка */
.buttons a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

/* Hover */
.buttons a:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 30px rgba(46, 204, 113, 0.55),
        inset 0 0 0 rgba(255,255,255,0);
}

.buttons a:hover::before {
    transform: translateX(100%);
}

/* Tap / Click */
.buttons a:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        0 4px 12px rgba(46, 204, 113, 0.4);
}

/* Кнопка "назад" особая */
.buttons a[href="/"] {
    background: linear-gradient(135deg, #444, #222);
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.buttons a[href="/"]:hover {
    box-shadow: 0 10px 26px rgba(0,0,0,0.8);
}

.buttons a.active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(46,204,113,0.4);
}

/* ==================== Новости ==================== */
.news {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
    padding-left: 36px;
}

.news-title {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ff0000, #ff5555, #990000, #ff0000);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s ease infinite;
    text-shadow: 0 0 12px rgba(255,0,0,0.5), 0 0 24px rgba(255,0,0,0.2);
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.news::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255,0,0,0.8),
        transparent
    );
}


.item {
    position: relative;
    margin-bottom: 26px;
    padding: 20px 24px;
    border-radius: 14px;
    background: linear-gradient(180deg, #141414, #0e0e0e);
    box-shadow: 0 0 28px rgba(0,0,0,0.65);
    text-align: left;

    opacity: 0;
    transform: translateY(30px) scale(0.97);
}

.item::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff0000;
    box-shadow: 0 0 14px rgba(255,0,0,0.9);
}

.date {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,0,0,0.15);
    color: #ff6a6a;
    margin-bottom: 8px;
}

.title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}


.item.animate {
    animation: newsAppear 0.6s ease forwards;
}


.text {
    font-size: 16px;
    line-height: 1.6;
    color: #dcdcdc;
    white-space: pre-line;
}


@keyframes newsAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ==================== Мобильная адаптация ==================== */
@media (max-width: 700px) {

    body {
        align-items: flex-start;
        padding: 20px 10px;
    }

    .box {
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }

    h1 {
        font-size: 34px;
        margin-bottom: 20px;
    }

    .item {
        padding: 16px 18px;
        border-radius: 12px;
        margin-bottom: 18px;
        border-left-width: 3px;
    }

    .news {
        padding-left: 26px;
    }

    .item::before {
        left: -26px;
    }

    .title {
        font-size: 18px;
    }

    .text {
        font-size: 15px;
    }

    .date {
        font-size: 12px;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons a {
            width: 100%;
            max-width: 100%;
            padding: 18px 0; 
            font-size: 18px; 
            border-radius: 16px;
    }

    .logo {
        font-size: 34px;
    }
}
