:root {
    --main-bg: #0a0a0a;
    --nav-bg: rgba(15, 15, 15, 0.95);
    --white: #ffffff;
    --primary: #3498db;
    --hover-color: rgba(52, 152, 219, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow: hidden;
    height: 100%;
    scroll-behavior: smooth;
    background: var(--main-bg);
    color: var(--white);
    font-family: 'Inter', sans-serif;
}

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.section {
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    padding-top: 70px;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--main-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    color: var(--white) !important;
    margin: 0 1.5rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Стили для кнопки Login */
.login-btn {
    position: relative;
    background: rgba(25, 25, 35, 0.95); /* Темный фон в стиле карточек сайта */
    border: 2px solid var(--primary); /* Тонкая голубая рамка */
    color: var(--white);
    padding: 0.8rem 2rem; /* Уменьшенный отступ для компактности */
    border-radius: 12px; /* Более мягкие углы */
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase; /* Современный акцент */
    letter-spacing: 0.5px; /* Легкий разряд для текста */
    transition: all 0.4s ease; /* Плавный переход для всех свойств */
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2); /* Легкое свечение по умолчанию */
    cursor: pointer;
}

#logoutBtn {
  display: none;
  margin-top: 20px;
}

/* Текст внутри кнопки */
.login-text {
    position: relative;
    z-index: 1; /* Чтобы текст был поверх волны */
}

/* Эффект при наведении */
.login-btn:hover {
    background: var(--primary); /* Полный голубой фон */
    color: var(--white);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.6); /* Усиленное свечение */
    transform: translateY(-2px); /* Легкий подъем */
}

/* Анимация волны при наведении */
.login-btn:hover .login-hover {
    transform: rotate(45deg) translate(20%, 100%);
}

.event-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

/* Модальное окно */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;              /* По умолчанию невидимо */
  pointer-events: none;    /* По умолчанию не реагирует на клики */
  transition: opacity 0.5s ease; /* Плавный переход для фона */
  display: flex;           /* Всегда flex */
  justify-content: center;
  align-items: center;
}

.auth-modal.show {
  opacity: 1;              /* Становится видимым */
  pointer-events: auto;    /* Реагирует на клики */
}

/* Содержимое модального окна */
.auth-modal-content {
  background: rgba(15, 15, 15, 1);
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  position: relative;
  border: 1px solid rgba(52, 152, 219, 0.15);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);   /* Начальное масштабирование */
  opacity: 0;              /* Начальная прозрачность */
  transition: transform 0.5s ease, opacity 0.5s ease; /* Плавные переходы */
}

.auth-modal.show .auth-modal-content {
  transform: scale(1);     /* Полный размер */
  opacity: 1;              /* Полная видимость */
}

/* Кнопка закрытия */
.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.auth-modal-close:hover {
  transform: scale(1.2);
}

/* Заголовок */
.mb-4 {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

/* Кнопки провайдеров с плавным эффектом наведения */
.auth-provider-btn {
  width: 100%;
  margin: 0.5rem 0;
  padding: 1rem;
  border: 2px solid rgba(52, 152, 219, 0.3);
  border-radius: 10px;
  background: rgba(25, 25, 35, 1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: scale(1);
  box-shadow: 0 0 0 rgba(52, 152, 219, 0);
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  border: none;
}

.auth-provider-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.auth-provider-btn:not(:hover) {
  transform: scale(1);
  box-shadow: 0 0 0 rgba(52, 152, 219, 0);
  transition: transform 0.4s cubic-bezier(0.215, 0.610, 0.355, 1), box-shadow 0.4s ease;
}

.auth-provider-btn img {
  width: 24px;
  height: 24px;
}

/* Анимации для модального окна */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate__animated {
  animation-duration: 0.5s;
  animation-fill-mode: both;
}

.auth-modal.show .animate__animated {
  animation-name: scaleIn;
}

/* Специфические стили для разных провайдеров авторизации */
.auth-provider-btn.discord {
  border-color: rgba(114, 137, 218, 0.3);
}

.auth-provider-btn.discord:hover {
  box-shadow: 0 0 15px rgba(114, 137, 218, 0.5);
}

.auth-provider-btn.google {
  border-color: rgba(219, 68, 55, 0.3);
}

.auth-provider-btn.google:hover {
  box-shadow: 0 0 15px rgba(219, 68, 55, 0.5);
}

.auth-provider-btn.telegram {
  border-color: rgba(0, 136, 204, 0.3);
}

.auth-provider-btn.telegram:hover {
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.5);
}

.auth-provider-btn.twitch {
  border-color: rgba(100, 65, 165, 0.3);
}

.auth-provider-btn.twitch:hover {
  box-shadow: 0 0 15px rgba(100, 65, 165, 0.5);
}

.profile-container {
  margin-top: 100px;
}

.profile-card {
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  padding: 2rem;
}

.profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(52, 152, 219, 0.5); /* Более мягкий голубой контур */
    transition: transform 0.3s ease;
}

.auth-provider-btn {
    width: 100%;
    margin: 0.5rem 0;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.auth-provider-btn:hover {
    background: rgba(255,255,255,0.2);
}

.auth-provider-btn img {
    width: 24px;
    height: 24px;
}

@media (max-width: 992px) {
    .navbar {
        padding: 1rem;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        padding: 2rem;
        text-align: center;
    }
    
    .nav-link {
        margin: 1rem 0;
        font-size: 1.1rem;
    }
    
    .login-btn {
        margin-top: 1.5rem;
        width: 100%;
        padding: 0.8rem 1.5rem; /* Уменьшенные отступы */
    }

    .profile-btn {
        padding: 0 1rem;
        width: 100%; /* Полная ширина на мобильных */
    }
    
    .hamburger {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 768px) {
    .display-1 {
        font-size: 3.5rem !important;
    }
    
    .display-3 {
        font-size: 2.5rem !important;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .event-card {
        margin-bottom: 1.5rem;
    }
}

/* Стили для кнопки Profile */
.profile-btn {
    position: relative;
    background: rgba(25, 25, 35, 0.95); /* Такой же темный фон, как у login-btn */
    border: 2px solid var(--primary); /* Голубая рамка */
    border-radius: 12px; /* Соответствует login-btn */
    padding: 0 1.2rem; /* Компактные отступы */
    height: 40px; /* Фиксированная высота */
    display: flex;
    align-items: center;
    gap: 8px; /* Уменьшенный промежуток между аватаром и текстом */
    transition: all 0.4s ease; /* Плавный переход */
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2); /* Легкое свечение */
    cursor: pointer;
}

/* Эффект при наведении */
.profile-btn:hover {
    background: var(--primary); /* Голубой фон */
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.6); /* Усиленное свечение */
    transform: translateY(-2px); /* Легкий подъем */
}

/* Аватар в кнопке Profile */
.profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(52, 152, 219, 0.5); /* Более мягкий голубой контур */
    transition: transform 0.3s ease;
}

/* Эффект при наведении на аватар */
.profile-btn:hover .profile-avatar {
    transform: scale(1.1); /* Легкое увеличение аватара */
}

/* Текст в кнопке Profile */
.profile-btn span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase; /* Соответствует login-btn */
    letter-spacing: 0.5px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .login-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .profile-btn {
        padding: 0 0.8rem;
    }

    .profile-btn span {
        max-width: 90px;
        font-size: 0.85rem;
    }

    .profile-avatar {
        width: 25px;
        height: 25px;
    }
}

/* Увеличенное лого в профиле */
.profile-page .navbar-brand .logo {
    width: 120px;
    height: auto;
    transform: translateY(2px);
    transition: all 0.3s ease;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .profile-page .navbar-brand .logo {
        width: 90px;
    }
}

/* Дополнительные стили для контента профиля */
.profile-container {
    padding-top: 100px;
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border: 5px solid #3498db;
}

#section2,
#section4 {
    background: linear-gradient(135deg, 
        rgba(15, 15, 15, 0.98),
        rgba(30, 30, 30, 0.97)) 
        fixed;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.contact-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-card:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(-5px);
    border-color: rgba(52, 152, 219, 0.3);
}

.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #ff6b6b;
}

.founder-card {
    animation: border-pulse 6s infinite;
}

.founder-card:hover .founder-img {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(52, 152, 219, 0.3);
}

.founder-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
    padding: 3px;
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.2);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.social-links .social-icon {
    width: 60px;
    height: 60px;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.social-icon img {
    width: 38px;
    height: 38px;
    transition: transform 0.3s ease;
}

.social-links .social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-icon:hover img {
    transform: scale(1.1);
}

/* Адаптация под мобильные устройства */
@media (max-width: 992px) {
    #section4 .row {
        flex-direction: column-reverse;
    }
    
    .founder-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon {
        margin-bottom: 10px;
    }
    
    .founder-img {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .founder-img {
        width: 100px;
        height: 100px;
    }
    
    .contact-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .founder-img {
        height: 120px;
    }
    
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@keyframes border-pulse {
    0% { border-color: rgba(52, 152, 219, 0.15); }
    50% { border-color: rgba(52, 152, 219, 0.4); }
    100% { border-color: rgba(52, 152, 219, 0.15); }
}

/* ===== Секция контактов ===== */
/* Секция Контакты (#section4) */
#section4 {
    background: linear-gradient(135deg, 
        rgba(15, 15, 15, 0.98),
        rgba(30, 30, 30, 0.97)) 
        fixed;
    backdrop-filter: blur(20px);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Контейнер для центрирования контента */
#section4 .container {
    max-width: 1400px; /* Увеличенная максимальная ширина для единообразия */
    padding: 0 1rem;
}

/* Заголовок секции */
#section4 h2 {
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 4rem !important;
    position: relative;
    z-index: 2;
    color: #fff;
    opacity: 0; /* Для анимации появления */
}

/* Карточки основателей */
.founder-card {
    background: rgba(25, 25, 35, 0.95);
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.5s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    opacity: 0; /* Для анимации появления */
    overflow: visible; /* Чтобы аватар не обрезался */
}

/* Эффект при наведении на карточку */
.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.3);
}

/* Аватар основателя */
.founder-img {
    width: 160px;
    height: 160px;
    border: 4px solid #3498db;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: -80px; /* Выступает над карточкой */
    left: 50%;
    transform: translateX(-50%); /* Центрирование по горизонтали */
    z-index: 3;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Эффект при наведении на аватар */
.founder-card:hover .founder-img {
    transform: translateX(-50%) scale(1.05) rotate(3deg); /* Центрирование сохраняется */
    box-shadow: 0 0 40px rgba(52, 152, 219, 0.4);
}

/* Контент карточки */
.founder-content {
    text-align: center;
    padding-top: 100px; /* Отступ сверху, чтобы контент начинался ниже аватара */
}

/* Имя основателя */
.founder-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Линия под именем */
.founder-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, transparent);
    margin: 1rem auto;
    border-radius: 2px;
    opacity: 0.8;
    transition: width 0.3s ease;
}

.founder-card:hover .founder-line {
    width: 100px;
}

/* Позиция (должность) */
.position {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Биография */
.bio {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* Социальные иконки */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-5px);
}

.social-icon:hover img {
    transform: scale(1.1);
}

/* Контактные карточки */
.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    opacity: 0; /* Для анимации появления */
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.contact-inner {
    text-align: center;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 15px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-card:hover .icon-box {
    transform: scale(1.1);
    background: rgba(52, 152, 219, 0.2);
}

.contact-icon {
    width: 30px;
    height: 30px;
}

.contact-card h5 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3498db;
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: #3498db;
}

.contact-link:hover::after {
    width: 100%;
}

/* Анимации появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.founder-card.animate__fadeInLeft {
    animation: fadeInLeft 0.5s ease forwards;
}

.founder-card.animate__fadeInRight {
    animation: fadeInRight 0.5s ease forwards;
}

.contact-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* Задержка анимации для последовательного появления */
.founder-card:nth-child(1) {
    animation-delay: 0.2s;
}

.founder-card:nth-child(2) {
    animation-delay: 0.4s;
}

.contact-card:nth-child(1) {
    animation-delay: 0.6s;
}

.contact-card:nth-child(2) {
    animation-delay: 0.8s;
}

.contact-card:nth-child(3) {
    animation-delay: 1s;
}

.contact-card:nth-child(4) {
    animation-delay: 1.2s;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1200px) {
    .founder-img {
        width: 140px;
        height: 140px;
        top: -70px;
    }

    .founder-content {
        padding-top: 80px;
    }
}

@media (max-width: 992px) {
    #section4 {
        padding: 4rem 0;
    }

    .founder-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .founder-img {
        width: 120px;
        height: 120px;
        top: -60px;
    }

    .founder-content {
        padding-top: 70px;
    }

    .bio {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .founder-card {
        padding: 1.5rem;
    }

    .founder-img {
        width: 100px;
        height: 100px;
        top: -50px;
    }

    .founder-content {
        padding-top: 60px;
    }

    .contact-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .icon-box {
        width: 50px;
        height: 50px;
    }

    .contact-icon {
        width: 25px;
        height: 25px;
    }

    .founder-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .founder-img {
        width: 80px;
        height: 80px;
        top: -40px;
    }

    .founder-content {
        padding-top: 50px;
    }

    .founder-content h3 {
        font-size: 1.3rem;
    }

    .bio {
        font-size: 0.9rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon img {
        width: 24px;
        height: 24px;
    }
}

/* ============================== */
/* Секция Ивентов (#section3) */
/* ============================== */

/* ============================== */
/* Секция Ивентов (#section3) */
/* ============================== */

/* Секция ивентов */
#section3 {
    background: #0a0a0a;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Заголовок секции */
#section3 h2 {
    font-weight: 700; /* Жирный шрифт */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Тень для глубины */
    margin-bottom: 4rem !important; /* Отступ снизу */
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    opacity: 0; /* Для анимации */
}

/* Контейнер для центрирования и выравнивания блоков */
#section3 .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 0 1rem;
    max-width: 1400px;
}

/* Обертка ивентов */
.events-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(25, 25, 35, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(52, 152, 219, 0.15);
    transition: transform 0.3s ease, box-shadow 0.5s ease;
    height: 500px;
    position: relative;
    box-shadow: 0 0 0 rgba(52, 152, 219, 0);
}

/* Эффект при наведении на обертку */
.events-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.3);
}

/* Заголовок и кнопки управления */
.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Трек с карточками */
.events-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 1rem 0;
    height: calc(100% - 6rem);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.events-track::-webkit-scrollbar {
    display: none;
}

/* Карточки ивентов */
.event-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 20px;
    padding: 2rem;
    min-width: 320px;
    height: 100%;
    transition: transform 0.3s ease;
    opacity: 0;
    position: relative;
}

.event-card.animate__fadeInUp {
    opacity: 1;
}

.event-card:hover {
    transform: scale(1.05);
    z-index: 1;
}

.event-date {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 1rem;
}

.event-card h3 {
    margin-bottom: 1rem;
}

.event-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.event-footer {
    display: flex;
    justify-content: flex-end;
}

.event-link {
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.event-link:hover {
    color: #3498db;
}

.event-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3498db;
    transition: width 0.3s ease;
}

.event-link:hover::after {
    width: 100%;
}

/* Обертка календаря */
.calendar-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(25, 25, 35, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(52, 152, 219, 0.15);
    transition: transform 0.3s ease, box-shadow 0.5s ease;
    height: 500px;
    position: relative;
    box-shadow: 0 0 0 rgba(52, 152, 219, 0);
}

/* Эффект при наведении на календарь */
.calendar-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.3);
}

/* Заголовок календаря */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Сетка календаря */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 55px;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
    min-height: 0;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.calendar-grid::-webkit-scrollbar {
    display: none;
}

.day {
    text-align: center;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

.date {
    text-align: center;
    padding: 0.5rem;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.date.has-event::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #3498db;
    border-radius: 50%;
}

.date:hover {
    background: rgba(52, 152, 219, 0.1);
}

/* Кнопки управления */
.scroll-btn, .month-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.scroll-btn:hover, .month-btn:hover {
    color: #3498db;
    transform: translateY(-2px);
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.calendar-grid > div {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 992px) {
    .events-wrapper, .calendar-wrapper {
        max-width: 100%;
        height: auto;
        padding: 2rem;
    }

    .events-track {
        flex-direction: column;
        height: auto;
        overflow-x: hidden;
        padding: 0.5rem 0;
    }

    .event-card {
        min-width: 100%;
        height: auto;
        margin: 0.5rem 0;
    }

    .calendar-grid {
        grid-auto-rows: 50px;
        height: auto;
        max-height: unset;
    }
}

@media (max-width: 768px) {
    #section3 {
        padding: 4rem 0;
    }

    .events-wrapper, .calendar-wrapper {
        padding: 1.5rem;
    }

    .event-card {
        padding: 1.5rem;
    }

    .calendar-grid {
        grid-auto-rows: 40px;
        font-size: 1rem;
    }

    .date {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .events-wrapper, .calendar-wrapper {
        padding: 1rem;
    }

    .event-card {
        padding: 1rem;
    }

    .calendar-grid {
        grid-auto-rows: 35px;
    }
}

/* Стили для секции FAQ */

#section5 {
    background: #0a0a0a; /* Темный фон, как в первой секции */
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Тонкая граница сверху */
    padding: 6rem 0; /* Внутренние отступы сверху и снизу */
    position: relative;
    overflow: hidden; /* Скрытие переполнения для чистоты дизайна */
}

/* Контейнер для центрирования контента */
#section5 .container {
    max-width: 900px; /* Ограничение ширины для читаемости */
    margin: 0 auto; /* Центрирование */
    padding: 0 1rem; /* Боковые отступы */
}

/* Заголовок секции */
#section5 h2 {
    font-weight: 700; /* Жирный шрифт */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Тень для глубины */
    margin-bottom: 4rem; /* Отступ снизу */
    position: relative;
    z-index: 2; /* На случай наложения элементов */
    color: #fff; /* Белый цвет текста */
    text-align: center; /* Центрирование текста */
}

/* Список FAQ */
.faq-list {
    opacity: 0; /* Начальная непрозрачность для анимации */
    animation: fadeInUp 1s ease forwards; /* Плавное появление */
}

/* Элемент FAQ */
.faq-item {
    margin-bottom: 1.5rem; /* Отступ между элементами */
    border: 1px solid rgba(52, 152, 219, 0.15); /* Тонкая рамка с легким голубым оттенком */
    border-radius: 15px; /* Закругленные углы */
    overflow: hidden; /* Скрытие переполнения */
    background: rgba(25, 25, 35, 0.95); /* Полупрозрачный темный фон */
    transition: all 0.3s ease; /* Плавные переходы для всех изменений */
}

.faq-item:hover {
    border-color: rgba(52, 152, 219, 0.3); /* Более яркая рамка при наведении */
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.1); /* Легкое свечение */
}

/* Вопрос FAQ */
.faq-question {
    padding: 1.5rem; /* Внутренние отступы */
    cursor: pointer; /* Указатель мыши для кликабельности */
    position: relative;
    transition: background 0.3s ease; /* Плавное изменение фона */
}

.faq-question:hover {
    background: rgba(52, 152, 219, 0.1); /* Легкий голубой фон при наведении */
}

.faq-question h3 {
    margin: 0; /* Убираем отступы */
    font-size: 1.2rem; /* Размер шрифта */
    color: #fff; /* Белый цвет текста */
    display: inline; /* Встроенный элемент */
}

/* Иконка переключателя */
.faq-toggle {
    position: absolute; /* Позиционирование справа */
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%); /* Центрирование по вертикали */
    font-size: 1.5rem; /* Размер иконки */
    color: #3498db; /* Голубой цвет */
    transition: transform 0.3s ease; /* Плавный поворот */
}

.faq-item.active .faq-toggle {
    transform: translateY(-50%) rotate(45deg); /* Поворот на 45 градусов при открытии */
}

/* Ответ FAQ */
.faq-answer {
    max-height: 0; /* Скрыт по умолчанию */
    overflow: hidden; /* Скрытие содержимого */
    padding: 0 1.5rem; /* Отступы при закрытии */
    opacity: 0; /* Непрозрачность для анимации */
    transform: translateY(-10px); /* Легкий сдвиг вверх для эффекта */
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s ease, 
                transform 0.5s ease; /* Плавные переходы */
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Максимальная высота для раскрытия (достаточно для большинства текстов) */
    padding: 1.5rem; /* Отступы при открытии */
    opacity: 1; /* Полная видимость */
    transform: translateY(0); /* Возврат в исходное положение */
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.9); /* Легкий белый цвет текста */
    font-size: 1rem; /* Размер шрифта */
    line-height: 1.6; /* Высота строки для читаемости */
}

/* Анимация появления секции */
@keyframes fadeInUp {
    from {
        opacity: 0; /* Начальная непрозрачность */
        transform: translateY(20px); /* Сдвиг вниз */
    }
    to {
        opacity: 1; /* Полная видимость */
        transform: translateY(0); /* Возврат в исходное положение */
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    #section5 {
        padding: 4rem 0; /* Уменьшенные отступы для мобильных */
    }

    .faq-question {
        padding: 1rem; /* Уменьшенные отступы */
    }
    
    .faq-question h3 {
        font-size: 1.1rem; /* Меньший шрифт */
    }
    
    .faq-toggle {
        font-size: 1.2rem; /* Меньшая иконка */
    }
    
    .faq-answer {
        padding: 0 1rem; /* Уменьшенные отступы при закрытии */
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem; /* Уменьшенные отступы при открытии */
    }
}

/* Секция "О нас" */
.about-section {
    background: linear-gradient(135deg, 
        rgba(15, 15, 15, 0.98),
        rgba(30, 30, 30, 0.97)) 
        fixed;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Контейнер для центрирования контента */
.about-section .container {
    max-width: 1200px;
    padding: 0 1rem;
}

/* Заголовок секции */
.about-section h2 {
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    color: #fff;
    font-size: 3rem;
}

/* Общий вводный текст */
.about-section .intro-text {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Универсальные блоки информации */
.info-block {
    background: rgba(25, 25, 35, 0.95);
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    height: 260px; /* Фиксированная высота для единообразия */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.5s ease;
}

.info-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.3);
}

/* Иконки блоков */
.block-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

/* Заголовки внутри блоков */
.info-block h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

/* Текст внутри блоков */
.info-block p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section h2 {
    animation: fadeInDown 0.5s ease forwards;
}

.about-section .intro-text {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.2s;
}

.info-block {
    animation: fadeInUp 0.5s ease forwards;
}

/* Адаптивность */
@media (max-width: 992px) {
    .info-block {
        height: auto; /* Убираем фиксированную высоту для мобильных */
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .about-section h2 {
        font-size: 2.5rem;
    }

    .about-section .intro-text {
        font-size: 1.1rem;
    }

    .info-block h3 {
        font-size: 1.4rem;
    }

    .info-block p {
        font-size: 0.95rem;
    }

    .block-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .about-section h2 {
        font-size: 2rem;
    }

    .about-section .intro-text {
        font-size: 1rem;
    }

    .info-block h3 {
        font-size: 1.3rem;
    }

    .info-block p {
        font-size: 0.9rem;
    }
}

/* Стили для карточки видеоплеера */
.video-card {
    background: rgba(25, 25, 35, 0.95); /* Темный полупрозрачный фон, как в других секциях */
    border: 1px solid rgba(52, 152, 219, 0.15); /* Легкая голубая рамка */
    border-radius: 20px; /* Закругленные края */
    padding: 1.5rem; /* Внутренние отступы */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* Тень для глубины */
    transition: transform 0.3s ease, box-shadow 0.5s ease; /* Плавные переходы */
    overflow: hidden; /* Скрытие переполнения */
}

/* Эффект свечения при наведении */
.video-card:hover {
    transform: translateY(-10px); /* Легкий подъем */
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.3); /* Голубое свечение */
}

/* Контейнер видео с сохранением пропорций */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Соотношение 16:9 */
    height: 0;
    border-radius: 15px; /* Закругленные края внутри карточки */
    overflow: hidden;
}

/* Обертка для iframe и overlay */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Наложение поверх видео */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7); /* Темный фон для контраста */
    transition: opacity 0.3s ease;
    border-radius: 15px; /* Закругленные края */
}

/* Стили для кнопки воспроизведения */
.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* Круглая форма */
    background: rgba(52, 152, 219, 0.1); /* Легкий голубой фон */
    border: 2px solid #3498db; /* Голубая рамка */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem; /* Большой значок "▶" */
    color: #3498db; /* Голубой цвет значка */
    cursor: pointer;
    transition: all 0.3s ease; /* Плавные переходы */
    animation: pulse 2s infinite; /* Анимация пульсации */
}

/* Эффект при наведении на кнопку */
.play-button:hover {
    background: #3498db; /* Заполняется голубым */
    color: #fff; /* Белый значок */
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5); /* Свечение */
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .video-container {
        padding-bottom: 75%; /* Более высокое соотношение для маленьких экранов */
    }
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 2rem; /* Уменьшенный значок */
    }
}

/* Полноэкранный контейнер для видео */
.video-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Затемнённый фон */
    display: none; /* Скрыт по умолчанию */
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Выше всего остального */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Показ при активации */
.video-fullscreen.show {
    display: flex;
    opacity: 1;
}

/* Стили для полноэкранного iframe */
.video-fullscreen iframe {
    max-width: 90%;
    max-height: 90%;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 2px solid rgba(52, 152, 219, 0.5); /* Голубая рамка */
}

/* Анимация появления */
.video-fullscreen.show iframe {
    animation: zoomIn 0.5s ease forwards;
}

/* Анимация исчезновения */
.video-fullscreen:not(.show) iframe {
    animation: zoomOut 0.5s ease forwards;
}

/* Кнопка закрытия */
.video-fullscreen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-fullscreen-close:hover {
    transform: scale(1.2);
}

/* Анимации */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .video-fullscreen iframe {
        max-width: 95%;
        max-height: 80%;
    }
}

.about-section {
    background: linear-gradient(135deg, 
        rgba(15, 15, 15, 0.98),
        rgba(30, 30, 30, 0.97)) 
        fixed;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-section .container {
    max-width: 1200px;
    padding: 0 1rem;
}

.about-section h2 {
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 4rem;
    color: #fff;
    font-size: 3.5rem;
}

.info-block {
    background: rgba(25, 25, 35, 0.95);
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.5s ease;
}

.info-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.3);
}

.block-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.info-block:hover .block-icon {
    transform: scale(1.1);
}

.info-block h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.info-block p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Стили для архива */
.archive-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98), rgba(30, 30, 30, 0.97));
}

.archive-section h2 {
    font-weight: 700; /* Делаем текст жирным */
}

.archive-list {
    max-width: 900px;
    margin: 0 auto;
}

.archive-event-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Остальные стили остаются без изменений */
.archive-event-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.4);
}

.archive-event-header {
    padding: 10px 0;
}

.archive-event-title {
    color: #fff;
    font-family: 'Arial', sans-serif;
    font-size: 1.5rem;
    margin: 0;
}

.archive-event-dates {
    display: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid rgba(52, 152, 219, 0.15);
}

.archive-date-btn {
    background: rgba(52, 152, 219, 0.1);
    border: none;
    color: #3498db;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.archive-date-btn:hover {
    background: rgba(52, 152, 219, 0.3);
    color: #fff;
    transform: scale(1.05);
}

.archive-date-btn.active {
    background: #3498db;
    color: #fff;
}

.archive-event-content {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border-top: 1px solid rgba(52, 152, 219, 0.15);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.archive-event-content.active {
    padding: 20px 0;
}

/* Стили скриншотов */
.archive-photos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-top: 20px;
}

.archive-screenshot-slide {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
    opacity: 0.7;
}

.archive-screenshot-slide:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: rgba(52, 152, 219, 0.8);
}

/* Стили видео */
.archive-player {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-player:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.4);
}

.archive-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 15px;
    overflow: hidden;
}

.archive-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.archive-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.archive-play-button {
    width: 60px;
    height: 60px;
    background: rgba(52, 152, 219, 0.8);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.archive-play-button:hover {
    transform: scale(1.1);
    background: #3498db;
}

.archive-play-button span {
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

/* Полноэкранный просмотр видео */
.archive-video-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.archive-video-fullscreen.show {
    display: flex;
    opacity: 1;
}

.archive-video-fullscreen iframe {
    width: 90%;
    height: 90%;
    border-radius: 15px;
    border: 2px solid rgba(52, 152, 219, 0.5);
}

.archive-video-fullscreen.show iframe {
    animation: zoomIn 0.5s ease forwards;
}

.archive-video-fullscreen:not(.show) iframe {
    animation: zoomOut 0.5s ease forwards;
}

.archive-video-fullscreen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.archive-video-fullscreen-close:hover {
    transform: scale(1.2);
}

/* Полноэкранный просмотр скриншотов */
.archive-screenshot-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.archive-screenshot-fullscreen.show {
    display: flex;
    opacity: 1;
}

.archive-screenshot-fullscreen img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    border: 2px solid rgba(52, 152, 219, 0.5);
}

.archive-screenshot-fullscreen.show img {
    animation: zoomIn 0.5s ease forwards;
}

.archive-screenshot-fullscreen:not(.show) img {
    animation: zoomOut 0.5s ease forwards;
}

.archive-screenshot-fullscreen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.archive-screenshot-fullscreen-close:hover {
    transform: scale(1.2);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes zoomOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.8); opacity: 0; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .archive-event-title { font-size: 1.2rem; }
    .archive-date-btn { padding: 6px 15px; font-size: 0.85rem; }
    .archive-screenshot-slide { width: 100px; height: 60px; }
}

@media (max-width: 576px) {
    .archive-event-card { padding: 15px; }
    .archive-event-title { font-size: 1rem; }
    .archive-date-btn { padding: 5px 12px; font-size: 0.8rem; }
    .archive-screenshot-slide { width: 80px; height: 50px; }
}