/* ========== ОСНОВНЫЕ СТИЛИ ========== */
body {
    font-family: Bahnschrift Condensed;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(45deg, #fefefe, #fcfcfc, #f9f9f9, #f5f5f5, #f2f2f2, #f7f7f7, #fdfdfd);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    opacity: 0.95;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(100, 100, 100, 0.2), transparent);
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========== ШАПКА И НАВИГАЦИЯ ========== */
#header {
    font-size: clamp(32px, 8vw, 58px);
    display: flex;
    justify-content: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 5;
}

#header h2 {
    color: red;
}

/* Горизонтальные линии */
.line {
    border: 4px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

hr {
    border: 8px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Навигация */
.navigation { 
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: clamp(18px, 4vw, 22px);
    position: relative;
    z-index: 5;
    flex-wrap: wrap;
    padding: 10px;
}

.navigation a {
    padding: 5px 20px;
    border-radius: 40px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navigation a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: gray;
    transform: scale(1.1);
}

/* ========== ОБЩИЕ ССЫЛКИ ========== */
a {
    color: #C21800;
    text-decoration: none;
    transition: transform 0.3s ease;
}

a:hover {
    color: black;
    transform: scale(1.3, 1.1);
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes ageModalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== FOOTER ========== */
footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 25px 20px;
    margin-top: 40px;
    backdrop-filter: blur(5px);
    opacity: 0.95;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 10;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

footer:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.95);
}

footer a {
    color: #ff9999;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

footer p {
    margin: 10px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

