/* ==========================================================================
   1. DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Colors (Premium Dark Blue & Neon App Vibe) */
    --bg-app: #060d22;
    --bg-surface: #0b1634;
    --bg-card: #13244b;
    --bg-card-hover: #1b2f5c;
    
    --text-primary: #ffffff;
    --text-secondary: #8fa0ca;
    --text-muted: #536796;

    /* Accents (Electric Blue & Cyan Neon) */
    --accent: #0052ff;
    --accent-glow: #00e5ff;
    --accent-gradient: linear-gradient(135deg, #0052ff 0%, #00e5ff 100%);
    --success: #00e676;
    --danger: #ff3d00;

    /* Glassmorphic Effects */
    --glass-bg: rgba(19, 36, 75, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(12px);

    /* Border Radius & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --shadow-glow: 0 0 20px rgba(0, 229, 255, 0.2);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. RESET & BASE STYLES (Mobile-First)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* Убираем синий блик при тапе на мобилках */
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: -webkit-fill-available; /* Фикс для высоты экрана в мобильном Safari */
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ==========================================================================
   3. GLOBAL TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 2rem; }    /* 32px */
h2 { font-size: 1.5rem; }  /* 24px */
h3 { font-size: 1.25rem; } /* 20px */

p {
    color: var(--text-secondary);
    font-size: 0.9375rem; /* ~15px — идеальный баланс для мобильных приложений */
}

/* ==========================================================================
   4. BASIC LAYOUT STRUCTURE
   ========================================================================== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 24px;
    padding-bottom: 40px;
}

/* Утилита для скрытия скроллбара, сохраняя функционал прокрутки (для горизонтальных лент с топ-матчами) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.container {
    width: 100%;
    max-width: 1400px; /* Совпадает с максимальной шириной шапки и футера */
    margin-right: auto;
    margin-left: auto;
    padding-right: 16px;
    padding-left: 16px;
}