/* ============================================
   Изумрудная цветовая палитра
   ============================================ */
:root {
    /* Изумрудная палитра */
    --emerald-50: #E8F5E9;
    --emerald-100: #C8E6C9;
    --emerald-200: #A5D6A7;
    --emerald-300: #81C784;
    --emerald-400: #66BB6A;
    --emerald-500: #50C878;
    --emerald-600: #43A047;
    --emerald-700: #388E3C;
    --emerald-800: #2E7D4E;
    --emerald-900: #1B5E3F;
    
    /* Основные цвета */
    --primary: var(--emerald-500);
    --primary-dark: var(--emerald-600);
    --primary-light: var(--emerald-400);
    --accent: var(--emerald-300);
    
    /* Фоны */
    --bg-primary: #FFFFFF;
    --bg-secondary: var(--emerald-50);
    --bg-dark: var(--emerald-800);
    
    /* Текст */
    --text-primary: #1A1A1A;
    --text-secondary: #424242;
    --text-light: #9E9E9E;
    --text-white: #FFFFFF;
    
    /* Границы */
    --border-light: var(--emerald-200);
    --border-medium: var(--emerald-400);
    --border-dark: var(--emerald-600);
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Переходы */
    --transition: all 0.3s ease;
}

/* ============================================
   Сброс стилей
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* ============================================
   Типографика
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Контейнер
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header (Шапка)
   ============================================ */
.header {
    background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-600) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--text-white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--emerald-200);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-700) 50%, var(--emerald-600) 100%);
    z-index: 9999;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-menu-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 400px;
    align-items: center;
    animation: fadeInUp 0.8s ease;
}

.mobile-menu-nav a {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    transition: var(--transition);
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.mobile-menu-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-menu-nav a:hover::before {
    left: 100%;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-nav a:last-child {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.mobile-menu-nav a:last-child:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    color: var(--text-white);
    padding: 4rem 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../image/hero fon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.7) 0%, rgba(16, 185, 129, 0.6) 50%, rgba(52, 211, 153, 0.5) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-image {
    flex: 0 0 400px;
    max-width: 400px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    animation: fadeInUp 0.8s ease;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero h1 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

/* ============================================
   Кнопки
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--emerald-500);
    color: var(--text-white);
    border-color: var(--emerald-600);
}

.btn-primary:hover {
    background: var(--emerald-600);
    border-color: var(--emerald-700);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--emerald-600);
}

/* ============================================
   Игра-вопросник
   ============================================ */
.quiz-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-question h3 {
    color: var(--emerald-700);
    margin-bottom: 1rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-primary);
}

.quiz-option:hover {
    border-color: var(--emerald-400);
    background: var(--emerald-50);
}

.quiz-option.selected {
    border-color: var(--emerald-500);
    background: var(--emerald-100);
}

.quiz-option.correct {
    border-color: var(--emerald-600);
    background: var(--emerald-200);
}

.quiz-option.incorrect {
    border-color: #E53935;
    background: #FFEBEE;
}

.quiz-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.quiz-result {
    text-align: center;
    padding: 2rem;
    background: var(--emerald-50);
    border-radius: 12px;
    margin-top: 2rem;
}

.quiz-result h3 {
    color: var(--emerald-700);
    margin-bottom: 1rem;
}

.quiz-score {
    font-size: 2rem;
    font-weight: bold;
    color: var(--emerald-600);
    margin: 1rem 0;
}

/* ============================================
   Секции
   ============================================ */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: linear-gradient(to bottom, var(--emerald-50), var(--bg-primary));
}

.section-title {
    text-align: center;
    color: var(--emerald-700);
    margin-bottom: 3rem;
}

.quiz-header-image {
    max-width: 600px;
    margin: 1.5rem auto;
    width: 100%;
}

.quiz-header-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    animation: fadeInUp 0.8s ease;
}

/* ============================================
   Platform Description Section
   ============================================ */
.platform-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.platform-content {
    flex: 1;
}

.platform-image {
    flex: 0 0 400px;
    max-width: 400px;
}

.platform-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    animation: fadeInUp 0.8s ease;
}

/* ============================================
   Statistics Section
   ============================================ */
.statistics-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.statistics-image {
    flex: 0 0 400px;
    max-width: 400px;
}

.statistics-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    animation: fadeInUp 0.8s ease;
}

.statistics-content {
    flex: 1;
}

/* ============================================
   Tips Section
   ============================================ */
.tips-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tips-image {
    flex: 0 0 400px;
    max-width: 400px;
    position: sticky;
    top: 100px;
}

.tips-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    animation: fadeInUp 0.8s ease;
}

.tips-content {
    flex: 1;
}

.tips-content .article-card {
    margin-bottom: 2rem;
}

.tips-content .article-card:last-child {
    margin-bottom: 0;
}

/* ============================================
   Карточки игр
   ============================================ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    text-align: center;
}

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

.game-card.locked {
    background: var(--emerald-50);
    border-color: var(--emerald-300);
    opacity: 0.7;
    position: relative;
}

.game-card.locked::after {
    content: 'Kilitli';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.9rem;
    color: var(--emerald-600);
    font-weight: 600;
    background: var(--emerald-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.game-card h3 {
    color: var(--emerald-700);
    margin-bottom: 1rem;
}

.game-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.game-image {
    margin: 1rem 0;
    width: 100%;
}

.game-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    animation: fadeInUp 0.8s ease;
}

.game-fs-requirement {
    color: var(--emerald-600);
    font-weight: 600;
    margin-top: 1rem;
}

/* ============================================
   Формы
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px var(--emerald-100);
    outline: none;
}

/* ============================================
   FS Badge (Игровые очки)
   ============================================ */
.fs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    color: var(--text-white);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

.fs-counter {
    color: var(--emerald-600);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   Турнирная таблица
   ============================================ */
.leaderboard-table {
    width: 100%;
    background: var(--bg-primary);
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-width: 600px;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    width: 100%;
    position: relative;
}

.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: var(--emerald-50);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: var(--emerald-400);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-500);
}

.leaderboard-table thead {
    background: var(--emerald-600);
    color: var(--text-white);
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 1rem;
    text-align: left;
}

.leaderboard-table tbody tr:nth-child(even) {
    background: var(--emerald-50);
}

.leaderboard-table tbody tr:hover {
    background: var(--emerald-100);
}

.leaderboard-rank {
    font-weight: bold;
    color: var(--emerald-600);
}

/* ============================================
   Профиль
   ============================================ */
.profile-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--emerald-50);
    border-radius: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--emerald-600);
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-800) 100%);
    color: var(--text-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section p {
    color: var(--emerald-200);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-contact-info {
    color: var(--emerald-200);
    line-height: 1.8;
    margin-top: 0.5rem;
}

.footer-contact-info strong {
    color: var(--text-white);
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.footer-section h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--emerald-200);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--emerald-100);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.fs-footnote {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--emerald-200);
    font-style: italic;
}

/* ============================================
   Анимации
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ============================================
   Адаптивность
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .section-title h1,
    .section-title h2 {
        font-size: 1.75rem;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .section-title p {
        font-size: 0.95rem;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1000;
    }
    
    .mobile-menu-nav a {
        font-size: 1.3rem;
        padding: 1rem 1.5rem;
    }
    
    .mobile-menu-close {
        top: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        order: 1;
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .platform-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .platform-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        order: 2;
    }
    
    .platform-content {
        order: 1;
    }
    
    .statistics-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .statistics-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        order: 1;
    }
    
    .statistics-content {
        order: 2;
    }
    
    .tips-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .tips-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        position: static;
        order: 1;
    }
    
    .tips-content {
        order: 2;
    }
    
    .quiz-container {
        padding: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .table-wrapper {
        margin: 1.5rem -15px;
        padding: 0 15px;
    }
    
    .leaderboard-table {
        font-size: 0.85rem;
        min-width: 500px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    .leaderboard-table th:first-child,
    .leaderboard-table td:first-child {
        padding-left: 0.75rem;
    }
    
    .leaderboard-table th:last-child,
    .leaderboard-table td:last-child {
        padding-right: 0.75rem;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-contact-info {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .section-title h1,
    .section-title h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .section-title p {
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .quiz-container {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .table-wrapper {
        margin: 1.5rem -15px;
        padding: 0 15px;
    }
    
    .leaderboard-table {
        font-size: 0.8rem;
        min-width: 450px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.6rem 0.4rem;
    }
    
    .info-table {
        font-size: 0.8rem;
        min-width: 450px;
    }
    
    .info-table th,
    .info-table td {
        padding: 0.6rem 0.4rem;
    }
    
    .article-card h3 {
        font-size: 1.2rem;
    }
    
    .profile-card h2,
    .profile-card h3 {
        font-size: 1.2rem;
    }
    
    .mobile-menu {
        padding: 1.5rem;
    }
    
    .mobile-menu-nav {
        max-width: 100%;
        gap: 1rem;
    }
    
    .mobile-menu-nav a {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }
    
    .mobile-menu-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* ============================================
   Утилиты
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ============================================
   Аккордеоны (Accordion)
   ============================================ */
.accordion {
    margin: 2rem 0;
}

.accordion-item {
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: var(--emerald-400);
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    padding: 1.25rem 1.5rem;
    background: var(--emerald-50);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--emerald-700);
    transition: var(--transition);
    user-select: none;
}

.accordion-header:hover {
    background: var(--emerald-100);
}

.accordion-header.active {
    background: var(--emerald-200);
    color: var(--emerald-800);
}

.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--emerald-600);
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-content.active {
    max-height: 1000px;
    padding: 1.5rem;
}

.accordion-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.accordion-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
    line-height: 2;
}

/* ============================================
   Таблицы (Tables)
   ============================================ */
.info-table {
    width: 100%;
    background: var(--bg-primary);
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    min-width: 600px;
}

.info-table thead {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
    color: var(--text-white);
}

.info-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.info-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.info-table tbody tr {
    transition: var(--transition);
}

.info-table tbody tr:hover {
    background: var(--emerald-50);
}

.info-table tbody tr:last-child td {
    border-bottom: none;
}

.info-table .highlight {
    background: var(--emerald-100);
    font-weight: 600;
    color: var(--emerald-700);
}

/* ============================================
   Статьи и карточки контента
   ============================================ */
.article-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.article-card:hover {
    border-color: var(--emerald-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.article-card h3 {
    color: var(--emerald-700);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-card .article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-card p {
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.article-card .article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.article-tag {
    background: var(--emerald-100);
    color: var(--emerald-700);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   Особенности и преимущества
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--text-white);
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    color: var(--emerald-700);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   Статистика и метрики
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--emerald-50), var(--emerald-100));
    border: 2px solid var(--emerald-200);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--emerald-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--emerald-700);
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Бейджи и метки
   ============================================ */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--emerald-500);
    color: var(--text-white);
}

.badge-secondary {
    background: var(--emerald-100);
    color: var(--emerald-700);
}

.badge-success {
    background: var(--emerald-200);
    color: var(--emerald-800);
}

/* ============================================
   Адаптивность для новых элементов
   ============================================ */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .table-wrapper {
        margin: 1.5rem -15px;
        padding: 0 15px;
    }
    
    .info-table {
        font-size: 0.85rem;
        min-width: 500px;
    }
    
    .info-table th,
    .info-table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    .info-table th:first-child,
    .info-table td:first-child {
        padding-left: 0.75rem;
    }
    
    .info-table th:last-child,
    .info-table td:last-child {
        padding-right: 0.75rem;
    }
    
    .accordion-header {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .article-card h3 {
        font-size: 1.3rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   Contact Page Styles
   ============================================ */
.contact-map {
    margin-top: 2rem;
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-primary);
}

.map-container iframe {
    width: 100%;
    display: block;
    border-radius: 12px;
}

/* Contact Info Icons */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--emerald-50);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-info-item:hover {
    background: var(--emerald-100);
    transform: translateX(5px);
}

.contact-info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--emerald-700);
}

.contact-info-item p,
.contact-info-item a {
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Contact Form Styles */
#contactForm textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Contact Page */
@media (max-width: 768px) {
    .section > .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .map-container iframe {
        height: 350px !important;
    }
    
    .contact-info-item {
        padding: 1rem;
    }
}

