/* Основные стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: white;
    color: #1f2937;
    overflow-x: hidden;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

.animate-fade-in-down {
    animation: fadeInDown 0.3s ease-out;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Глобальные классы */
.gradient-text {
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem; /* text-5xl */
    font-weight: 900; /* font-black */
    color: #0f172a; /* text-slate-900 */
    letter-spacing: -0.05em; /* tracking-tighter */
    line-height: 0.95; /* leading-[0.95] */
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .gradient-text {
        font-size: 4.5rem; /* md:text-8xl */
    }
}

@media (min-width: 1024px) {
    .gradient-text {
        font-size: 5rem; /* lg:text-9xl */
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3.15rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #475569;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-tag {
    display: block;
    color: #2563eb;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Header */
header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.5s;
    padding: 1.5rem 0;
    background-color: transparent;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-icon {
    background-color: #2563eb;
    padding: 0.625rem 1.1rem;
    border-radius: 0.75rem;
    color: white;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.2);
    transition: all 0.3s;
}

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

.logo-text {
    font-weight: 900;
    font-size: 1.875rem;
    letter-spacing: -0.025em;
    color: #0f172a;
    
}

.desktop-nav {
    display: none;
}

@media (min-width: 1280px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 3rem;
        margin-left: auto;
        margin-right: 2rem;
    }
}

.desktop-nav a {
    font-size: 1.125rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s;
}

.desktop-nav a:hover {
    color: #2563eb;
    transform: translateY(-2px);
}

.cta-buttons {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cta-buttons {
        display: flex;
        margin-left: auto;
    }
}

.login-btn {
    font-size: 1.125rem;
    font-weight: 700;
    color: #475569;
    background: rgba(241, 245, 249, 0.7);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
}

.login-btn:hover {
    color: #0f172a;
    background-color: rgba(241, 245, 249, 1);
    border-color: #cbd5e1;
}

.primary-btn {
    background-color: #2563eb;
    color: white;
    font-size: 1.0625rem;
    font-weight: 900;
    padding: 1rem 2rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.2);
    border-bottom: 4px solid #1e40af;
}

.primary-btn:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

.primary-btn:active {
    transform: scale(0.95);
}

.mobile-toggle {
    display: block;
}

@media (min-width: 1280px) {
    .mobile-toggle {
        display: none;
    }
}

#mobileMenuToggle {
    color: #0f172a;
    padding: 0.75rem;
    background-color: rgba(241, 245, 249, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid #f8fafc;
}

.mobile-buttons {
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-login-btn {
    width: 100%;
    text-align: center;
    padding: 1.25rem;
    color: #475569;
    font-weight: 700;
    font-size: 1.25rem;
    border: 2px solid #f1f5f9;
    border-radius: 1rem;
    background: none;
    cursor: pointer;
}

.mobile-primary-btn {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    font-weight: 900;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 7rem; 
    padding-bottom: 5rem; 
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 12rem; 
        padding-bottom: 8rem; 
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
}

.bg-circle-1 {
    top: -20%;
    left: -10%;
    width: 70%;
    height: 70%;
    background-color: rgba(191, 219, 254, 0.3);
    animation: pulse 2s infinite;
}

.bg-circle-2 {
    bottom: 0%;
    right: -10%;
    width: 60%;
    height: 60%;
    background-color: rgba(221, 214, 254, 0.3);
}

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

.animated-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    color: #1e40af;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 3rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.05);
    cursor: default;
    transition: background-color 0.3s;
}

.animated-badge:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.animated-badge i {
    color: #2563eb;
    animation: bounce 1s infinite;
}

.hero-title {
    font-weight: 900; /* font-black */
    color: #0f172a; /* text-slate-900 */
    margin-bottom: 2.5rem; /* mb-10 примерно 2.5rem */
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.05em; /* tracking-tighter */
    line-height: 0.95; /* leading-[0.95] */
    font-size: 2.7rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5.4rem;
    }
}

.hero-title .gradient-text {
    margin-bottom: 0;
    display: inline;
}

@media (min-width: 768px) {
    .cta-buttons {
        display: flex;
        align-items: center;
        gap: 2rem;
        margin-left: auto; 
    }
}

.hero-subtitle {
    white-space: pre-line; 
    font-size: 1.125rem; 
    color: rgba(71, 85, 105, 0.9);
    margin-bottom: 3.6rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 600;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.6875rem; 
    }
}
.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 6rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        gap: 2.5rem;
    }
}

.hero-primary-btn {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 1.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 20px 50px -15px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-bottom: 8px solid #1e3a8a;
}

@media (min-width: 640px) {
    .hero-primary-btn {
        width: auto;
    }
}

.hero-primary-btn:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

.hero-primary-btn:active {
    transform: scale(0.95);
}

.hero-secondary-btn {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    color: #0f172a;
    border: 2px solid #e2e8f0;
    padding: 1.5rem 3rem;
    border-radius: 1.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .hero-secondary-btn {
        width: auto;
    }
}

.hero-secondary-btn:hover {
    background-color: white;
    border-color: #93c5fd;
}

.hero-secondary-btn i {
    transition: transform 0.3s;
}

.hero-secondary-btn:hover i {
    transform: scale(1.1);
}

.social-proof {
    padding-top: 4rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.social-proof-title {
    font-size: 0.9375rem;
    font-weight: 900;
    color: #94a3b8;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

.social-proof-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    opacity: 0.8;
}

.tag {
    font-weight: 900;
    color: #64748b;
    font-size: 1.875rem;
    letter-spacing: -0.025em;
    cursor: default;
    transition: color 0.3s;
}

.tag:hover {
    color: #2563eb;
}

.tag-highlighted {
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.3);
    text-decoration-thickness: 0.5rem;
    text-underline-offset: 0.25rem;
}

.tag-highlighted-2 {
    text-decoration: underline;
    text-decoration-color: rgba(139, 92, 246, 0.3);
    text-decoration-thickness: 0.5rem;
    text-underline-offset: 0.25rem;
}

/* Problem Section */
.problem-section {
    padding: 7.2rem 0; 
}


.problem-bg {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(100px);
}

.problem-bg-1 {
    top: 0;
    right: 0;
    background-color: rgba(254, 226, 226, 0.3);
}

.problem-bg-2 {
    bottom: 0;
    left: 0;
    background-color: rgba(191, 219, 254, 0.2);
}

.problem-section .section-header h2 {
    font-size: 2rem;
}

@media (min-width: 768px) {
    .problem-section .section-header h2 {
        font-size: 4.05rem; 
    }
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .problems-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.problem-card {
    background-color: white;
    padding: 3rem;
    border-radius: 3rem;
    border: 2px solid #f1f5f9;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.5s;
}

.problem-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: #fecaca;
}

.problem-icon {
    background-color: #fef2f2;
    width: 5rem;
    height: 5rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.5s;
}

.problem-card:hover .problem-icon {
    transform: scale(1.1);
}

.problem-icon i {
    color: #f43f5e;
    font-size: 1.875rem;
}

.problem-card h3 {
    font-size: 1.875rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.problem-card p {
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 600;
}
.problem-card {
    display: flex;
    flex-direction: column;
}

.problem-card h3 {
    min-height: 7.7rem;
}


/* Features Section Header - исправленная версия */
.features-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 6rem;
    gap: 2.5rem;
}

@media (min-width: 1280px) {
    .features-header {
        flex-direction: row;
        align-items: flex-start; /* Изменено с center на flex-start */
        justify-content: space-between;
        gap: 4rem; /* Увеличим расстояние между блоками */
    }
}

.features-title {
    max-width: 40rem;
}

.features-title h2 {
    font-size: 2.025rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    max-width: 100%;
    word-break: break-word;
}

@media (min-width: 768px) {
    .features-title h2 {
        font-size: 3.2rem;
        line-height: 1.2;
    }
}

.features-subtitle {
    color: #475569;
    font-size: 1.5rem;
    max-width: 36rem;
    font-weight: 700;
    line-height: 1.6;
    border-left: 4px solid #2563eb;
    padding-left: 2rem;
    align-self: flex-start; /* Изменено с center на flex-start */
    margin-top: 0; /* Убедимся, что нет верхнего отступа */
}

@media (min-width: 1280px) {
    .features-subtitle {
        margin-top: 3.5rem; /* Поднимем подзаголовок на уровень с основным текстом */
        align-self: flex-start;
    }
}

.features-section .container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 1rem;
}

.features-grid {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Гарантируем одинаковую ширину */
.feature-card {
    width: 100%;
    max-width: 100%;
}
.feature-card {
    padding: 3rem;
    border-radius: 3rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: #93c5fd;
}

.feature-bg-icon {
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    opacity: 0.03;
    transition: transform 0.7s;
}

.feature-card:hover .feature-bg-icon {
    transform: scale(1.25);
}

.feature-bg-icon i {
    font-size: 9rem;
}

.feature-icon {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    transition: transform 0.5s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.875rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.feature-card p {
    color: #475569;
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 600;
    position: relative;
    z-index: 10;
}

/* the-fifth (Telegram-помощник) - синий */
.the-fifth {
    background: linear-gradient(135deg, #dbeafe 0%, white 100%);
}

.the-fifth .feature-bg-icon i,
.the-fifth .feature-icon i {
    color: #2563eb;  /* Синий */
}

/* the-second (Умный календарь) - бирюзовый */
.the-second {
    background: linear-gradient(135deg, #ccfbf1 0%, white 100%);
}

.the-second .feature-bg-icon i,
.the-second .feature-icon i {
    color: #0d9488;  /* Бирюзовый */
}

/* the-first (Клиентская база) - пурпурный */
.the-first {
    background: linear-gradient(135deg, #f3e8ff 0%, white 100%);
}

.the-first .feature-bg-icon i,
.the-first .feature-icon i {
    color: #8b5cf6;  /* Пурпурный */
}

/* the-fourth (QR-код и брендинг) - янтарный */
.the-fourth {
    background: linear-gradient(135deg, #fef3c7 0%, white 100%);
}

.the-fourth .feature-bg-icon i,
.the-fourth .feature-icon i {
    color: #d97706;  /* Янтарный */
}

/* the-third (Быстрый старт) - коралловый/оранжевый */
.the-third {
    background: linear-gradient(135deg, #ffedd5 0%, white 100%);
}

.the-third .feature-bg-icon i,
.the-third .feature-icon i {
    color: #ea580c;  /* Коралловый/оранжевый */
}

/* the-sixth (Реферальная программа) - малиновый/розовый */
.the-sixth {
    background: linear-gradient(135deg, #fce7f3 0%, white 100%);
}

.the-sixth .feature-bg-icon i,
.the-sixth .feature-icon i {
    color: #db2777;  /* Малиновый/розовый */
}

/* Comparison Section */
.comparison-section {
    padding: 5.4rem 0;
    background-color: white;
}

.comparison-section .section-header h2 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .comparison-section .section-header h2 {
        font-size: 3rem;
    }
}

.comparison-section .section-subtitle {
    font-size: 1.125rem;
}

.comparison-table-container {
    overflow-x: auto;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    text-align: left;
    border-collapse: collapse;
}

.comparison-table thead {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.highlighted-column {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.05);
}

.comparison-table tbody tr {
    transition: background-color 0.3s;
}

.comparison-table tbody tr:hover {
    background-color: #f8fafc;
}

.comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.comparison-table td:first-child {
    font-weight: 500;
    color: #0f172a;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-item i {
    font-size: 1.25rem;
}

.comparison-item .fa-times-circle {
    color: #f87171;
}

.comparison-item .fa-check-circle {
    color: #10b981;
}

.highlighted-column .comparison-item span {
    color: #0f172a;
    font-weight: 500;
}

/* How It Works Section */
.how-it-works-section {
    padding: 9rem 0;
    background-color: #0f172a;
    color: white;
    overflow: hidden;
    position: relative;
}

.how-it-works-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background: radial-gradient(circle at 50% 50%, #2563eb, transparent 70%);
}

.how-it-works-section .section-header h2 {
    color: white;
    font-size: 2.25rem;
}

@media (min-width: 768px) {
    .how-it-works-section .section-header h2 {
        font-size: 4.5rem;
    }
}

.how-it-works-section .section-subtitle {
    color: #cbd5e1;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
}

.steps-path {
    display: none;
}

@media (min-width: 1024px) {
    .steps-path {
        display: block;
        position: absolute;
        top: 50%;
        left: 6rem;
        right: 6rem;
        height: 2px;
        background: linear-gradient(to right, rgba(37, 99, 235, 0), #3b82f6, rgba(37, 99, 235, 0));
        transform: translateY(-5rem);
    }
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-icon {
    width: 8rem;
    height: 8rem;
    background-color: #2563eb;
    border-radius: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 10;
    transition: all 0.5s;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.4);
    border-bottom: 4px solid #1e40af;
}

.step:hover .step-icon {
    transform: rotate(12deg) scale(1.1);
}

.step-icon i {
    font-size: 2.25rem;
}

.step-number {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: white;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 4px solid #0f172a;
}

.step h3 {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.step p {
    color: #cbd5e1;
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.pricing-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
}

.pricing-bg-2 {
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background-color: rgba(221, 214, 254, 0.4);
}

.pricing-section .section-header h2 {
    font-size: 3rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .pricing-section .section-header h2 {
        font-size: 6rem;
    }
}

.pricing-subtitle {
    color: #475569;
    font-size: 1.5rem;
    max-width: 48rem;
    margin: 0 auto;
    font-weight: 700;
    line-height: 1.6;
    font-style: italic;
}

/* Pricing Grid - горизонтальное расположение на десктопе */
/* Исправление для одинаковой ширины и высоты карточек тарифов */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 72rem;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch; /* Важно для одинаковой высоты */
        justify-content: center;
    }
}

/* Карточки тарифов */
.pricing-card {
    position: relative;
    background-color: white;
    padding: 2rem; /* Уменьшено с 3.5rem */
    border-radius: 2rem; /* Уменьшено с 4rem */
    border: 4px solid #f1f5f9;
    transition: all 0.7s;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    height: 100%; /* Добавлено для одинаковой высоты */
    display: flex;
    flex-direction: column;
    margin: 0 auto; /* Центрирование если нужно */
}

/* Особенности для выделенной карточки */
.pricing-card-featured {
    border-color: #2563eb;
    box-shadow: 0 40px 100px -20px rgba(37, 99, 235, 0.15);
    z-index: 10;
}

/* Фиксируем внутренние элементы */
.pricing-header {
    margin-bottom: 1.5rem;
    text-align: center;
    flex-shrink: 0; /* Не сжимается */
}

.pricing-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1; /* Занимает доступное пространство */
}

.gift-badge {
    flex-shrink: 0; /* Не сжимается */
    margin-bottom: 1.5rem;
}

.pricing-btn {
    flex-shrink: 0; /* Не сжимается */
    margin-top: auto; /* Прижимаем к низу */
}

/* Гарантируем одинаковую ширину в сетке */
@media (min-width: 1024px) {
    .pricing-card {
        max-width: 100%; /* Занимает всю доступную ширину ячейки */
        min-height: 100%; /* Минимальная высота 100% */
    }
}

.featured-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2563eb;
    color: white;
    font-size: 1rem;
    font-weight: 900;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.5);
}
.featured-badge i {
    font-size: 1.125rem;
}
/* Сброс всех возможных отступов */
.pricing-features .feature * {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.pricing-features .feature {
    margin: 0;
    padding: 0;
}
.pricing-header {
    margin-bottom: 1.5rem; /* Уменьшено с 3rem */
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.875rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.pricing-card-featured .pricing-header h3 {
    color: #2563eb;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.period {
    color: #94a3b8;
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pricing-description {
    color: #64748b;
    margin-top: 1rem; 
    font-size: 1.1rem; 
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 1.5rem; 
}

.pricing-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem; 
    margin-bottom: 2rem; 
}

.feature {
    display: flex;
    align-items: center; 
    gap: 0.75rem; 
}

.pricing-card:hover {
    transform: scale(1.03); /* Эффект увеличения */
}

.pricing-card:not(.pricing-card-featured) .feature-icon {
    background-color: rgba(219, 234, 254, 0.5); /* Полупрозрачный синий */
    color: #3b82f6; /* Более бледный синий */
}

.pricing-card:not(.pricing-card-featured) .feature-icon i {
    color: #3b82f6; /* Более бледный синий для иконок */
}

.pricing-card:not(.pricing-card-featured) .pricing-header h3 {
    color: #3b82f6; /* Более бледный синий для заголовков */
}

.pricing-card:not(.pricing-card-featured) .pricing-btn {
    background-color: #3b82f6; /* Более бледный синий для кнопок */
    color: white;
    border-bottom: 8px solid #2563eb; /* Чуть темнее для тени */
}

.pricing-card:not(.pricing-card-featured) .pricing-btn:hover {
    background-color: #2563eb;
}

/* Центральная карточка остается с ярким синим */
.pricing-card-featured .feature-icon {
    background-color: #dbeafe; /* Яркий синий фон */
    color: #2563eb; /* Яркий синий для иконок */
}

.pricing-card-featured .pricing-header h3 {
    color: #2563eb; /* Яркий синий для заголовка */
}

.pricing-card-featured .pricing-btn {
    background-color: #2563eb; /* Яркий синий для кнопки */
    color: white;
    border-bottom: 8px solid #1e40af;
}

.pricing-card-featured .pricing-btn:hover {
    background-color: #1d4ed8;
}

.feature-icon {
    width: 36px;
    height: 36px;
    padding: 0.4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1rem;
}

.feature-icon.featured {
    background-color: #dbeafe;
    color: #2563eb;
}

.feature span {
    color: #374151;
    font-size: 1.1875rem;
    font-weight: 700;
}

.pricing-btn {
    width: 100%;
    padding: 1rem 2rem; 
    border-radius: 1.5rem;
    font-weight: 900;
    font-size: 1.25rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    border-bottom: 8px solid #0f172a;
}

.pricing-btn:hover {
    background-color: #1e293b;
}

.pricing-btn:active {
    transform: scale(0.95);
}

.featured-btn {
    background-color: #2563eb;
    color: white;
    border-bottom-color: #1e40af;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.4);
}

.featured-btn:hover {
    background-color: #1d4ed8;
}
.gift-badge {
    background-color: #dcfce7; /* Светло-зеленый фон */
    color: #15803d; /* Темно-зеленый текст */
    border: 1px solid #86efac;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.1);
}
.gift-icon {
    font-size: 1.5rem; 
    vertical-align: middle; 
    margin-right: 0.2rem; 
}
/* FAQ Section */
.faq-section {
    padding: 5.4rem 0;
    background-color: white;
}

.faq-section .section-header h2 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .faq-section .section-header h2 {
        font-size: 3rem;
    }
}

.faq-section .section-subtitle {
    font-size: 1.125rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: #bfdbfe;
}

.faq-item button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
}

.faq-item button:focus {
    outline: none;
}

.faq-item button i {
    color: #94a3b8;
    font-size: 1.25rem;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #475569;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: white;
    padding-top: 8rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 500px;
    background-color: rgba(37, 99, 235, 0.1);
    filter: blur(150px);
    z-index: 0;
}

.footer-cta {
    background: linear-gradient(135deg, #2563eb, #4f46e5, #7c3aed);
    border-radius: 4rem;
    padding: 4rem;
    margin-bottom: 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.5);
}

@media (min-width: 768px) {
    .footer-cta {
        padding: 6rem;
    }
}

.footer-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    transition: transform 10000ms linear;
}

.footer-cta:hover .footer-cta-bg {
    transform: scale(1.1);
}

.footer-cta h2 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 10;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .footer-cta h2 {
        font-size: 4.5rem;
    }
}

.footer-cta p {
    color: #bfdbfe;
    font-size: 1.25rem;
    margin-bottom: 3.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
    font-weight: 500;
}

@media (min-width: 768px) {
    .footer-cta p {
        font-size: 1.5rem;
    }
}

.footer-cta button {
    background-color: white;
    color: #2563eb;
    padding: 1.5rem 3rem;
    border-radius: 9999px;
    font-size: 1.5rem;
    font-weight: 900;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-bottom: 4px solid #e2e8f0;
}

.footer-cta button:hover {
    background-color: #eff6ff;
    transform: scale(1.05);
}

.footer-cta button:active {
    transform: scale(0.95);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    cursor: pointer;
}

.footer-logo-icon {
    background-color: #2563eb;
    padding: 0.5rem 1rem; 
    border-radius: 0.75rem;
    color: white;
}

.footer-logo-text {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.footer-description {
    color: #94a3b8;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 1.25rem;
}

.footer-social a {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: #2563eb;
    transform: scale(1.1);
}

.footer-links h4 {
    font-weight: 900;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    font-weight: 500;
    font-size: 1.125rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-links i {
    color: #3b82f6;
}

.footer-links button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    font-weight: 900;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-links button:hover {
    color: #60a5fa;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-legal {
    display: flex;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .footer-legal {
        margin-top: 0;
    }
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: white;
}

/* Demo Modal */
.demo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 3rem;
    padding: 3rem;
    max-width: 42rem;
    width: 100%;
    margin: 0 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.875rem;
    font-weight: 900;
    color: #0f172a;
}

.modal-header button {
    color: #94a3b8;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-header button:hover {
    color: #0f172a;
}

.modal-body {
    background-color: #dbeafe;
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.demo-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.demo-flow i {
    color: #2563eb;
    font-size: 3rem;
}

.demo-flow .fa-arrow-left {
    color: #93c5fd;
    font-size: 2rem;
}

.modal-body p {
    color: #374151;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

.modal-footer button {
    background-color: #2563eb;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-footer button:hover {
    background-color: #1d4ed8;
}

/* Utility Classes */
.hidden {
    display: none;
}

.flex {
    display: flex;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 4rem;
    }
}

@media (min-width: 1280px) {
    .container {
        padding: 0 5rem;
    }
}

/* Показываем только десктопную версию по умолчанию */
.desktop-version {
    display: block;
}

.mobile-version {
    display: none;
}

/* На мобильных устройствах (ширина ≤ 450px) */
@media (max-width: 450px) {
    .desktop-version {
        display: none;
    }
    
    .mobile-version {
        display: block;
    }
    
    .comparison-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .comparison-mobile-item {
        background: white;
        border-radius: 1.5rem;
        padding: 1.5rem;
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    
    .bad-way {
        display: flex;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #fecaca;
        align-items: flex-start;
    }
    
    .good-way {
        display: flex;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .bad-way i {
        color: #f87171;
        font-size: 1.25rem;
        margin-top: 0.25rem;
        flex-shrink: 0;
    }
    
    .good-way i {
        color: #10b981;
        font-size: 1.25rem;
        margin-top: 0.25rem;
        flex-shrink: 0;
    }
    
    .bad-way span,
    .good-way span {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}


/* Mobile Menu Styles */
#mobileMenu {
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

#mobileMenu.open {
    display: flex;
}

#mobileMenu a {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid #f8fafc;
    transition: color 0.3s;
}

#mobileMenu a:hover {
    color: #2563eb;
}

.mobile-buttons {
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-buttons .login-btn {
    width: 100%;
    text-align: center;
    padding: 1.25rem;
    color: #475569;
    font-weight: 700;
    font-size: 1.25rem;
    border: 2px solid #f1f5f9;
    border-radius: 1rem;
    background: none;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-buttons .login-btn:hover {
    background-color: #f1f5f9;
    border-color: #2563eb;
}

.mobile-primary-btn {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    font-weight: 900;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.3);
}

.mobile-primary-btn:hover {
    background-color: #1d4ed8;
    transform: scale(1.02);
}

/* Prevent body scroll when menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Toast notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    border-left: 4px solid #2563eb;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast i {
    color: #2563eb;
    font-size: 1.25rem;
}

.toast span {
    color: #0f172a;
    font-weight: 500;
}

/* FAQ open state */
.faq-item.open .faq-answer {
    display: block;
}

.faq-item:not(.open) .faq-answer {
    display: none;
}

.faq-item.open button i {
    transform: rotate(180deg);
}

.faq-item button i {
    transition: transform 0.3s;
}

/* Demo Modal */
.demo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

@media (max-width: 385px) {
    .footer-cta {
        padding: 2rem 1rem !important;
        border-radius: 2rem !important;
        margin-bottom: 4rem !important;
    }
    
    .footer-cta h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.5rem !important;
        padding: 0 0.5rem !important;
        word-break: break-word !important;
    }
    
    .footer-cta p {
        font-size: 0.95rem !important;
        margin-bottom: 2rem !important;
        padding: 0 0.5rem !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }
    
    .footer-cta button {
        padding: 1rem 1.5rem !important;
        font-size: 1.1rem !important;
        border-radius: 1.5rem !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .footer-cta-bg {
        display: none !important; /* На очень маленьких экранах лучше скрыть фон */
    }
}
/* --- Стили для Демо Модального Окна --- */

.demo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Полупрозрачный затемненный фон */
    z-index: 9999; /* Поверх всего */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Выравнивание по верху, чтобы работал скролл */
    padding-top: 3rem;       /* Отступ сверху */
    overflow-y: auto;   
}


/* Кнопка закрытия */
.close-demo-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s, color 0.3s;
}

.close-demo-btn:hover {
    color: #ff4d4d;
    transform: scale(1.1);
}

/* Обновляем контейнер, чтобы он пропускал клики сквозь себя, но ловил клики на детях */
.demo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
    width: 100%;
    max-width: 1400px;
    z-index: 10; /* Поднимаем контейнер над фоном */
}
/* Обертка для сцен */
.demo-wrapper {
    display: flex;
    flex-direction: column; /* Сцены друг под другом */
    gap: 4rem;              /* Расстояние между рядами видео */
    width: 100%;
    max-width: 1400px;
    align-items: center;
}

/* Одна сцена (ряд видео) */
.demo-scene {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Стили для колонок внутри сцены (оставляем как были, немного уточняем) */
.demo-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto; /* Ширина по контенту */
    flex-shrink: 0; /* Чтобы видео не сжималось */
}

/* Стрелка */
.demo-arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px; /* Фиксированная ширина для стрелки */
}




/* Адаптивность для мобильных */
@media (max-width: 1024px) {
    .demo-scene {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .demo-arrow-container i {
        transform: rotate(90deg); /* Стрелка вниз */
    }
    
    .demo-video {
        width: 100%;
        max-width: 350px; /* Чуть меньше на мобильных, чтобы два ряда поместились */
        max-height: 50vh;
    }

    .demo-wrapper {
        gap: 2rem;
    }
}

/* Общие стили для колонок */
.demo-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.8s ease-in-out;
    pointer-events: auto !important;
}

/* Надписи над видео */
.video-label, .arrow-label {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Стрелка по середине */
.demo-arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem; /* Размер стрелки */
    transition: all 0.8s ease-in-out;
}

.demo-arrow-container i {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Обновляем видео */
.demo-video {
    display: block;
    max-height: 85vh;
    aspect-ratio: 9/16;
    max-width: 100%;
    position: relative; 
    z-index: 20; 
    pointer-events: auto; 
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: black;
    object-fit: cover;
}
#video3,#video4 {object-fit: contain;}

@media (max-width: 768px) {
    .demo-scene {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-side {
        width: 100%;
        margin: 10px 0;
    }

}
/* Утилиты для скрытия */
.hidden {
    display: none !important;
    opacity: 0;
}

.fade-in {
    display: flex !important;
    animation: fadeIn 1s forwards;
}

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

/* Адаптивность для мобильных устройств (если открыто на телефоне) */
@media (max-width: 1024px) {
    .demo-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .demo-arrow-container i {
        transform: rotate(90deg); /* Стрелка вниз на мобильных */
    }
    
    .demo-video {
        width: 100%;
        max-width: 450px;
    }
}