/* ===================================
   ПЕРЕМЕННЫЕ И ОБЩИЕ СТИЛИ
=================================== */
:root {
    --primary-red: #F00000;
    --primary-yellow: #F7BB0E;
    --white: #FFFFFF;
    --dark-gray: #29282C;
    --gray-light: #f5f5f5;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 95%;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--dark-gray) 0%, #1a1a1a 100%);
    color: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ===================================
   ХЭДЕР И НАВИГАЦИЯ
=================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(41, 40, 44, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-yellow));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-yellow);
}

.nav-links a.active {
    color: var(--primary-yellow);
}

.nav-links a.active::after {
    width: 100%;
}

/* ===================================
   HERO СЕКЦИЯ
=================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 200px;
    background: 
        linear-gradient(135deg, rgba(41, 40, 44, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%),
        url('./Статуя.png') center/cover;
}

/*.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./Статуя.png') center/cover;
    opacity: 0.3;
    z-index: -2;
}*/

/* Стилизация частиц */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    display: block;
    pointer-events: none;
    bottom: -10%;
    opacity: 0;
    animation: particle-rise linear infinite;
}

@keyframes particle-rise {
    to {
        bottom: 110%;
        opacity: 1;
    }
}

/* Стилизация плавающих блоков */
.floating-blocks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.block {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary-yellow);
    opacity: 0.1;
    transform: rotate(45deg);
}

.block-1 { top: 10%; left: 10%; animation: float-block 15s infinite ease-in-out; }
.block-2 { top: 20%; right: 15%; width: 30px; height: 30px; background: var(--primary-red); animation: float-block 12s infinite ease-in-out reverse; }
.block-3 { bottom: 30%; left: 15%; width: 25px; height: 25px; background: var(--primary-yellow); animation: float-block 18s infinite ease-in-out; }
.block-4 { bottom: 20%; right: 10%; width: 35px; height: 35px; background: var(--primary-red); animation: float-block 14s infinite ease-in-out reverse; }
.block-5 { top: 50%; left: 5%; width: 20px; height: 20px; background: var(--primary-yellow); animation: float-block 16s infinite ease-in-out; }

@keyframes float-block {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-20px); }
}

/* Контент hero секции */
.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff4136;
}

.status-indicator.online {
    background-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.status-text {
    color: var(--white);
    font-weight: 500;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.title-line {
    display: block;
    color: var(--white);
    font-size: 3rem;
}

.title-highlight {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    font-size: 5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(247, 187, 14, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(247, 187, 14, 0.8)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--white);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    color: var(--white);
    box-shadow: 0 10px 30px rgba(240, 0, 0, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(240, 0, 0, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-yellow);
}

.cta-button.secondary:hover {
    background: rgba(247, 187, 14, 0.2);
    transform: translateY(-3px);
}

.server-info-mini {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.info-item i {
    color: var(--primary-yellow);
}

/* Индикатор прокрутки */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    margin-top: 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===================================
   ОБЩИЕ СТИЛИ СЕКЦИЙ
=================================== */
section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    color: var(--white);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-yellow));
    border-radius: 2px;
}

/* ===================================
   СЕКЦИЯ "О СЕРВЕРЕ"
=================================== */
.server-info-blur {
    border-radius: 20px;
    background: rgba(41, 40, 44, 0.5);
    backdrop-filter: blur(2px);
    padding-top: 1rem;
}

.server-info {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(8px);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(247,187,14,0.2);
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(247,187,14,0.1);
    border-color: var(--primary-yellow);
}

.info-card i {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-yellow);
}

.info-card p {
    color: rgba(255,255,255,0.8);
}

.state-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.state-button {
    padding: 0.8rem 1.5rem;
    background: rgba(247,187,14,0.2);
    border: 2px solid var(--primary-yellow);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    font-weight: 500;
}

.state-button:hover {
    background: var(--primary-yellow);
    color: var(--dark-gray);
    transform: translateY(-2px);
}

/* ===================================
   СЕКЦИЯ "ГОСУДАРСТВО"
=================================== */
.state-section {
    background: rgba(240,0,0,0.05);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 3rem;
}

.state-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.state-emblem {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 10px 30px rgba(240,0,0,0.3);
}

.state-info h3 {
    font-size: 2rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

/* ===================================
   СЕКЦИЯ "НОВОСТИ"
=================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(247,187,14,0.2);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--primary-yellow);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.news-excerpt {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 10px;
}

/* ===================================
   СЕКЦИЯ "КАРТА"
=================================== */
.map-container {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 1rem;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 1200 / 540;
    overflow: hidden;
}

.map-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.map-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: rgba(240, 0, 0, 0.7);
    border: 1.5px solid #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
    transform: translate(-50%, -50%);
}

.map-marker::before {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
    background: rgba(41, 40, 44, 0.8);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 1rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.map-marker::after {
    content: attr(data-description);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background: var(--dark-gray);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 15;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    width: max-content;
    max-width: 200px;
    text-align: center;
}

.map-marker:hover {
    background-color: rgba(247, 187, 14, 1);
    transform: translate(-50%, -50%) scale(1.5);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(247, 187, 14, 0.6);
    z-index: 20;
}

.map-marker:hover::before {
    opacity: 0;
}

.map-marker:hover::after {
    opacity: 1;
}

/* ===================================
   СЕКЦИЯ "РУКОВОДСТВА"
=================================== */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guide-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(247,187,14,0.2);
}

.guide-card:hover {
    background: rgba(247,187,14,0.1);
    transform: translateX(10px);
}

.guide-icon {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.guide-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.guide-description {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.guide-link {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.guide-link:hover {
    gap: 10px;
}

/* ===================================
   ФУТЕР
=================================== */
footer {
    background: rgba(41, 40, 44, 0.95);
    padding: 3rem 5%;
    margin-top: 5rem;
    border-top: 2px solid rgba(247,187,14,0.3);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(247,187,14,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-yellow);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* ===================================
   ДОПОЛНИТЕЛЬНЫЕ СТРАНИЦЫ
=================================== */
.page {
    display: none;
    padding: 7rem 5% 3rem;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(41, 40, 44, 0.95);
    min-height: 100vh;
}

.page.active {
    display: block;
}

.page h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-content {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 2rem;
    line-height: 1.8;
}

.page-content h2 {
    color: var(--primary-yellow);
    margin: 2rem 0 1rem;
}

.page-content p {
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.5rem;
    background: rgba(247,187,14,0.2);
    border: 2px solid var(--primary-yellow);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-button:hover {
    background: var(--primary-yellow);
    color: var(--dark-gray);
}

/* ===================================
   АНИМАЦИИ И АДАПТИВНОСТЬ
=================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .title-line {
        font-size: 2rem;
    }
    
    .title-highlight {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .server-info-mini {
        gap: 1rem;
    }
    
    .block {
        width: 20px;
        height: 20px;
    }
    
    .block-2 {
        width: 15px;
        height: 15px;
    }
    
    .block-3 {
        width: 12px;
        height: 12px;
    }
    
    .block-4 {
        width: 18px;
        height: 18px;
    }
    
    .block-5 {
        width: 10px;
        height: 10px;
    }

    .state-header {
        flex-direction: column;
        text-align: center;
    }

    section {
        padding: 3rem 3%;
    }
    
    .map-marker {
        width: 10px;
        height: 10px;
    }
    
    .map-marker::before {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .map-marker::after {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        max-width: 150px;
    }
}