/* ===== Базовые настройки ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.highlight {
    color: #d4af37;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Навигация ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

/* Ссылки меню (на ПК видны) */
.nav-links {
    list-style: none;
    display: flex !important;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 16px;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #d4af37;
}

.nav-links li a.cta-btn {
    background-color: #d4af37;
    color: #1a1a1a;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.nav-links li a.cta-btn:hover {
    background-color: #e2c05e;
    transform: scale(1.05);
}

/* Бургер-меню (скрыто на ПК) */
.burger {
    display: none !important;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #d4af37;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Главная секция (Hero) ===== */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 21, 15, 0.4); /* Затемнение уменьшено */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-content h1 {
    font-weight: 300;
    font-size: 2.2rem;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.hero-content h1 .highlight {
    font-weight: 600;
}

.hero-btn {
    display: inline-block;
    background-color: #d4af37;
    color: #121212;
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.hero-btn:hover {
    background-color: #e2c05e;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* ===== Блок информации + VK ===== */
.info-section {
    padding: 60px 5%;
    background-color: #121212;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.info-text {
    text-align: left;
}

.info-text h2 {
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 15px;
}

.info-text p {
    color: #aaa;
    max-width: 600px;
}

.vk-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.vk-link svg {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    fill: #d4af37;
    transition: all 0.3s ease;
}

.vk-link:hover svg {
    fill: #e2c05e;
    transform: scale(1.1);
}

/* ===== Общие элементы (Страницы) ===== */
.page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 40px;
}

.back-home-btn {
    display: inline-block;
    padding: 12px 35px;
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-home-btn:hover {
    background-color: #d4af37;
    color: #121212;
    transform: scale(1.05);
}

/* ===== Страница "О нас" ===== */
.about-page {
    padding: 80px 5%;
    background-color: #121212;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.about-image {
    flex: 1;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: #d4af37;
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text h3.subtitle {
    color: #d4af37;
    font-weight: 500;
    margin-top: 25px;
    margin-bottom: 15px;
}

.about-text p {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-text ul {
    color: #e0e0e0;
    list-style: none;
    padding-left: 0;
    line-height: 1.8;
}

.about-text ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.about-text ul li::before {
    content: '◆';
    color: #d4af37;
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 1px;
}

.about-item.reverse {
    flex-direction: row-reverse;
}

/* ===== Страница "Команда" (сетка и модалки) ===== */
.team-section {
    padding: 80px 5%;
    background-color: #121212;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.team-card {
    background-color: #1a1a1a;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.team-card:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
}

.card-photo {
    width: 100%;
    height: 220px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.card-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #d4af37;
    margin-bottom: 5px;
}

.card-role {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 400;
    transition: color 0.3s ease;
}

.team-card:hover .card-role {
    color: #d4af37;
}

/* Модальные окна команды */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 20px;
    border: 1px solid #d4af37;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #d4af37;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.modal-photos {
    flex: 1;
    min-width: 250px;
}

.modal-photos .swiper {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #d4af37;
}

.modal-photos .swiper-slide {
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-photos .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-photos .swiper-button-next,
.modal-photos .swiper-button-prev {
    color: #d4af37;
}

.modal-photos .swiper-pagination-bullet-active {
    background: #d4af37;
}

.modal-info {
    flex: 1.5;
}

.modal-info .member-role {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-info .member-name {
    color: #d4af37;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-info .member-desc {
    color: #e0e0e0;
    line-height: 1.8;
}

/* ===== Страница "Вступить" ===== */
.join-section {
    position: relative;
    padding: 80px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.join-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 0;
}

.form-card {
    position: relative;
    z-index: 1;
    background-color: #1a1a1a;
    padding: 50px 60px;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.form-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #aaa;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.form-group input {
    background-color: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input::placeholder {
    color: #777;
}

.form-group input:focus {
    border-color: #d4af37;
    background-color: #2d2d2d;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.submit-btn {
    margin-top: 20px;
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    border-radius: 8px;
}

.form-footnote {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-top: -5px;
}

/* ===== Страница "Мероприятия" ===== */
.events-section {
    padding: 80px 5%;
    background-color: #121212;
}

.tabs-container {
    max-width: 1100px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.tab-btn:hover {
    color: #d4af37;
}

.tab-btn.active {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.event-photo {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.3);
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-info {
    flex: 1;
}

.event-date {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-info h3 {
    color: #d4af37;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-info p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Модальные окна мероприятий (аналогичны командным) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 20px;
    border: 1px solid #d4af37;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    animation: fadeInModal 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #d4af37;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.modal-photos {
    flex: 1;
    min-width: 250px;
}

.modal-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #d4af37;
}

.modal-info {
    flex: 1.5;
}

.modal-info .member-role {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-info h3 {
    color: #d4af37;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-info .event-desc {
    color: #e0e0e0;
    line-height: 1.8;
}


/* ===== АДАПТИВНОСТЬ (МЕДИА-ЗАПРОСЫ) ===== */

/* Планшеты и небольшие экраны */
@media (max-width: 992px) {
    .about-item, .about-item.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }
    .about-item.reverse {
        flex-direction: column-reverse; /* На телефонах картинка строго сверху текста */
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    /* Навигация */
    .navbar {
        padding: 15px 5%;
    }
    
    .nav-links {
        display: none !important;
        flex-direction: column;
        width: 100%;
        background-color: #1a1a1a;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px 0;
        gap: 15px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .burger {
        display: flex !important;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Info + VK */
    .info-wrapper {
        flex-direction: column;
        gap: 25px;
    }
    
    .info-text {
        text-align: center;
    }
    
    .info-text p {
        max-width: 100%;
    }
    
    .vk-link {
        margin-left: 0;
    }
    
    /* Страница "О нас" */
    .about-text h2 {
        font-size: 1.5rem;
    }
    
    /* Страница "Команда" */
    .team-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки, чтобы всё влезло */
        gap: 12px; /* Уменьшен зазор */
        padding: 0 5px;
    }
    
    .team-card {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .card-photo {
        height: 140px; /* Уменьшаем высоту фото, чтобы влез весь блок */
    }
    
    .card-info {
        padding: 10px; /* Сокращаем отступы */
    }

    .card-name {
        font-size: 0.85rem; /* Уменьшаем имя, чтобы не расползалось */
        margin-bottom: 3px;
    }

    .card-role {
        font-size: 0.75rem; /* Уменьшаем должность */
    }
    
    .team-section .page-title {
        font-size: 1.2rem; /* Делаем заголовок компактным */
    }
    
    .modal-body {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-photos {
        width: 100%;
        min-width: unset;
    }
    
    .modal-photos .swiper {
        height: 220px;
    }
    
    .modal-info .member-name {
        font-size: 1.4rem;
    }
    
    /* Страница "Вступить" */
    .form-card {
        padding: 30px 20px;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
    
    /* Страница "Мероприятия" */
    .events-section .page-title {
        font-size: 1.8rem;
        text-align: center;
        display: block;
        width: 100%;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .event-photo {
        width: 100%;
        height: 200px;
    }
    
    .tab-btn {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .tab-buttons {
        gap: 10px;
    }
    
    .modal-body {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-photos {
        width: 100%;
        min-width: unset;
    }
    
    .modal-photos img {
        height: 220px;
        object-fit: cover;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.2rem;
    }
    
        /* Увеличиваем логотип на телефонах */
    .logo img {
        height: 80px
    }
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .about-text h2 {
        font-size: 1.2rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
}
/* --- ЖЕСТКОЕ ПЕРЕОПРЕДЕЛЕНИЕ ДЛЯ МОБИЛЬНЫХ (КОМАНДА) --- */
@media (max-width: 768px) {
    /* Навигация */
    .navbar {
        padding: 15px 5%;
    }
    .nav-links {
        display: none !important;
        flex-direction: column;
        width: 100%;
        background-color: #1a1a1a;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px 0;
        gap: 15px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
    .nav-links.active {
        display: flex !important;
    }
    .burger {
        display: flex !important;
    }

    /* Логотип на телефонах */
    .logo img {
        height: 80px !important;
    }

    /* --- ЖЕСТКИЕ СТИЛИ ДЛЯ КОМАНДЫ --- */
    .team-section .page-title {
        font-size: 1.2rem !important;
        text-align: center !important;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 5px !important;
    }
    .team-card {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
    .card-photo {
        height: 130px !important;
    }
    .card-info {
        padding: 8px 5px !important;
    }
    .card-name {
        font-size: 0.85rem !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
    }
    .card-role {
        font-size: 0.7rem !important;
    }
}

/* АБСОЛЮТНО ЖЁСТКОЕ ПЕРЕОПРЕДЕЛЕНИЕ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 768px) {
    html body .team-section .page-title {
        font-size: 1.2rem !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    html body .team-section .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 5px !important;
    }
    html body .team-section .team-card {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    html body .team-section .card-photo {
        height: 130px !important;
    }
    html body .team-section .card-info {
        padding: 6px 4px !important;
    }
    html body .team-section .card-name {
        font-size: 0.8rem !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
    }
    html body .team-section .card-role {
        font-size: 0.65rem !important;
    }
}