/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== СТРУКТУРА ДЛЯ ПРИЛИПАНИЯ ПОДВАЛА ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background-color: #0c0f15;
    color: #e5e9f0;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Глобальный запрет горизонтального скролла */
html {
    overflow-x: hidden;
    width: 100%;
}

.main {
    flex: 1 0 auto;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
    width: 100%;
}

.footer {
    flex-shrink: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== ШАПКА (ЕДИНАЯ ДЛЯ ВСЕХ) ===== */
.header {
    background: linear-gradient(180deg, #0f1219 0%, rgba(12,15,21,0.98) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff8e7, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    line-height: 1.2;
    z-index: 1001;
    white-space: nowrap;
}

.logo span {
    font-size: 0.65rem;
    color: #d4af37;
    display: block;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

/* ===== БУРГЕР-МЕНЮ (ИСПРАВЛЕННОЕ) ===== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #d4af37;
    border-radius: 3px;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 10px;
}

.burger span:nth-child(3) {
    top: 20px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: #b9c4d1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #f5e6b3);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #d4af37;
    font-weight: 600;
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.page-header {
    text-align: center;
    margin: 20px 0 40px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #a0aec0;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== СТАТИСТИКА (ДЛЯ ГЛАВНОЙ - ПЛАШКИ С ПОДСВЕТКОЙ) ===== */
.stats-row {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 100px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 15px 10px;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #d4af37;
    line-height: 1.2;
    margin: 0;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a0aec0;
    line-height: 1.3;
    margin: 0;
}

/* ===== СТАТИСТИКА В КАРТОЧКАХ (ДЛЯ WOT И TARKOV) ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(145deg, #131821, #0e121b);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 20px 12px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f5e6b3);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.4);
}

.stat-card:hover::before {
    transform: translateX(0);
}

.stat-icon {
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 10px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #d4af37;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.7rem;
    color: #b9c4d1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===== ФОТО С РАМКОЙ (КАК НА ГЛАВНОЙ) ===== */
.photo-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 40px -20px #000, 0 0 0 2px rgba(212, 175, 55, 0.3), 0 0 0 4px rgba(12,15,21,0.9);
    transform: rotate(1deg);
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1), box-shadow 0.4s ease;
    aspect-ratio: 4/5;
}

.photo-frame:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 40px 60px -20px #000, 0 0 0 3px #d4af37, 0 0 0 6px rgba(212,175,55,0.15);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.photo-frame:hover img {
    transform: scale(1.05);
}

/* ===== ЗАГОЛОВКИ СЕКЦИЙ ===== */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 30px 0 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, transparent);
}

.section-title.center {
    display: block;
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== КАРТОЧКИ С ДИНАМИЧЕСКОЙ ПОЛОСОЙ ===== */
.card {
    background: linear-gradient(145deg, #131821, #0e121b);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    padding: 25px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f5e6b3);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

.card:hover::before {
    transform: translateX(0);
}

/* ===== ТАБЛИЦЫ ===== */
.table-container {
    background: linear-gradient(145deg, #131821, #0e121b);
    border-radius: 20px;
    padding: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-container table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.table-container th {
    text-align: left;
    padding: 15px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #d4af37;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-container td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: #e5e9f0;
}

.table-container tr:hover td {
    background: rgba(212, 175, 55, 0.05);
}

.table-container .gold {
    color: #d4af37;
    font-weight: 600;
}

.table-container .win {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid #d4af37;
}

/* ===== КОНТАКТЫ ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0 50px;
}

.contact-card {
    background: linear-gradient(145deg, #131821, #0e121b);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 25px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #e5e9f0;
    display: block;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f5e6b3);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
}

.contact-card:hover::before {
    transform: translateX(0);
}

.contact-icon {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.contact-card .handle {
    font-size: 1rem;
    color: #d4af37;
    margin-bottom: 12px;
    word-break: break-word;
}

.contact-card .description {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== РАСПИСАНИЕ ===== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.schedule-item {
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.schedule-item:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-3px);
}

.schedule-item .day {
    color: #d4af37;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.schedule-item .time {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.schedule-item .platform {
    color: #a0aec0;
    font-size: 0.9rem;
}

.schedule-item .platform i {
    color: #d4af37;
    margin-right: 5px;
}

/* ===== КНОПКА TWITCH ===== */
.twitch-button {
    display: inline-block;
    background: #d4af37;
    color: #0c0f15;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.twitch-button:hover {
    background: transparent;
    color: #d4af37;
    border-color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px #d4af37;
}

.twitch-button i {
    margin-right: 8px;
}

/* ===== ДОПОЛНИТЕЛЬНАЯ ИНФОРМАЦИЯ ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.info-item {
    background: rgba(19,24,33,0.5);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.info-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.info-item i {
    color: #d4af37;
    font-size: 2rem;
    margin-bottom: 10px;
}

.info-item h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.info-item p {
    color: #d4af37;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ===== БИЗНЕС КАРТОЧКА ===== */
.business-card {
    background: rgba(212, 175, 55, 0.05);
    border-radius: 30px;
    padding: 30px 25px;
    margin: 40px 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.business-card:hover {
    border-color: #d4af37;
    transform: translateY(-3px);
}

.business-title {
    font-size: 1.3rem;
    color: #d4af37;
    margin-bottom: 15px;
    font-weight: 600;
}

.business-title i {
    margin: 0 5px;
}

.business-email {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    word-break: break-word;
}

.business-email i {
    color: #d4af37;
    margin-right: 8px;
}

.business-note {
    color: #a0aec0;
    font-size: 0.95rem;
}

/* ===== ФУТЕР (ЕДИНЫЙ) ===== */
.footer {
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 25px 0;
    margin-top: 50px;
    text-align: center;
    color: #68748e;
}

.legacy {
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.legacy i {
    color: #d4af37;
    margin: 0 5px;
}

.footer-copyright {
    font-size: 0.7rem;
    color: #5a6578;
}

/* ===== ЛАЙТБОКС (ОБЩИЕ СТИЛИ) ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.98);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
}

/* Запрещаем скролл страницы при открытом лайтбоксе */
body:has(.lightbox.active) {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border: 3px solid #d4af37;
    border-radius: 20px;
    box-shadow: 0 30px 50px -20px #000;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3.5rem;
    color: #d4af37;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.2);
    color: #fff;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ===== АДАПТАЦИЯ ЛАЙТБОКСА ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 600px) {
    .lightbox-img {
        max-width: 95%;
        max-height: 85vh;
        object-fit: contain;
    }

    /* Круглая подложка для крестика */
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 2.2rem;
        background: rgba(0, 0, 0, 0.7);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        color: #fff;
        border: 1px solid rgba(212, 175, 55, 0.3);
        backdrop-filter: blur(2px);
    }

    .lightbox-close:hover {
        background: rgba(212, 175, 55, 0.8);
        color: #0c0f15;
        transform: rotate(90deg) scale(1.1);
    }

    /* Прямоугольная подложка для подписи на всю ширину */
    .lightbox-caption {
        bottom: 0;
        left: 0;
        right: 0;
        font-size: 1rem;
        padding: 15px 20px;
        background: rgba(0, 0, 0, 0.8);
        border-top: 1px solid rgba(212, 175, 55, 0.3);
        text-shadow: none;
        width: 100%;
        text-align: left;
        backdrop-filter: blur(2px);
    }
}

/* Для очень высоких фото */
@media (max-width: 600px) and (min-aspect-ratio: 9/16) {
    .lightbox-img {
        max-height: 80vh;
    }
}

/* Для очень широких фото */
@media (max-width: 600px) and (max-aspect-ratio: 9/16) {
    .lightbox-img {
        max-width: 100%;
    }
}

/* ===== АДАПТАЦИЯ ДЛЯ РАЗНЫХ ЭКРАНОВ ===== */
@media (max-width: 1000px) {
    .nav-menu {
        gap: 16px;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .burger {
        display: flex;
        position: relative;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #0f1219;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 15px;
        padding: 80px 30px 30px 30px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(212, 175, 55, 0.2);
        z-index: 1001;
        overflow-y: auto;
        box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        white-space: normal;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    /* Затемнение фона при открытом меню */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        pointer-events: none;
    }

    /* Когда меню открыто, логотип не должен быть выше */
    body.menu-open .logo {
        z-index: 1000;
    }
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 10px 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo span {
        font-size: 0.55rem;
    }

    .main {
        padding: 15px;
    }

    .stats-row {
        gap: 6px;
    }

    .stat-item {
        min-width: 70px;
        padding: 12px 6px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 25px 15px;
    }

    .contact-card {
        padding: 25px 15px;
    }

    .contact-icon {
        font-size: 2.5rem;
    }

    .contact-card h3 {
        font-size: 1.3rem;
    }

    .footer {
        padding: 20px 0;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1400px) {
    .nav-link {
        font-size: 1rem;
    }

    .page-title {
        font-size: 4rem;
    }
}
