* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(45deg, #ff6b6b, #ee5a24);
    --success-gradient: linear-gradient(45deg, #56ccf2, #2f80ed);
    --warning-gradient: linear-gradient(45deg, #ffecd2, #fcb69f);
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f23;
    --text-primary: #2c3e50;
    --text-secondary: #666;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --border: rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-scrolled: rgba(255, 255, 255, 0.98);
}

/* Dark theme colors */
[data-theme="dark"] {
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    --secondary-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --accent-gradient: linear-gradient(45deg, #f59e0b, #ef4444);
    --bg-primary: #0f1419;
    --bg-secondary: #1a202c;
    --bg-tertiary: #2d3748;
    --surface: #1a202c;
    --surface-elevated: #2d3748;
    --text-primary: #f7fafc;
    --text-secondary: #a0aec0;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --border: rgba(255, 255, 255, 0.1);
    --navbar-bg: rgba(15, 20, 25, 0.95);
    --navbar-scrolled: rgba(15, 20, 25, 0.98);
    --dark-bg: #0f1419;
    --darker-bg: #0a0f14;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    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.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

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

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

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Utility Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--bounce);
}

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

.animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s var(--bounce);
}

.animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s var(--bounce);
}

.animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s var(--bounce);
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
    transform: translateY(-100%);
    animation: slideDown 0.8s ease forwards 0.2s;
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

.navbar.scrolled {
    background: var(--navbar-scrolled);
    box-shadow: 0 5px 20px var(--card-shadow);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 10px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #667eea;
    transform: translateY(-2px);
}

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

.nav-menu a.active {
    font-weight: 600;
}

/* Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.language-toggle {
    background: var(--surface-elevated);
    border: 2px solid var(--border);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 70px;
    justify-content: center;
}

.language-toggle:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    min-width: 120px;
    margin-top: 5px;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    border-radius: 8px;
    margin: 5px;
}

.language-option:hover {
    background: var(--bg-secondary);
    color: #667eea;
}

.language-option.active {
    background: var(--primary-gradient);
    color: white;
}

.language-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--surface-elevated);
    border: 2px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 15px;
}

.theme-toggle:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.theme-toggle i {
    transition: all 0.3s ease;
}

.nav-cta {
    background: var(--accent-gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-cta::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: left 0.5s;
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: left 0.4s ease;
    z-index: 999;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-20px);
    position: relative;
    padding: 10px 20px;
    border-radius: 10px;
}

.mobile-menu a.active {
    color: #667eea;
    background: var(--surface-elevated);
    font-weight: 700;
}

.mobile-menu.active a {
    animation: fadeInLeft 0.5s ease forwards;
}

.mobile-menu.active a:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu.active a:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu.active a:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu.active a:nth-child(5) { animation-delay: 0.5s; }
.mobile-menu.active a:nth-child(6) { animation-delay: 0.6s; }
.mobile-menu.active a:nth-child(7) { animation-delay: 0.7s; }

.mobile-menu a:hover {
    color: #667eea;
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 600;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    line-height: 1.7;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-gradient);
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--bounce);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::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: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

.cta-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-visual {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInRight 1s ease 0.8s both;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,0.05) 10px,
            rgba(255,255,255,0.05) 20px
    );
    animation: rotate 30s linear infinite;
}

.hero-icon {
    font-size: 6rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    animation: bounce 2s infinite;
}

/* Problem Section */
.problem {
    padding: 120px 0;
    background: linear-gradient(135deg, #ff9a8b 0%, #a8edea 100%);
    position: relative;
    overflow: hidden;
}

/* Dark theme overrides for Problem Section */
[data-theme="dark"] .problem {
    /* darker gradient */
    background: linear-gradient(135deg, #2c2731 0%, #1b1a25 100%);
}
[data-theme="dark"] .problem::before {
    /* reduce overlay brightness */
    background-color: rgba(0, 0, 0, 0.3);
    /* keep pattern but darken */
}
[data-theme="dark"] .problem-item {
    /* darker card backgrounds */
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Prevent white hover background in dark mode */
[data-theme="dark"] .problem-item:hover {
    background: rgba(20, 20, 20, 0.9) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-10px) scale(1.02);
}

.problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 15s ease-in-out infinite reverse;
}

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

.problem h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.problem-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--bounce);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.problem-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.problem-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.problem-item:hover .problem-icon {
    animation: bounce 0.8s ease;
}

/* Stats Section */
.stats {
    background: var(--dark-bg);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-item {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s var(--bounce);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
    );
    transition: left 0.6s;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 3rem;
    color: #64ffda;
    margin-bottom: 20px;
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    animation: bounce 0.8s ease;
    color: #4fd1c7;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #64ffda;
    margin-bottom: 10px;
    transition: var(--transition);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.8;
    transition: var(--transition);
}

.stat-item:hover .stat-label {
    opacity: 1;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
}

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

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s var(--bounce);
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
    background-clip: padding-box;
    border: 1px solid var(--border);
}

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

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

.feature-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: white;
    transition: all 0.4s var(--bounce);
    position: relative;
    overflow: hidden;
}

.feature-icon::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.6s;
}

.feature-card:hover .feature-icon::before {
    left: 100%;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.feature-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    transition: var(--transition);
}

.feature-card:hover .feature-title {
    color: #667eea;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-benefits {
    list-style: none;
}

.feature-benefits li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
    transition: var(--transition);
}

.feature-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

.feature-card:hover .feature-benefits li {
    transform: translateX(5px);
}

/* How It Works Section */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 60px;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
    transition: all 0.4s var(--bounce);
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 30px auto;
    position: relative;
    z-index: 2;
    transition: all 0.4s var(--bounce);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.step-card:hover .step-number {
    transform: scale(1.1);
    animation: pulse 1s ease;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 1;
}

.step-card:last-child::after {
    display: none;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    transition: var(--transition);
}

.step-card:hover .step-title {
    color: #667eea;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 120px 0;
    background: var(--dark-bg);
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--bounce);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
    animation: pulse 1s ease;
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.author-info p {
    opacity: 0.7;
    font-size: 0.9rem;
}


/* FAQ Section */
.faq {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

[data-theme="dark"] .faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.problem-item h3,
.problem-item p {
    color: var(--text-primary) !important;
}

/* Ensure pricing button text visible */
/*.pricing-button {*/
/*    color: var(--text-primary) !important;*/
/*}*/

/* Dark theme overrides */
/*[data-theme="dark"] .problem-item h3,*/
/*[data-theme="dark"] .problem-item p {*/
/*    color: #ffffff !important;*/
/*}*/

[data-theme="dark"] .pricing-button {
    color: #000000 !important;
}

.faq-question {
    padding: 30px;
    background: var(--surface);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    color: var(--text-primary);
}

.faq-question:hover {
    background: var(--bg-secondary);
    color: #667eea;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--text-secondary);
    line-height: 1.6;
    background: var(--surface);
}

.faq-answer.active {
    max-height: 200px;
    padding: 0 30px 30px 30px;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: #667eea;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}.faq-answer {
     padding: 0 30px;
     max-height: 0;
     overflow: hidden;
     transition: all 0.4s ease;
     color: var(--text-secondary);
     line-height: 1.6;
 }

.faq-answer.active {
    max-height: 200px;
    padding: 0 30px 30px 30px;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: #667eea;
}

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

/* CTA Section */
.cta-section {
    background: var(--darker-bg);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #64ffda);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: white;
    padding: 80px 0 30px 0;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #64ffda;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #64ffda;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 2;
    transition: var(--transition);
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #64ffda;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-links i {
    margin-right: 8px;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.6;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: #64ffda;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

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

    .section-title {
        font-size: 2.2rem;
    }

    .features-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .step-card::after {
        display: none;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    .problem h2 {
        font-size: 2.2rem;
    }

    .problem-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 15px 25px;
        font-size: 1rem;
    }

    .feature-card,
    .testimonial-card,
    .pricing-card {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-gradient);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pricing {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.pricing::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="3"/></g></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-20px) rotate(180deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}
.section-title {
    font-size: 3rem;
    font-weight: 700;
    /*color: white;*/
    text-align: center;
    margin-bottom: 1rem;
    /*background: linear-gradient(45deg, #fff, #f0f0f0);*/
    /*-webkit-background-clip: text;*/
    /*-webkit-text-fill-color: transparent;*/
    background-clip: text;
}
.section-subtitle {
    font-size: 1.2rem;
    /*color: rgba(255, 255, 255, 0.8);*/
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.billing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    position: relative;
}
.toggle-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.billing-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    /*color: rgba(255, 255, 255, 0.7);*/
    position: relative;
    overflow: hidden;
}
.billing-btn.active {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}
.billing-btn:not(.active):hover {
    /*color: white;*/
    background: rgba(255, 255, 255, 0.1);
}
.discount {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: start;
    perspective: 1000px;
}

/* === 1.1) Анимация пульсации === */
@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* === 1.2) Привязка анимации только к .pulse, без изменения фона === */
.pricing-card.pulse {
    animation: pulse 2s infinite;
}

/* === 1.3) Стили для .card-face и .card-face--back остаются ваши === */
.card-scene {
    width: 100%;
    height: 700px;
    perspective: 1000px;
}
.pricing-card {
    /* 1) Явно фиксируем стартовый масштаб */
    transform: scale(1);
    /* 2) Плавно анимируем изменения transform (0.4с) */
    transition: transform 0.4s ease-in-out;
    /* остальное как было: */
    width: 100%;
    height: 100%;
    /* убираем старую transition, если она была —
       теперь указан наш новый переход */
    /* transition: transform 0.8s; */
    transform-style: preserve-3d;
    cursor: pointer;
    position: relative;
}

.pricing-card.is-flipped {
    /*transform: rotateY(180deg); */
}
/*todo testing*/

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    box-sizing: border-box;
}


.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #333;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.plan-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.2);
}
.free .plan-icon {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}
.basic .plan-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #333;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}
/*.card-face--back .pricing-title {*/
/*    color: white;*/
/*}*/
/*.basic .card-face--back .pricing-title {*/
/*    color: #333;*/
/*}*/

.pricing-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}
/*.card-face--back .pricing-description {*/
/*    color: rgba(255, 255, 255, 0.9);*/
/*}*/
/*.basic .card-face--back .pricing-description {*/
/*    color: rgba(51, 51, 51, 0.8);*/
/*}*/

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/*.card-face--back .pricing-price {*/
/*    color: white;*/
/*    background: none;*/
/*    -webkit-text-fill-color: white;*/
/*}*/
/*.basic .card-face--back .pricing-price {*/
/*    color: #333;*/
/*    -webkit-text-fill-color: #333;*/
/*}*/

.pricing-period {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}
/*.card-face--back .pricing-period {*/
/*    color: rgba(255, 255, 255, 0.9);*/
/*}*/
/*.basic .card-face--back .pricing-period {*/
/*    color: rgba(51, 51, 51, 0.8);*/
/*}*/

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: left;
    flex-grow: 1;
    min-height: 200px;
}
.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}
/*.card-face--back .pricing-features li {*/
/*    color: rgba(255, 255, 255, 0.9);*/
/*    border-bottom-color: rgba(255, 255, 255, 0.2);*/
/*}*/
/*.basic .card-face--back .pricing-features li {*/
/*    color: rgba(51, 51, 51, 0.8);*/
/*    border-bottom-color: rgba(51, 51, 51, 0.2);*/
/*}*/
.pricing-features li:last-child {
    border-bottom: none;
}
.pricing-features li::before {
    content: "✓";
    color: #4ecdc4;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
/*.card-face--back .pricing-features li::before {*/
/*    color: #ffc107;*/
/*}*/
/*.basic .card-face--back .pricing-features li::before {*/
/*    color: #333;*/
/*}*/
/*.pricing-features .generation-count::before {*/
/*    content: "⚡";*/
/*    color: #ff9500;*/
/*}*/
/*.card-face--back .pricing-features .generation-count::before {*/
/*    color: #ffc107;*/
/*}*/
/*.basic .card-face--back .pricing-features .generation-count::before {*/
/*    color: #333;*/
/*}*/

.pricing-button {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    flex-shrink: 0;
    min-height: 56px;
}
.free .pricing-button {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(78, 205, 196, 0.3);
}
.free .pricing-button:hover {
    box-shadow: 0 12px 32px rgba(78, 205, 196, 0.4);
    transform: translateY(-2px);
}
.basic .pricing-button {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #333;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
    font-weight: 700;
}
.basic .pricing-button:hover {
    box-shadow: 0 12px 32px rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffcd39 0%, #ffc107 100%);
}
.professional .pricing-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}
.professional .pricing-button:hover {
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}
/*.card-face--back .pricing-button {*/
/*    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);*/
/*    color: #333;*/
/*}*/
/*.card-face--back .pricing-button:hover {*/
/*    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
/*    transform: translateY(-2px);*/
/*}*/

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    .pricing-card {
        margin-bottom: 30px;
    }
    .card-face {
        padding: 1.5rem;
    }
}

/* === Header: базовый flex-лейаут === */
.navbar .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 2rem;
}
.navbar .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* === Меню по центру === */
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu li a {
    /*color: white;*/
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-menu li a:hover {
    color: #64ffda;
}

/* === Правый блок: шестерёнка + «Попробовать» + гамбургер === */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* === Кнопка-шестерёнка: стили и позиционирование === */
.gear-dropdown {
    position: relative;
}
.gear-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

/* === Выпадающее меню внутри шестерёнки === */
.gear-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    min-width: 180px;
    z-index: 1000;
}
.gear-menu.show {
    display: flex;
}

/* === Селектор языка и валюты внутри gear-menu === */
.gear-menu .language-selector,
.gear-menu .currency-selector {
    position: relative;
    margin: 10px;
}
.gear-menu .language-toggle,
.gear-menu .currency-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 5px 10px;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.gear-menu .language-dropdown,
.gear-menu .currency-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    width: 100%;
    z-index: 1000;
}
.gear-menu .language-dropdown.show,
.gear-menu .currency-dropdown.show {
    display: flex;
}
.gear-menu .language-option,
.gear-menu .currency-option {
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.gear-menu .language-option:hover,
.gear-menu .currency-option:hover {
    background: var(--bg-secondary);
}

/* === Кнопка переключения темы внутри gear-menu === */
.gear-menu button.theme-toggle {
    background: transparent;
    border: none;
    padding: 10px;
    width: 100%;
    text-align: left;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* === Кнопка «Попробовать» справа === */
.nav-cta {
    background: var(--accent-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}
.nav-cta:hover {
    background: #fff;
    color: #333;
}

/* === Гамбургер для мобильного меню === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* === Адаптив: при ширине ≤768px === */
@media (max-width: 768px) {
    /* Скрываем «центральное» меню, превращаем его в vertical dropdown */
    .nav-menu {
        display: none;
        flex-direction: column;
        background: var(--surface);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 10px 0;
        z-index: 900;
    }
    .nav-menu.show {
        display: flex;
    }
    /* Слегка уменьшаем отступы справа */
    .header-right {
        gap: 10px;
    }
    /* Показываем гамбургер */
    .hamburger {
        display: flex;
    }
}

