/* ============================================
   БАЗОВЫЕ СТИЛИ (общие для всех устройств)
   ============================================ */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-bg: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 35px 60px -12px rgba(0, 0, 0, 0.35);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Анимированный фон */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(ellipse at top left, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(245, 87, 108, 0.1) 0%, transparent 50%),
        var(--dark-bg);
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ============================================
   DESKTOP СТИЛИ (для компьютеров)
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--card-bg);
    transform: translateY(-1px);
}

.nav-link.primary {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
}

.nav-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.main-content {
    padding-top: 120px;
    min-height: 100vh;
}

.hero-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 3rem;
    align-items: center;
}

.hero-video-column {
    width: 100%;
}

.hero-text-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 500px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1);
}

/* Пульсирующая анимация для главной CTA */
.btn-primary.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(24px) saturate(180%);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.features-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(24px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.feature-link:hover {
    gap: 0.75rem;
}

.gallery-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.video-hero-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    position: relative;
    min-height: 300px;
    max-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-hero-container video {
    width: 100%;
    height: auto;
    display: block;
    min-height: 300px;
    max-height: 450px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    background: var(--card-bg);
}

/* Custom video controls were removed; using native browser controls now */

.gallery-scroll-container {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    margin-bottom: 3rem;
    padding: 1rem 0;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-scroll-container::-webkit-scrollbar {
    display: none;
}

.gallery-scroll-wrapper {
    display: inline-flex;
    gap: 1.5rem;
    min-width: min-content;
    will-change: transform;
}

.gallery-grid {
    display: flex;
    gap: 1.5rem;
    min-width: min-content;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
    width: 300px;
    height: 400px;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -12px rgba(102, 126, 234, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   MOBILE СТИЛИ (для телефонов и планшетов)
   ============================================ */
@media (max-width: 968px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-video-column {
        order: 1;
    }
    .hero-text-column {
        order: 2;
    }
    .btn-group {
        justify-content: center;
    }
    .gallery-grid {
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hero-section {
        padding: 2rem 1rem;
    }
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .gallery-item {
        width: 250px;
        height: 350px;
    }
    .main-content {
        padding-top: 80px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .gallery-title {
        font-size: 2rem;
    }
}

/* ============================================
   СЕКЦИЯ "Мощные возможности редактирования"
   ============================================ */
.editing-features-section {
    padding: 4rem 0;
    margin: 4rem 0;
}

.editing-features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(24px) saturate(180%);
}

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

.editing-features-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.editing-features-icon svg {
    color: #667eea;
    width: 64px;
    height: 64px;
}

.editing-features-title {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
}

.editing-features-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

.editing-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.editing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.editing-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.editing-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
}

.editing-feature-icon svg {
    width: 100%;
    height: 100%;
}

.editing-feature-item span {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
}

.editing-features-action {
    text-align: center;
}

.editing-features-action .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .editing-features-container {
        padding: 2rem 1.5rem;
    }
    
    .editing-features-title {
        font-size: 1.5rem;
    }
    
    .editing-features-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .editing-feature-item {
        padding: 1.25rem;
    }
    
    .editing-feature-icon {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   МОДАЛЬНОЕ ОКНО "Мощные возможности редактирования" (удалено, оставлено для совместимости)
   ============================================ */
.features-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.features-modal-content {
    background: #0a0a0f;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

.features-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.features-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.features-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.features-modal-header svg {
    margin-bottom: 1rem;
    color: #667eea;
}

.features-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.features-modal-body {
    margin-bottom: 2rem;
}

.features-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-modal-body li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.features-modal-body li:last-child {
    margin-bottom: 0;
}

.features-modal-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #667eea;
}

.features-modal-icon svg {
    width: 100%;
    height: 100%;
}

.features-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.features-modal-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.features-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

/* ============================================
   СЕКЦИЯ ПОДДЕРЖКИ И БОТА
   ============================================ */
.support-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.support-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.support-bot,
.support-info {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.support-bot:hover,
.support-info:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.support-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

.support-icon svg {
    width: 24px;
    height: 24px;
}

.support-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-title svg {
    flex-shrink: 0;
    color: var(--text-primary);
}

.support-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-link:hover {
    color: #764ba2;
    gap: 0.75rem;
}

.support-link svg {
    width: 16px;
    height: 16px;
}

.support-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.support-contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.support-contact-item svg {
    width: 20px;
    height: 20px;
    color: #667eea;
    flex-shrink: 0;
}

.support-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-left: auto;
}

/* ============================================
   МОБИЛЬНЫЕ СТИЛИ
   ============================================ */
@media (max-width: 768px) {
    .support-section {
        padding: 3rem 1.5rem;
    }
    
    .support-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .support-bot,
    .support-info {
        padding: 1.5rem;
    }
    
    .support-title {
        font-size: 1.125rem;
    }
    
    .support-contact-item {
        flex-wrap: wrap;
    }
    
    .support-time {
        margin-left: 0;
        width: 100%;
    }
}

/* ============================================
   ГОРИЗОНТАЛЬНАЯ КАРУСЕЛЬ
   ============================================ */
.horizontal-carousel-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.carousel-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    min-height: 400px;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.carousel-btn:hover {
    background: rgba(102, 126, 234, 0.8);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #667eea;
    border-color: #667eea;
    width: 24px;
    border-radius: 5px;
}

/* Мобильные стили для карусели */
@media (max-width: 768px) {
    .horizontal-carousel-section {
        padding: 3rem 1.5rem;
    }
    
    .carousel-section-header {
        margin-bottom: 2rem;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-subtitle {
        font-size: 1rem;
    }
    
    .carousel-container {
        max-width: 100%;
    }
    
    .carousel-slide {
        min-height: 300px;
        max-height: 400px;
        padding: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn-prev {
        left: 0.5rem;
    }
    
    .carousel-btn-next {
        right: 0.5rem;
    }
    
    .carousel-dots {
        margin-top: 1rem;
        gap: 0.375rem;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .carousel-dot.active {
        width: 20px;
    }
}

/* ============================================
   FAQ (ВОПРОСЫ И ОТВЕТЫ)
   ============================================ */
.faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.faq-container {
    max-width: 100%;
    margin: 0 auto;
}

.faq-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.75rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.75rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #667eea;
}

.faq-question[aria-expanded="true"] {
    color: #667eea;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
    width: 18px;
    height: 18px;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    color: #667eea;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 1.25rem;
}

.faq-item[aria-expanded="true"] .faq-answer {
    max-height: 500px;
    padding: 0 1.25rem 1rem 1.25rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9375rem;
}

/* Мобильные стили для FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 2.5rem 1.5rem;
    }
    
    .faq-title {
        font-size: 1.75rem;
    }
    
    .faq-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-list {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }
    
    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
    
    .faq-item[aria-expanded="true"] .faq-answer {
        padding: 0 1rem 0.875rem 1rem;
    }
    
    .faq-answer p {
        font-size: 0.875rem;
    }
}

/* ============================================
   ФУТЕР ГЛАВНОЙ СТРАНИЦЫ
   ============================================ */
.main-footer {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 3rem 2rem 1.5rem;
}

.main-footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.main-footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-footer-title svg {
    flex-shrink: 0;
    color: var(--text-primary);
}

.main-footer-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.main-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.main-footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.main-footer-link:hover {
    color: #667eea;
    transform: translateX(4px);
}

.main-footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.main-footer-contact {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.main-footer-contact:hover {
    color: #667eea;
    transform: translateX(4px);
}

.main-footer-contact svg {
    width: 16px;
    height: 16px;
    color: #667eea;
    flex-shrink: 0;
}

.main-footer-time {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-left: auto;
}

.main-footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.main-footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0 0 0.75rem 0;
}

.main-footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.main-footer-separator {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Мобильные стили для футера */
@media (max-width: 768px) {
    .main-footer {
        padding: 2rem 1.5rem 1rem;
    }
    
    .main-footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .main-footer-title {
        font-size: 1rem;
    }
    
    .main-footer-contact {
        flex-wrap: wrap;
    }
    
    .main-footer-time {
        margin-left: 0;
        width: 100%;
    }
}

/* ============================================
   HERO BADGES (БЕЙДЖИ В HERO СЕКЦИИ)
   ============================================ */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    color: #667eea;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================
   СТАТИСТИКА (SOCIAL PROOF)
   ============================================ */
.stats-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

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

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.stat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stat-link:hover {
    gap: 0.625rem;
    color: #764ba2;
}

.stat-link svg {
    width: 14px;
    height: 14px;
}

/* Мобильные стили для статистики */
@media (max-width: 768px) {
    .stats-section {
        padding: 3rem 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon {
        width: 56px;
        height: 56px;
    }
    
    .stat-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   ПРЕИМУЩЕСТВА (BENEFITS)
   ============================================ */
.benefits-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

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

.benefits-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefits-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.benefit-icon svg {
    width: 40px;
    height: 40px;
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Мобильные стили для преимуществ */
@media (max-width: 768px) {
    .benefits-section {
        padding: 3rem 1.5rem;
    }
    
    .benefits-title {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .benefit-icon {
        width: 64px;
        height: 64px;
    }
    
    .benefit-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   PRICING (ЦЕНЫ)
   ============================================ */
.pricing-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.15);
}

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

.pricing-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

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

.pricing-card:hover {
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.pricing-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-card-price {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.pricing-card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
    margin: 0;
}

.pricing-loading,
.pricing-error {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.pricing-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.pricing-note svg {
    flex-shrink: 0;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 3rem 1.5rem;
    }
    
    .pricing-title {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-card-icon {
        width: 56px;
        height: 56px;
    }
    
    .pricing-card-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .pricing-card-price {
        font-size: 1.75rem;
    }
}

/* ============================================
   USE CASES (ДЛЯ КОГО)
   ============================================ */
.use-cases-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.use-cases-container {
    max-width: 1200px;
    margin: 0 auto;
}

.use-cases-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.use-cases-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.use-case-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}

.use-case-icon svg {
    width: 48px;
    height: 48px;
}

.use-case-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.use-case-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.use-case-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.use-case-features li {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    padding-left: 1.5rem;
    position: relative;
}

.use-case-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: 700;
}

/* Мобильные стили для use cases */
@media (max-width: 768px) {
    .use-cases-section {
        padding: 3rem 1.5rem;
    }
    
    .use-cases-title {
        font-size: 2rem;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .use-case-card {
        padding: 1.5rem;
    }
}

/* ============================================
   ДОВЕРИЕ (TRUST)
   ============================================ */
.trust-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

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

.trust-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.trust-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.trust-item:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.trust-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 1.5rem;
}

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

.trust-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.trust-item-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Мобильные стили для доверия */
@media (max-width: 768px) {
    .trust-section {
        padding: 3rem 1.5rem;
    }
    
    .trust-title {
        font-size: 2rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trust-item {
        padding: 1.5rem;
    }
}

