/**
 * Main Stylesheet - Blue Theme (based on logo colors)
 * FGOS-Praktikum Design
 */

/* CSS Variables */
:root {
    /* Primary - bright blue (#0077FF) */
    --primary-purple: #0077FF;
    --dark-purple: #0066DD;
    --light-purple: #E8F1FF;
    --purple-card: #0088FF;

    /* Accent - red (from logo book) */
    --accent: #C62828;
    --accent-light: #EF5350;
    --accent-dark: #8E1C1C;

    /* Secondary - blue variations */
    --secondary: #0077FF;
    --secondary-light: #3399FF;
    --secondary-dark: #0066DD;

    /* Highlight - yellow (from logo pencil) */
    --highlight: #F4C430;
    --highlight-dark: #D4A420;

    /* Text */
    --text-dark: #2C3E50;
    --text-medium: #4A5568;
    --text-light: #718096;

    /* Backgrounds */
    --bg-light: #F5F7FA;
    --bg-white: #ffffff;
    --bg-cream: #FDF6E3;

    /* Gradients - updated with bright blue */
    --gradient-primary: linear-gradient(135deg, #0077FF 0%, #0088FF 100%);
    --gradient-accent: linear-gradient(135deg, #C62828 0%, #EF5350 100%);
    --gradient-hero: linear-gradient(135deg, #0077FF 0%, #0088FF 50%, #3399FF 100%);

    --border-radius-card: 32px;
    --border-radius-button: 50px;
    --shadow-card: 6px 6px 10px rgba(0,119,255,0.1);
    --transition-speed: 0.2s;
}

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

body {
    font-family: 'Vksand', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 12px 0 0;
    font-size: 13px;
    line-height: 1.4;
}
.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.breadcrumbs-item {
    display: flex;
    align-items: center;
}
.breadcrumbs-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs-item a:hover {
    color: var(--primary-purple);
    text-decoration: underline;
}
.breadcrumbs-sep {
    margin: 0 6px;
    color: var(--text-light);
    font-size: 14px;
}
.breadcrumbs-current span {
    color: var(--text-medium);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: 48px;
    margin-bottom: 24px;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

p {
    margin-bottom: 16px;
    font-size: 17px;
    color: var(--text-medium);
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: opacity var(--transition-speed) ease-in-out;
}

a:hover {
    opacity: 0.7;
}

/* Header */
/* ==========================================
   HEADER - Two-level: Top Bar + Main Bar
   ========================================== */
.header {
    position: relative;
    z-index: 9999;
}

@media (max-width: 960px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
}

/* --- Top Bar --- */
.header-topbar {
    background: var(--bg-light);
    border-bottom: 1px solid #e2e8f0;
    padding: 5px 0;
}


.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.topbar-left {
    flex-shrink: 0;
}

.topbar-center {
    flex: 1;
    max-width: 360px;
    margin: 0 auto;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* SMI Badge (in top bar) */
.header-smi-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--primary-purple);
    border-radius: 6px;
    font-size: 11px;
    color: var(--primary-purple);
    white-space: nowrap;
    line-height: 1.3;
}

.header-smi-badge svg {
    flex-shrink: 0;
    color: var(--primary-purple);
}

.header-smi-badge span {
    font-weight: 500;
}

/* Top bar auth */
.topbar-auth-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
    transition: color 0.2s;
    white-space: nowrap;
}

.topbar-auth-link:hover {
    color: var(--primary-purple);
    opacity: 1;
}

.topbar-logout {
    color: var(--text-light);
    font-size: 12px;
}

.topbar-auth-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 18px;
    background: var(--gradient-primary);
    color: white !important;
    border-radius: var(--border-radius-button);
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.topbar-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 119, 255, 0.3);
    opacity: 1;
}

/* --- Main Bar --- */
.header-main {
    background: var(--bg-white);
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    width: auto;
    height: 46px;
    object-fit: contain;
    transition: transform var(--transition-speed) ease-in-out;
}

.logo:hover .logo-image {
    transform: scale(1.02);
    opacity: 1;
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-speed) ease-in-out;
}

.main-nav a:hover {
    color: var(--primary-purple);
    opacity: 1;
}

/* Mobile-only auth inside nav (hidden on desktop) */
.mobile-nav-auth {
    display: none;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown-trigger::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu .dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-dropdown-menu .dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-purple);
}

/* Nav CTA (used in mobile nav) */
.nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 12px 28px;
    border-radius: var(--border-radius-button);
    font-weight: 600;
    transition: transform var(--transition-speed) ease-in-out;
}

.nav-cta:hover {
    transform: translateY(-2px);
    opacity: 1;
}

/* --- Cart Button (Top Bar) --- */
.cart-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: white;
    border: 1.5px solid var(--light-purple);
    border-radius: var(--border-radius-button);
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 13px;
    transition: all var(--transition-speed) ease-in-out;
    position: relative;
    line-height: 1;
    white-space: nowrap;
}

.cart-button:hover {
    background: var(--light-purple);
    transform: translateY(-1px);
    opacity: 1;
}

.cart-button svg {
    flex-shrink: 0;
    display: block;
}

.cart-button.cart-empty {
    background: transparent;
    border: 1.5px dashed #cbd5e0;
    color: var(--text-light);
    padding: 5px 10px;
}

.cart-button.cart-empty:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    opacity: 1;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary-purple);
    color: white;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.cart-total {
    white-space: nowrap;
    line-height: 1;
}

/* --- Mobile Controls --- */
.mobile-search-trigger {
    display: none;
}

.mobile-cart-trigger {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-speed) ease-in-out;
}

main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
    border-radius: 0 0 80px 80px;
    position: relative;
}

.hero h1 {
    color: white;
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 19px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    background: white;
    color: var(--primary-purple);
    font-size: 17px;
    padding: 16px 40px;
    margin-top: 20px;
    margin-bottom: 40px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* New Landing Hero Section */
.hero-landing {
    padding: 100px 0 80px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.hero-landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1440px;
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 0 0 60px 60px;
    z-index: 0;
}

.hero-landing .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0 80px;
    gap: 40px;
}

.hero-content {
    flex: 1 1 60%;
    max-width: 60%;
    color: white;
}

.hero-logos {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
    color: white;
}

.hero-title {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 15px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    min-height: auto;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.feature-text h3 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    line-height: 1.5;
    margin: 0;
}

/* Badge style feature cards (Skolkovo, SMI) */
.hero-features--badges {
    gap: 18px;
}

.feature-card--badge {
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.feature-card--badge:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-card--badge .feature-logo {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card--badge .feature-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
}

.feature-card--badge .feature-logo--text {
    background: linear-gradient(135deg, #e8f4fc 0%, #d1ebf9 100%);
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #4da6db;
}

.feature-card--badge .feature-text {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.feature-card--badge .feature-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* Hero right column wrapper */
.hero-right {
    flex: 1 1 40%;
    max-width: 40%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-right .hero-images {
    flex: none;
}

.hero-right .hero-features--badges {
    justify-content: center;
    flex-wrap: wrap;
}

.hero-certificate-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-certificate-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Hero Images - inline layout like Zvonobot */
.hero-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-image-circle {
    width: 0;
    flex: 1 1 0;
    aspect-ratio: 1;
    max-width: 196px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: var(--gradient-primary);
}

.hero-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* All circles same size */
.hero-img-1,
.hero-img-2,
.hero-img-4 {
    max-width: 196px;
}

/* Hero image hover effect */
.hero-image-circle {
    transition: transform 0.3s ease;
}

.hero-image-circle:hover {
    transform: scale(1.05);
}

/* Picture element reset */
.hero-image-circle picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-image-circle picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Disable parallax on touch devices */
@media (hover: none) {
    .hero-image-circle {
        will-change: auto !important;
    }
}

/* Disable parallax when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
    .hero-image-circle {
        will-change: auto !important;
        transform: none !important;
        transition: none !important;
    }
}

.hero-icon {
    position: absolute;
    font-size: 40px;
    z-index: 5;
    animation: float 3s ease-in-out infinite;
}

.hero-icon-star {
    top: 30px;
    right: 250px;
}

.hero-icon-message {
    top: 180px;
    right: 500px;
}

.hero-icon-phone {
    top: 400px;
    right: 600px;
}

.hero-icon-game {
    top: 300px;
    right: 100px;
}

.hero-icon-chat {
    top: 500px;
    right: 380px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    opacity: 1;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--light-purple);
    background: white;
    color: var(--primary-purple);
    border-radius: var(--border-radius-button);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-speed) ease-in-out;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* ==============================================
   COMPETITIONS LAYOUT WITH SIDEBAR
   ============================================== */

#competitions {
    scroll-margin-top: 20px;
}

.competitions-layout {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    align-items: flex-start;
}

/* Sidebar Filters */
.sidebar-filters {
    width: 280px;
    flex-shrink: 0;
    height: fit-content;
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.sidebar-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

/* Filter Checkboxes */
.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    transition: color var(--transition-speed);
}

.filter-checkbox input[type="checkbox"],
.filter-checkbox input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-purple);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-checkbox:hover {
    color: var(--primary-purple);
}

.filter-checkbox .checkbox-label {
    line-height: 1.4;
}

/* Content Area */
.content-area {
    flex: 1;
    min-width: 0;
}

/* Competition Grid */
.competitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

/* Competitions Count */
.competitions-count {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.competitions-count strong {
    color: var(--primary-purple);
    font-weight: 600;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 40px 0 60px;
}

.btn-load-more {
    padding: 16px 48px;
    font-size: 16px;
    min-width: 280px;
}

.btn-load-more:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.competition-card {
    background: white;
    border-radius: var(--border-radius-card);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-speed) ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.competition-card:hover {
    transform: translateY(-8px);
    box-shadow: 8px 8px 20px rgba(67,61,136,0.15);
}

.competition-category {
    display: inline-block;
    background: var(--light-purple);
    color: var(--primary-purple);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.competition-card h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 22px;
}

.competition-card p {
    color: var(--text-medium);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.competition-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.competition-price {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-purple);
}

.competition-price span {
    font-size: 18px;
    color: var(--text-medium);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius-button);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30,58,95,0.3);
    opacity: 1;
}

.btn-secondary {
    background: #ebebf0;
    color: var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--light-purple);
    opacity: 1;
}

.btn-danger {
    background: #EE3F58;
    color: white;
}

.btn-danger:hover {
    background: #d63850;
    opacity: 1;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .footer {
        padding: 28px 0 16px;
        margin-top: 48px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
        margin-bottom: 20px;
    }

    .footer h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .footer p,
    .footer a {
        font-size: 13px;
        line-height: 1.8;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }

    .footer-column:first-child p {
        line-height: 1.5;
    }

    .footer-requisites {
        padding: 14px;
    }

    .requisites-content {
        grid-template-columns: 1fr;
        gap: 12px;
        font-size: 12px;
    }
}

.footer h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 18px;
}

.footer p,
.footer a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-requisites {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.requisites-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.requisites-column {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.6;
}

.requisites-column strong {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

/* Responsive Design */

/* Tablet landscape - 2 columns */
@media (max-width: 1200px) {
    .competitions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    h1 {
        font-size: 40px;
    }

    .hero h1 {
        font-size: 40px;
    }

    /* Hide top bar on mobile */
    .header-topbar {
        display: none;
    }

    /* Adjust main content offset (only main bar visible) */
    main {
        margin-top: 66px;
        min-height: calc(100vh - 66px - 200px);
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 16px;
    }

    .main-nav.active {
        display: flex;
    }

    /* Show auth links inside mobile nav */
    .mobile-nav-auth {
        display: contents;
    }

    /* Mobile nav dropdown */
    .nav-dropdown {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .nav-dropdown-trigger::after {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        border-radius: 8px;
        min-width: 100%;
        padding: 8px 0;
    }

    .nav-dropdown-menu .dropdown-item {
        padding: 10px 16px;
        font-size: 14px;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile cart & search triggers */
    .mobile-search-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--bg-light);
        border: none;
        border-radius: 50%;
        color: var(--primary-purple);
        cursor: pointer;
        transition: background 0.2s;
    }

    .mobile-search-trigger:hover {
        background: var(--light-purple);
    }

    .mobile-cart-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--bg-light);
        border: none;
        border-radius: 50%;
        color: var(--primary-purple);
        cursor: pointer;
        transition: background 0.2s;
        position: relative;
    }

    .mobile-cart-trigger:hover {
        background: var(--light-purple);
        opacity: 1;
    }

    .mobile-cart-trigger.cart-empty {
        color: var(--text-light);
    }

    .mobile-cart-badge {
        position: absolute;
        top: -2px;
        right: -2px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        background: var(--primary-purple);
        color: white;
        border-radius: 8px;
        font-size: 10px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    /* Sidebar layout - stack vertically on tablet */
    .competitions-layout {
        flex-direction: column;
    }

    .sidebar-filters {
        width: 100%;
        position: static;
    }

    .competitions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .hero-landing {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .hero-landing .container {
        flex-direction: column;
        padding: 0 40px;
    }

    .hero-content {
        flex: 1;
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-features {
        flex-direction: column;
        gap: 12px;
    }

    .feature-card {
        flex-direction: row;
        padding: 16px 18px;
        min-height: auto;
        gap: 12px;
        align-items: center;
        text-align: left;
    }

    .feature-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-text {
        justify-content: flex-start;
    }

    .feature-text h3 {
        font-size: 12px;
        line-height: 1.4;
    }

    /* Badge cards mobile */
    .hero-features--badges {
        gap: 12px;
    }

    .feature-card--badge {
        padding: 10px;
        gap: 14px;
        border-radius: 16px;
    }

    .feature-card--badge .feature-logo {
        width: 60px;
        height: 60px;
    }

    .feature-card--badge .feature-logo img {
        width: 60px;
        height: 60px;
    }

    .feature-card--badge .feature-logo--text {
        font-size: 18px;
    }

    .feature-card--badge .feature-label {
        font-size: 14px;
    }

    .hero-right {
        flex: 1;
        width: 100%;
        max-width: 100%;
        gap: 20px;
    }

    .hero-images {
        gap: 10px;
        justify-content: center;
    }

    .hero-image-circle,
    .hero-img-1,
    .hero-img-2,
    .hero-img-4 {
        max-width: 127px;
    }

    .hero-icon {
        font-size: 25px;
    }

    .hero-icon-star {
        top: 25px;
        right: 100px;
    }

    .hero-icon-message {
        top: 120px;
        left: 80px;
    }

    .hero-icon-phone {
        top: 280px;
        left: 30px;
    }

    .hero-icon-game {
        top: 220px;
        right: 70px;
    }

    .hero-icon-chat {
        top: 300px;
        right: 120px;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 36px;
    }

    .hero {
        padding: 60px 0;
        border-radius: 0 0 40px 40px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .competitions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .competition-card {
        padding: 16px;
    }

    .competition-category {
        padding: 4px 10px;
        font-size: 11px;
        margin-bottom: 8px;
    }

    .competition-card h3 {
        font-size: 15px;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .competition-card p {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .competition-price {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .competition-price span {
        font-size: 12px;
    }

    .competition-card .btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    /* Sidebar mobile styles */
    .sidebar-filters {
        padding: 20px;
        border-radius: 20px;
    }

    .sidebar-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .sidebar-section h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .filter-checkboxes {
        gap: 10px;
    }

    .filter-checkbox {
        font-size: 13px;
    }

    .category-filter {
        gap: 12px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .cart-button {
        padding: 8px 16px;
        gap: 6px;
        font-size: 14px;
    }

    .cart-total {
        display: none;
    }

    .hero-landing {
        padding: 50px 0 30px;
    }

    .hero-landing .container {
        flex-direction: column;
        padding: 0 16px;
        gap: 20px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .btn-hero {
        font-size: 14px;
        padding: 14px 28px;
    }

    .hero-content {
        flex: 1;
        max-width: 100%;
        margin-bottom: 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-logos {
        gap: 20px;
    }

    .logo-item {
        font-size: 16px;
    }

    .hero-features {
        gap: 10px;
    }

    .feature-card {
        flex-direction: row;
        padding: 14px 16px;
        min-height: auto;
        gap: 10px;
        border-radius: 16px;
    }

    .feature-icon {
        margin-bottom: 0;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .feature-text {
        text-align: left;
    }

    .feature-text h3 {
        font-size: 11px;
        line-height: 1.3;
    }

    /* Badge cards small screens */
    .feature-card--badge {
        padding: 10px;
        gap: 12px;
        border-radius: 14px;
    }

    .feature-card--badge .feature-logo {
        width: 50px;
        height: 50px;
    }

    .feature-card--badge .feature-logo img {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }

    .feature-card--badge .feature-logo--text {
        font-size: 14px;
        border-radius: 10px;
    }

    .feature-card--badge .feature-label {
        font-size: 11px;
    }

    .hero-images {
        gap: 8px;
    }

    .hero-image-circle,
    .hero-img-1,
    .hero-img-2,
    .hero-img-4 {
        max-width: 114px;
        border-width: 3px;
    }

    .hero-icon {
        font-size: 20px;
    }

    .hero-icon-star {
        top: 15px;
        right: 75px;
    }

    .hero-icon-message {
        top: 80px;
        left: 60px;
    }

    .hero-icon-phone {
        top: 200px;
        left: 0;
    }

    .hero-icon-game {
        top: 150px;
        right: 50px;
    }

    .hero-icon-chat {
        top: 220px;
        right: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .competitions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Header mobile - минимальные отступы */
    .header .container {
        padding: 0 12px;
    }

    /* Логотип на мобильных - адаптивный */
    .logo {
        flex: 0 1 auto;
        max-width: 55%;
        min-width: 0;
    }

    .logo-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        object-fit: contain;
    }

    h1 {
        font-size: 32px;
    }

    .hero h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    .hero {
        padding: 40px 0;
    }

    /* Hero на всю ширину экрана */
    .hero-landing::before {
        width: 100%;
        max-width: 100%;
        border-radius: 0 0 40px 40px;
    }

    .hero-landing .container {
        flex-direction: column;
        padding: 0 16px;
    }

    /* Контент занимает всю ширину */
    .hero-content {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-certificate-preview {
        display: none;
    }

    /* На маленьких экранах hero-right под текстом */
    .hero-right {
        width: 100%;
        gap: 16px;
    }

    /* Показываем картинки учителей на мобильных - три в ряд */
    .hero-images {
        display: flex !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
        justify-content: space-evenly;
        gap: 8px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .hero-right .hero-features--badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* Steps Grid - For "How to participate" section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.steps-grid .competition-card {
    min-height: 200px;
}

@media (max-width: 960px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .steps-grid .competition-card {
        padding: 16px;
        min-height: auto;
    }

    .steps-grid .competition-card h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .steps-grid .competition-card p {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Criteria Section */
.criteria-section {
    background: white;
    border-radius: var(--border-radius-card);
    padding: 40px;
    box-shadow: var(--shadow-card);
    margin-bottom: 60px;
}

.criteria-section h2 {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
}

.criteria-list {
    max-width: 800px;
    margin: 0 auto;
}

.criteria-list ul {
    list-style: none;
    padding: 0;
}

.criteria-list li {
    padding: 12px 0 12px 40px;
    position: relative;
    font-size: 17px;
    color: var(--text-medium);
    line-height: 1.6;
}

.criteria-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-size: 24px;
    font-weight: bold;
}

/* FAQ Section */
.faq-section {
    background: #E8F1FF;
    border-radius: 40px;
    padding: 60px 80px;
    margin-bottom: 60px;
}

.faq-section h2 {
    text-align: left;
    margin-bottom: 40px;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #F0F6FF;
    border-radius: 24px;
    padding: 28px 32px;
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
}

.faq-item:hover {
    background: #E0EAFF;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    font-weight: 300;
    font-size: 32px;
    line-height: 1;
    transition: transform var(--transition-speed) ease-in-out;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.faq-answer {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.6;
    display: none;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(0, 119, 255, 0.1);
}

.faq-item.active .faq-answer {
    display: block;
}

@media (max-width: 960px) {
    .faq-section {
        padding: 50px 40px;
    }

    .faq-section h2 {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .faq-section {
        padding: 30px 16px;
        border-radius: 24px;
        margin-bottom: 40px;
    }

    .faq-section h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .faq-grid {
        gap: 8px;
    }

    .faq-item {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .faq-question h3 {
        font-size: 15px;
        line-height: 1.4;
    }

    .faq-icon {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

    .faq-answer {
        font-size: 14px;
        line-height: 1.5;
        padding-top: 12px;
    }

    .criteria-section {
        padding: 28px 20px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* Regulations Button */
.btn-outline {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

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

.btn-regulations {
    margin-top: 12px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--border-radius-card);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
}

.modal-header h2 {
    font-size: 24px;
    margin: 0;
    color: var(--text-dark);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-speed) ease-in-out;
}

.modal-close:hover {
    background: rgba(30, 58, 95, 0.1);
    color: var(--primary-purple);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.modal-body h3 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 16px;
    color: var(--primary-purple);
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.modal-body ul,
.modal-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.modal-body li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-medium);
}

.modal-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 24px;
    }

    .modal-header {
        padding: 20px 24px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 24px;
    }

    .modal-body h3 {
        font-size: 18px;
    }
}

/* ==============================================
   AUDIENCE SEGMENTATION STYLES
   ============================================== */

/* Audience Dropdown в header */
.audience-dropdown {
    position: relative;
    margin-right: 20px;
}

.audience-dropdown-btn {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.audience-dropdown-btn:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 58, 95, 0.4);
}

.audience-dropdown-btn svg {
    transition: transform var(--transition-speed);
}

.audience-dropdown-btn:hover svg {
    transform: translateY(2px);
}

.audience-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.audience-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.audience-dropdown-menu .dropdown-item {
    display: block;
    padding: 14px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 15px;
}

.audience-dropdown-menu .dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-purple);
}

.audience-dropdown-menu .dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 4px 0;
}

/* Audience Cards Grid (главная страница) */
.audience-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.audience-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-card);
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.audience-card:hover::before {
    transform: scaleX(1);
}

.audience-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(30, 58, 95, 0.2);
}

.audience-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.audience-card p {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.6;
}

.audience-card-arrow {
    position: absolute;
    bottom: 24px;
    right: 32px;
    font-size: 28px;
    color: var(--primary-purple);
    transition: transform 0.3s;
}

.audience-card:hover .audience-card-arrow {
    transform: translateX(8px);
}

/* Audience Hero на посадочной странице */
.audience-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.audience-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.audience-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.audience-hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    color: white;
}

.audience-hero p {
    font-size: 18px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Specialization Tabs */
.specialization-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 16px;
}

.tab-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.tab-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* Filters Panel (расширенная фильтрация) */
.filters-panel {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
}

.filter-group {
    flex: 1;
    min-width: 220px;
}

.filter-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:hover {
    border-color: var(--primary-purple);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

/* Audience & Specialization Tags */
.competition-audience,
.competition-specializations {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.competition-audience h3,
.competition-specializations h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.audience-tags,
.specialization-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.audience-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2);
}

.audience-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.specialization-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .audience-dropdown {
        margin-right: 0;
        margin-bottom: 16px;
    }

    .audience-dropdown-menu {
        min-width: 280px;
    }

    .audience-cards-grid {
        grid-template-columns: 1fr;
    }

    .audience-hero {
        padding: 60px 0;
    }

    .audience-hero h1 {
        font-size: 32px;
    }

    .audience-hero p {
        font-size: 16px;
    }

    .filters-panel {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .specialization-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==============================================
   MOBILE FILTERS (Ozon Style)
   ============================================== */

/* По умолчанию скрываем мобильные фильтры */
.mobile-filters {
    display: none;
}

/* Стили для мобильной строки фильтров */
@media (max-width: 960px) {
    /* Показываем мобильные фильтры */
    .mobile-filters {
        display: block;
        margin-top: 20px;
        margin-bottom: 20px;
        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px;
    }

    .mobile-filters-scroll {
        display: flex;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        padding: 4px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mobile-filters-scroll::-webkit-scrollbar {
        display: none;
    }

    /* Скрываем десктопный сайдбар */
    .sidebar-filters {
        display: none !important;
    }

    /* Чипы фильтров (Ozon style) */
    .filter-chip {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        background: white;
        border: 1.5px solid #e0e0e0;
        border-radius: 18px;
        font-size: 13px;
        font-weight: 500;
        color: var(--text-dark);
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
        transition: all 0.2s;
    }

    .filter-chip:active {
        background: var(--bg-light);
    }

    /* Активный чип (выбран фильтр) */
    .filter-chip.active {
        background: var(--primary-purple);
        border-color: var(--primary-purple);
        color: white;
    }

    .filter-chip.active .filter-chip-text {
        color: white;
    }

    /* Иконка-кнопка (сортировка) */
    .filter-chip-icon {
        padding: 8px 10px;
        background: var(--primary-purple);
        border-color: var(--primary-purple);
        color: white;
    }

    .filter-chip-icon svg {
        color: white;
    }

    .filter-chip-text {
        color: inherit;
    }

    /* Крестик для сброса */
    .filter-chip-clear {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 2px;
        margin-right: -4px;
        padding: 2px;
        border-radius: 50%;
        transition: background 0.2s;
    }

    .filter-chip-clear svg {
        color: white;
        opacity: 0.8;
    }

    .filter-chip-clear:hover svg {
        opacity: 1;
    }

    .filter-chip svg {
        flex-shrink: 0;
    }
}

/* Попап фильтра (снизу экрана) */
.filter-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
}

.filter-popup.show {
    display: block;
}

.filter-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.filter-popup.show .filter-popup-overlay {
    opacity: 1;
}

.filter-popup-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.filter-popup.show .filter-popup-content {
    transform: translateY(0);
}

.filter-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-popup-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.filter-popup-cancel {
    background: none;
    border: none;
    color: var(--primary-purple);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
}

.filter-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}

.filter-popup-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-dark);
}

.filter-popup-option:last-child {
    border-bottom: none;
}

.filter-popup-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-purple);
    flex-shrink: 0;
}

.filter-popup-option span {
    flex: 1;
}

.filter-popup-option:active {
    background: var(--bg-light);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.filter-popup-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e0e0e0;
}

.filter-popup-footer .btn {
    padding: 16px;
    font-size: 16px;
}

/* Блокируем скролл body когда попап открыт */
body.popup-open {
    overflow: hidden;
}

/* ==============================================
   CRITERIA SECTION - NEW DESIGN
   ============================================== */

.criteria-section-new {
    background: #E8F0F8;
    border-radius: 40px;
    padding: 60px 80px;
    margin-bottom: 60px;
}

.criteria-section-new h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.criteria-card {
    background: white;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.08);
}

.criteria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.15);
}

.criteria-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.criteria-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.criteria-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
}

/* Criteria Section Responsive */
@media (max-width: 1200px) {
    .criteria-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 960px) {
    .criteria-section-new {
        padding: 50px 40px;
    }

    .criteria-section-new h2 {
        font-size: 32px;
    }

    .criteria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .criteria-section-new {
        padding: 30px 16px;
        border-radius: 24px;
        margin-bottom: 40px;
    }

    .criteria-section-new h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .criteria-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .criteria-card {
        padding: 12px 14px;
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .criteria-icon {
        width: 40px;
        height: 40px;
        margin: 0;
        flex-shrink: 0;
    }

    .criteria-icon svg {
        width: 18px;
        height: 18px;
    }

    .criteria-card h4 {
        font-size: 14px;
        line-height: 1.3;
    }
}

/* ================================================
   HOMEPAGE STYLES
   ================================================ */

/* Секция услуг */
.homepage-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin: 60px 0 0;
}

.service-card {
    background: white;
    border-radius: 32px;
    padding: 48px;
    box-shadow: 6px 6px 10px rgba(0, 119, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 10px 10px 20px rgba(0, 119, 255, 0.15);
}

.service-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, #0088FF 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.3;
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.service-card-stats {
    font-size: 18px;
    color: var(--primary-purple);
    font-weight: 600;
    margin: 20px 0;
}

.service-card .btn {
    width: 100%;
    text-align: center;
}

/* Лицензия и аккредитации */
.licenses-section {
    padding: 80px 0;
    background: white;
}

.licenses-section .section-subtitle {
    text-align: center;
    color: #64748B;
    font-size: 16px;
    margin-top: 12px;
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.licenses-section .license-card {
    background: white;
    border-radius: 24px;
    padding: 36px 28px;
    box-shadow: 0 4px 20px rgba(0, 119, 255, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.licenses-section .license-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 119, 255, 0.15);
    border-color: rgba(0, 119, 255, 0.15);
}

.license-card-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.licenses-section .license-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark, #2C3E50);
    margin: 0;
}

.licenses-section .license-card p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
    margin: 0;
}

.license-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-purple, #0077FF);
    text-decoration: none;
    transition: all 0.3s ease;
}

.license-card-link:hover {
    color: var(--dark-purple, #0066DD);
    transform: translateX(4px);
}

.license-card-link svg {
    width: 16px;
    height: 16px;
}

/* Социальные сети */
.social-section {
    padding: 60px 0;
}

.social-section .text-center h2 {
    margin-bottom: 8px;
}

.social-section .text-center p {
    color: var(--text-medium);
    font-size: 16px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.social-card {
    background: var(--bg-white);
    border: 2px solid #E8F1FF;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 119, 255, 0.12);
    border-color: var(--primary-purple);
}

.social-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-card__icon svg {
    width: 32px;
    height: 32px;
}

.social-card__icon--vk {
    background: #0077FF;
}

.social-card__icon--telegram {
    background: #2AABEE;
}

.social-card__icon--max {
    background: #FF5C00;
}

.social-card__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.social-card__desc {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.4;
}

.social-card__count {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-purple);
    margin-top: 4px;
}

@media (max-width: 960px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .social-section {
        padding: 40px 0;
    }
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .social-card {
        padding: 16px 12px;
        gap: 8px;
    }
    .social-card__icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    .social-card__icon svg {
        width: 22px;
        height: 22px;
    }
    .social-card__name {
        font-size: 14px;
    }
    .social-card__desc {
        font-size: 12px;
    }
    .social-card__count {
        font-size: 12px;
    }
}

/* Секция последних активностей */
.homepage-recent-activity {
    margin: 80px 0;
}

.activity-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.activity-tab {
    padding: 12px 28px;
    background: white;
    border: 2px solid #e8f1ff;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.activity-tab.active {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #0088FF 100%);
    color: white;
    border-color: var(--primary-purple);
}

.activity-tab:hover {
    border-color: var(--primary-purple);
}

.activity-content {
    display: none;
}

.activity-content.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.activity-content .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f5f7fa;
    border-radius: 24px;
}

.activity-content .empty-state p {
    color: var(--text-medium);
    font-size: 18px;
    margin-bottom: 20px;
}

/* Стили для карточек вебинаров в табе */
.webinar-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 4px 4px 8px rgba(0, 119, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
}

.webinar-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 16px rgba(0, 119, 255, 0.12);
}

.webinar-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.webinar-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.webinar-badge--upcoming {
    background: #e8f1ff;
    color: var(--primary-purple);
}

.webinar-badge--free {
    background: #e8f5e9;
    color: #2e7d32;
}

.webinar-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.4;
}

.webinar-date,
.webinar-speaker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    font-size: 14px;
    margin-bottom: 8px;
}

.webinar-date svg {
    flex-shrink: 0;
    stroke: var(--primary-purple);
}

/* Стили для карточек публикаций в табе */
.publication-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 4px 4px 8px rgba(0, 119, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
}

.publication-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 16px rgba(0, 119, 255, 0.12);
}

.publication-type {
    display: inline-block;
    padding: 6px 12px;
    background: #e8f1ff;
    color: var(--primary-purple);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.publication-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.4;
}

.publication-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-medium);
    font-size: 14px;
}

.publication-author {
    font-weight: 600;
}

.publication-date {
    color: var(--text-light);
}

/* Стили для карточек курсов на главной */
.course-card-home {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 4px 4px 8px rgba(0, 119, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}

.course-card-home:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 16px rgba(0, 119, 255, 0.12);
}

.course-card-home__badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.course-card-home__badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.course-card-home__badge--type {
    background: #f3e8ff;
    color: #7c3aed;
}

.course-card-home__badge--hours {
    background: #e8f1ff;
    color: var(--primary-purple);
}

.course-card-home__title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.4;
    flex-grow: 1;
}

.course-card-home__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.course-card-home__price {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-purple);
}

/* Стили для карточек олимпиад на главной */
.olympiad-card-home {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 4px 4px 8px rgba(0, 119, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}

.olympiad-card-home:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 16px rgba(0, 119, 255, 0.12);
}

.olympiad-card-home__badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.olympiad-card-home__badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.olympiad-card-home__badge--free {
    background: #e8f5e9;
    color: #2e7d32;
}

.olympiad-card-home__title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

.olympiad-card-home__desc {
    color: var(--text-medium);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Бейдж для записей вебинаров */
.webinar-badge--recording {
    background: #fff3e0;
    color: #e65100;
}

/* Финальный CTA */
.homepage-cta-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #0088FF 100%);
    border-radius: 32px;
    padding: 80px 60px;
    text-align: center;
    color: white;
}

.homepage-cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: white;
}

.homepage-cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline {
    background: white;
    color: var(--primary-purple);
    border: 2px solid white;
}

.cta-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: white;
    color: var(--primary-purple);
    border: 2px solid #e8f1ff;
}

.btn-secondary:hover {
    background: #e8f1ff;
    border-color: var(--primary-purple);
}

/* Responsive для homepage */
@media (max-width: 960px) {
    .homepage-services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 32px;
    }

    .license-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .licenses-section .license-card {
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 4px 16px;
        text-align: left;
        padding: 24px 20px;
    }

    .licenses-section .license-card .license-card-logo {
        grid-column: 1;
        grid-row: 1 / -1;
        height: 48px;
        align-self: center;
    }

    .licenses-section .license-card h3,
    .licenses-section .license-card p,
    .licenses-section .license-card .license-card-link {
        grid-column: 2;
    }

    .activity-content.active {
        grid-template-columns: repeat(2, 1fr);
    }

    .homepage-cta-section {
        padding: 60px 40px;
    }

    .homepage-cta-section h2 {
        font-size: 32px;
    }

    .homepage-cta-section p {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .homepage-recent-activity {
        margin: 50px 0;
    }

    .activity-tabs {
        margin-bottom: 24px;
        gap: 10px;
    }

    .activity-tab {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 24px;
    }

    .activity-content.active {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .competition-card,
    .webinar-card,
    .publication-card,
    .course-card-home,
    .olympiad-card-home {
        padding: 16px;
        border-radius: 18px;
    }

    .competition-category,
    .webinar-badge,
    .publication-type,
    .course-card-home__badge,
    .olympiad-card-home__badge {
        padding: 4px 10px;
        font-size: 11px;
        margin-bottom: 8px;
    }

    .course-card-home__price {
        font-size: 20px;
    }

    .competition-title,
    .competition-card h3,
    .webinar-title,
    .publication-title,
    .course-card-home__title,
    .olympiad-card-home__title {
        font-size: 15px;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .competition-description,
    .competition-card p,
    .webinar-date,
    .webinar-speaker,
    .publication-meta,
    .olympiad-card-home__desc {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .competition-footer,
    .course-card-home__footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .competition-price {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .competition-card .btn,
    .webinar-card .btn,
    .publication-card .btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    .service-card {
        padding: 24px;
    }

    .service-card h3 {
        font-size: 24px;
    }

    .service-card-icon {
        width: 64px;
        height: 64px;
    }

    .service-card-icon svg {
        width: 32px;
        height: 32px;
    }

    .licenses-section .license-card h3 {
        font-size: 15px;
    }

    .licenses-section .license-card p {
        font-size: 13px;
    }

    .license-card-link {
        font-size: 13px;
    }

    .audience-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .audience-card {
        padding: 18px 14px;
    }

    .audience-card h3 {
        font-size: 15px;
    }

    .audience-card p {
        font-size: 14px;
    }

    .activity-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
        justify-content: flex-start;
    }

    .activity-tabs::-webkit-scrollbar {
        display: none;
    }

    .activity-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .activity-content.active {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .competition-description,
    .competition-card p {
        display: none;
    }

    .competition-card,
    .webinar-card,
    .publication-card,
    .course-card-home,
    .olympiad-card-home {
        padding: 12px;
        border-radius: 14px;
    }

    .competition-title,
    .competition-card h3,
    .webinar-title,
    .publication-title,
    .course-card-home__title,
    .olympiad-card-home__title {
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .competition-category,
    .webinar-badge,
    .publication-type,
    .course-card-home__badge,
    .olympiad-card-home__badge {
        padding: 3px 8px;
        font-size: 10px;
        margin-bottom: 6px;
    }

    .course-card-home__badges {
        gap: 4px;
        margin-bottom: 8px;
    }

    .course-card-home__price {
        font-size: 16px;
    }

    .competition-price {
        font-size: 16px;
    }

    .competition-card .btn,
    .webinar-card .btn,
    .publication-card .btn,
    .course-card-home .btn {
        font-size: 11px;
        padding: 6px 12px;
    }

    .webinar-date,
    .webinar-speaker {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .homepage-cta-section {
        padding: 40px 24px;
    }

    .homepage-cta-section h2 {
        font-size: 28px;
    }

    .homepage-cta-section p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Общие оптимизации */
    .container {
        padding: 0 16px;
    }

    .mt-40 {
        margin-top: 24px;
    }

    .mt-60 {
        margin-top: 36px;
    }

    .mb-40 {
        margin-bottom: 24px;
    }

    .mb-60 {
        margin-bottom: 36px;
    }

    .text-center h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .text-center p {
        font-size: 15px;
        margin-bottom: 20px;
    }
}

/* ================================================
   HOMEPAGE HERO - WEBINAR STYLE
   ================================================ */

/* Homepage Hero - Webinar Dark Theme */
.homepage-hero {
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
}

.homepage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    height: 100%;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    border-radius: 0 0 80px 80px;
    z-index: 0;
}

.homepage-hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 20px 20px 0;
    gap: 40px;
}

.homepage-hero-content {
    flex: 0 0 50%;
    color: white;
    padding-top: 40px;
}

.homepage-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.homepage-hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 40px;
    color: white;
}

.homepage-hero-subtitle-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 20px;
    margin-bottom: 32px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: fit-content;
}

.homepage-hero-subtitle-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
}

.homepage-hero-cta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.btn-homepage-cta {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 18px 36px;
    border-radius: var(--border-radius-button);
    text-decoration: none;
    transition: all var(--transition-speed) ease-in-out;
    box-shadow: 0 4px 16px rgba(0, 119, 255, 0.4);
    border: none;
    cursor: pointer;
}

.btn-homepage-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 119, 255, 0.5);
    opacity: 1;
}

.homepage-skolkovo-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.homepage-skolkovo-logo {
    height: 48px;
    width: auto;
}

.homepage-skolkovo-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
    text-align: left;
}

/* Homepage Hero Right Section */
.homepage-hero-right {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.homepage-hero-right .homepage-hero-images {
    flex: none;
}

.homepage-hero-right .homepage-hero-badges-bottom {
    justify-content: center;
}

/* Hero Images - inline layout */
.homepage-hero-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.homepage-hero-images .hero-image-circle {
    width: 196px;
    height: 196px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    background: var(--gradient-primary);
    transition: transform 0.3s ease;
}

.homepage-hero-images .hero-image-circle:hover {
    transform: scale(1.05);
}

.homepage-hero-images .hero-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero images same size */
.homepage-hero-images .hero-img-1,
.homepage-hero-images .hero-img-2,
.homepage-hero-images .hero-img-4 {
    width: 196px;
    height: 196px;
}

/* Picture element reset */
.homepage-hero-images picture {
    display: block;
    width: 100%;
    height: 100%;
}

.homepage-hero-images picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Disable parallax on touch devices */
@media (hover: none) {
    .homepage-hero-images .hero-image-circle {
        will-change: auto !important;
    }
}

/* Disable parallax when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
    .homepage-hero-images .hero-image-circle {
        will-change: auto !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Badge style feature cards (Skolkovo, SMI) */
.homepage-hero-badges-bottom {
    display: flex;
    gap: 18px;
}

.homepage-hero-badges-bottom .feature-card {
    display: flex;
}

.homepage-hero-badges-bottom .feature-card--badge {
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    flex: 1;
    transition: all 0.3s ease;
    display: flex;
}

.homepage-hero-badges-bottom .feature-card--badge:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.homepage-hero-badges-bottom .feature-logo {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-hero-badges-bottom .feature-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
}

.homepage-hero-badges-bottom .feature-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.homepage-hero-badges-bottom .feature-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* Homepage Benefits Section - Webinar Style */
.homepage-benefits-section {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    padding: 80px 0 80px;
    margin-top: 0;
}

.homepage-benefits-section .container {
    max-width: 1440px;
    padding: 0 80px;
}

.homepage-benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 0;
}

.homepage-benefit-card {
    background: white;
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.homepage-benefit-card--link {
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.homepage-benefit-card--link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.05), rgba(52, 152, 219, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.homepage-benefit-card--link:hover::before {
    opacity: 1;
}

.homepage-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.benefit-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0077FF, #3498DB);
    border-radius: 12px;
    color: white;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.benefit-card-icon svg {
    width: 28px;
    height: 28px;
}

.benefit-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.homepage-benefit-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #2C3E50;
    margin: 0;
    line-height: 1.4;
}

.homepage-benefit-card p {
    font-size: 13px;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
}

.benefit-card-stats {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #E2E8F0;
}

.stats-number {
    font-size: 24px;
    font-weight: 700;
    color: #0077FF;
    line-height: 1;
}

.stats-label {
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
}

/* Responsive для Homepage Hero */
@media (max-width: 1024px) {
    .homepage-hero .container {
        padding: 60px 20px 0;
        gap: 30px;
    }

    .homepage-hero-title {
        font-size: 42px;
    }

    .homepage-hero-content {
        flex: 0 0 55%;
    }

    .homepage-hero-right {
        flex: 0 0 42%;
    }

    .homepage-hero-images {
        gap: 10px;
    }

    .homepage-hero-images .hero-image-circle,
    .homepage-hero-images .hero-img-1,
    .homepage-hero-images .hero-img-2,
    .homepage-hero-images .hero-img-4 {
        width: 127px;
        height: 127px;
    }

    .homepage-hero-badges-bottom .feature-logo {
        width: 60px;
        height: 60px;
    }

    .homepage-hero-badges-bottom .feature-logo img {
        width: 60px;
        height: 60px;
    }

    .homepage-hero-badges-bottom .feature-label {
        font-size: 14px;
    }

    .homepage-benefits-section .container {
        padding: 0 40px;
    }

    .homepage-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

}

@media (max-width: 960px) {
    .homepage-hero-content {
        flex: 1;
        margin-bottom: 40px;
    }

    .homepage-hero-right {
        flex: 1;
        width: 100%;
        gap: 20px;
    }

    .homepage-hero-images {
        gap: 10px;
        justify-content: center;
    }

    .homepage-hero-badges-bottom {
        gap: 12px;
    }

    .homepage-hero-badges-bottom .feature-card--badge {
        padding: 10px;
        gap: 14px;
        border-radius: 16px;
    }
}

@media (max-width: 640px) {
    .homepage-hero {
        padding: 60px 0 30px;
    }

    .homepage-hero::before {
        border-radius: 0 0 40px 40px;
    }

    .homepage-hero .container {
        flex-direction: column;
        padding: 40px 16px 0;
        gap: 20px;
    }

    .homepage-benefits-section {
        padding: 0 0 40px;
    }

    .homepage-benefits-section .container {
        padding: 0 16px;
    }

    .homepage-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .homepage-benefit-card {
        padding: 18px 14px;
    }

    .benefit-card-icon {
        width: 36px;
        height: 36px;
    }

    .benefit-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .homepage-benefit-card h3 {
        font-size: 15px;
    }

    .homepage-benefit-card p {
        font-size: 14px;
    }

    .stats-number {
        font-size: 18px;
    }

    .stats-label {
        font-size: 11px;
    }

    .homepage-hero-content {
        flex: 1;
        width: 100%;
        text-align: left;
        padding-top: 20px;
    }

    .homepage-hero-right {
        flex: 1;
        width: 100%;
        gap: 16px;
    }

    .homepage-hero-images {
        display: flex !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
        justify-content: space-evenly;
        gap: 6px;
        margin-bottom: 16px;
        padding: 0 8px;
    }

    .homepage-hero-images .hero-image-circle,
    .homepage-hero-images .hero-img-1,
    .homepage-hero-images .hero-img-2,
    .homepage-hero-images .hero-img-4 {
        width: 96px;
        height: 96px;
        border-width: 2px;
    }

    .homepage-hero-badges-bottom {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .homepage-hero-badges-bottom .feature-card--badge {
        padding: 8px;
        gap: 8px;
        border-radius: 12px;
    }

    .homepage-hero-badges-bottom .feature-logo {
        width: 40px;
        height: 40px;
    }

    .homepage-hero-badges-bottom .feature-logo img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .homepage-hero-badges-bottom .feature-label {
        font-size: 10px;
    }

    .homepage-hero-title {
        font-size: 26px;
    }

    .homepage-hero-subtitle-text {
        font-size: 13px;
    }

    .homepage-hero-badges {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
    }

    .btn-homepage-cta {
        font-size: 14px;
        padding: 14px 28px;
    }

    .homepage-hero-cta-row {
        gap: 12px;
    }

    .homepage-skolkovo-badge {
        gap: 10px;
    }

    .homepage-skolkovo-logo {
        height: 40px;
    }

    .homepage-skolkovo-text {
        font-size: 12px;
    }
}
