/* ============================================
   УНИКАЛИЗАЦИЯ ПРОЕКТА: sybeklue.de
   
   CSS АРХИТЕКТУРА: Atomic CSS / Utility-First
   ПАЛИТРА: Bavarian Tech (German Industrial + Bavarian colors)
   ЭФФЕКТ: Pattern Backgrounds (geometric patterns)
   ТИПОГРАФИКА: Technical (Space Mono + IBM Plex Sans)
   КНОПКИ: Flat Modern (German minimalism)
   JS NAMING: Hungarian Notation
   HTML: Utility-First классы
   ============================================ */

/* ============================================
   CSS VARIABLES - BAVARIAN TECH THEME
   ============================================ */
:root {
    /* Bavarian Tech Color Palette */
    --bavarian-blue: #0066b3;        /* Traditional Bavarian blue */
    --industrial-steel: #606060;      /* German engineering steel */
    --oktoberfest-gold: #f9a825;     /* Golden beer color */
    --alpine-white: #f5f5f5;         /* Alpine snow white */
    --deutschland-black: #1a1a1a;    /* German flag black */
    --precision-gray: #424242;       /* Precision machinery gray */
    --tech-cyan: #00acc1;            /* Modern tech accent */
    --warning-amber: #ff6f00;        /* Warning amber */
    
    /* Typography */
    --font-tech: 'Space Mono', monospace;
    --font-body: 'IBM Plex Sans', sans-serif;
    
    /* Spacing (Atomic scale) */
    --sp-xs: 0.25rem;    /* 4px */
    --sp-sm: 0.5rem;     /* 8px */
    --sp-md: 1rem;       /* 16px */
    --sp-lg: 1.5rem;     /* 24px */
    --sp-xl: 2rem;       /* 32px */
    --sp-2xl: 3rem;      /* 48px */
    --sp-3xl: 4rem;      /* 64px */
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.16);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.20);
    
    /* Transitions */
    --trans-fast: 0.15s ease;
    --trans-normal: 0.3s ease;
    --trans-slow: 0.5s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--deutschland-black);
    background: var(--alpine-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-tech);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-normal);
}

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

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   PATTERN BACKGROUNDS (UNIQUE CSS EFFECT)
   ============================================ */
.pattern-bg {
    background-color: var(--deutschland-black);
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(0, 102, 179, 0.05) 35px,
            rgba(0, 102, 179, 0.05) 70px
        );
    position: relative;
}

.pattern-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 35px,
            rgba(249, 168, 37, 0.03) 35px,
            rgba(249, 168, 37, 0.03) 70px
        );
    pointer-events: none;
}

.pattern-bg-alt {
    background-color: var(--alpine-white);
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(96, 96, 96, 0.03) 50px,
            rgba(96, 96, 96, 0.03) 100px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(96, 96, 96, 0.03) 50px,
            rgba(96, 96, 96, 0.03) 100px
        );
}

/* ============================================
   UTILITY CLASSES (ATOMIC CSS)
   ============================================ */

/* Display */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Flex */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* Spacing */
.gap-xs { gap: var(--sp-xs); }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.gap-lg { gap: var(--sp-lg); }
.gap-xl { gap: var(--sp-xl); }

.mt-xs { margin-top: var(--sp-xs); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }

.mb-xs { margin-bottom: var(--sp-xs); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }

.p-xs { padding: var(--sp-xs); }
.p-sm { padding: var(--sp-sm); }
.p-md { padding: var(--sp-md); }
.p-lg { padding: var(--sp-lg); }
.p-xl { padding: var(--sp-xl); }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }
.text-normal { font-weight: 400; }

/* Colors */
.text-primary { color: var(--bavarian-blue); }
.text-secondary { color: var(--industrial-steel); }
.text-white { color: #fff; }
.text-black { color: var(--deutschland-black); }

.bg-primary { background: var(--bavarian-blue); }
.bg-secondary { background: var(--industrial-steel); }
.bg-white { background: #fff; }
.bg-black { background: var(--deutschland-black); }

/* Border Radius */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* ============================================
   LAYOUT - CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

/* ============================================
   COMPONENTS - BUTTONS (FLAT MODERN)
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-sm) var(--sp-lg);
    font-family: var(--font-tech);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    transition: var(--trans-normal);
    cursor: pointer;
}

.btn-primary {
    background: var(--bavarian-blue);
    color: #fff;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 179, 0.3);
}

.btn-secondary {
    background: var(--industrial-steel);
    color: #fff;
}

.btn-secondary:hover {
    background: #505050;
}

.btn-outline {
    background: transparent;
    color: var(--bavarian-blue);
    border: 2px solid var(--bavarian-blue);
}

.btn-outline:hover {
    background: var(--bavarian-blue);
    color: #fff;
}

.btn-play {
    background: var(--oktoberfest-gold);
    color: var(--deutschland-black);
    font-weight: 700;
    padding: var(--sp-md) var(--sp-xl);
}

.btn-play:hover {
    background: #e89700;
    transform: scale(1.05);
}

/* Button Sizes */
.btn-sm {
    padding: var(--sp-xs) var(--sp-md);
    font-size: 0.75rem;
}

.btn-lg {
    padding: var(--sp-md) var(--sp-xl);
    font-size: 1rem;
}

.btn-xl {
    padding: var(--sp-lg) var(--sp-2xl);
    font-size: 1.125rem;
}

/* ============================================
   HEADER
   ============================================ */
.hdr {
    background: #fff;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hdr .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--sp-md);
    padding-bottom: var(--sp-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    font-family: var(--font-tech);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deutschland-black);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-txt {
    color: var(--deutschland-black);
}

.free-badge {
    font-size: 0.625rem;
    padding: 2px 6px;
    background: var(--tech-cyan);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--sp-md);
}

.nav-link {
    font-family: var(--font-tech);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--precision-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 6px; /* Reserve space for underline */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bavarian-blue);
    transition: var(--trans-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--bavarian-blue);
}

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

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--sp-sm);
    background: transparent;
    border: none;
    outline: none;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--deutschland-black);
    transition: var(--trans-normal);
    display: block;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: var(--sp-3xl) 0;
    color: #fff;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-ttl {
    font-size: 3rem;
    margin-bottom: var(--sp-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-sub {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: var(--sp-lg);
    color: var(--oktoberfest-gold);
}

.hero-desc {
    font-size: 1.125rem;
    margin-bottom: var(--sp-2xl);
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: var(--sp-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SECTIONS
   ============================================ */
.features,
.games,
.how-works,
.disclaimer {
    padding: var(--sp-3xl) 0;
}

.section-ttl {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--sp-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--deutschland-black);
}

.section-sub {
    text-align: center;
    font-size: 1.125rem;
    color: var(--industrial-steel);
    margin-bottom: var(--sp-2xl);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-xl);
}

.feature-card {
    background: #fff;
    padding: var(--sp-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--trans-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--sp-md);
}

.feature-ttl {
    font-size: 1.25rem;
    margin-bottom: var(--sp-sm);
    color: var(--bavarian-blue);
}

.feature-desc {
    color: var(--precision-gray);
    line-height: 1.7;
}

/* ============================================
   GAMES SECTION
   ============================================ */
.games {
    background: var(--alpine-white);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--sp-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.game-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--trans-normal);
}

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

.game-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--trans-normal);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-info {
    padding: var(--sp-lg);
}

.game-ttl {
    font-size: 1.5rem;
    margin-bottom: var(--sp-sm);
    color: var(--deutschland-black);
}

.game-desc {
    color: var(--precision-gray);
    margin-bottom: var(--sp-md);
    line-height: 1.7;
}

.game-tags {
    display: flex;
    gap: var(--sp-sm);
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: var(--sp-xs) var(--sp-sm);
    background: var(--alpine-white);
    color: var(--industrial-steel);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.free-tag {
    background: var(--tech-cyan);
    color: #fff;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sp-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: var(--sp-xl);
}

.step-num {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--sp-lg);
    background: var(--bavarian-blue);
    color: #fff;
    font-family: var(--font-tech);
    font-size: 2.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-ttl {
    font-size: 1.25rem;
    margin-bottom: var(--sp-sm);
    color: var(--deutschland-black);
}

.step-desc {
    color: var(--industrial-steel);
    line-height: 1.7;
}

/* ============================================
   DISCLAIMER SECTION
   ============================================ */
.disclaimer {
    background: var(--alpine-white);
}

.disclaimer-box {
    background: #fff;
    border: 3px solid var(--warning-amber);
    border-radius: var(--radius-lg);
    padding: var(--sp-2xl);
    text-align: center;
}

.disclaimer-ttl {
    font-size: 1.5rem;
    color: var(--warning-amber);
    margin-bottom: var(--sp-lg);
}

.disclaimer-txt {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--deutschland-black);
    margin-bottom: var(--sp-lg);
}

.disclaimer-company {
    font-size: 0.875rem;
    color: var(--precision-gray);
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
.ftr {
    background: var(--deutschland-black);
    color: #fff;
    padding: var(--sp-3xl) 0 var(--sp-lg);
}

.ftr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sp-2xl);
    margin-bottom: var(--sp-2xl);
}

.ftr-ttl {
    font-size: 1.5rem;
    margin-bottom: var(--sp-md);
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.ftr-desc {
    color: var(--alpine-white);
    line-height: 1.7;
    margin-bottom: var(--sp-md);
}

.ftr-free {
    color: var(--tech-cyan);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ftr-subtitle {
    font-family: var(--font-tech);
    font-size: 1.125rem;
    margin-bottom: var(--sp-md);
    color: var(--oktoberfest-gold);
}

.ftr-list {
    list-style: none;
}

.ftr-list li {
    margin-bottom: var(--sp-sm);
}

.ftr-link {
    color: var(--alpine-white);
}

.ftr-link:hover {
    color: var(--bavarian-blue);
}

.ftr-txt {
    color: var(--alpine-white);
    line-height: 1.7;
    margin-bottom: var(--sp-md);
}

.compliance-logos {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
}

.compliance-link {
    display: block;
}

.compliance-logo {
    height: 50px;
    width: auto;
    background: #ffffff;
    padding: var(--sp-sm);
    border-radius: var(--radius-md);
    transition: var(--trans-normal);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.compliance-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(249, 168, 37, 0.6), 0 0 20px rgba(0, 172, 193, 0.4);
    border-color: var(--tech-cyan);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #ffffff;
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: var(--trans-normal);
}

.age-badge:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.ftr-btm {
    border-top: 1px solid var(--precision-gray);
    padding-top: var(--sp-lg);
    text-align: center;
}

.ftr-copy {
    color: var(--alpine-white);
    font-size: 0.875rem;
    margin-bottom: var(--sp-xs);
}

.ftr-copy-sub {
    color: var(--industrial-steel);
    font-size: 0.75rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--sp-lg);
}

.modal.active {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    padding: var(--sp-2xl);
    box-shadow: var(--shadow-lg);
}

.modal-hdr {
    margin-bottom: var(--sp-lg);
}

.modal-ttl {
    font-size: 1.5rem;
    text-align: center;
    color: var(--deutschland-black);
}

.modal-bd {
    margin-bottom: var(--sp-xl);
    text-align: center;
}

.modal-bd p {
    margin-bottom: var(--sp-md);
    line-height: 1.7;
}

.modal-warn {
    color: var(--warning-amber);
    font-weight: 700;
}

.modal-btns {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-box {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--deutschland-black);
    color: #fff;
    padding: var(--sp-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 9998;
}

.cookie-box.active {
    display: block;
}

.cookie-txt {
    margin-bottom: var(--sp-md);
    line-height: 1.7;
}

.cookie-btns {
    display: flex;
    gap: var(--sp-sm);
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    /* Typography */
    .hero-ttl {
        font-size: 2rem;
    }
    
    .hero-sub {
        font-size: 1.125rem;
    }
    
    .section-ttl {
        font-size: 1.75rem;
    }
    
    /* Navigation */
    .nav-list {
        position: fixed;
        top: 65px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 65px);
        background: #fff;
        flex-direction: column;
        padding: var(--sp-xl);
        box-shadow: var(--shadow-lg);
        transition: var(--trans-normal);
    }
    
    .nav.active .nav-list {
        right: 0;
    }
    
    .burger {
        display: flex;
        background: transparent;
    }
    
    .burger.active .burger-line:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    
    .burger.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active .burger-line:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
    
    /* Grids */
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .ftr-grid {
        grid-template-columns: 1fr;
    }
    
    /* Hero */
    .hero-btns {
        flex-direction: column;
    }
    
    .btn-xl {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-ttl {
        font-size: 1.5rem;
    }
    
    .section-ttl {
        font-size: 1.5rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .modal-box {
        padding: var(--sp-lg);
    }
    
    .modal-btns {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
}

