/* ==================== TOTOGAMING - GEOMETRIC ORANGE DESIGN ==================== */

/* CSS Variables - Orange/Black Theme */
:root {
    --primary: #FF6B00;
    --primary-dark: #E65100;
    --primary-light: #FF8F00;
    --secondary: #FFA726;
    --accent: #FFB74D;
    --dark: #0D0D0D;
    --dark-card: #1A1A1A;
    --dark-secondary: #262626;
    --light: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #999999;
    --border: rgba(255, 107, 0, 0.15);
    --gradient: linear-gradient(135deg, #FF6B00 0%, #FFA726 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A1A 0%, #0D0D0D 100%);
    --shadow: 0 8px 32px rgba(255, 107, 0, 0.2);
    --shadow-lg: 0 12px 48px rgba(255, 107, 0, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== НОВЫЙ ХЕДЕР ==================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--primary);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 40px;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 10px var(--primary));
}

.logo strong {
    color: var(--primary);
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    gap: 35px;
    flex: 1;
}

.nav-desktop a {
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    padding: 8px 0;
    position: relative;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-desktop a:hover {
    color: var(--primary);
}

.nav-desktop a:hover::after {
    width: 100%;
}

/* Кнопки Header */
.header-buttons {
    display: flex;
    gap: 12px;
}

.btn-login,
.btn-register {
    padding: 12px 28px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-login {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-login:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-register {
    background: var(--gradient);
    color: white;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

/* Гамбургер */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
    z-index: 999;
    max-height: calc(100vh - 90px);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav a {
    padding: 16px 20px;
    background: var(--dark-card);
    border-left: 4px solid var(--primary);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.mobile-nav a:hover {
    background: rgba(255, 107, 0, 0.1);
    transform: translateX(5px);
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    padding-bottom: 10px;
}

.mobile-buttons .btn-login,
.mobile-buttons .btn-register {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px;
}

/* Geometric Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(30deg, transparent 0%, transparent 40%, rgba(255, 107, 0, 0.03) 40%, rgba(255, 107, 0, 0.03) 60%, transparent 60%),
        linear-gradient(90deg, rgba(255, 107, 0, 0.02) 0%, transparent 50%, rgba(255, 107, 0, 0.02) 100%);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 0;
}

/* Header - Geometric Style */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border);
    z-index: 1000;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1002;
    background: rgba(13, 13, 13, 0.95);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1003;
    position: relative;
}

.logo-badge {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: white;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text .highlight {
    color: var(--primary);
}

.main-navigation {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Buttons - Geometric Style */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 0;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    clip-path: polygon(0% 0%, 92% 0%, 100% 100%, 8% 100%);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section - Geometric Angular Design */
.hero-section {
    position: relative;
    padding: 200px 40px 140px;
    background: var(--dark);
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.05;
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 107, 0, 0.1);
    border-left: 4px solid var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 700px;
    line-height: 1.6;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

/* Stats Section - Hexagonal Cards */
.stats-section {
    padding: 100px 40px;
    background: var(--dark-card);
    position: relative;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--dark);
    border: 2px solid var(--border);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.4s;
}

.stat-card:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 52px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Section - Angular Cards */
.features-section {
    padding: 120px 40px;
    background: var(--dark);
}

.section-header {
    max-width: 800px;
    margin: 0 auto 80px;
    text-align: center;
}

.section-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255, 107, 0, 0.1);
    border-left: 3px solid var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--dark-card);
    border: 2px solid var(--border);
    padding: 50px 40px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    transition: all 0.4s;
    position: relative;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 30px;
}

.feature-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Games Grid */
.games-section {
    padding: 120px 40px;
    background: var(--dark-card);
}

.games-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.game-card {
    background: var(--dark);
    border: 2px solid var(--border);
    overflow: hidden;
    transition: all 0.4s;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.game-image {
    width: 100%;
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
    overflow: hidden;
}

.game-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.game-card:hover .game-image::after {
    left: 100%;
}

.game-info {
    padding: 20px;
}

.game-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.game-provider {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section - Angular Design */
.cta-section {
    padding: 100px 40px;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0.05;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: var(--gradient);
    padding: 80px 60px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
    position: relative;
}

.cta-title {
    font-size: 52px;
    font-weight: 900;
    color: white;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.cta-text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-content .btn {
    background: white;
    color: var(--primary);
}

/* Footer - Angular */
.main-footer {
    background: var(--dark-secondary);
    border-top: 2px solid var(--border);
    padding: 80px 40px 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 107, 0, 0.1);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.footer-section-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 15px;
    transition: all 0.3s;
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-badges {
    display: flex;
    gap: 20px;
    align-items: center;
}

.age-badge {
    padding: 8px 18px;
    background: var(--primary);
    font-weight: 800;
    color: white;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1005;
    position: relative;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1001;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    display: block;
    padding: 16px 20px;
    background: var(--dark-card);
    border: 2px solid var(--border);
    border-left: 4px solid var(--primary);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
    color: var(--text-primary);
}

.mobile-nav-link:hover, .mobile-nav-link:active {
    background: rgba(255, 107, 0, 0.1);
    border-color: var(--primary);
    transform: translateX(5px);
    color: var(--text-primary);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.mobile-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-desktop {
        gap: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Скрыть desktop элементы, показать mobile */
    .nav-desktop {
        display: none;
    }
    
    .header-buttons {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Старые классы тоже скрыть */
    .header-content {
        padding: 15px 20px;
        flex-wrap: nowrap;
    }
    
    .logo-section {
        font-size: 20px;
        gap: 10px;
        flex-shrink: 0;
    }
    
    .logo-badge {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .main-navigation {
        display: none !important;
    }

    .header-actions {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        margin-left: auto;
    }
    
    .hero-section {
        padding: 140px 20px 80px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .mobile-nav a {
        font-size: 15px;
        padding: 15px 18px;
    }
}

