﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Raleway, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Первый экран ------------------------------------------------------------------------- */
.hero {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)), url('/landing/assets/background-photo-1.jpg') center/cover no-repeat;
        z-index: -1;
    }

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-text h2 {
    font-size: 3.2rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #cbd5e1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: #fbbf24;
    font-weight: 700;
}

.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.7);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
}

    .feature i {
        color: #f59e0b;
    }

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
    }

/* --- Видео-секция ------------------------------------------------------------------------- */
.video-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

    .section-title:after {
        content: '';
        position: absolute;
        width: 100px;
        height: 4px;
        background: linear-gradient(90deg, #f59e0b, #fbbf24);
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
    }

.video-container {
    /*max-width: 900px;*/
    max-width: 450px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.video-wrapper {
    position: relative;
    /*padding-bottom: 56.25%;*/ /* 16:9 соотношение */
    padding-bottom: 177.78%;
    height: 0;
    background-color: #1e293b;
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/landing/assets/what-is-game-260113-cover.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: opacity 0.3s;
}

    .video-poster.hidden {
        opacity: 0;
        pointer-events: none;
    }

.play-button {
    background: rgba(245, 158, 11, 0.9);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

    .play-button:hover {
        transform: scale(1.1);
        background: rgba(245, 158, 11, 1);
    }

.video-poster-text {
    font-size: 1.3rem;
    color: white;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.video-btn {
    background: rgba(15, 23, 42, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .video-btn:hover {
        background: rgba(245, 158, 11, 0.9);
        transform: scale(1.1);
    }

@media (max-width: 768px) {
    .video-container {
        max-width: 350px; /* Еще уже на мобильных */
    }

    .play-button {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .video-poster-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .video-container {
        max-width: 300px;
    }
}

/* --- Галерея ------------------------------------------------------------------------- */
.gallery-section {
    padding: 80px 0;
    background-color: #0f172a;
}

.gallery-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    height: 500px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

    .gallery-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    padding: 30px;
    color: white;
}

    .slide-overlay h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.gallery-nav-btn {
    background: rgba(15, 23, 42, 0.8);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .gallery-nav-btn:hover {
        background: rgba(245, 158, 11, 0.9);
        transform: scale(1.1);
    }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.gallery-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #475569;
    cursor: pointer;
    transition: all 0.3s;
}

    .gallery-dot.active {
        background-color: #f59e0b;
        transform: scale(1.2);
    }

/* Особенности игры */
.features-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

    .feature-card:hover {
        transform: translateY(-10px);
    }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    color: #f59e0b;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card p {
    color: #cbd5e1;
}

/* Расписание */
.schedule-section {
    padding: 80px 0;
    background-color: #0f172a;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.schedule-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.schedule-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(245, 158, 11, 0.5);
}

    .schedule-badge i {
        color: #f59e0b;
    }

    .schedule-badge span {
        color: #fbbf24;
        font-weight: 600;
    }

.schedule-card-header {
    text-align: left;
    margin-bottom: 30px;
    padding-right: 120px;
}

    .schedule-card-header h2 {
        font-size: 2rem;
        margin-bottom: 10px;
        color: #fbbf24;
    }

.schedule-card-date {
    font-size: 1.2rem;
    color: #cbd5e1;
    font-weight: 600;
}

.schedule-card-details {
    margin-bottom: 30px;
}

    .schedule-card-details p {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #cbd5e1;
        line-height: 1.6;
    }

.schedule-card-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: #cbd5e1;
}

    .info-item i {
        color: #f59e0b;
        font-size: 1.3rem;
        width: 30px;
    }

.voting-cookie-item i {
    color: #f59e0b;
    font-size: 1.3rem;
}
.voting-cookie-item-inactive i {
    color: #7f7f7f;
    font-size: 1.3rem;
}

.price {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 30px;
    justify-content: flex-start;
}

.ticket-icon {
    color: #f59e0b;
    font-size: 2.2rem;
}

.schedule-button {
    text-align: left;
}

/* Таблица лидеров */
.leaderboard-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.leaderboard-container {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

    .leaderboard-table th {
        background-color: #f59e0b;
        color: #0f172a;
        padding: 20px 15px;
        text-align: center;
        font-weight: 700;
        font-size: 1.1rem;
    }

    .leaderboard-table td {
        padding: 18px 15px;
        text-align: center;
        border-bottom: 1px solid #334155;
    }

    .leaderboard-table tr:nth-child(even) {
        background-color: rgba(30, 41, 59, 0.5);
    }

    .leaderboard-table tr:hover {
        background-color: rgba(245, 158, 11, 0.1);
    }

.rank-cell {
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rank-change {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 5px;
}

.rank-up {
    color: #10b981;
}

.rank-down {
    color: #ef4444;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.player-icon {
    font-size: 1.5rem;
    color: #f59e0b;
    width: 40px;
    text-align: center;
}

.player-name {
    font-weight: 700;
    color: #fbbf24;
}

.games-count {
    /*display: flex;*/
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.games-count-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 5px;
}

.solo-team {
    /*display: flex;*/
    gap: 10px;
    font-size: 0.95rem;
    align-items: center;
}

.solo-count {
    color: #f59e0b;
    position: relative;
    padding-right: 16px;
    padding-left: 16px;
    white-space: nowrap;
}

    .solo-count::after {
        content: "соло";
        position: absolute;
        top: -15px;
        right: 8px;
        font-size: 0.65rem;
        color: #94a3b8;
        white-space: nowrap;
    }

.total-count, .total-count-as-team {
    color: #fbbf24;
    position: relative;
    padding-right: 16px;
    white-space: nowrap;
}

    .total-count::after {
        content: "всего";
        position: absolute;
        top: -15px;
        right: 4px;
        font-size: 0.65rem;
        color: #94a3b8;
        white-space: nowrap;
    }

.team-count {
    color: #60a5fa;
    position: relative;
    padding-left: 16px;
    white-space: nowrap;
}

    .team-count::before {
        content: "в команде";
        position: absolute;
        top: -15px;
        left: -2px;
        font-size: 0.65rem;
        color: #94a3b8;
        white-space: nowrap;
    }

.divider {
    color: #64748b;
}

.total-score {
    font-weight: 700;
    font-size: 1.4rem;
    color: #f59e0b;
}

/* Игровые режимы */
.game-modes {
    padding: 80px 0;
    background-color: #0f172a;
}

.modes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.mode-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    color: #f59e0b;
}

.mode-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.mode-card p {
    color: #cbd5e1;
    margin-bottom: 15px;
}

.mode-feature {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
}

    .mode-feature p {
        font-size: 0.95rem;
        color: #94a3b8;
        margin-bottom: 10px;
    }

.player-count {
    font-size: 1.1rem;
    color: #fbbf24;
    font-weight: 600;
    margin-top: 15px;
}

/* Футер */
footer {
    background-color: #1e293b;
    padding: 3rem 0 3rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .footer-logo img {
        width: 60px;
        height: 60px;
        object-fit: contain;
    }

    .footer-logo h2 {
        font-size: 2rem;
        background: linear-gradient(90deg, #fbbf24, #f59e0b);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 5px;
    }

    .footer-logo p {
        color: #cbd5e1;
        font-size: 1rem;
    }

/* Адаптивность */
@media (max-width: 992px) {
    .hero-text h2 {
        font-size: 2.7rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .gallery-slide {
        height: 400px;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .schedule-card-header {
        padding-right: 0;
        margin-top: 60px;
    }

    .schedule-badge {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
/*    nav ul {
        display: none;
    }
*/
    .mobile-menu-btn {
        display: block;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .features-grid, .modes-container {
        grid-template-columns: 1fr;
    }

    .gallery-slide {
        height: 300px;
    }

    .gallery-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .leaderboard-table {
        font-size: 0.9rem;
    }

        .leaderboard-table th,
        .leaderboard-table td {
            padding: 12px 8px;
        }

    .schedule-card {
        padding: 30px 25px;
    }

    .schedule-card-header {
        margin-top: 60px;
    }

        .schedule-card-header h2 {
            font-size: 1.8rem;
        }

    .price {
        font-size: 1.5rem;
    }

    .solo-team {
        flex-direction: column;
        gap: 5px;
    }

    .solo-count::after, .team-count::before, .total-count::after {
        top: -12px;
    }
}

@media (max-width: 576px) {
    .solo-count::after, .total-count::after, .team-count::before {
        content: "";
    }
    .solo-count, .total-count, .team-count {
        padding-left: 0;
        padding-right: 0;
    }

        .hero {
            padding: 80px 0;
        }

        .hero-text h2 {
            font-size: 1.8rem;
        }

        .hero-text p {
            font-size: 1.1rem;
        }

        .section-title {
            font-size: 1.8rem;
        }

        .gallery-slide {
            height: 250px;
        }

        .feature {
            font-size: 1rem;
            padding: 10px 20px;
        }

        .schedule-card {
            padding: 25px 20px;
        }

        .schedule-card-header {
            margin-top: 60px;
        }

            .schedule-card-header h2 {
                font-size: 1.5rem;
            }

        .price {
            font-size: 1.3rem;
        }
    }


.mode-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.mode-card p {
    color: #cbd5e1;
    margin-bottom: 15px;
}

.mode-feature {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
}

    .mode-feature p {
        font-size: 0.95rem;
        color: #94a3b8;
        margin-bottom: 10px;
    }

.player-count {
    font-size: 1.1rem;
    color: #fbbf24;
    font-weight: 600;
    margin-top: 15px;
}

/* Футер */
footer {
    background-color: #1e293b;
    padding: 3rem 0 3rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .footer-logo img {
        width: 60px;
        height: 60px;
        object-fit: contain;
    }

    .footer-logo h2 {
        font-size: 2rem;
        background: linear-gradient(90deg, #fbbf24, #f59e0b);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 5px;
    }

    .footer-logo p {
        color: #cbd5e1;
        font-size: 1rem;
    }

/* Адаптивность */
@media (max-width: 992px) {
    .hero-text h2 {
        font-size: 2.7rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .gallery-slide {
        height: 400px;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .schedule-card-header {
        padding-right: 0;
        margin-top: 60px;
    }

    .schedule-badge {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }



    .hero-text h2 {
        font-size: 2.2rem;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .features-grid, .modes-container {
        grid-template-columns: 1fr;
    }

    .gallery-slide {
        height: 300px;
    }

    .gallery-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .leaderboard-table {
        font-size: 0.9rem;
    }

        .leaderboard-table th,
        .leaderboard-table td {
            padding: 12px 8px;
        }

    .schedule-card {
        padding: 30px 25px;
    }

    .schedule-card-header {
        margin-top: 60px;
    }

        .schedule-card-header h2 {
            font-size: 1.8rem;
        }

    .price {
        font-size: 1.5rem;
    }

    .solo-team {
        flex-direction: column;
        gap: 5px;
    }

    .solo-count::after, .team-count::before, .total-count::after {
        top: -12px;
    }
}

@media (max-width: 576px) {
    .solo-count::after, .total-count::after, .team-count::before {
        content: "";
    }
    .solo-count, .total-count, .team-count {
        padding-left: 0;
        padding-right: 0;
    }

        .hero {
            padding: 80px 0;
        }

        .hero-text h2 {
            font-size: 1.8rem;
        }

        .hero-text p {
            font-size: 1.1rem;
        }

        .section-title {
            font-size: 1.8rem;
        }

        .gallery-slide {
            height: 250px;
        }

        .feature {
            font-size: 1rem;
            padding: 10px 20px;
        }

        .schedule-card {
            padding: 25px 20px;
        }

        .schedule-card-header {
            margin-top: 60px;
        }

            .schedule-card-header h2 {
                font-size: 1.5rem;
            }

        .price {
            font-size: 1.3rem;
        }
    }
