/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --accent-color: #1a659e;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --gray-color: #f5f5f5;
    --text-color: #333333;
    --text-light: #666666;
    --gradient-primary: linear-gradient(135deg, #ff6b35, #f7931e);
    --gradient-secondary: linear-gradient(135deg, #004e89, #1a659e);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo h2 {
    color: var(--light-color);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.nav-logo:hover h2 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.register-btn {
    background: var(--gradient-primary);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    color: var(--light-color) !important;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.register-btn::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--light-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Главная секция */
.hero {
    min-height: 100vh;
    background-image: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(45, 45, 45, 0.8) 100%), url('assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    margin-bottom: 30px;
}

.title-main {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    color: var(--light-color);
    margin-top: 10px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    width: 100%;
}

/* Обратный отсчет */
.countdown-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-container h3 {
    color: var(--light-color);
    margin-bottom: 30px;
    font-size: 1.3rem;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.time-unit {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-value {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.time-label {
    display: block;
    color: var(--light-color);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Фон героя */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.game-logos {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 100px;
    opacity: 0.1;
}

.logo-blur,
.logo-quake {
    opacity: 0.1;
}

.logo-blur img,
.logo-quake img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

/* Секции */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* О турнире */
.about {
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%), url('assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.features-list i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-item {
    text-align: center;
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    margin-top: 10px;
    font-weight: 500;
}

/* Игры */
.games {
    background: var(--light-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.game-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blur-card .game-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.quake-card .game-header {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
}

.game-header {
    padding: 40px;
    text-align: center;
    color: var(--light-color);
}

.game-icon {
    margin-bottom: 20px;
}

.game-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.game-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 10px;
}

.game-genre {
    font-size: 1.1rem;
    opacity: 0.9;
}

.game-content {
    padding: 40px;
}

.game-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.game-details {
    display: grid;
    gap: 15px;
}

.detail-item {
    padding: 15px;
    background: var(--gray-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

/* Структура турнира */
.tournament-structure {
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%), url('assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.structure-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    max-width: 1000px;
    margin: 0 auto;
}

.structure-item {
    background: var(--light-color);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 200px;
    flex: 1;
    max-width: 250px;
}

.structure-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.structure-icon {
    margin-bottom: 20px;
}

.structure-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: hue-rotate(0deg) saturate(1.2) brightness(1.1);
}

.structure-item h3 {
    font-family: 'Orbitron', monospace;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.structure-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Расписание */
.schedule {
    background: var(--light-color);
}

.schedule-note {
    background: linear-gradient(135deg, #004e89, #1a659e);
    color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.schedule-note i {
    font-size: 2rem;
}

.schedule-note p {
    font-size: 1.1rem;
    margin: 0;
}

.tournament-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.tournament-blur,
.tournament-quake {
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tournament-blur h3 {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: var(--light-color);
    padding: 30px;
    margin: 0;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tournament-blur h3 img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.tournament-quake h3 {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: var(--light-color);
    padding: 30px;
    margin: 0;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tournament-quake h3 img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.schedule-days {
    padding: 30px;
    display: grid;
    gap: 15px;
}

.day-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--gray-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.day-item:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

.day-number {
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

.day-event {
    font-weight: 500;
}

/* Результаты */
.results {
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%), url('assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.results-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 10px;
}

.tab-btn {
    padding: 15px 30px;
    background: var(--light-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.results-placeholder {
    text-align: center;
    padding: 80px 40px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.results-placeholder img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 30px;
}

.results-placeholder h3 {
    font-family: 'Orbitron', monospace;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.results-placeholder p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Регистрация */
.register {
    background: var(--light-color);
}

.register-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.register-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.register-info p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.register-benefits {
    display: grid;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--gray-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.benefit-item:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.benefit-item:hover i {
    color: var(--light-color);
}

.register-form {
    background: var(--gray-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 15px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
}

.custom-checkbox:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.custom-checkbox.selected {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.custom-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.custom-checkbox.selected .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.custom-checkbox.selected .checkmark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.custom-checkbox.selected span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Футер */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section p a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section p a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: var(--text-light);
}

/* Адаптивность */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .title-main {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 1.2rem;
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content,
    .register-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .structure-content {
        flex-direction: column;
        gap: 30px;
    }

    .structure-item {
        max-width: 100%;
        min-width: auto;
    }

    .structure-arrow {
        transform: rotate(90deg);
        font-size: 1.2rem;
    }

    .tournament-schedule {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .countdown {
        grid-template-columns: 1fr;
    }

    .time-value {
        font-size: 2rem;
    }

    .register-form {
        padding: 20px;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .nav-logo img {
        width: 30px;
        height: 30px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-card {
        padding: 20px;
    }
    
    .structure-content {
        gap: 15px;
    }
    
    .structure-item {
        padding: 20px 15px;
        min-width: 150px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Кастомные скроллбары */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
