/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --primary-color: #7c3aed;
    --secondary-color: #6366f1;
    --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    --gradient-light: linear-gradient(135deg, #CDE3FF 0%, #DCC6BF 50%, #BB9A2F 100%);
    --bg-dark: #0a0a0a;
    --bg-white: #ffffff;
    --text-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: rgba(0, 0, 0, 0.6);
    --text-light-gray: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    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;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-white);
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* White Background for Content */
.solution-section,
.features-section {
    background: var(--bg-white);
}

.section-title {
    color: var(--text-dark);
}

.section-description {
    color: var(--text-gray);
}

.solution-list li,
.feature-list li {
    color: var(--text-dark);
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(124, 58, 237, 0.3);
}

.feature-title {
    color: var(--text-white);
}

.feature-description {
    color: var(--text-light-gray);
}

.navbar {
    color: var(--text-white);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
}

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

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

/* ========================================
   Progress Bar
   ======================================== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-purple);
    width: 0%;
    z-index: 9999;
    transition: width 0.3s ease;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(124, 58, 237, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}

.navbar.scrolled {
    background: rgba(124, 58, 237, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-purple);
    transition: width 0.3s ease;
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    min-width: 40px;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-purple);
    color: var(--text-white);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-white {
    background: var(--bg-white);
    color: var(--text-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    background: var(--bg-white);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-white:active {
    transform: translateY(0) scale(0.98);
}

.btn-liquid-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: auto;
}

.btn-liquid-glass svg {
    width: 20px;
    height: 20px;
}

.btn-liquid-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Hero Section (Gradient Background)
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.desktop-bg {
    background-image: url('assets/rusMocups/backgroundDesk_.webp');
}

.mobile-bg {
    background-image: url('assets/rusMocups/newBackgroundForDesktop.jpg');
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.3) 0%, rgba(124, 58, 237, 0.2) 100%);
    z-index: 1;
}

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

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    color: var(--text-white);
    max-width: 800px;
    text-align: left;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes pulse-ring {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 1), 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 5px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    justify-content: flex-start;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: flex-start;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.8);
}

.stat-label {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-mockup {
    display: none;
}

.mockup-img {
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-12px);
    }
}

/* ========================================
   Solution Section (Dark Background)
   ======================================== */
.solution-section {
    padding: 120px 0;
    background: var(--bg-white);
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.section-description {
    font-size: 20px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 32px;
}

.solution-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.solution-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 18px;
    color: var(--text-dark);
}

.solution-list svg {
    flex-shrink: 0;
    stroke: var(--primary-color);
    margin-top: 2px;
}

.solution-mockup {
    display: flex;
    justify-content: center;
}

.solution-img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

/* ========================================
   Features Section (Dark Background)
   ======================================== */
.features-section {
    padding: 120px 0;
    background: var(--bg-white);
    position: relative;
}

.section-header {
    text-align: center;
    margin: 0 0 80px 0;
    background: var(--gradient-purple);
    padding: 80px 40px;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.features-section .section-title {
    color: var(--text-white);
    margin-bottom: 20px;
}

.features-section .section-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px 24px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.benefit-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-card.visible:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.benefit-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8;
}

.circle-progress {
    fill: none;
    stroke: #ffffff;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 2s ease-in-out;
}

.benefit-card.visible:nth-child(1) .circle-progress {
    animation: fillCircle 2s ease-in-out 0.3s forwards;
}

.benefit-card.visible:nth-child(2) .circle-progress {
    animation: fillCircle 2s ease-in-out 0.5s forwards;
}

.benefit-card.visible:nth-child(3) .circle-progress {
    animation: fillCircle 2s ease-in-out 0.7s forwards;
}

@keyframes fillCircle {
    to {
        stroke-dashoffset: 84.823;
    }
}

.circle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-icon svg {
    color: #ffffff;
    stroke: #ffffff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    width: 48px;
    height: 48px;
}

.benefit-title {
    color: var(--text-white);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-card {
    background: transparent;
    border: none;
    border-radius: 24px;
    padding: 40px 0;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    box-shadow: none;
}

.feature-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* Четные карточки - мокап справа */
.feature-card:nth-child(even) {
    grid-template-areas: "content mockup";
}

.feature-card:nth-child(even) .feature-content {
    grid-area: content;
}

.feature-card:nth-child(even) .feature-mockup {
    grid-area: mockup;
}

/* Нечетные карточки - мокап слева */
.feature-card:nth-child(odd) {
    grid-template-areas: "mockup content";
}

.feature-card:nth-child(odd) .feature-content {
    grid-area: content;
}

.feature-card:nth-child(odd) .feature-mockup {
    grid-area: mockup;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.feature-icon svg {
    stroke: var(--text-white);
    display: none;
}

.feature-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    font-size: 15px;
    color: var(--text-dark);
    padding-left: 24px;
    position: relative;
}

.feature-list li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.feature-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-mockup img {
    max-width: 280px;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

/* ========================================
   Download Section (Dark Background)
   ======================================== */
.download-section {
    padding: 120px 0;
    background: var(--gradient-purple);
    text-align: center;
}

.download-content {
    max-width: 700px;
    margin: 0 auto;
}

.download-section .section-title {
    margin-bottom: 24px;
    color: var(--text-white);
}

.download-section .section-description {
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Journey Timeline */
.journey-timeline {
    position: relative;
    margin: 0 auto 60px;
    max-width: 900px;
    padding: 0 40px;
}

.timeline-line {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 1) 100%);
    border-radius: 2px;
    animation: progressGrow 4s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

@keyframes progressGrow {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    padding: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex: 1;
    opacity: 0;
    animation: fadeInStep 0.6s ease forwards;
    position: relative;
}

.timeline-step[data-step="1"] {
    animation-delay: 0s;
}

.timeline-step[data-step="2"] {
    animation-delay: 1.3s;
}

.timeline-step[data-step="3"] {
    animation-delay: 2.6s;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    flex-shrink: 0;
}

.step-icon svg {
    width: 36px;
    height: 36px;
}

.step-icon:hover {
    transform: scale(1.1);
    background: #ffffff;
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.step-content {
    text-align: center;
    margin-top: 20px;
}

.step-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Community Section (Dark Background)
   ======================================== */
.community-section {
    position: relative;
    padding: 120px 0;
    background: var(--bg-white);
    overflow: hidden;
}

.community-bg {
    display: none;
}

.community-overlay {
    display: none;
}

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

.community-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background-image: url('assets/rusMocups/tgPromoDek.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    padding: 60px 40px;
    position: relative;
}

.community-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    z-index: 0;
}

.community-content > * {
    position: relative;
    z-index: 1;
}

.community-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.community-content .section-description {
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.9);
    font-weight: 500;
}

/* ========================================
   Mobile Bottom Navigation (Liquid Glass)
   ======================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
    padding: 16px 4px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 1000;
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    justify-content: space-around;
    align-items: stretch;
    gap: 2px;
}

.mobile-bottom-nav.visible {
    transform: translateY(0);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 4px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #3f3f46;
    transition: all 0.3s ease;
    flex: 1;
}

.mobile-bottom-nav .nav-item svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-bottom-nav .nav-item span {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: currentColor;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-bottom-nav .nav-item:active {
    transform: scale(0.95);
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 60px 0 40px;
    background: var(--gradient-purple);
    color: var(--text-white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 1;
    max-width: 400px;
}

.footer-company {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 16px;
}

.footer-section p {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

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

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-website {
    margin-top: 8px;
}

.footer-website a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-website a:hover {
    color: var(--text-white);
}

/* ========================================
   Modal Windows
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    overflow-y: auto;
    padding: 40px 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.modal-body p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.modal-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 24px 0 12px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body ul {
    margin: 12px 0 16px 20px;
    color: var(--text-gray);
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.modal-body a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-body a:hover {
    color: #6d28d9;
}

.company-info {
    background: rgba(124, 58, 237, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
}

.company-info p {
    margin-bottom: 12px;
}

.company-info p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Cursor Glow Effect (Desktop Only)
   ======================================== */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* ========================================
   Animations
   ======================================== */
.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

.animate-fade-in:nth-child(2) {
    animation-delay: 0.1s;
}

.animate-fade-in:nth-child(3) {
    animation-delay: 0.2s;
}

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

.glass-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.glass-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Отключаем анимации на десктопе */
@media (min-width: 769px) {
    .glass-card {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    
    .glass-card.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .animate-fade-in {
        opacity: 1;
        animation: none;
    }
    
    .animate-fade-in:nth-child(2),
    .animate-fade-in:nth-child(3) {
        animation-delay: 0s;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    /* Buttons - smaller size for mobile to prevent text wrapping */
    .btn {
        font-size: 14px;
        padding: 12px 24px;
        gap: 8px;
        white-space: nowrap;
    }
    
    /* Hide cursor glow on mobile */
    .cursor-glow {
        display: none;
    }

    /* Navigation */
    .nav-links {
        display: none;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .lang-switcher {
        padding: 3px;
        gap: 4px;
    }
    
    .lang-btn {
        font-size: 11px;
        padding: 5px 8px;
        min-width: 36px;
    }

    /* Hero Section */
    .hero {
        min-height: 90vh;
        padding-bottom: 120px;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .footer {
        padding-bottom: 120px;
    }
    
    .community-section {
        padding-bottom: 120px;
    }
    
    .desktop-bg {
        display: none;
    }

    .mobile-bg {
        display: block;
        background-position: 68% center;
    }
    
    .hero-overlay {
        background: linear-gradient(135deg, rgba(10, 10, 10, 0.4) 0%, rgba(124, 58, 237, 0.25) 100%);
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-text {
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-number {
        font-size: 32px;
    }

    .hero-mockup {
        display: none;
    }

    /* Solution Section */
    .solution-section {
        padding: 80px 0;
    }

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

    .section-title {
        font-size: 32px;
    }

    .section-description {
        font-size: 16px;
    }

    .solution-list li {
        font-size: 16px;
    }

    .solution-img {
        max-width: 280px;
    }

    /* Features Section */
    .features-section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
        padding: 60px 24px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .benefit-circle {
        width: 100px;
        height: 100px;
    }
    
    .circle-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .benefit-title {
        font-size: 18px;
    }

    .features-grid {
        gap: 60px;
    }

    .feature-card {
        padding: 24px;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "content"
            "mockup" !important;
        gap: 40px;
    }
    
    .feature-card:nth-child(even),
    .feature-card:nth-child(odd) {
        grid-template-areas: 
            "content"
            "mockup";
    }
    
    .feature-card:nth-child(even) .feature-content,
    .feature-card:nth-child(odd) .feature-content {
        grid-area: content;
    }
    
    .feature-card:nth-child(even) .feature-mockup,
    .feature-card:nth-child(odd) .feature-mockup {
        grid-area: mockup;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    .feature-icon svg {
        width: 32px;
        height: 32px;
    }

    .feature-title {
        font-size: 24px;
    }

    /* Download Section */
    .download-section {
        padding: 80px 0;
    }
    
    .journey-timeline {
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .timeline-line {
        left: 35px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 4px;
        height: 100%;
    }
    
    .timeline-progress {
        width: 100%;
        height: 0%;
        animation: progressGrowVertical 4s ease-in-out infinite;
    }
    
    @keyframes progressGrowVertical {
        0% {
            height: 0%;
        }
        100% {
            height: 100%;
        }
    }
    
    .timeline-steps {
        flex-direction: column;
        gap: 50px;
        align-items: flex-start;
        padding: 0;
    }
    
    .timeline-step {
        flex-direction: row;
        gap: 20px;
        align-items: center;
        text-align: left;
        padding-left: 0;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .step-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .step-content {
        text-align: left;
        flex: 1;
        margin-top: 0;
    }
    
    .step-title {
        font-size: 15px;
    }

    /* Community Section */
    .community-section {
        padding: 80px 0;
        background: var(--bg-white);
        position: relative;
    }
    
    .community-section::before {
        display: none;
    }
    
    .community-content {
        background-image: url('assets/rusMocups/tgSectionForMob.jpg');
        background-size: cover;
        background-position: center;
        padding: 50px 24px;
        border-radius: 24px;
        max-width: 100%;
    }
    
    .community-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 24px;
        z-index: 0;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
        width: 100%;
    }

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

    /* Modals */
    .modal {
        padding: 20px 16px;
    }

    .modal-content {
        max-height: 90vh;
    }

    .modal-header {
        padding: 24px 20px 20px;
    }

    .modal-header h3 {
        font-size: 20px;
    }

    .modal-body {
        padding: 24px 20px;
    }

    .modal-body h4 {
        font-size: 16px;
    }

    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 40px;
    }

    .features-grid {
        gap: 60px;
    }

    .feature-card {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "content"
            "mockup";
        gap: 40px;
    }
    
    .feature-card:nth-child(even),
    .feature-card:nth-child(odd) {
        grid-template-areas: 
            "content"
            "mockup";
    }
    
    .feature-mockup img {
        max-width: 260px;
    }
    
    .journey-timeline {
        max-width: 700px;
        padding: 0 20px;
    }
    
    .timeline-steps {
        padding: 0;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
    }
    
    .step-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .step-title {
        font-size: 14px;
    }
    
    .timeline-line {
        top: 35px;
    }
}

