/* CSS Variables - Professional Color Palette */
:root {
    /* Primary Colors */
    --primary: #00ff88;
    --primary-dark: #00cc6f;
    --primary-light: #33ffaa;
    --secondary: #0088ff;
    --secondary-dark: #0066cc;
    --secondary-light: #33aaff;
    --accent: #ff0088;
    --accent-dark: #cc0066;
    --accent-light: #ff33aa;
    
    /* Background Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1525;
    --bg-tertiary: #141a2a;
    --bg-dark: #050810;
    --bg-card: rgba(15, 21, 37, 0.95);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #777777;
    --text-dim: rgba(184, 184, 184, 0.6);
    --text-inverse: #000000;
    
    /* Border Colors */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(0, 255, 136, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #0088ff 100%);
    --gradient-secondary: linear-gradient(135deg, #0088ff 0%, #ff0088 100%);
    --gradient-accent: linear-gradient(135deg, #00ff88 0%, #0088ff 50%, #ff0088 100%);
    --gradient-hero: linear-gradient(180deg, #0a0e1a 0%, #0d121f 15%, #0f1525 30%, #0d121f 45%, #0a0e1a 60%, #0d121f 75%, #0f1525 90%, #050810 100%);
    
    /* Glow Effects */
    --glow-primary: 0 0 30px rgba(0, 255, 136, 0.25), 0 0 60px rgba(0, 255, 136, 0.15), 0 0 90px rgba(0, 255, 136, 0.08);
    --glow-secondary: 0 0 40px rgba(0, 136, 255, 0.25), 0 0 70px rgba(0, 136, 255, 0.15), 0 0 100px rgba(0, 136, 255, 0.08);
    --glow-soft: 0 0 20px rgba(0, 255, 136, 0.15), 0 0 40px rgba(0, 255, 136, 0.1);
    --glow-card: 0 8px 32px rgba(0, 255, 136, 0.12), 0 4px 16px rgba(0, 136, 255, 0.08);
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(0, 255, 136, 0.5);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
    
    /* Transitions */
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s var(--transition);
    --transition-normal: 0.3s var(--transition);
    --transition-slow: 0.5s var(--transition);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .nav__menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav__actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero__stats,
html[dir="rtl"] .features__grid,
html[dir="rtl"] .pricing__grid,
html[dir="rtl"] .testimonials__grid,
html[dir="rtl"] .lifehacks__grid {
    direction: rtl;
}

html[dir="rtl"] .section__header {
    text-align: right;
}

html[dir="rtl"] .feature-card,
html[dir="rtl"] .pricing-card,
html[dir="rtl"] .testimonial-card,
html[dir="rtl"] .lifehack-card {
    text-align: right;
}

html[dir="rtl"] .faq-question {
    text-align: right;
    flex-direction: row-reverse;
}

html[dir="rtl"] .faq-icon {
    transform: rotate(180deg);
}

html[dir="rtl"] .footer__content {
    flex-direction: row-reverse;
}

/* RTL для основного селектора языка */
html[dir="rtl"] .language-flag-icon {
    left: auto;
    right: 10px;
}

html[dir="rtl"] .language-selector {
    padding-left: 12px;
    padding-right: 40px;
    background-position: left 8px center;
}

/* RTL адаптация для мобильных устройств */
@media (max-width: 768px) {
    /* Мобильное меню открывается справа налево для RTL */
    html[dir="rtl"] .nav__menu {
        left: auto;
        right: 0;
        transform: translateX(100%); /* Начинается справа */
    }
    
    html[dir="rtl"] .nav__menu.active {
        transform: translateX(0);
    }
    
    /* Кнопка toggle слева для RTL */
    html[dir="rtl"] .nav__toggle {
        margin-left: 0 !important;
        margin-right: auto !important;
        order: 1;
    }
    
    /* Логотип справа для RTL */
    html[dir="rtl"] .nav__logo {
        order: 3;
        margin-left: auto;
        margin-right: 0;
    }
    
    /* Мобильный селектор языка справа от кнопки toggle для RTL */
    html[dir="rtl"] .nav__language-mobile {
        right: auto !important;
        left: 55px !important; /* Справа от кнопки toggle */
        order: 2;
    }
    
    /* Флаг в селекторе языка для RTL */
    html[dir="rtl"] .nav__language-mobile .language-flag-icon {
        left: auto !important;
        right: 8px !important;
    }
    
    html[dir="rtl"] .nav__language-mobile .language-selector {
        padding-left: 28px;
        padding-right: 36px;
    }
    
    /* Текст в мобильном меню выровнен по правому краю */
    html[dir="rtl"] .nav__menu .nav__link {
        text-align: right;
        padding-right: 0;
        padding-left: 10px;
    }
    
    html[dir="rtl"] .nav__menu .nav__link:hover {
        padding-right: 10px;
        padding-left: 0;
    }
    
    /* Кнопка "Перейти в бота" в меню для RTL */
    html[dir="rtl"] .nav__menu .nav__link--cta {
        text-align: center;
    }
    
    /* Hero секция для RTL */
    html[dir="rtl"] .hero__content {
        text-align: right;
    }
    
    html[dir="rtl"] .hero__title,
    html[dir="rtl"] .hero__subtitle {
        text-align: right;
    }
    
    /* Кнопки в hero для RTL */
    html[dir="rtl"] .hero__buttons {
        justify-content: flex-end;
    }
    
    /* Статистика для RTL */
    html[dir="rtl"] .hero__stats {
        direction: rtl;
    }
    
    /* Карточки статистики для RTL */
    html[dir="rtl"] .stat-card {
        text-align: right;
    }
    
    /* Бейдж в hero для RTL */
    html[dir="rtl"] .hero__badge {
        direction: rtl;
    }
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: var(--text-inverse);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10001;
    border-radius: 0 0 8px 0;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: var(--text-inverse);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10001;
    border-radius: 0 0 8px 0;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.section__description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), var(--glow-soft);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    height: 80px;
}

.nav__logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: block;
    /* Перекрашиваем иконку в основной цвет сайта (#00ff88) */
    filter: brightness(0) saturate(100%) invert(77%) sepia(100%) saturate(2000%) hue-rotate(90deg) brightness(1.1);
    transition: filter var(--transition-fast), transform var(--transition-fast);
}

.nav__logo:hover .logo-icon {
    filter: brightness(0) saturate(100%) invert(77%) sepia(100%) saturate(2000%) hue-rotate(90deg) brightness(1.3);
    transform: scale(1.05);
}

.nav__logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Скрываем мобильные элементы на десктопе */
.nav__item--mobile-cta {
    display: none;
}

.nav__language-mobile {
    display: none;
}


.nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.nav__link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav__cta {
    display: inline-block;
}

.language-selector-wrapper {
    position: relative;
    display: inline-block;
}

.language-selector {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    padding-left: 40px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

.language-flag-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 14px;
    object-fit: cover;
    pointer-events: none;
    border-radius: 2px;
}

.language-selector:hover {
    border-color: var(--primary);
    background: var(--bg-tertiary);
}

.language-selector:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.language-selector option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav__toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

a.btn {
    text-decoration: none;
    color: inherit;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), 0 10px 30px rgba(0, 255, 136, 0.4);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.btn--outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
    z-index: -1;
}

.btn--outline:hover {
    color: var(--text-inverse);
    border-color: var(--primary);
    box-shadow: var(--glow-soft);
}

.btn--outline:hover::before {
    width: 100%;
}

.btn--outline:hover {
    transform: translateY(-2px);
}

.btn--large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn--block {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: var(--bg-primary);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero__title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.2);
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.hero__subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    margin-bottom: 48px;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
    box-shadow: var(--glow-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-text {
    font-weight: 500;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.stat-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--glow-card);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Features Section */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 48px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-align: center;
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--glow-card), 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3.5rem;
    margin: 0 auto 24px;
    display: block;
    text-align: center;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
    transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
}

.pricing-card {
    padding: 48px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    position: relative;
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    overflow: visible;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-card), 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.pricing-card--featured {
    border: 2px solid var(--primary);
    box-shadow: var(--glow-primary), 0 0 50px rgba(0, 255, 136, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(15, 21, 37, 0.98) 100%);
}

.pricing-card--featured::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.2;
    filter: blur(20px);
}

.pricing-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--text-inverse);
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 20px rgba(0, 255, 136, 0.5),
        0 0 40px rgba(0, 255, 136, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse-badge 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.pricing-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 
            0 0 20px rgba(0, 255, 136, 0.5),
            0 0 40px rgba(0, 255, 136, 0.3),
            0 4px 20px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 
            0 0 30px rgba(0, 255, 136, 0.6),
            0 0 60px rgba(0, 255, 136, 0.4),
            0 6px 30px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    letter-spacing: -0.02em;
}

.price-period {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.pricing-save {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 12px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
}

.feature-check {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    display: inline-block;
    width: 20px;
}

/* Testimonials Section */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 40px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--glow-soft), 0 20px 50px rgba(0, 0, 0, 0.3);
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
    font-style: italic;
}

.star {
    color: var(--primary);
    font-size: 1.3rem;
    margin-right: 4px;
    filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.4));
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-inverse);
    font-size: 1.1rem;
    box-shadow: var(--glow-soft);
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Lifehacks Section */
.lifehacks__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.lifehack-card {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: relative;
}

.lifehack-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition-normal);
    border-radius: 16px 0 0 16px;
}

.lifehack-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--glow-soft);
}

.lifehack-card:hover::after {
    transform: scaleY(1);
}

.lifehack-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.lifehacks__cta {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.lifehacks__cta-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* FAQ Section */
.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-soft);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
    padding: 0 20px;
}

.faq-answer[aria-hidden="true"] {
    max-height: 0;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

.faq-item.active .faq-answer[aria-hidden="false"] {
    max-height: 500px;
    padding: 0 20px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* CTA Section */
.cta {
    position: relative;
    padding: 140px 0;
    text-align: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.cta__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.2);
}

.cta__description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cta__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
    box-shadow: var(--glow-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer__description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 12px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.footer__links a:hover {
    color: var(--primary);
}

.footer__social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.social-link:hover {
    color: var(--text-inverse);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--glow-soft);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link svg {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
}

.footer__bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        z-index: 1001;
    }
    
    .nav {
        position: relative;
        height: 70px;
        z-index: 1001; /* Навбар выше меню */
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .nav__logo {
        font-size: 1.4rem;
        order: 1;
        flex-shrink: 0;
        margin-right: auto;
    }
    
    .nav__actions {
        display: none;
    }
    
    .nav__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        padding: 80px 20px 20px;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        border-top: 1px solid var(--border-color);
        overflow-y: auto;
        z-index: 999; /* Ниже навбара (1001), но выше селектора (1) - меню перекрывает селектор, но навбар виден */
        gap: 0;
        justify-content: flex-start;
    }
    
    .nav__menu .nav__item {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav__menu .nav__item:last-child {
        border-bottom: none;
    }
    
    
    .nav__menu .nav__link--cta {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
        border-radius: 8px;
        display: block;
    }
    
    .nav__menu .nav__link {
        display: block;
        width: 100%;
        font-size: 1.1rem;
        padding: 12px 0;
        color: var(--text-primary);
    }
    
    .nav__menu .nav__link:hover {
        color: var(--primary);
        padding-left: 10px;
        transition: all var(--transition-fast);
    }
    
    .nav__menu.active {
        transform: translateX(0);
    }
    
    /* Показываем навбар на мобильных устройствах */
    .nav__menu {
        display: flex !important;
    }
    
    /* Мобильный селектор языка слева от кнопки toggle - показываем только на мобильных */
    .nav__language-mobile {
        display: flex !important;
        justify-content: center;
        align-items: center;
        position: absolute;
        right: 50px; /* Слева от кнопки toggle (кнопка ~30px + отступ 20px) */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1; /* Относительно навбара, но ниже меню (1000) */
        pointer-events: auto; /* Убеждаемся, что селектор кликабелен */
        order: 2;
        flex-shrink: 0;
    }
    
    /* Когда меню открыто, селектор остается в навбаре за меню и не кликабелен */
    .nav__menu.active ~ .nav__language-mobile,
    .nav__menu.active + .nav__actions + .nav__language-mobile {
        z-index: 1; /* Остается за меню, но виден в навбаре */
        pointer-events: none; /* Отключаем клики, когда меню открыто */
    }
    
    /* Когда меню закрыто, селектор кликабелен */
    .nav__menu:not(.active) ~ .nav__language-mobile,
    .nav__menu:not(.active) + .nav__actions + .nav__language-mobile {
        pointer-events: auto;
    }
    
    /* Показываем мобильную кнопку только на мобильных */
    .nav__item--mobile-cta {
        display: block !important;
        margin-top: 0; /* Убираем margin-top: auto, так как кнопка не внизу */
        padding-top: 15px; /* Обычный отступ */
        border-top: 1px solid rgba(255, 255, 255, 0.05); /* Обычная граница */
    }
    
    .nav__language-mobile .language-selector-wrapper {
        width: auto;
    }
    
    .nav__language-mobile .language-selector {
        width: auto;
        min-width: 110px;
        padding: 6px 28px 6px 36px;
        font-size: 0.8rem;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 6px;
    }
    
    .nav__language-mobile .language-selector:hover {
        border-color: var(--primary);
        background: rgba(0, 255, 136, 0.05);
    }
    
    .nav__language-mobile .language-flag-icon {
        left: 8px;
        width: 16px;
        height: 12px;
    }

    .nav__toggle {
        display: flex !important;
        z-index: 1002;
        position: relative;
        margin-left: auto; /* Кнопка справа */
        order: 3; /* Кнопка последней */
        flex-shrink: 0;
    }
    
    
    .nav__toggle span {
        background: var(--text-primary);
    }
    
    .nav__toggle.active span {
        background: var(--primary);
    }
    

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .section {
        padding: 60px 0;
    }
    
    /* Hero секция на мобильных - полная высота экрана */
    .hero {
        min-height: 100vh;
        padding-top: 120px; /* Увеличен верхний отступ для центрирования */
        padding-bottom: 80px; /* Увеличен нижний отступ для центрирования */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero__content {
        width: 100%;
    }
    
    .hero__buttons {
        margin-bottom: 40px;
    }
    
    .hero__stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .features__grid,
    .pricing__grid,
    .testimonials__grid,
    .lifehacks__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero__buttons,
    .cta__buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn--large {
        width: 100%;
    }
    
    .hero__badge,
    .cta__badge {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .pricing-card {
        padding: 32px 24px;
    }
    
    .stat-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 40px 0;
    }

    .section__header {
        margin-bottom: 40px;
    }

    .section__title {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .section__description {
        font-size: 1rem;
    }

    .feature-card,
    .pricing-card,
    .testimonial-card,
    .lifehack-card {
        padding: 24px 16px;
    }

    .hero {
        padding-top: 120px; /* Увеличен верхний отступ для центрирования */
        min-height: 100vh; /* Полная высота экрана на мобильных */
        padding-bottom: 80px; /* Увеличен нижний отступ для центрирования */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero__title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero__badge {
        font-size: 0.85rem;
        padding: 10px 16px;
        margin-bottom: 24px; /* Уменьшаем отступ для компактности */
    }
    
    .hero__buttons {
        margin-bottom: 40px; /* Уменьшаем отступ */
    }
    
    .hero__stats {
        margin-top: 40px; /* Уменьшаем отступ */
    }

    .pricing-price {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .price-amount {
        font-size: 2rem;
    }

    .price-period {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .nav__logo {
        font-size: 1.3rem;
    }

    .pricing-badge {
        font-size: 0.7rem;
        padding: 8px 16px;
        top: -12px;
    }

    .pricing-title {
        font-size: 1.5rem;
    }

    .feature-title {
        font-size: 1.3rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .lifehack-text {
        font-size: 0.9rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 16px;
    }

    .cta {
        padding: 80px 0;
    }

    .cta__title {
        font-size: 2rem;
    }

    .footer {
        padding: 60px 0 30px;
    }
}

/* Tablet styles */
@media (min-width: 481px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .features__grid,
    .pricing__grid,
    .testimonials__grid,
    .lifehacks__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero__stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large screens */
@media (min-width: 1025px) {
    .nav__actions {
        display: flex;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .section {
        padding: 120px 0;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .section {
        padding: 50px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .feature-icon,
    .lifehack-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header,
    .nav__toggle,
    .nav__cta,
    .hero__buttons,
    .cta__buttons,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* SEO Hidden Content - Visible to search engines, hidden from users */
.seo-hidden-content,
.ai-prompts-section {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.seo-hidden-content *,
.ai-prompts-section * {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

/* Ensure search engines can still read the content */
@media screen {
    .seo-hidden-content,
    .ai-prompts-section {
        display: none;
    }
}
