/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --primary: #1f3b9a;
    --primary-light: #2d4db3;
    --primary-dark: #16327a;
    --accent: #f97316;
    --accent-hover: #ea6c0a;
    --accent-light: #fff7ed;
    --text: #1a1f3a;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.25s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.35);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

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

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo img {
    height: 40px;
    width: auto;
}

.navbar-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.navbar-logo-text span { color: var(--accent); }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-links a {
    color: var(--text-muted);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.navbar-links a:hover { color: var(--accent); background: var(--accent-light); }
.navbar-links a.active { color: var(--accent); }

.navbar-actions { display: flex; align-items: center; gap: 10px; }

/* Mobile menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
}
.mobile-menu a:hover { background: var(--accent-light); color: var(--accent); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2d4db3 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249,115,22,0.2);
    border: 1px solid rgba(249,115,22,0.4);
    color: #fdba74;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    color: white;
    margin-bottom: 20px;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.hero h1 span { color: var(--accent); }

.hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.hero-stat-item { text-align: center; }
.hero-stat-item .number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    display: block;
}
.hero-stat-item .label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-body { padding: 24px; }
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--border-light);
}

/* ===== COURSE CARD ===== */
.course-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.course-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), #2d4db3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card-body { padding: 20px; flex: 1; }
.course-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.course-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.course-card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #fb923c);
    border-radius: 100px;
    transition: width 0.6s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.form-input::placeholder { color: var(--text-light); }

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    border: 1px solid var(--border);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #2d4db3 100%);
    padding: 20px;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img { height: 48px; margin: 0 auto 12px; }

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

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

.auth-divider {
    text-align: center;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 13px;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: var(--bg-white);
    padding: 0 12px;
    position: relative;
}

/* ===== DASHBOARD ===== */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary), #2d4db3);
    color: white;
    padding: 40px 0;
}

.dashboard-title { color: white; margin-bottom: 4px; }
.dashboard-subtitle { color: rgba(255,255,255,0.7); font-size: 14px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
    padding: 32px 0;
}

.sidebar {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky;
    top: 88px;
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), #2d4db3);
    color: white;
}

.sidebar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.sidebar-name { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.sidebar-email { font-size: 12px; opacity: 0.75; }

.sidebar-nav { padding: 12px; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    margin-bottom: 2px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--accent-light);
    color: var(--accent);
}

.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-info { padding: 16px 20px; border-top: 1px solid var(--border); }
.sidebar-info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}
.sidebar-info-label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-info-value { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 2px; }

/* ===== STATUS BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: var(--border); color: var(--text-muted); }

/* ===== ACCESS STATUS ===== */
.access-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.access-status.active {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.access-status.inactive {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.access-status.pending {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ===== LESSON PLAYER ===== */
.lesson-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
    padding: 24px 0;
}

.video-container {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.lesson-sidebar {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.lesson-sidebar-header {
    padding: 16px 20px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.lesson-list {
    overflow-y: auto;
    flex: 1;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}

.lesson-item:hover { background: var(--accent-light); }
.lesson-item.active { background: var(--accent-light); border-left: 3px solid var(--accent); }
.lesson-item.completed .lesson-item-icon { background: var(--success); color: white; }
.lesson-item.locked { opacity: 0.5; cursor: not-allowed; }

.lesson-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--text-muted);
}

.lesson-item-title { font-size: 13px; font-weight: 500; line-height: 1.4; }
.lesson-item-meta { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ===== SECTIONS ===== */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text-muted); font-size: 1rem; max-width: 560px; margin: 0 auto; }

.section-label {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

/* ===== LEVELS ACCORDION ===== */
.level-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
}

.level-header:hover { background: var(--border-light); }

.level-header-left { display: flex; align-items: center; gap: 14px; }

.level-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #2d4db3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.level-title { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.level-meta { font-size: 12px; color: var(--text-muted); }
.level-arrow { transition: var(--transition); color: var(--text-muted); }
.level-item.open .level-arrow { transform: rotate(180deg); }

.level-body {
    display: none;
    border-top: 1px solid var(--border);
}
.level-item.open .level-body { display: block; }

/* ===== MESSAGES ===== */
.messages-list { margin-bottom: 20px; }

.message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.message-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.message-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.message-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}
.footer-brand-name span { color: var(--accent); }
.footer-brand-desc { font-size: 14px; line-height: 1.6; }

.footer-title {
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* ===== QUIZ ===== */
.quiz-question {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.quiz-question-text {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text);
}

.quiz-answers { display: flex; flex-direction: column; gap: 10px; }

.quiz-answer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.quiz-answer:hover { border-color: var(--accent); background: var(--accent-light); }
.quiz-answer input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }

/* ===== PAYMENT ===== */
.payment-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.payment-card-header {
    background: linear-gradient(135deg, var(--primary), #2d4db3);
    color: white;
    padding: 28px 32px;
}

.payment-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin: 8px 0;
}

.payment-steps { counter-reset: step; }

.payment-step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.payment-step:last-child { border-bottom: none; }

.payment-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-step-content { flex: 1; }
.payment-step-title { font-weight: 600; margin-bottom: 4px; }
.payment-step-desc { font-size: 13px; color: var(--text-muted); }

.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.file-upload-area:hover { border-color: var(--accent); background: var(--accent-light); }
.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* ===== GRID SYSTEMS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .lesson-layout { grid-template-columns: 1fr; }
    .lesson-sidebar { position: static; max-height: 400px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar-links { display: none; }
    .navbar-actions { display: none; }
    .burger { display: flex; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero { padding: 60px 0 48px; }
    .hero-stats { gap: 24px; }
    .section { padding: 48px 0; }
    .auth-card { padding: 32px 24px; }
    .form-card { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; }
    .btn-lg { width: 100%; justify-content: center; }
}

/* ===== VIDEO PROTECTION ===== */
.video-container {
    position: relative !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.video-container iframe {
    pointer-events: auto;
}

/* Водяной знак всегда поверх */
#video-watermark {
    position: absolute !important;
    z-index: 9999 !important;
    display: block !important;
    visibility: visible !important;
}

/* В fullscreen */
.video-container:fullscreen #video-watermark,
.video-container:-webkit-full-screen #video-watermark,
.video-container:-moz-full-screen #video-watermark,
.video-container:-ms-fullscreen #video-watermark {
    position: absolute !important;
    z-index: 9999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Контейнер в fullscreen */
.video-container:fullscreen,
.video-container:-webkit-full-screen,
.video-container:-moz-full-screen,
.video-container:-ms-fullscreen {
    position: relative !important;
    width: 100vw !important;
    height: 100vh !important;
}

/* ===== WHY US GRID 7 ITEMS CENTER LAST ===== */
.grid-3 > div:nth-child(7):last-child {
    grid-column: 2 / 3;
}

@media (max-width: 768px) {
    .grid-3 > div:nth-child(7):last-child {
        grid-column: auto;
    }
}

/* Стилизация контейнера формы языка */
.navbar-actions form {
    display: inline-flex;
    align-items: center;
    position: relative;
}

/* Стилизация самого селекта */
.navbar-actions select[name="language"] {
    appearance: none; /* Убираем стандартную стрелку браузера */
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 8px 32px 8px 16px !important; /* Увеличиваем отступ справа для своей стрелки */
    background: var(--bg-white);
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    cursor: pointer;
    transition: var(--transition) !important;
    outline: none;

    /* Добавляем кастомную иконку стрелки через background-image */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

/* Эффекты при наведении и фокусе */
.navbar-actions select[name="language"]:hover {
    border-color: var(--accent) !important;
    background-color: var(--accent-light);
    color: var(--accent) !important;
}

.navbar-actions select[name="language"]:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    border-color: var(--accent) !important;
}

/* Стилизация для мобильного меню (улучшение того, что уже есть) */
.mobile-menu select[name="language"] {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}