/* Современные CSS переменные */
:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #ff3366;
    --gray-light: #f5f5f5;
    --gray-dark: #333333;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    overflow-x: hidden;
}

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

.section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
}

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

        /* Главная секция - полностью переработана */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    filter: blur(1px); /* Добавьте эту строку */
    z-index: 1;
}

/* Затемнение видео для лучшей читаемости текста */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    /* Уберите backdrop-filter отсюда */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* остальные стили остаются */
}

        /* Анимированный фон */
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.05) 0%, transparent 50%);
            animation: gradientShift 8s ease-in-out infinite;
        }

        @keyframes gradientShift {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
            max-width: 1200px;
            padding: 0 20px;
        }

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    text-shadow: 
        0 0 10px #000000,
        0 0 20px #000000,
        0 0 30px #000000,
        0 0 40px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.6);
    animation: titleReveal 1s ease-out;
}

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

        .hero-subtitle {
            font-size: clamp(1.1rem, 3vw, 1.5rem);
            font-weight: 400;
            margin-bottom: 2rem;
            color: white;
            opacity: 0.8;
            animation: subtitleReveal 1s ease-out 0.3s both;
        }

        @keyframes subtitleReveal {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 0.8;
                transform: translateY(0);
            }
        }

        /* Современная кнопка */
        .cta-button {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 18px 40px;
            background: white;
            color: var(--primary);
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.1rem;
            transition: var(--transition);

            position: relative;
            overflow: hidden;
            animation: buttonReveal 1s ease-out 0.6s both;
        }

        .cta-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.5), transparent);
            transition: left 0.5s;
        }

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

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
        }
                /* Современная кнопка */
        .cta-button-rewiews {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 10px 40px;
            background: white;
            color: var(--primary);
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.1rem;
            transition: var(--transition);

            position: relative;
            overflow: hidden;
            animation: buttonReveal 1s ease-out 0.6s both;
        }

        .cta-button-rewiews::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.5), transparent);
            transition: left 0.5s;
        }

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

        .cta-button-rewiews:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
        }

        /* Мобильное меню */
        .mobile-menu-toggle {
            display: none;
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1001;
            background: var(--primary);
            color: var(--secondary);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            transition: var(--transition);
        }

        .mobile-menu-toggle:hover {
            transform: scale(1.05);
        }

        /* Плавающее меню */
.floating-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    z-index: 1000;
    display: flex;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

        .nav-item {
            padding: 12px 20px;
            text-decoration: none;
            color: var(--gray-dark);
            font-weight: 500;
            border-radius: 25px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .nav-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--primary);
            transition: left 0.3s;
            z-index: -1;
        }

        .nav-item:hover {
            color: var(--secondary);
        }

        .nav-item:hover::before {
            left: 0;
        }

        /* Блок "О нас" */
        .about {
            background: var(--gray-light);
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .about-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-top: 3rem;
        }

        .stat-item {
            text-align: center;
            padding: 2rem;
            background: var(--secondary);
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: var(--transition);
            cursor: pointer;
        }

        .stat-item:hover {
            transform: translateY(-5px);
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            color: var(--primary);
            display: block;
        }

        .stat-text {
            font-size: 1.1rem;
            color: var(--gray-dark);
            opacity: 0.8;
        }

        .about-image {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            
        }

        .about-image img {
            width: 100%;
            height: auto;
            display: block;
            transition: var(--transition);
        }

        .about-image:hover img {
            transform: scale(1.05);
        }

        /* Галерея работ */
        .portfolio {
            background: var(--secondary);
        }

        .portfolio-filters {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 3rem;
        }

        .filter-btn {
            padding: 12px 24px;
            background: transparent;
            border: 2px solid var(--gray-light);
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .filter-btn.active,
        .filter-btn:hover {
            background: var(--primary);
            color: var(--secondary);
            border-color: var(--primary);
        }

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

        .portfolio-item {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            aspect-ratio: 4/3;
            cursor: pointer;
        }

        .portfolio-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .portfolio-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            display: flex;
            align-items: flex-end;
            padding: 2rem;
            opacity: 0;
            transition: var(--transition);
        }

        .portfolio-item:hover .portfolio-overlay {
            opacity: 1;
        }

        .portfolio-item:hover img {
            transform: scale(1.1);
        }

        .portfolio-category {
            color: var(--secondary);
            font-weight: 600;
            font-size: 1.1rem;
        }

        /* Отзывы */
        .reviews {
            background: var(--gray-light);
        }

        .reviews-slider {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
        }

        .review-card {
            background: var(--secondary);
            padding: 3rem;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            margin: 0 1rem;
            transition: var(--transition);
        }

        .review-card:hover {
            transform: translateY(-5px);
        }

        .review-text {
            font-size: 1.2rem;
            line-height: 1.8;
            margin-bottom: 2rem;
            font-style: italic;
        }

        .review-author {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .author-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
        }

        .author-info h4 {
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .author-info p {
            color: var(--gray-dark);
            opacity: 0.7;
        }

        /* Контакты */
        .contact {
            background: var(--secondary);
        }

        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: start;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1.5rem;
            background: var(--gray-light);
            border-radius: 15px;
            transition: var(--transition);
            text-decoration: none;
            color: inherit;
        }

        .contact-item:hover {
            transform: translateX(10px);
            background: var(--primary);
            color: var(--secondary);
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            background: var(--primary);
            color: var(--secondary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .contact-item:hover .contact-icon {
            background: var(--secondary);
            color: var(--primary);
        }

        .contact-text h3 {
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .contact-form {
            background: var(--gray-light);
            padding: 3rem;
            border-radius: 20px;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            border: 2px solid transparent;
            border-radius: 10px;
            background: var(--secondary);
            transition: var(--transition);
            font-family: inherit;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
        }

        .submit-btn {
            width: 100%;
            padding: 1rem;
            background: var(--primary);
            color: var(--secondary);
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        /* Анимации для статистики */
        @keyframes countUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .counting {
            animation: countUp 1s ease-out forwards;
        }

        /* Адаптивность */
        @media (max-width: 1024px) {
            .about-grid,
            .contact-grid {
                gap: 3rem;
            }
            
            .portfolio-grid {
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .section {
                padding: 80px 0;
            }
            
            .floating-nav {
                display: none;
            }
            
            .mobile-menu-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .mobile-nav {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background: var(--secondary);
                z-index: 1000;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 2rem;
                transform: translateY(-100%);
                transition: transform 0.4s ease;
            }
            
            .mobile-nav.active {
                transform: translateY(0);
            }
            
            .mobile-nav .nav-item {
                font-size: 1.5rem;
                padding: 15px 30px;
            }
            
            .about-grid,
            .contact-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .about-stats {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .portfolio-grid {
                grid-template-columns: 1fr;
            }
            
            .portfolio-filters {
                gap: 0.5rem;
            }
            
            .filter-btn {
                padding: 10px 15px;
                font-size: 0.9rem;
            }
            
            .review-card {
                padding: 2rem;
            }
            
            .contact-form {
                padding: 2rem;
            }
            
            .hero-content {
                padding: 0 15px;
            }
            
            .stat-item {
                padding: 1.5rem;
            }
            
            .stat-number {
                font-size: 2.5rem;
            }
        }

        @media (max-width: 480px) {
            .section {
                padding: 60px 0;
            }
            
            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-subtitle {
                font-size: 1rem;
            }
            
            .cta-button {
                padding: 15px 30px;
                font-size: 1rem;
            }
            .cta-button-rewiews {
                padding: 15px 30px;
                font-size: 1rem;
            }
            
            .portfolio-filters {
                flex-direction: column;
                align-items: center;
            }
            
            .filter-btn {
                width: 200px;
            }
            
            .contact-item {
                padding: 1rem;
            }
            
            .contact-icon {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
        }

        /* Плавная прокрутка */
        html {
            scroll-behavior: smooth;
        }

        /* Улучшенная анимация появления */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Анимация для кнопки */
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
            }
        }

        .pulse {
            animation: pulse 2s infinite;
        }
        @media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Показываем мобильное меню только на мобильных устройствах */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-nav {
        display: flex;
    }
}

/* Стили для футера */
.footer {
    background: var(--primary);
    color: var(--secondary);
    padding: 60px 0 20px;
}

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

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

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

.footer-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 0;
}

.footer-contact:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.footer-contact i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-link:hover::before {
    width: 20px;
}

.footer-services {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-service {
    color: rgba(255, 255, 255, 0.8);
    padding: 5px 0;
    transition: var(--transition);
    cursor: default;
}

.footer-service:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p,
.footer-madeby p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-contact {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Стили для модального окна портфолио */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--secondary);
    margin: auto;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.portfolio-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: var(--secondary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.modal-subtitle {
    color: var(--gray-dark);
    opacity: 0.8;
    font-size: 1.1rem;
}

.modal-media {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.media-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-item {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item video {
    background: #000;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: var(--secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.slider-nav:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.modal-description {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-light);
}

.modal-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-dark);
    margin: 0;
}

.modal-review {
    padding: 1.5rem 2rem 2rem;
}

.review-content {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 15px;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.author-info p {
    color: var(--gray-dark);
    opacity: 0.7;
    margin: 0;
    font-size: 0.9rem;
}

/* Адаптивность модального окна */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-media {
        height: 300px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-description,
    .modal-review {
        padding: 1rem 1.5rem;
    }
    
    .review-content {
        padding: 1rem;
    }
    
    .review-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-media {
        height: 250px;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.5rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-subtitle {
        font-size: 1rem;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
}

/* Стили для промо-видео */
.promo-video-section {
    margin-top: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--secondary) 100%);
    border-radius: 20px;
}

.promo-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary);
}

.promo-video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #000;
    aspect-ratio: 16/9;
}

.promo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: var(--transition);
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--accent);
}

.play-button.playing {
    opacity: 0;
}

.video-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.video-stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.video-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-dark);
    opacity: 0.8;
    font-weight: 500;
}

/* Адаптивность промо-видео */
@media (max-width: 768px) {
    .promo-video-section {
        margin-top: 3rem;
        padding: 2rem 0;
    }
    
    .promo-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    .video-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .video-stat {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .promo-video-section {
        margin-top: 2rem;
        padding: 1.5rem 0;
        border-radius: 15px;
    }
    
    .promo-title {
        font-size: 1.3rem;
    }
    
    .video-container {
        border-radius: 10px;
    }
    
    .video-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-stat {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

/* Прелоадер */
/* Обновленный прелоадер с вспышками */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-words {
    position: relative;
    height: 80px;
}

.word {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--secondary);
    opacity: 0;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Анимация вспышек - быстрее и с эффектом свечения */
#word1 {
    animation: wordFlash 0.8s ease-in-out 0.3s forwards;
}

#word2 {
    animation: wordFlash 0.8s ease-in-out 1.2s forwards;
}

#word3 {
    animation: wordFlash 0.8s ease-in-out 2.1s forwards;
}

@keyframes wordFlash {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8),
                   0 0 60px rgba(255, 255, 255, 0.6);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
}
/* Бегущая строка для мобильных */
.marquee-mobile {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    z-index: 3;
    overflow: hidden;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%); /* Меняем с -50% на -100% */
    }
}

.marquee-track {
    display: flex;
    animation: marqueeScroll 20s linear infinite; /* Ускорили до 15 секунд */
    white-space: nowrap;
    width: max-content; /* Важно для правильной работы */
}

.marquee-item {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1rem;
    padding: 0 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0; /* Запрещаем сжатие элементов */
}

/* Скрываем основной контент hero на мобильных */
@media (max-width: 768px) {
    .marquee-mobile {
        display: block;
    }
    
    .hero-title,
    .hero-subtitle {
        display: none;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        padding-bottom: 120px; /* Отступ от бегущей строки */
        min-height: 100vh;
        position: relative;
    }
    
    .cta-button {
        position: absolute;
        bottom: 200px; /* Позиционируем над бегущей строкой */
        left: 50%;
        transform: translateX(-50%) scale(1); /* Убрал увеличение */
        margin: 0;
        padding: 20px 30px; /* Еще меньше паддинг */
        font-size: 0.85rem; /* Уменьшаем размер шрифта */
        white-space: nowrap; /* Запрещаем перенос текста */
    }
    .cta-button-rewiews {
        position: absolute;
        bottom: 150px; /* Позиционируем над бегущей строкой */
        left: 50%;
        transform: translateX(-50%) scale(1); /* Убрал увеличение */
        margin: 0;
        padding: 10px 20px; /* Еще меньше паддинг */
        font-size: 0.85rem; /* Уменьшаем размер шрифта */
        white-space: nowrap; /* Запрещаем перенос текста */
    }
}

@media (min-width: 769px) {
    .hero-content {
        justify-content: center;
        padding-bottom: 0;
    }
    
    .cta-button {
        position: static;
        transform: translateX(0) scale(1);
        margin-top: 2rem;
    }
    .cta-button-rewiews {
        position: static;
        transform: translateX(0) scale(1);
        margin-top: 2rem;
    }
}

/* Стили для блока услуг */
.services {
    background: var(--gray-light);
}

.service-card {
    background: var(--secondary);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

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

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.service-count {
    background: var(--primary);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.service-gallery {
    margin-bottom: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.service-btn:hover {
    background: var(--gray-dark);
    transform: translateX(5px);
}

/* Стили для страниц услуг */
.service-page {
    display: none;
    background: var(--secondary);
    min-height: 100vh;
}

.service-page.active {
    display: block;
}

.service-page-header {
    background: var(--primary);
    color: var(--secondary);
    padding: 2rem;
    position: relative;
}

.back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(-5px);
}

.service-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.service-page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.service-page-content {
    padding: 2rem;
}

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

.media-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-info h4 {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.media-info p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-page-header {
        padding: 1.5rem;
    }
    
    .service-page-title {
        font-size: 2rem;
    }
    
    .service-page-content {
        padding: 1.5rem;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
}