/* Основные стили */
:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --light-color: #f1faee;
    --dark-color: #1d3557;
    --gray-color: #a8dadc;
    --text-color: #333;
    --text-light: #f1faee;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section {
    padding: 100px 0;
}

.section--dark {
    background-color: var(--dark-color);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.section--dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.8) 0%, rgba(29, 53, 87, 0.9) 100%);
    z-index: 1;
}

.section--dark::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

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

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

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section__subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn--primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn--primary:hover {
    background-color: #c1272d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn--full {
    width: 100%;
}

/* Прелоадер */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gray-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Хедер */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #ffffff38;
    transition: var(--transition);
    padding: 20px 0;
    transform: translateX(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.header.scrolled {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    animation: slideInFromLeft 0.5s ease forwards;
    clip-path: polygon(0 0, 100% 0, 98% 100%, 0 100%);
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.header.scrolled-up {
    animation: slideOutToLeft 0.5s ease forwards;
}

@keyframes slideOutToLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes fadeInHeader {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header.scrolled .logo,
.header.scrolled .nav__item {
    animation: fadeInHeader 0.5s ease forwards;
}

.header.scrolled .nav__item:nth-child(1) {
    animation-delay: 0.1s;
}

.header.scrolled .nav__item:nth-child(2) {
    animation-delay: 0.2s;
}

.header.scrolled .nav__item:nth-child(3) {
    animation-delay: 0.3s;
}

.header.scrolled .nav__item:nth-child(4) {
    animation-delay: 0.4s;
}

.header.scrolled .nav__item:nth-child(5) {
    animation-delay: 0.5s;
}

.header.scrolled .nav__link {
    color: var(--text-color);
}

.header.scrolled .logo__text,
.header.scrolled .logo__subtext {
    color: var(--text-color);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
}

.logo__text {
    color: #fff;
}

.logo__subtext {
    color: var(--primary-color);
}

.logo_header {
    width: 10%;
    padding-right: 10px;
}

.nav__list {
    display: flex;
}

.nav__item {
    width: max-content;
    margin-left: 30px;
}

.nav__link {
    color: #fff;
    font-weight: 500;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link.active {
    color: var(--primary-color);
}

.header.scrolled .nav__link.active {
    color: var(--primary-color);
}

.header__burger {
    display: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.header.scrolled .header__burger {
    animation: rotateIn 0.5s ease forwards;
}

@keyframes rotateIn {
    0% {
        transform: rotate(-90deg);
        opacity: 0;
    }
    100% {
        transform: rotate(0);
        opacity: 1;
    }
}

.header__burger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 6px 0;
    transition: var(--transition);
}

.header.scrolled .header__burger span {
    background-color: var(--text-color);
}

/* Главный экран */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    perspective: 1000px;
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-style: preserve-3d;
    transform: translateZ(-50px) scale(1.2);
    transition: transform 0.5s ease;
}

.hero:hover .hero__video {
    transform: translateZ(-30px) scale(1.15);
}

.hero__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    /*max-width: 800px;*/
    margin: 0 auto;
}

/* Эффект печатающегося текста */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: 
        typing 5.5s steps(40, end),
        blink-caret .75s step-end infinite;
    border-right: 3px solid var(--primary-color);
}

.hero__subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 3.5s;
}

.hero .btn {
    opacity: 0;
    animation: fadeIn 1s ease forwards 4s;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1;
    color: #fff;
    text-align: center;
    animation: bounce 2s infinite;
    width: 100%;
    pointer-events: none;
}

.scroll-down__text {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
    width: 100%;
}

.scroll-down i {
    font-size: 16px;
    display: block;
    margin: 0 auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* О нас */
.about__inner {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about__content {
    flex: 1;
}

.about__image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about__text {
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    margin-top: 40px;
}

.stat {
    flex: 1;
    text-align: center;
    padding: 20px;
    border-right: 1px solid #eee;
}

.stat:last-child {
    border-right: none;
}

.stat__number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat__text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Услуги */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card__icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card__text {
    font-size: 15px;
    opacity: 0.8;
}

/* Портфолио */
.portfolio__filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Стили для центрирования и отступа видео YouTube */
.portfolio__grid + iframe {
    display: block;
    margin: 40px auto 20px;
    max-width: 100%;
}

/* Новый слайдер портфолио */
.portfolio-slider-container {
    max-width: 1100px;
    margin: 0 auto 40px;
    position: relative;
}

.portfolio-slider-title {
    text-align: center;
    margin-bottom: 30px;
}

.portfolio-slider-current-title {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    position: relative;
    transition: all 0.5s ease;
}

.portfolio-slider-current-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.portfolio-slider {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.portfolio-slide {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.portfolio-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    pointer-events: all;
}

.portfolio-slide-item {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-slide-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px 15px;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-slide-item:hover .portfolio-slide-overlay {
    transform: translateY(0);
}

.portfolio-slide-overlay h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.portfolio-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.slider-prev,
.slider-next {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-prev:hover,
.slider-next:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.slider-dots {
    display: flex;
    margin: 0 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

@media (max-width: 992px) {
    .portfolio-slider-container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .portfolio-slide-item {
        height: 220px;
    }
    
    .portfolio-slider-current-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .portfolio-slide {
        flex-direction: column;
        gap: 15px;
    }
    
    .portfolio-slide-item {
        height: 200px;
    }
    
    .portfolio-slider-title h3 {
        font-size: 22px;
    }
}

/* Обновление стилей для iframe */
.portfolio-slider-container + iframe {
    display: block;
    margin: 40px auto 20px;
    max-width: 100%;
}

/* Стили для контейнера с видео */
.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px auto 20px;
    max-width: 100%;
}

.video-container iframe {
    flex: 1;
    min-width: 300px;
    max-width: 560px;
    height: 315px;
}

@media (max-width: 992px) {
    .video-container {
        gap: 15px;
    }
    
    .video-container iframe {
        flex-basis: calc(50% - 15px);
        min-width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
        align-items: center;
    }
    
    .video-container iframe {
        width: 100%;
        min-width: 100%;
        height: 250px;
    }
}

.portfolio__filter-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.portfolio__filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.2), transparent);
    transition: 0.5s;
}

.portfolio__filter-btn:hover::before {
    left: 100%;
}

.portfolio__filter-btn.active,
.portfolio__filter-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* Процесс работы */
.process__steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 70px;
    left: 25px;
    width: 2px;
    height: calc(100% - 50px);
    background-color: var(--primary-color);
}

.process-step__number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-right: 30px;
    position: relative;
    z-index: 1;
}

.process-step__content {
    padding-top: 5px;
}

.process-step__title {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Отзывы */
.testimonials__slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.testimonial {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px;
    position: absolute;
    width: calc(100% - 40px);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(50px);
}

.testimonial.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial__content {
    margin-bottom: 20px;
}

.testimonial__text {
    font-style: italic;
    position: relative;
    padding: 0 20px;
}

.testimonial__text::before,
.testimonial__text::after {
    content: '"';
    font-size: 50px;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}

.testimonial__text::before {
    top: -20px;
    left: -10px;
}

.testimonial__text::after {
    bottom: -40px;
    right: -10px;
}

.testimonial__author {
    display: flex;
    align-items: center;
}

.testimonial__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial__name {
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial__position {
    font-size: 14px;
    opacity: 0.7;
}

/* Навигация слайдера отзывов */
.testimonials__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.testimonials__nav-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.testimonials__nav-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.testimonials__dots {
    display: flex;
    margin: 0 20px;
}

.testimonials__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.testimonials__dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Контакты */
.contact__inner {
    display: flex;
    gap: 50px;
    position: relative;
}

.contact__inner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 5s infinite alternate;
    z-index: 0;
}

.contact__inner::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(168, 218, 220, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s infinite alternate-reverse;
    z-index: 0;
}

.contact__info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.contact__form {
    flex: 2;
    position: relative;
    z-index: 1;
}

.contact__item {
    display: flex;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.contact__item:hover {
    transform: translateX(10px);
}

.contact__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 20px;
    color: var(--primary-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact__item:hover .contact__icon {
    transform: rotate(10deg) scale(1.1);
    background-color: var(--primary-color);
    color: #fff;
}

.contact__title {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact__social {
    display: flex;
    margin-top: 40px;
}

.contact__social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.contact__social-link:hover::before {
    left: 100%;
}

.contact__social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px) rotate(10deg);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Стили для выпадающего списка select */
.form-group select {
    background-color: rgba(255, 255, 255, 0.1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path fill="%23ffffff" d="M0 0l6 6 6-6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 30px;
}

.form-group select option {
    background-color: var(--dark-color);
    color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.01);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
    transition: opacity 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.5;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Футер */
.footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradient 5s linear infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer__col {
    flex: 1;
    min-width: 250px;
    transition: transform 0.3s ease;
}

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

.footer__logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer__text {
    opacity: 0.7;
    margin-bottom: 20px;
}

.footer__title {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer__col:hover .footer__title::after {
    width: 50px;
}

.footer__list li {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.footer__list li:hover {
    transform: translateX(5px);
}

.footer__list a {
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease, padding 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer__list a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer__list a:hover::before {
    width: 100%;
}

.footer__list a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__form {
    position: relative;
}

.footer__form input {
    width: 100%;
    padding: 15px;
    padding-right: 50px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer__form input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.01);
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.3);
    outline: none;
}

.footer__form button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer__form button:hover {
    color: #fff;
    transform: scale(1.1);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.footer__copyright {
    opacity: 0.7;
    font-size: 14px;
}

.footer__links a {
    margin-left: 20px;
    opacity: 0.7;
    font-size: 14px;
    transition: opacity 0.3s ease, color 0.3s ease;
    position: relative;
}

.footer__links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer__links a:hover::before {
    width: 100%;
}

.footer__links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Медиа-запросы */
@media (min-width: 1261px) and (max-width: 1600px) {
    /* Стили для больших мониторов */
    .hero__title {
        font-size: 42px;
        max-width: 80%;
        margin: 0 auto 20px;
        white-space: normal;
        overflow: visible;
        border-right: none;
        animation: none;
        opacity: 1;
        letter-spacing: -0.5px;
    }
    
    .hero__subtitle {
        font-size: 20px;
        max-width: 80%;
        margin: 0 auto 30px;
        animation: none;
        opacity: 1;
    }
    
    .hero__content {
        width: 100%;
        max-width: 1000px;
        padding: 0 20px;
    }
    
    /* Улучшение контейнера */
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }
    
    /* Улучшение видео фона */
    .hero__video {
        transform: translateZ(-40px) scale(1.15);
    }
    
    .hero:hover .hero__video {
        transform: translateZ(-30px) scale(1.1);
    }
    
    /* Улучшения для слайдера */
    .portfolio-slider-container {
        max-width: 1200px;
    }
    
    /* Улучшения для видео контейнера */
    .video-container {
        max-width: 1200px;
    }
    
    .video-container iframe {
        max-width: 520px;
    }
}

@media (min-width: 993px) and (max-width: 1260px) {
    /* Стили для промежуточного разрешения */
    .container {
        max-width: 95%;
        padding: 0 20px;
    }
    
    .hero__title {
        font-size: 42px;
        width: 90%;
        white-space: normal;
        overflow: visible;
        animation: none;
        border-right: none;
        opacity: 1;
        margin: 0 auto 20px;
    }
    
    .hero__subtitle {
        font-size: 18px;
        width: 90%;
        margin: 0 auto 30px;
        animation: none;
        opacity: 1;
    }
    
    .hero .btn {
        animation: none;
        opacity: 1;
    }
    
    .hero__video {
        transform: translateZ(-30px) scale(1.1);
    }
    
    .hero:hover .hero__video {
        transform: translateZ(-20px) scale(1.05);
    }
    
    .hero__content {
        width: 100%;
        max-width: 900px;
        padding: 0 30px;
    }
    
    /* Улучшения для основных секций */
    .section {
        padding: 90px 0;
    }
    
    .section__title {
        font-size: 34px;
    }
    
    /* Улучшения для слайдера портфолио */
    .portfolio-slider-container {
        max-width: 95%;
    }
    
    .portfolio-slide {
        gap: 15px;
    }
    
    .portfolio-slide-item {
        height: 220px;
    }
    
    /* Улучшения для видео-контейнера */
    .video-container {
        max-width: 95%;
    }
    
    .video-container iframe {
        max-width: 480px;
        height: 300px;
    }
    
    /* Улучшения для навигации */
    .nav__item {
        margin-left: 20px;
    }
    
    /* Улучшения для сервисных карточек */
    .services__grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    /* Улучшения для отзывов */
    .testimonials__slider {
        max-width: 90%;
    }
    
    /* Улучшения для контактной формы */
    .contact__inner {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }
    
    .hero__title {
        font-size: 36px;
        white-space: normal;
        animation: none;
        border-right: none;
        opacity: 1;
    }
    
    .hero__subtitle {
        animation: none;
        opacity: 1;
    }
    
    .hero .btn {
        animation: none;
        opacity: 1;
    }
    
    /* Исправления для планшетов */
    .hero__video {
        transform: translateZ(0) scale(1);
    }
    
    .hero:hover .hero__video {
        transform: translateZ(0) scale(1);
    }
    
    .hero__video video {
        object-position: center;
    }
    
    .hero__content {
        padding: 0 20px;
        width: 100%;
    }
    
    .about__inner {
        flex-direction: column;
    }
    
    .contact__inner {
        flex-direction: column;
    }
    
    .cursor, .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}

@media (max-width: 768px) {
    .header__burger {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        z-index: 100;
        transition: var(--transition);
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
    }
    
    .nav__item {
        margin: 0 0 20px;
    }
    
    .nav__link {
        color: var(--text-color);
        font-size: 18px;
    }
    
    /* Дополнительные исправления для мобильных устройств */
    .hero {
        height: 100vh;
        align-items: center;
        justify-content: center;
    }
    
    .hero__content {
        width: 100%;
        padding: 0 15px;
        max-width: 100%;
    }
    
    .hero__title {
        font-size: 28px;
        text-align: center;
        display: block;
        white-space: normal;
        overflow: visible;
        width: 100%;
    }
    
    .scroll-down {
        bottom: 20px;
    }
    
    .section__title {
        font-size: 30px;
    }
    
    .portfolio__grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .service-card:hover {
        transform: translateY(-10px);
    }
    
    .portfolio-item:hover {
        transform: scale(1.02) translateY(-5px);
    }
    
    .process-step:hover {
        transform: translateX(5px);
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 24px;
    }
    
    .hero__subtitle {
        font-size: 16px;
    }
    
    .about__stats {
        flex-direction: column;
    }
    
    .stat {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 15px;
    }
    
    .stat:last-child {
        border-bottom: none;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__links a {
        margin: 0 10px;
    }
    
    .section--dark::before,
    .section--dark::after,
    .contact__inner::before,
    .contact__inner::after {
        display: none;
    }
    
    .service-card:hover .service-card__icon i {
        animation: none;
    }
}

/* Анимации и эффекты */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glitch {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(-20px, -10px);
    }
    20% {
        clip-path: inset(92% 0 1% 0);
        transform: translate(20px, 10px);
    }
    40% {
        clip-path: inset(43% 0 1% 0);
        transform: translate(-20px, -10px);
    }
    60% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(20px, 10px);
    }
    80% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(-20px, -10px);
    }
    100% {
        clip-path: inset(58% 0 43% 0);
        transform: translate(20px, 10px);
    }
}

/* Анимированные элементы */
.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.fade-in {
    animation-name: fadeIn;
}

.slide-in-right {
    animation-name: slideInRight;
}

.slide-in-left {
    animation-name: slideInLeft;
}

.zoom-in {
    animation-name: zoomIn;
}

/* Эффект для логотипа */
.logo__text {
    position: relative;
    display: inline-block;
}

.logo__text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: rgba(230, 57, 70, 0.8);
    overflow: hidden;
    animation: glitch 5s infinite linear alternate-reverse;
    display: none;
}

.logo:hover .logo__text::before {
    display: block;
}

/* Эффект для секции услуг */
.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease, background-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

.service-card__icon {
    transition: transform 0.5s ease, color 0.5s ease;
}

.service-card:hover .service-card__icon {
    transform: scale(1.2);
    color: #fff;
}

/* Эффект для портфолио */
.portfolio-item__overlay {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.8) 0%, rgba(29, 53, 87, 0.8) 100%);
}

.portfolio-item__link {
    position: relative;
    overflow: hidden;
}

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

.portfolio-item__link:hover::before {
    left: 100%;
}

/* Эффект для процесса работы */
.process-step {
    transition: transform 0.5s ease;
}

.process-step:hover {
    transform: translateX(10px);
}

.process-step__number {
    transition: transform 0.5s ease, background-color 0.5s ease;
}

.process-step:hover .process-step__number {
    transform: scale(1.1) rotate(10deg);
    background-color: var(--secondary-color);
}

/* Эффект для отзывов */
.testimonial.active {
    animation: fadeIn 0.8s ease forwards;
}

.testimonial__avatar img {
    transition: transform 0.5s ease;
}

.testimonial:hover .testimonial__avatar img {
    transform: scale(1.1);
}

/* Эффект для кнопок */
.btn {
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

/* Эффект для формы контактов */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
    outline: none;
}

/* Добавляем анимированный курсор для всего сайта */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(230, 57, 70, 0.5);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

a:hover ~ .cursor,
button:hover ~ .cursor {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(230, 57, 70, 0.8);
}

a:hover ~ .cursor-follower,
button:hover ~ .cursor-follower {
    transform: translate(-50%, -50%) scale(0.8);
    border-color: rgba(230, 57, 70, 0.6);
}

/* Анимированные иконки */
.service-card__icon i {
    display: inline-block;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__icon i {
    animation: pulse 1s infinite;
}

.service-card:nth-child(1):hover .service-card__icon i {
    animation: float 2s infinite;
}

.service-card:nth-child(2):hover .service-card__icon i {
    animation: rotate 2s linear infinite;
}

.service-card:nth-child(3):hover .service-card__icon i {
    animation: bounce 2s infinite;
}

.service-card:nth-child(4):hover .service-card__icon i {
    animation: pulse 1s infinite;
}

.service-card:nth-child(5):hover .service-card__icon i {
    animation: slideInRight 1s infinite alternate;
}

.service-card:nth-child(6):hover .service-card__icon i {
    animation: zoomIn 1s infinite alternate;
}

/* Улучшенный эффект для портфолио */
.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover {
    transform: scale(1.03) translateY(-10px);
    z-index: 1;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.4) 0%, rgba(29, 53, 87, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.portfolio-item:hover .portfolio-item__image::before {
    opacity: 1;
}

.portfolio-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover .portfolio-item__image img {
    transform: scale(1.1) rotate(2deg);
}

.portfolio-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.8) 0%, rgba(29, 53, 87, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

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

.portfolio-item__content {
    text-align: center;
    color: #fff;
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-item__content {
    transform: translateY(0);
    opacity: 1;
}

/* Эффект для фильтров портфолио */
.portfolio__filter-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.portfolio__filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.2), transparent);
    transition: 0.5s;
}

.portfolio__filter-btn:hover::before {
    left: 100%;
}

.portfolio__filter-btn.active,
.portfolio__filter-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* Исправление для секции light */
.section--light {
    background-color: var(--light-color);
}