/* ==========================================================================
   MAIN.CSS - Единый файл стилей для TradeMO
   ========================================================================== */

/* ==========================================================================
   1. CSS RESET & VARIABLES
   ========================================================================== */

:root {
    /* Цвета */
    --primary: #0056b3;
    --primary-dark: #003d82;
    --primary-light: #0075e2;
    --secondary: #1d293f;
    --accent: #0094ff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    
    /* Текст */
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --text-white: #fff;
    
    /* Фоны */
    --bg-white: #fff;
    --bg-light: #f8f9fa;
    --bg-grey: #e9ecef;
    --bg-dark: #1a1a1a;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #0056b3 0%, #0094ff 100%);
    --gradient-secondary: linear-gradient(135deg, #1d293f 0%, #2c3e50 100%);
    --gradient-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #f5f9ff 0%, #ebf5ff 50%, #e6f2ff 100%);
    
    /* Размеры */
    --container-max: 1200px;
    --header-height: 70px;
    
    /* Отступы */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Скругления */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-xxl: 24px;
    --radius-full: 50px;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --shadow-xxl: 0 25px 50px rgba(0,0,0,0.25);
    --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.06);
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Дополнительные стили для контроля overscroll эффекта */
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
    background: #ffffff; /* Чтобы не было видно серого фона при pull-to-refresh */
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overscroll-behavior: none; /* Отключаем эффект "pull-to-refresh" */
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100%;
    overscroll-behavior-y: none; /* Отключаем эффект "pull-to-refresh" */
    touch-action: pan-x pan-y; /* Разрешаем только нормальный скролл */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: pageLoad 0.5s ease-out;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Loading state */
body:not(.loaded) * {
    animation-play-state: paused !important;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--text-white);
}

/* Smooth Scroll для анимаций */
@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--secondary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

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

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

strong {
    font-weight: 600;
    color: var(--secondary);
}

/* ==========================================================================
   3. LAYOUT COMPONENTS
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    overflow-x: hidden;
    max-width: 100%;
}

.section {
    padding: var(--spacing-xxl) 0;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    max-width: 100%;
}

/* Разделители секций */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

/* ==========================================================================
   4. ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes glowPulse {
    0% { text-shadow: 0 0 5px rgba(0, 86, 179, 0.3); }
    50% { text-shadow: 0 0 15px rgba(0, 86, 179, 0.6); }
    100% { text-shadow: 0 0 5px rgba(0, 86, 179, 0.3); }
}

@keyframes numberJump {
    0% { transform: translateZ(20px) scale(1); }
    50% { transform: translateZ(30px) scale(1.15); }
    100% { transform: translateZ(20px) scale(1); }
}

/* Классы для анимаций при скролле */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    will-change: transform, opacity;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Анимация для завершенной статистики */
.stat-completed {
    animation: numberJump 0.8s ease-out, glowPulse 2s ease-in-out infinite;
}

/* Стили для разделенного счетчика 24/7 */
.stat-counter, .stat-fixed {
    display: inline-block;
}

.stat-separator {
    display: inline-block;
    font-weight: 800;
    background: linear-gradient(135deg, #0056b3 0%, #0094ff 100%);
    background-size: 150% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   5. HEADER
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    transition: all 0.3s ease;
    overflow-x: visible; /* Разрешаем горизонтальное переполнение */
    width: 100%;
}

header.scrolled {
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--spacing-md);
    width: 100%; /* Гарантируем полную ширину */
    max-width: 100%; /* Предотвращаем переполнение */
    position: relative; /* Создаем контекст позиционирования */
    overflow-x: visible; /* Разрешаем видимость элементов за границами */
}

.logo {
    transition: transform var(--transition-base);
    z-index: 1001;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 40px;
    width: auto;
    transition: all var(--transition-base);
}

header.scrolled .logo img {
    height: 35px;
}

.mobile-header-title {
    display: none; /* Скрыто по умолчанию */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.nav-desktop {
    display: none;
    position: relative; /* Добавляем контекст позиционирования */
    z-index: 100;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
    position: relative; /* Добавляем контекст позиционирования */
    overflow: visible; /* Предотвращаем обрезание выпадающих элементов */
}

.nav-desktop li {
    position: relative; /* Добавляем контекст позиционирования */
    display: inline-block;
    margin-bottom: 0; /* Убираем лишние отступы */
}

.nav-desktop a {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    position: relative; /* Явно устанавливаем позиционирование */
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: all var(--transition-fast);
    border-radius: 4px;
    overflow: visible; /* Гарантируем видимость псевдоэлемента */
}

/* Обеспечиваем видимость подчеркивания в верхней части экрана */
.nav-desktop a:first-child {
    overflow: visible;
    margin-bottom: 3px; /* Дополнительное пространство для подчеркивания */
}

.nav-desktop a::after {
    /* Полностью удаляем синюю полоску */
    content: none;
    display: none;
}

.nav-desktop a:hover {
    color: var(--primary);
    background: rgba(0, 86, 179, 0.05);
}

.nav-desktop a:hover::after {
    /* Удаляем эффект при наведении */
    display: none;
    width: 0;
}

.nav-desktop a.active {
    color: var(--primary);
    background: rgba(0, 86, 179, 0.08);
    position: relative; /* Обеспечиваем правильный контекст позиционирования */
}

.nav-desktop a.active::after {
    /* Удаляем эффект для активного пункта */
    display: none;
    width: 0;
}

.header-cta {
    display: flex;
}

.header-cta .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.15);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    touch-action: manipulation; /* Улучшение для мобильных устройств */
    -webkit-tap-highlight-color: transparent; /* Убираем подсветку при тапе на iOS */
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--secondary);
    border-radius: 3px;
    transition: all 0.3s ease; /* Более надежный transition */
    transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--primary);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: var(--primary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.3s ease; /* Более надежный transition */
    z-index: 999;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    visibility: hidden; /* Начально скрыто */
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible; /* Показываем при активации */
}

.mobile-menu ul {
    list-style: none;
    padding: var(--spacing-lg) 0;
    margin: 0;
}

.mobile-menu li {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInLeft 0.5s ease forwards;
    margin: 5px 0;
}

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

.mobile-menu li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu li:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu li:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu li:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu li:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu li:nth-child(6) { animation-delay: 0.35s; }
.mobile-menu li:nth-child(7) { animation-delay: 0.4s; }

.mobile-menu a {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-align: center;
    transition: all var(--transition-base);
    border-radius: 8px;
    margin: 0 var(--spacing-md);
}

.mobile-menu a:hover {
    color: var(--primary);
    background: rgba(0, 86, 179, 0.05);
}

.mobile-menu a.active {
    color: var(--primary);
    background: rgba(0, 86, 179, 0.08);
    font-weight: 700;
}

.mobile-menu .btn {
    margin: var(--spacing-lg) auto;
    display: block;
    max-width: 80%;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.2);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.hero {
    padding-top: calc(var(--header-height) + var(--spacing-md));
    padding-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, #e8f0ff 0%, #f0f7ff 25%, #f5f9ff 50%, #f0f7ff 75%, #e8f0ff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 90vh; /* Уменьшаем минимальную высоту */
    display: flex;
    align-items: center;
    isolation: isolate;
    contain: layout style paint;
    z-index: 0;
    box-shadow: inset 0 -10px 30px rgba(0, 0, 0, 0.03);
}

/* Анимированный фон */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 148, 255, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(0, 86, 179, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 40% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 40%);
    animation: float 25s ease-in-out infinite;
    max-width: 100vw;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(0, 86, 179, 0.3);
    border-radius: 25px;
    opacity: 0.8;
    max-width: 100vw;
    overflow: hidden;
}

/* Декоративная волна снизу */
.hero .wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
    max-width: 100vw;
}

.hero .wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
    fill: var(--bg-light);
}

.hero .wave-bottom path {
    animation: waveMotion 20s ease-in-out infinite;
}

@keyframes waveMotion {
    0%, 100% {
        d: path("M0,25 C200,5 400,45 600,25 C800,5 1000,45 1200,25 L1200,50 L0,50 Z");
    }
    50% {
        d: path("M0,25 C200,45 400,5 600,25 C800,45 1000,5 1200,25 L1200,50 L0,50 Z");
    }
}

.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    padding: 1rem;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.4rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    background-image: linear-gradient(135deg, #0056b3 0%, #0094ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 5px 15px rgba(0, 86, 179, 0.1);
}

.hero h1 span {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    margin-top: 0.1em;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero h1 span {
        font-size: 3.5rem;
        margin-top: 0.2em;
    }
}

.hero h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem; /* Уменьшаем отступ снизу */
    line-height: 1.7;
    opacity: 0.9;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.07),
                0 1px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    min-width: 120px; /* Уменьшаем минимальную ширину */
    flex: 1;
    max-width: 180px; /* Уменьшаем максимальную ширину */
    text-align: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    border-radius: var(--radius-xxl);
    z-index: 0;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(0, 148, 255, 0.08) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.08);
    border-color: rgba(0, 86, 179, 0.2);
}

.stat-card:hover::after {
    display: none;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #0056b3 0%, #0094ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    position: relative;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-xl);
}

.hero-buttons .btn {
    width: auto;
    max-width: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.8rem;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #0056b3, #0075e2);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.35);
}

.hero-buttons .btn-primary:hover {
    box-shadow: 0 12px 35px rgba(0, 86, 179, 0.45);
}

.hero-buttons .btn-secondary {
    display: none;
}

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-spring);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s;
    z-index: -1;
}

.btn:hover::before {
    left: 150%;
}

.btn-primary {
    background: linear-gradient(135deg, #0067d2, #0094ff);
    color: var(--text-white);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(0, 86, 179, 0.4);
    background: linear-gradient(135deg, #0075e2, #00a1ff);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: 2px solid rgba(0, 86, 179, 0.1);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.15);
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #0056b3, #0094ff);
    border-radius: var(--radius-full);
    z-index: -2;
    opacity: 0.1;
    transition: opacity var(--transition-base);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(0, 86, 179, 0.2);
    border-color: rgba(0, 86, 179, 0.3);
    color: #0067d2;
}

.btn-secondary:hover::after {
    opacity: 0.15;
}

.btn i {
    margin-right: var(--spacing-sm);
    font-size: 1.1em;
    vertical-align: middle;
    display: inline-block;
    transform: translateY(-1px);
}

/* About Section Stats Redesign */
.about .stat-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.about .stat-card {
    min-width: 0;
    flex: 1;
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.2);
}

.about .stat-number {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.about .stat-label {
    font-size: 0.65rem;
    line-height: 1.2;
    white-space: normal;
}

.about .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.about .advantage-card {
    padding: var(--spacing-md);
}

.about .advantage-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
}

.about .advantage-icon i {
    font-size: 1.5rem;
}

.about .advantage-title {
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
}

.about .advantage-description {
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
}

.about .countries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: var(--spacing-lg);
}

.country-card {
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
}

.country-flag {
    width: 70px;
    height: 50px;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-spring);
    overflow: hidden;
    position: relative;
}

.country-name {
    font-weight: 600;
    color: var(--secondary);
    font-size: 1rem;
    margin-top: 12px;
    line-height: 1.3;
    text-align: center;
}

.country-code {
    display: none;
}

/* ==========================================================================
   8. ADVANTAGES SECTION
   ========================================================================== */

.advantages {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    z-index: 10;
    margin-top: -1px;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.2;
    z-index: 1;
    max-width: 100vw;
    overflow: hidden;
}

.advantages::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 148, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    max-width: 100vw;
    overflow: hidden;
}

.advantages .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    color: var(--secondary);
    position: relative;
    display: inline-block;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 700px;
    margin: var(--spacing-lg) auto 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    counter-reset: advantage-counter;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.advantage-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(0, 86, 179, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    counter-increment: advantage-counter;
    min-height: 280px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    padding-top: var(--spacing-xxl); /* Increased top padding for number */
}

.advantage-card:nth-child(1) { --card-color: #0056b3; }
.advantage-card:nth-child(2) { --card-color: #0094ff; }
.advantage-card:nth-child(3) { --card-color: #0075e2; }
.advantage-card:nth-child(4) { --card-color: #0056b3; }

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color), var(--card-color));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.advantage-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 148, 255, 0.05) 0%, transparent 70%);
    transform: translate(30%, 30%);
    opacity: 0;
    transition: all var(--transition-base);
}

.advantage-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.08);
    border-color: rgba(0, 86, 179, 0.2);
}

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

.advantage-card:hover::after {
    display: none;
}

.advantage-card-header {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.advantage-card-header::before {
    content: counter(advantage-counter, decimal-leading-zero);
    position: absolute;
    right: 0;
    top: -30px;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--card-color);
    opacity: 0.08;
    z-index: 0;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--card-color), var(--card-color));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid var(--card-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-spring);
    position: relative;
    z-index: 1;
    margin: 0 auto var(--spacing-sm);
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
    background-size: 100% 100%;
}

.advantage-icon i {
    font-size: 1.8rem;
    color: var(--card-color);
    transition: color var(--transition-base);
}

.advantage-card:hover .advantage-icon i {
    color: var(--text-white);
}

.advantage-title {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.advantage-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    display: block;
}

/* ==========================================================================
   9. PRODUCT SECTION
   ========================================================================== */

.product {
    background-color: var(--bg-white);
    position: relative;
    z-index: 10;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    counter-reset: product-counter;
}

.product-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    counter-increment: product-counter;
}

.product-card::after {
    content: counter(product-counter, decimal-leading-zero);
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
    transition: opacity var(--transition-base);
}

.product-card:hover::after {
    opacity: 0.6;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-spring);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.08);
    border-color: rgba(0, 86, 179, 0.2);
}

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

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), rgba(0, 148, 255, 0.1));
    border: 2px solid var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

.product-icon::after {
    content: '';
    position: absolute;
    inset: -25px;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-base);
}

.product-card:hover .product-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
    border-color: transparent;
}

.product-card:hover .product-icon::after {
    opacity: 0;
}

.product-icon i {
    font-size: 2.2rem;
    color: var(--primary);
    transition: color var(--transition-base);
}

.product-card:hover .product-icon i {
    color: var(--text-white);
}

.product-title {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   10. GEOGRAPHY SECTION
   ========================================================================== */

.geography {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
    z-index: 10;
    padding: var(--spacing-xxl) 0;
}

.geography::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 148, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    max-width: 100vw;
    overflow: hidden;
}

.geography::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    max-width: 100vw;
    overflow: hidden;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.country-card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-spring);
    cursor: pointer;
    border: 1px solid rgba(0, 86, 179, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 86, 179, 0.03), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.country-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.08);
    border-color: rgba(0, 86, 179, 0.2);
    background: var(--bg-white);
}

.country-card:hover::before {
    opacity: 1;
}

.country-flag {
    width: 70px;
    height: 50px;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-spring);
    overflow: hidden;
    position: relative;
}

.country-card:hover .country-flag {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.country-name {
    font-weight: 600;
    color: var(--secondary);
    font-size: 1rem;
    margin-top: 12px;
    line-height: 1.3;
    text-align: center;
}

.country-code {
    display: none;
}

/* ==========================================================================
   11. CONDITIONS SECTION
   ========================================================================== */

.conditions {
    background: var(--bg-light);
    position: relative;
    z-index: 10;
    padding: var(--spacing-xxl) 0;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) auto;
    max-width: 1200px;
    overflow: visible; /* Убираем скролл */
}

.condition-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
    transition: all var(--transition-spring);
    overflow: visible; /* Убираем скролл */
}

.condition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-spring);
}

.condition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.08);
    border-color: rgba(0, 86, 179, 0.2);
}

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

.condition-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), rgba(0, 148, 255, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all var(--transition-spring);
}

.condition-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: all var(--transition-base);
}

.condition-card:hover .condition-icon {
    background: var(--gradient-primary);
    transform: scale(1.05);
}

.condition-card:hover .condition-icon i {
    color: var(--text-white);
}

/* Removed animation delays for cleaner design */

.condition-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    font-weight: 600;
    color: var(--secondary);
    text-transform: none;
    letter-spacing: -0.5px;
}

.condition-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    color: var(--primary);
    line-height: 1;
}

.condition-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    line-height: 1.5;
    max-width: 250px;
    margin: 0 auto;
}

/* ==========================================================================
   12. CONTACT SECTION
   ========================================================================== */

.contact {
    background: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 10;
    padding: var(--spacing-xxl) 0;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 148, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 86, 179, 0.05) 0%, transparent 50%);
    max-width: 100vw;
    overflow: hidden;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) auto;
    justify-content: center;
    max-width: 1200px;
    overflow: visible; /* Убираем скролл */
}

.contact-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    flex: 1;
    min-width: 280px;
    max-width: 500px;
    position: relative;
    z-index: 1;
    transition: all var(--transition-spring);
    overflow: visible; /* Убираем скролл */
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.15);
    border-color: var(--primary);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
}

.contact-icon i {
    font-size: 2.5rem;
    color: var(--text-white);
    position: relative;
    z-index: 1;
}

.contact-title {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 60px;
}

.contact-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.2);
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
}

.contact-button-alt {
    background: linear-gradient(135deg, #333333, #666666);
}

.contact-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

@media (max-width: 767px) {
    .contact-row {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .contact-card {
        width: 100%;
        max-width: 100%;
        padding: var(--spacing-lg);
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-icon i {
        font-size: 2rem;
    }
    
    .contact-title {
        font-size: 1.2rem;
    }
    
    .contact-description {
        font-size: 0.85rem;
        min-height: auto;
    }
    
    .contact-button {
        width: 100%;
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */

footer {
    background: #1a1a2e;
    color: var(--text-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    max-width: 100vw;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h4 {
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: var(--spacing-sm);
    opacity: 0.9;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    opacity: 0.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
    position: relative;
    font-size: 0.9rem;
}

.footer-section a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

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

.footer-section a:hover::before {
    width: 15px;
}

.footer-section i {
    margin-right: var(--spacing-sm);
    width: 20px;
    text-align: center;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: var(--spacing-lg) 0;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 400;
}

/* ==========================================================================
   14. ABOUT SECTION
   ========================================================================== */

.about {
    background: var(--bg-white);
    position: relative;
    z-index: 10;
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}

.about .stat-cards {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.about .stat-cards:hover {
    opacity: 1;
}

.about .stat-card {
    background: var(--bg-light);
    color: var(--text-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 86, 179, 0.1);
    min-width: 140px;
    text-align: center;
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.about .stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent);
    z-index: 0;
}

.about .stat-card::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.about .stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: var(--bg-white);
}

.about .stat-card:hover::after {
    opacity: 1;
}

.about .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.about .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* About Content Styles */
.about-content {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: var(--spacing-md);
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   15. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Mobile First Approach */
@media (max-width: 767px) {
    :root {
        --header-height: 60px;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 1rem);
        padding-bottom: 2rem;
        min-height: auto; /* Убираем минимальную высоту на мобильных */
    }
    
    .hero .container {
        padding-top: 0;
    }
    
    .hero-stats {
        gap: 0.75rem;
    }
    
    .stat-card {
        min-width: 90px;
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-top: var(--spacing-md);
    }
    
    .hero-buttons .btn {
        width: auto;
        max-width: none;
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.8rem;
    }
    
    .hero-buttons .btn-secondary {
        display: none;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .advantage-card {
        min-height: auto;
        padding: var(--spacing-md) var(--spacing-lg);
        position: relative;
        overflow: hidden;
        padding-top: calc(var(--spacing-md) + 15px); /* Adjust top padding for mobile */
    }
    
    .advantage-card-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    .advantage-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        border-radius: 12px;
    }

    .advantage-icon i {
        font-size: 1.5rem;
    }
    
    .advantage-title {
        text-align: center;
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: var(--spacing-xs);
    }
    
    .advantage-description {
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        margin-top: var(--spacing-lg);
    }
    
    .product-card {
        padding: var(--spacing-md);
        min-height: auto;
        border-width: 1px;
    }
    
    .product-icon {
        width: 50px;
        height: 50px;
        margin-bottom: var(--spacing-sm);
        border-radius: 14px;
    }
    
    .product-icon i {
        font-size: 1.5rem;
    }
    
    .product-title {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .product-description {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
    
    .country-card {
        padding: var(--spacing-sm);
        border-radius: var(--radius-md);
        min-height: 120px;
        background: rgba(248, 249, 250, 0.5);
        border: none;
    }
    
    .country-flag {
        width: 48px;
        height: 36px;
        margin-bottom: var(--spacing-xs);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    
    .country-name {
        font-size: 0.8rem;
        margin-bottom: 2px;
        font-weight: 600;
    }
    
    .country-code {
        font-size: 0.65rem;
        opacity: 0.6;
    }
    
    .conditions-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .condition-card {
        padding: var(--spacing-lg);
    }
    
    .condition-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--spacing-md);
    }
    
    .condition-icon i {
        font-size: 2rem;
    }
    
    .condition-title {
        font-size: 1rem;
    }
    
    .condition-value {
        font-size: 1.5rem;
    }
    
    .condition-description {
        font-size: 0.85rem;
    }
    
    /* About section mobile */
    .about .stat-cards {
        gap: 8px;
        margin-bottom: var(--spacing-md);
        opacity: 0.6;
    }
    
    .about .stat-card {
        padding: var(--spacing-sm);
        min-width: 0;
        flex: 1;
        border: none;
        background: rgba(248, 249, 250, 0.5);
    }
    
    .about .stat-number {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .about .stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .about-content p {
        font-size: 0.95rem;
        padding: 0 var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero .wave-bottom {
        bottom: 0;
    }
    
    .hero .wave-bottom svg {
        height: 30px;
    }
    
    footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-sm);
        padding-bottom: 5px;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 25px;
    }
    
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .footer-section li {
        margin-bottom: 5px;
        margin-right: 10px;
    }
    
    .footer-section a {
        font-size: 0.8rem;
    }
    
    .footer-section i {
        margin-right: 3px;
        width: auto;
    }
    
    .footer-divider {
        margin: var(--spacing-md) 0;
    }
    
    .footer-bottom {
        font-size: 0.7rem;
    }
    
    /* Реквизиты на мобильных в компактном виде */
    .footer-section:nth-child(4) {
        display: block;
        text-align: center;
        margin-top: 15px;
    }
    
    .footer-section:nth-child(4) h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .footer-section:nth-child(4) ul {
        font-size: 0.7rem !important;
        line-height: 1.4;
    }
    
    .footer-section:nth-child(4) li {
        margin-bottom: 2px;
    }
    
    .footer-section:first-child p {
        margin-bottom: 10px;
        font-size: 0.8rem;
    }
    
    .footer-section:first-child div {
        justify-content: center;
    }
    
    .footer-section:first-child div a i {
        font-size: 1.2rem;
    }
    
    .footer-section:nth-child(2) ul,
    .footer-section:nth-child(3) ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .footer-section:nth-child(2) li,
    .footer-section:nth-child(3) li {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        padding: 3px 8px;
        margin: 0;
    }
    
    .footer-section:nth-child(2) a,
    .footer-section:nth-child(3) a {
        font-size: 0.75rem;
    }
    
    .footer-section:nth-child(2) a::before,
    .footer-section:nth-child(3) a::before {
        display: none;
    }
    
    .advantage-card-header::before {
        font-size: 2rem;
        top: -25px;
        right: 3px;
        opacity: 0.05;
    }
    
    .advantage-card {
        min-height: auto;
        padding: var(--spacing-md) var(--spacing-lg);
        position: relative;
        overflow: hidden;
    }
    
    .advantage-card-header {
        padding-top: 5px;
        position: relative;
    }
    
    .advantage-title {
        font-size: 0.95rem;
        line-height: 1.3;
        padding: 0 5px;
    }
    
    header {
        height: 60px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .mobile-toggle {
        margin-right: -5px;
        margin-left: auto;
    }

    .header-container {
        justify-content: space-between;
        gap: 1rem;
        padding: 0 10px;
    }
    
    .mobile-header-title {
        display: block;
    }
    
    .header-cta {
        display: flex !important;
        align-items: center;
    }
    
    .header-cta .btn {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }
    
    /* Отображаем кнопку в шапке на мобильных */
    .header-cta {
        display: flex !important;
        align-items: center;
    }
    
    .header-cta .btn {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }
}

/* Средние устройства */
@media (min-width: 768px) and (max-width: 991px) {
    .hero {
        padding-top: calc(var(--header-height) + 1.5rem);
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .stat-card {
        min-width: 110px;
        max-width: 150px;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .mobile-toggle {
        display: none;
    }
    
    .nav-desktop {
        display: block;
    }
    
    .header-cta {
    display: flex;
}
    
    .hero {
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: var(--spacing-lg);
    }
    
    .stat-card {
        min-width: 180px;
        max-width: 220px;
        padding: var(--spacing-lg);
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-buttons .btn {
        width: auto;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantage-card-header {
        flex-direction: row;
        text-align: left;
    }
    
    .advantage-title {
        text-align: left;
        font-size: 1.15rem;
    }
    
    .advantage-description {
        text-align: left;
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .product-card {
        padding: var(--spacing-lg);
    }
    
    .product-icon {
        width: 60px;
        height: 60px;
    }
    
    .product-icon i {
        font-size: 1.8rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.85rem;
    }
    
    .countries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        text-align: left;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 3rem;
        min-height: 85vh;
    }
    
    .hero .container {
        padding: 2rem;
    }
    
    .hero h1 {
        font-size: 4.2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .stat-card {
        min-width: 200px;
        max-width: 240px;
        padding: var(--spacing-xl);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    .advantage-card {
        min-height: auto;
        padding: var(--spacing-xl);
    }
    
    .advantage-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .conditions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero .container {
        max-width: 1200px;
    }
}

/* High DPI Screens */
@media (min-resolution: 2dppx) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ==========================================================================
   16. PRINT STYLES
   ========================================================================== */

@media print {
    /* Скрываем элементы при печати */
    .mobile-toggle,
    .mobile-menu,
    .hero::before,
    .hero::after,
    .contact-button,
    .btn {
        display: none !important;
    }
    
    /* Базовые стили для печати */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: white;
    }
    
    header {
        position: relative;
        box-shadow: none;
        border-bottom: 1px solid #ddd;
    }
    
    .section {
        page-break-inside: avoid;
        padding: 30px 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    
    /* Оптимизация карточек для печати */
    .advantage-card,
    .product-card,
    .country-card,
    .condition-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   17. UTILITIES
   ========================================================================== */

/* Скрываем элементы визуально, но оставляем доступными для скринридеров */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Отключаем анимации для пользователей с соответствующими настройками */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus стили для доступности */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Стили для темной темы (будущее) */
@media (prefers-color-scheme: dark) {
    /* Можно добавить поддержку темной темы в будущем */
}

/* ==========================================================================
   18. ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .advantage-card,
    .product-card,
    .condition-card,
    .country-card {
        border-width: 2px;
        border-color: var(--text-primary);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* ==========================================================================
   19. PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* Lazy loading images */
img[loading="lazy"] {
    background: var(--bg-light);
}

/* Optimize font loading */
.font-loading body {
    opacity: 0;
}

.fonts-loaded body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* GPU acceleration for animations */
.advantage-card,
.product-card,
.stat-card,
.country-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ==========================================================================
   20. FINAL TOUCHES
   ========================================================================== */

/* Smooth page load animation */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Easter egg: Logo animation on hover */
.logo:hover img {
    animation: logoSpin 0.6s ease-in-out;
}

@keyframes logoSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ==========================================================================
   END OF MAIN.CSS
   ========================================================================== */

@media (max-width: 359px) {
    /* Для очень маленьких экранов */
    .hero-stats {
        gap: 5px;
    }
    
    .stat-card {
        padding: 8px 3px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    

    
    .fixed-contact-button {
        padding: 8px 12px !important;
        font-size: 12px !important;
        right: 10px !important;
    }
    
    .header-cta .btn {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }
}



/* Защитные стили */
[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Специальные стили для активного пункта "Главная" */
.nav-desktop a[href="#main-content"].active::after {
    display: none;
} 

/* Правила для iOS Safari */
@supports (-webkit-touch-callout: none) {
    body {
        /* Убираем position: fixed, который блокировал работу бургер-меню */
        width: 100%;
        height: auto;
        overflow-y: auto;
    }
}

/* Mobile Menu Toggle - улучшенная версия */
.mobile-toggle {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    touch-action: manipulation; /* Улучшение для мобильных устройств */
    -webkit-tap-highlight-color: transparent; /* Убираем подсветку при тапе на iOS */
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--secondary);
    border-radius: 3px;
    transition: all 0.3s ease; /* Более надежный transition */
    transform-origin: center;
}

/* Mobile Menu - улучшенная версия */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.3s ease; /* Более надежный transition */
    z-index: 999;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    visibility: hidden; /* Начально скрыто */
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible; /* Показываем при активации */
}

/* Мобильная версия - исправляем проблемы со скроллом */
@media (max-width: 767px) {
    .conditions-grid, 
    .contact-row,
    .condition-card,
    .contact-card,
    .conditions,
    .contact {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
        -webkit-overflow-scrolling: auto !important;
        scroll-behavior: auto !important;
    }
    
    /* Убираем возможные горизонтальные скроллы */
    section {
        max-width: 100% !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* Исправляем вложенные элементы */
    .container > * {
        overflow: visible !important;
    }
}

/* Фиксированная кнопка "Написать нам" */
.fixed-contact-button {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 999;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    transform: translateY(0);
    animation: float 3s ease-in-out infinite;
}

.fixed-contact-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-accent);
    color: white;
}

.fixed-contact-button i {
    font-size: 16px;
}

@media (max-width: 767px) {
    .fixed-contact-button {
        top: 70px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .fixed-contact-button i {
        font-size: 14px;
    }
}