/* ===== DARK THEME BASE ===== */
:root {
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);

    --bg-primary: #0A0A14;
    --bg-secondary: #12121E;
    --bg-card: #1A1A2E;
    --bg-surface: #24243C;

    --text-primary: #FFFFFF;
    --text-secondary: #B0B0C0;
    --text-muted: #8A8FA3;

    --accent-primary: #6C63FF;
    --accent-secondary: #0088CC;
    --accent-telegram: #0088CC;
    --accent-success: #00D68F;
    --accent-warning: #FFAA00;

    --accent-gradient: linear-gradient(135deg, #6C63FF 0%, #0088CC 100%);
    --accent-gradient-hover: linear-gradient(135deg, #7B73FF 0%, #0099E6 100%);

    --border-color: #2D2D44;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(108, 99, 255, 0.3);

    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-darker: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.24);
    --glow-primary: 0 0 50px rgba(108, 99, 255, 0.2);
    --glow-secondary: 0 0 50px rgba(0, 136, 204, 0.2);
    --glow-card: 0 0 40px rgba(108, 99, 255, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;

    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LIGHT THEME ===== */
.light-theme {
    --bg-primary: #F8FAFC;
    --bg-secondary: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-surface: #E2E8F0;

    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;

    --accent-primary: #6C63FF;
    --accent-secondary: #0088CC;
    --accent-telegram: #0088CC;
    --accent-success: #00D68F;
    --accent-warning: #FFAA00;

    --accent-gradient: linear-gradient(135deg, #6C63FF 0%, #0088CC 100%);
    --accent-gradient-reverse: linear-gradient(135deg, #0088CC 0%, #6C63FF 100%);
    --accent-gradient-hover: linear-gradient(135deg, #7B73FF 0%, #0099E6 100%);

    --border-color: #E2E8F0;
    --border-light: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(108, 99, 255, 0.3);

    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-darker: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glow-primary: 0 0 50px rgba(108, 99, 255, 0.15);
    --glow-secondary: 0 0 50px rgba(0, 136, 204, 0.15);
    --glow-card: 0 0 40px rgba(108, 99, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Безопасные отступы для iOS */
    padding-top: var(--safe-area-inset-top);
    padding-right: var(--safe-area-inset-right);
    padding-bottom: var(--safe-area-inset-bottom);
    padding-left: var(--safe-area-inset-left);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 max(24px, var(--safe-area-inset-left));
    padding-right: max(24px, var(--safe-area-inset-right));
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

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

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.telegram-text {
    color: var(--accent-telegram);
    font-weight: 700;
}

/* ===== HEADER ===== */
.header {
    /* position: sticky;  удалено */
    /* top: 0;            удалено */
    z-index: 1000;       /* можно оставить */
    padding: 16px 0;
    padding-top: calc(16px + var(--safe-area-inset-top));
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.light-theme .header {
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    padding: 12px 0;
    padding-top: calc(12px + var(--safe-area-inset-top));
    box-shadow: var(--shadow-darker);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

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

.logo-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

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

.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    gap: 32px;
    margin: 0 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 8px 0;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-fast);
    border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    transform: rotate(15deg);
    box-shadow: var(--glow-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.menu-toggle:hover {
    background: var(--bg-card);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    outline: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 48px;
}

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

.light-theme .btn::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

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

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-dark);
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-darker), var(--glow-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-telegram);
    border-color: var(--accent-telegram);
}

.btn-secondary:hover {
    background: var(--accent-telegram);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--glow-secondary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(108, 99, 255, 0.1);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.0625rem;
    font-weight: 700;
}

/* ===== HERO SECTION ===== */
/* Hero — полностью переписан под дизайнерский стиль */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 160px;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Градиентные подложки (оставлены без изменений) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(108,99,255,0.12) 0%, transparent 40%),
                radial-gradient(circle at 70% 80%, rgba(0,136,204,0.10) 0%, transparent 45%);
    pointer-events: none;
    z-index: 1;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #0a0a14 100%);
    opacity: 0.9;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Бейдж */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(108,99,255,0.08);
    border: 1px solid rgba(108,99,255,0.25);
    backdrop-filter: blur(12px);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.badge-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Заголовок – убрана анимация появления (теперь виден сразу) */
.hero-title {
    font-size: clamp(3.2rem, 8vw, 5.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 32px;
    opacity: 1; /* Было 0 – теперь сразу виден */
}

@media (max-width: 640px) {
    .hero-title br { display: block; }
}

.subtitle {
    font-size: clamp(1.18rem, 3vw, 1.38rem);
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 700px;   /* Комфортная ширина для чтения */
    margin: 0 auto 48px; /* Авто-отступы слева и справа = центрирование */
    text-align: center;  /* Явное центрирование текста */
    opacity: 1;          /* Мгновенное появление */
}

.hero-cta {
    margin-bottom: 80px;
}

.btn-glow {
    padding: 18px 48px;
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--accent-gradient);
    box-shadow: 0 0 40px rgba(108,99,255,0.35),
                0 0 80px rgba(0,136,204,0.25);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-glow:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 0 60px rgba(108,99,255,0.55),
                0 0 120px rgba(0,136,204,0.4);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(40px, 6vw, 80px);
    flex-wrap: wrap;
}

.stat-number {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.94rem;
    color: #a0a0b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Анимации появления */
@keyframes titleReveal {
    0%   { opacity: 0; transform: translateY(40px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes subtitleReveal {
    0%   { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Мобильная адаптация hero */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 80px 16px 120px;
    }

    .hero-title {
        font-size: clamp(2.8rem, 9vw, 4.2rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 8px;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .badge {
        padding: 8px 18px;
        font-size: 0.82rem;
    }

    .btn-glow {
        padding: 16px 40px;
        font-size: 1.05rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text h1 {
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInScale 1s ease-out;
}

.hero-text .subtitle {
    margin-bottom: 30px;
    animation: fadeInScale 1.2s ease-out;
}

.hero-actions {
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    animation: pulseStats 1.5s infinite alternate;
}

.stat-number {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    color: transparent;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulseStats {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.light-theme .hero {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(108, 99, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 136, 204, 0.05) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}

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

.hero-text h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text h1 .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 500px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.badge-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ========== ЦЕНТРИРОВАНИЕ КНОПКИ "НАЧАТЬ БЕСПЛАТНО" ========== */
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;  /* + центрирование кнопки */
}

.hero-stats {
    display: flex;
    gap: clamp(20px, 4vw, 40px);
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.25rem;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    position: relative;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.glow-ring {
    position: absolute;
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
    border-style: solid;
}

.ring-1 {
    width: min(500px, 80vw);
    height: min(500px, 80vw);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.ring-2 {
    width: min(600px, 90vw);
    height: min(600px, 90vw);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1s;
    border: 1px solid rgba(0, 136, 204, 0.15);
}

.ring-3 {
    width: min(700px, 100vw);
    height: min(700px, 100vw);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .ring-3 {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.phone-container {
    position: relative;
    width: min(340px, 90%);
    z-index: 2;
}

.hero-phone {
    width: 100%;
    height: auto;
    border-radius: 40px;
    filter:
        drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4))
        drop-shadow(0 0 60px rgba(108, 99, 255, 0.1));
    transform:
        perspective(1000px)
        rotateY(-10deg)
        rotateX(5deg)
        translateZ(0);
    transition: var(--transition-slow);
    will-change: transform;
}

.light-theme .hero-phone {
    filter:
        drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1))
        drop-shadow(0 0 60px rgba(108, 99, 255, 0.05));
}

.hero-phone:hover {
    transform:
        perspective(1000px)
        rotateY(-5deg)
        rotateX(2deg)
        translateZ(20px);
    filter:
        drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5))
        drop-shadow(0 0 80px rgba(108, 99, 255, 0.2));
}

.light-theme .hero-phone:hover {
    filter:
        drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15))
        drop-shadow(0 0 80px rgba(108, 99, 255, 0.1));
}

.phone-screen {
    position: absolute;
    top: 32px;
    left: 32px;
    right: 32px;
    bottom: 32px;
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.screen-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-message, .user-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 85%;
    animation: messageAppear 0.3s ease-out;
}

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

.ai-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-avatar, .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-dark);
}

.ai-avatar {
    background: var(--accent-gradient);
}

.user-avatar {
    background: var(--accent-telegram);
}

.message {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.8125rem;
    line-height: 1.4;
    max-width: 100%;
    word-wrap: break-word;
}

.ai-message .message {
    background: var(--bg-card);
    border-top-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.user-message .message {
    background: var(--accent-telegram);
    color: white;
    border-top-right-radius: 4px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 18px;
    width: fit-content;
    border: 1px solid var(--border-color);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.typing-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 8px;
    font-weight: 500;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid var(--border-color);
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.element-1 {
    top: 15%;
    left: 5%;
    color: var(--accent-primary);
    animation-delay: 0s;
}

.element-2 {
    top: 65%;
    right: 10%;
    color: var(--accent-telegram);
    animation-delay: 2s;
}

.element-3 {
    bottom: 25%;
    left: 15%;
    color: #FF6B8B;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-20px) rotate(5deg) scale(1.05);
    }
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: clamp(60px, 8vw, 120px) 0;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(108, 99, 255, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 136, 204, 0.05) 0%, transparent 70%);
}

.light-theme .features {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(108, 99, 255, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 136, 204, 0.03) 0%, transparent 70%);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 80px);
    position: relative;
}

.section-header h2 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(20px, 3vw, 30px);
    margin-bottom: 60px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: clamp(30px, 4vw, 40px) clamp(25px, 3vw, 35px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow:
        var(--shadow-darker),
        var(--glow-card);
}

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

.feature-card:hover::after {
    opacity: 0.05;
}

/* ИКОНКИ - БОЛЬШИЕ И АДАПТИВНЫЕ */
.feature-icon {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* КОНТЕЙНЕР ИКОНОК */
.icon-wrapper {
    width: 160px;
    height: 160px;
    background: transparent;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: visible;
    border: none;
    margin: 0 auto;
    box-shadow: none;
}

/* ИЗОБРАЖЕНИЯ */
.icon-wrapper img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: var(--transition);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    padding: 0;
}

.light-theme .icon-wrapper img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* Разные цвета для разных карточек */
.feature-card:nth-child(1) .icon-wrapper img {
    filter: drop-shadow(0 4px 12px rgba(108, 99, 255, 0.15));
}

.feature-card:nth-child(2) .icon-wrapper img {
    filter: drop-shadow(0 4px 12px rgba(0, 136, 204, 0.15));
}

.feature-card:nth-child(3) .icon-wrapper img {
    filter: drop-shadow(0 4px 12px rgba(255, 107, 139, 0.15));
}

.light-theme .feature-card:nth-child(1) .icon-wrapper img {
    filter: drop-shadow(0 4px 12px rgba(108, 99, 255, 0.1));
}

.light-theme .feature-card:nth-child(2) .icon-wrapper img {
    filter: drop-shadow(0 4px 12px rgba(0, 136, 204, 0.1));
}

.light-theme .feature-card:nth-child(3) .icon-wrapper img {
    filter: drop-shadow(0 4px 12px rgba(255, 107, 139, 0.1));
}

/* ОЧЕНЬ ЛЕГКАЯ АНИМАЦИЯ ПРИ НАВЕДЕНИИ */
.feature-card:hover .icon-wrapper {
    transform: translateY(-2px);
}

.feature-card:hover .icon-wrapper img {
    transform: scale(1.03);
    filter: drop-shadow(0 6px 20px rgba(108, 99, 255, 0.25));
}

.light-theme .feature-card:hover .icon-wrapper img {
    filter: drop-shadow(0 6px 20px rgba(108, 99, 255, 0.15));
}

/* Контент карточки */
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    font-weight: 800;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

/* Список преимуществ */
.feature-list {
    list-style: none;
    margin-top: auto;
    position: relative;
    z-index: 2;
    text-align: left;
    padding-left: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    padding: 6px 0;
}

.feature-list li:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.feature-list i {
    color: var(--accent-success);
    font-size: 0.9rem;
    min-width: 20px;
    transition: var(--transition);
    background: rgba(0, 214, 143, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-list li:hover i {
    color: white;
    background: var(--accent-primary);
    transform: scale(1.1) rotate(3deg);
}

/* Анимация появления карточек */
.feature-card {
    animation: cardAppear 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: clamp(80px, 10vw, 120px) 0;
    background: var(--bg-secondary);
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(108, 99, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 136, 204, 0.05) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite alternate;
}

@keyframes backgroundMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
}

.faq-count {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.faq-count span {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Поиск по FAQ */
.faq-search {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-container {
    position: relative;
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    z-index: 2;
}

#faqSearch {
    width: 100%;
    padding: 18px 20px 18px 50px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

#faqSearch:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

#faqSearch::placeholder {
    color: var(--text-muted);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: var(--shadow-darker);
}

.search-results.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.search-result-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-result-item:hover {
    background: rgba(108, 99, 255, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-question {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.result-preview {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
}

.search-no-results i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Контролы FAQ */
.faq-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.faq-controls .btn {
    min-height: 44px;
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* Контейнер FAQ */
.faq-container {
    max-width: 900px;
    margin: 0 auto 4rem;
}

/* Элементы FAQ */
.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.faq-item summary {
    list-style: none;
    padding: 24px 32px;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: rgba(108, 99, 255, 0.02);
}

.faq-item summary .faq-icon {
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.faq-item[open] summary .faq-icon {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.faq-content {
    padding: 0 32px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item[open] .faq-content {
    max-height: 2000px;
    padding: 0 32px 24px;
    animation: fadeIn 0.5s ease-out;
}

.faq-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.faq-content ul,
.faq-content ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
}

.faq-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.faq-content code {
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent-primary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.faq-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Футер FAQ */
.faq-footer {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.faq-footer p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.faq-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: clamp(80px, 10vw, 120px) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(108, 99, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 136, 204, 0.1) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite alternate;
}

.light-theme .cta-section::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(108, 99, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 136, 204, 0.05) 0%, transparent 50%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    padding: clamp(40px, 6vw, 80px) 0 clamp(20px, 4vw, 40px);
    padding-bottom: calc(clamp(20px, 4vw, 40px) + var(--safe-area-inset-bottom));
    position: relative;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(40px, 6vw, 80px);
    margin-bottom: clamp(30px, 5vw, 60px);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 1rem 0;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    border-color: transparent;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a i {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.social-links a:hover i {
    color: white;
    transform: scale(1.1);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 4vw, 40px);
}

.link-group h4 {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    position: relative;
    padding-left: 0;
}

.link-group a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.link-group a:hover {
    color: var(--text-primary);
    padding-left: 20px;
}

.link-group a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    padding-top: clamp(20px, 4vw, 40px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gradient-hover);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 60px;
    }

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

    .icon-wrapper {
        width: 140px;
        height: 140px;
    }

    .icon-wrapper img {
        width: 120px;
        height: 120px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
        width: 100%;
        order: 3;
        margin: 20px 0 0;
        flex-direction: column;
        gap: 12px;
        background: var(--bg-card);
        padding: 20px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-darker);
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: 16px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat {
        min-width: 100px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .icon-wrapper {
        width: 130px;
        height: 130px;
        border-radius: 20px;
    }

    .icon-wrapper img {
        width: 110px;
        height: 110px;
    }

    .feature-list {
        text-align: center;
        padding-left: 0;
    }

    .feature-list li {
        justify-content: center;
        text-align: center;
    }

    .faq-controls {
        flex-direction: column;
        align-items: center;
    }

    .faq-contact {
        flex-direction: column;
        align-items: center;
    }

    .faq-contact .btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .link-group {
        text-align: center;
    }

    .link-group a:hover {
        padding-left: 0;
    }

    .link-group a::before {
        display: none;
    }

    .cta-section {
        padding: 60px 0;
    }
}

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

    .hero {
        padding: 50px 0 70px;
        padding-top: calc(50px + var(--safe-area-inset-top));
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

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

    .phone-container {
        width: 260px;
    }

    .floating-element {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .features-grid {
        gap: 25px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    /* УВЕЛИЧЕННЫЕ ИКОНКИ */
    .icon-wrapper {
        width: 240px;
        height: 240px;
        border-radius: 32px; /* немного скругляем, но можно оставить 24px */
        margin: 0 auto;
    }

    .icon-wrapper img {
        width: 240px;
        height: 240px;
        object-fit: contain; /* гарантирует, что картинка не исказится */
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .feature-list li {
        font-size: 0.85rem;
        justify-content: flex-start;
        text-align: left;
        gap: 10px;
    }

    .faq-item summary {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .faq-content {
        padding: 0 20px;
    }

    .faq-item[open] .faq-content {
        padding: 0 20px 18px;
    }

    .faq-footer p {
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cta-section {
        padding: 50px 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
        padding: 0 16px;
    }
}

@media (max-width: 375px) {
    floating-element { display: none; }
    .ring-1 { width: 250px; height: 250px; }
    .ring-2 { width: 300px; height: 300px; }
    .ring-3 { width: 350px; height: 350px; }

    /* УВЕЛИЧЕННЫЕ ИКОНКИ ДЛЯ СОВСЕМ МАЛЕНЬКИХ ЭКРАНОВ */
    .icon-wrapper {
        width: 200px;
        height: 200px;
    }

    .icon-wrapper img {
        width: 200px;
        height: 200px;
        object-fit: contain;
    }

    .feature-card {
        padding: 20px 16px;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .faq-item summary {
        padding: 16px;
        font-size: 0.95rem;
    }

    .faq-content {
        padding: 0 16px;
    }

    .faq-item[open] .faq-content {
        padding: 0 16px 16px;
    }

    .faq-content p,
    .faq-content li {
        font-size: 0.9rem;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .cta-content p {
        font-size: 0.9rem;
    }
}

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

/* ===== UTILITY CLASSES ===== */
.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;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* ===== LOADING ANIMATION ===== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-surface) 50%, var(--bg-card) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}