/* Общие стили */
body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    background: #0d1a26; /* Тёмный, почти чёрный фон */
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden; /* Скрывает горизонтальную прокрутку */
}

/* Эффект свечения */
.neon-glow {
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #08f;
    transition: text-shadow 0.3s ease-in-out;
}

.neon-glow:hover {
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #0ff, 0 0 80px #08f;
}

/* Header */
.site-header {
    background: rgba(13, 26, 38, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    margin: 0;
    font-weight: 700;
    color: #0ff;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: #88f;
    text-decoration: none;
    font-weight: 400;
    padding: 5px 10px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.main-nav a.active, .main-nav a:hover {
    color: #0ff;
    border-bottom: 2px solid #0ff;
}

/* Основной контент */
.site-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

.page-section {
    background: linear-gradient(145deg, rgba(20, 40, 60, 0.9), rgba(10, 20, 30, 0.9));
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
    margin-bottom: 30px;
}

.section-title {
    color: #0ff;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

/* --- ИЗМЕНЕНИЯ ЗДЕСЬ --- */

/* Главная страница */
.intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.flag-placeholder {
    width: 250px;
    height: 150px;
    background-color: #1a324b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #88f;
    border: 2px dashed #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    overflow: hidden;
}

.flag-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изображение заполнит весь блок без пустых мест */
}

.president-card {
    text-align: center;
    background: linear-gradient(135deg, #1f425b, #153147);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.president-photo-placeholder {
    width: 150px;
    height: 150px;
    background-color: #2c507a;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b2c2d2;
    border: 3px solid #0ff;
    box-shadow: 0 0 15px #0ff;
    overflow: hidden;
}

.president-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- ИЗМЕНЕНИЯ ЗДЕСЬ (для больших экранов) --- */
@media (min-width: 768px) {
    .intro-container {
        flex-direction: row; /* На больших экранах блоки будут в ряд */
        justify-content: center;
        align-items: center; /* Выравнивание по центру по вертикали */
    }
}

/* --- ОСТАЛЬНОЕ БЕЗ ИЗМЕНЕНИЙ --- */
/* Футер */
.site-footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    background-color: #0d1a26;
    border-top: 1px solid #0ff;
}

/* Анимации */
.animate-pop-in {
    animation: pop-in 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
    opacity: 0;
}

.animate-spin-in {
    animation: spin-in 1.5s ease-out forwards;
    opacity: 0;
}

.animate-float-up {
    animation: float-up 1.2s ease-out forwards;
    opacity: 0;
}

/* Задержка для анимаций */
.animate-pop-in { animation-delay: 0.2s; }
.animate-spin-in { animation-delay: 0.5s; }
.animate-float-up { animation-delay: 0.8s; }

/* Ключевые кадры */
@keyframes pop-in {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes spin-in {
    0% { transform: rotateY(180deg) scale(0); opacity: 0; }
    100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

@keyframes float-up {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        padding: 20px;
    }
    .main-nav ul {
        flex-direction: column;
        margin-top: 15px;
        text-align: center;
    }
    .main-nav li {
        margin: 10px 0;
    }
}