:root {
    --primary-color: #01a1af;
    --dark-color: #010b0c;
    --dark-secondary: #012a2d;
    --accent-color: #00d4e6;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Arial', sans-serif;
    background: var(--dark-color);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

.header {
    background: var(--dark-secondary);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.logo:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.nav-item {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-secondary);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-item:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.submenu-link {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.submenu-link:hover {
    background: var(--primary-color);
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    height: 70vh;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hero-button {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.hero-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(1, 161, 175, 0.3);
}

.slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.8s ease-in-out;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(1, 161, 175, 0.8), rgba(1, 11, 12, 0.9));
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--text-light);
}

.slide h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease-out;
}

.slide p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.slide-arrow-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.4s both;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
}

.slide-arrow-link:hover {
    color: var(--primary-color);
    transform: translateX(10px);
    text-shadow: 0 0 10px rgba(1, 161, 175, 0.5);
}

.slide-arrow-link::after {
    content: '→';
    font-size: 1.2rem;
    transition: all 0.3s;
}

.slide-arrow-link:hover::after {
    transform: translateX(5px);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.dot {
    width: 15px; height: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
    border-color: var(--accent-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === СЕКЦИИ === */
.section, .news-section, .events-section, .projects-section, .fortuna-craft-section, .broadcast-section {
    padding: 6rem 0 8rem 0;
    background: linear-gradient(135deg, var(--dark-secondary), var(--dark-color));
}

.fortuna-craft-section {
    padding-bottom: 2.8rem !important;
}

.broadcast-section {
    padding: 10rem 0 8rem 0;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    position: relative;
    font-weight: bold;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

/* === СЕТКИ === */
.news-grid, .monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.events-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.broadcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* === КАРТОЧКИ === */
.news-card, .monitoring-card {
    background: var(--dark-secondary);
    border: 1px solid rgba(1, 161, 175, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s;
    width: 100%;
    max-width: 360px;
}

.event-card, .project-card {
    background: var(--dark-secondary);
    border: 1px solid rgba(1, 161, 175, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
}

.broadcast-card {
    background: var(--dark-secondary);
    border: 1px solid rgba(1, 161, 175, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s;
    width: 100%;
    max-width: 300px;
}

.news-card:hover, .monitoring-card:hover, .broadcast-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(1, 161, 175, 0.2);
}

.event-card:hover, .project-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(1, 161, 175, 0.2);
}

.news-image, .event-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
    background-color: #333;
}

.broadcast-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
    background-color: #333;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.news-content, .event-content {
    padding: 1.2rem;
}

.news-title, .event-title {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.news-subtitle, .event-subtitle {
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.news-description, .event-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.monitoring-grid {
    margin-bottom: 10rem !important;
}

.monitoring-card {
    padding: 1.8rem;
    text-align: center;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.monitoring-title {
    font-size: 1.4rem;
    margin: 0 0 1rem;
    font-weight: bold;
}

.monitoring-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--text-light);
}

.ip-card {
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: 2px solid rgba(255,255,255,0.2);
}

.ip-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(1, 161, 175, 0.4);
}

.ip-card .monitoring-value {
    font-size: 1.3rem;
    color: white;
    padding: 0.5rem;
}

.ip-card span {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0,212,230,0.8);
}

.broadcast-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.broadcast-intro {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.broadcast-intro::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.broadcast-container:hover .broadcast-intro::before {
    width: 100%;
}

.twitch-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(1, 161, 175, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(1, 161, 175, 0.2);
}

.twitch-embed:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(1, 161, 175, 0.4);
    border-color: var(--primary-color);
}

.twitch-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* === ССЫЛКИ "ВСЕ НОВОСТИ / ВСЕ МЕРОПРИЯТИЯ" — ПРОСТО ТЕКСТ + СТРЕЛКА === */
.simple-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    background: none;
    border: none;
    padding: 0;
    display: inline-block;
}

.simple-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.simple-link::after {
    content: ' →';
    font-size: 1.2rem;
    transition: all 0.3s;
}

.simple-link:hover::after {
    transform: translateX(3px);
}

.news-section .container > div:last-child,
.events-section .container > div:last-child {
    margin-top: 3rem;
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    background: rgba(1, 161, 175, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: all 0.3s;
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--dark-color);
}

.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-size: 1.1rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--dark-secondary);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    height: 80%;
    display: flex;
    position: relative;
    padding: 1rem;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.close:hover {
    color: var(--accent-color);
}

.video-container {
    flex: 3;
    height: 100%;
    margin-right: 1rem;
}

.chat-container {
    flex: 1;
    height: 100%;
}

.video-container iframe,
.chat-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.footer {
    background: var(--dark-secondary);
    padding: 3rem 0 1rem;
    text-align: center;
    border-top: 1px solid var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* === АДАПТИВ === */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .slide h1, .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2.5rem; }
    .news-grid, .events-grid, .projects-grid, .monitoring-grid, .broadcast-grid { grid-template-columns: 1fr; }
    .hero { height: 60vh; margin-top: 70px; }
    .submenu { display: none; }
    .server-description-list { padding: 1.5rem; }
    .news-card, .event-card, .project-card, .monitoring-card, .broadcast-card { max-width: 100%; }
    .modal-content {
        flex-direction: column;
        height: 90%;
        padding: 0.5rem;
    }
    .video-container {
        flex: none;
        height: 50%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .chat-container {
        flex: none;
        height: 40%;
    }
    .broadcast-intro {
        font-size: 1rem;
    }
    .twitch-embed {
        margin: 1rem auto;
    }
}

@media (min-width: 769px) {
    .monitoring-grid:has(.monitoring-card:nth-child(2):not(:nth-child(3))) {
        grid-template-columns: repeat(2, minmax(300px, 360px));
        justify-content: center;
    }
    .monitoring-grid:has(.monitoring-card:nth-child(3)) {
        grid-template-columns: repeat(3, minmax(300px, 1fr));
    }
    .broadcast-grid:has(.broadcast-card:nth-child(2):not(:nth-child(3))) {
        grid-template-columns: repeat(2, minmax(150px, 300px));
        justify-content: center;
    }
    .broadcast-grid:has(.broadcast-card:nth-child(3)) {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

/* ========================================= */
/*       ДОБАВЛЕНО: СТИЛИ "О СЕРВЕРЕ"       */
/* ========================================= */

.server-description {
    font-size: 1.2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.server-description-text {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.server-description-list {
    background: var(--dark-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(1, 161, 175, 0.3);
    box-shadow: 0 5px 15px rgba(1, 161, 175, 0.2);
    margin-bottom: 2rem;
}

.server-description-list ul {
    list-style: none;
    margin: 0;
}

.server-description-list li {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.server-description-list li::before {
    content: '✔';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.server-description-info {
    font-size: 1.2rem;
    color: var(--text-light);
}

.server-description-info strong {
    color: var(--accent-color);
}