/* Глобальные стили */
* {
    box-sizing: border-box;
}

/* Remove default outline from all interactive elements */
button, a, input, textarea, select, [tabindex] {
    outline: none !important;
}

button:focus, a:focus, input:focus, textarea:focus, select:focus, [tabindex]:focus {
    outline: none !important;
    border: none !important;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: none !important;
    border: none !important;
}

/* CSS-переменные для анимаций */
:root {
    --anim-duration-base: 0.3s;
    --anim-duration-slow: 0.5s;
    --anim-duration-fast: 0.2s;
    --anim-delay-base: 0.05s;
    --anim-delay-step: 0.05s;
}

html {
    height: 100%;
    background-color: black;
}

body {
    margin: 0;
    background-color: #ffffff;
    color: white;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Настройка максимальной ширины для всех контейнеров блоков ниже первого блока */
.services__container,

.principle__container,
.cases__container,
.advantages__container,
.products__container,
.workflow__container,
.testimonials__container,
.social-media__container,

.faq__container,
.contact-form__container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}



p {
    font-size: 22px;
    line-height: 1.4;
    color: #333333;
    margin: 0;
    text-align: left;
    width: 100%;
}

/* Основной контейнер контента */
.content-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 0;
    background: #ffffff;
    overflow: hidden;
}

/* Мобильные устройства - единый медиа-запрос */
@media (max-width: 800px) {
    .content-wrapper {
        margin-top: 500px;
        background-color: #ffffff;
        min-height: 100vh;
        padding-top: 10px;
    }
}



/* Общие стили для кнопок */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 36px;
    height: 52px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 26px;
    font-size: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    white-space: nowrap;
    min-width: 160px;
    margin: 0;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FF6B00;
    opacity: 0;
    border-radius: 26px;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: scale(1.05);
    background: #FF6B00;
    box-shadow: 0 6px 12px rgba(255, 107, 0, 0.2);
    outline: none !important;
    border: none !important;
}

.cta-button:active {
    transform: scale(0.98);
    box-shadow: 0 3px 6px rgba(255, 107, 0, 0.15);
}

.cta-button:focus {
    outline: none !important;
    border: none !important;
    transform: scale(1.05);
    background: #FF6B00;
    box-shadow: 0 6px 12px rgba(255, 107, 0, 0.2) !important;
}

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

@media (max-width: 768px) {
    .content-wrapper {
        margin-top: 0;
        border-radius: 20px 20px 0 0;
        transform: translateY(-80px);
    }

    .services {
        border-radius: 20px 20px 0 0;
        margin-top: 0;
        padding-top: 20px;
        z-index: 4;
    }

    /* Настройки для секции услуг */
    .services-extended {
        margin-top: 0 !important;
        padding-top: 20px !important;
        background-color: #FFFFFF !important;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
       
        border-radius: 15px 15px 0 0;
        transform: translateY(-60px);
    }    
    .services {
        margin-top: 0;
        padding: 20px 15px 40px;
        border-radius: 15px 15px 0 0;
        z-index: 4;
    }
}

@media (max-width: 360px) {
    .text-container {
        padding: 0 4px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Стили для секции Services */
.services {
    position: relative;
    padding: 30px 40px 60px;
    background: transparent;
    margin-top: -30px;
    z-index: 4;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
}

.services__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.services__title {
    font-size: 42px;
    color: #000;
    text-align: left;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.services__subtitle {
    font-size: 18px;
    color: #666;
    text-align: left;
    max-width: 800px;
    margin: 0 0 50px;
    line-height: 1.5;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    padding: 30px 0;
    min-height: 220px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
}

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

.service-card__icon {
    position: absolute;
    top: 50%;
    right: 5%;
    width: 180px;
    height: 180px;
    transform: translateY(-50%);
    opacity: 0.25;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.service-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) contrast(1) brightness(0.9);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card__icon {
    opacity: 0.95;
    transform: translateY(-50%) translateX(10px) scale(1.05);
    right: 5%;
}

.service-card:hover .service-card__icon img {
    filter: grayscale(0%) contrast(1) brightness(1.0);
}

.service-card__content {
    position: relative;
    z-index: 1;
    max-width: 60%;
}

.service-card__title {
    font-size: 28px;
    color: #000;
    margin-bottom: 16px;
    line-height: 1.2;
}

.case-card:hover .service-card__title {
    color: #FF6B00;
}

.service-card__description {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

@media (max-width: 1200px) {
    .services {
        padding: 60px 30px;
    }

    .service-card {
        padding: 25px 0;
        min-height: 200px;
    }

    .service-card__icon {
        width: 150px;
        height: 150px;
        right: 5%;
    }

    .service-card__title {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .service-card:hover .service-card__icon {
        transform: translateY(-50%) translateX(8px) scale(1.04);
    }
}

@media (max-width: 768px) {
    .services__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card {
        padding: 20px 0;
        min-height: 180px;
        transform: translateY(0); /* Сброс начального состояния */
        will-change: transform; /* Оптимизация производительности */
    }

    .service-card:hover {
        transform: translateY(-3px); /* Уменьшаем амплитуду для мобильных */
    }

    .service-card__icon {
        width: 130px;
        height: 130px;
        opacity: 0.25;
        right: 5%;
    }

    .service-card:hover .service-card__icon {
        opacity: 0.95;
        transform: translateY(-50%) translateX(6px) scale(1.03);
    }

    .service-card__content {
        max-width: 70%;
        transition: transform 0.3s ease;
    }

    .service-card__title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .services__title {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .services__subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .service-card__icon img {
        filter: grayscale(100%) contrast(1) brightness(0.85);
    }
    
    .service-card:hover .service-card__icon img {
        filter: grayscale(0%) contrast(1) brightness(1.0);
    }
}

@media (max-width: 480px) {
    .services__grid {
        gap: 20px;
    }

    .service-card {
        padding: 16px 0;
        min-height: 160px;
    }

    .service-card__icon {
        width: 110px;
        height: 110px;
        right: 5%;
    }

    .service-card__content {
        max-width: 75%;
    }

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

    .services__title {
        font-size: 28px;
    }

    .services__subtitle {
        margin-bottom: 30px;
    }

    .service-card:hover {
        transform: translateY(-2px); /* Еще меньше амплитуда для маленьких экранов */
    }

    .service-card__icon {
        transition: all 0.25s ease; /* Еще быстрее для маленьких экранов */
    }

    .service-card:hover .service-card__icon {
        transform: translateY(-50%) translateX(4px) scale(1.02);
    }
}

/* Стили для секции Principle */
.principle {
    padding: 50px 40px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .principle {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .principle {
        padding: 30px 15px;
    }
}

.principle::before {
    display: none; /* Убираем градиентный элемент */
}

.principle::after {
    display: none; /* Убираем градиентный элемент */
}

.principle__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.principle__title {
    font-size: 32px;
    color: #000;
    text-align: left;
    margin: 0;
    line-height: 1.4;
    max-width: 520px !important;
    width: 100%;
}

.principle__title .line1 {
    display: block;
    margin-bottom: 5px;
}

.principle__title .line2 {
    display: block;
}

.principle__title span {
    display: inline;
    color: #333333;
}

.principle__title span.accent {
    display: inline-block;
    position: relative;
    color: #FF6B00;
    margin: 0 8px;
}

.principle__title span.accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF6B00, #FF8534);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.principle__title:hover span.accent::after {
    transform: scaleX(1);
}

.principle__button {
    margin: 0; /* Убираем отступ сверху */
    padding: 0 36px;
    height: 52px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 26px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Предотвращаем сжатие кнопки */
}

.principle__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FF6B00;
    opacity: 0;
    border-radius: 26px;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.principle__button:hover {
    transform: scale(1.05);
    background: #FF6B00;
    box-shadow: 0 6px 12px rgba(255, 107, 0, 0.2);
}

.principle__button:hover::before {
    opacity: 0;
}

.principle__button span {
    position: relative;
    z-index: 1;
    color: #ffffff; /* Всегда белый текст */
}

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

@media (max-width: 768px) {
    .principle {
        padding: 40px 20px;
    }
    
    .principle__container {
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .principle__title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 30px;
    }
    
    .principle__title .line1,
    .principle__title .line2 {
        display: inline;
    }
    
    .principle__button {
        margin-top: 30px;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .principle {
        padding: 30px 20px;
    }

    .principle__container {
        padding: 0;
    }

    .principle__title {
        font-size: 22px;
        line-height: 1.4;
    }

    .principle__title .line1,
    .principle__title .line2 {
        display: inline;
    }

    .principle__button {
        margin-top: 25px;
        height: 48px;
        font-size: 14px;
    }
}

/* Стили для секции Cases */
.cases {
    padding: 60px 0 40px;
    background: #ffffff;
}

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

.cases__title {
    display: none;
}

.cases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    grid-auto-flow: dense;
}

/* Перемещаем Lusio на одну строку выше */
.case-card:nth-child(4) {
    margin-top: -60px;
}

/* Поднимаем Gulliver еще выше */
.case-card:nth-child(5) {
    margin-top: -220px;
}

/* Компенсируем отступ для карточки после Gulliver */
.case-card:nth-child(6) {
    margin-top: 60px;
}

/* Поднимаем Мосигру для выравнивания по нижнему краю */
.case-card:nth-child(8) {
    margin-top: -120px;
}

/* Компенсируем отступ для Ники */
.case-card:nth-child(9) {
    margin-top: -20px;
}

.case-card {
    position: relative;
    border-radius: 0; /* Убрали скругление */
    overflow: visible;
    width: 100%;
}

.case-card__image-container {
    position: relative;
    width: 100%;
    border-radius: 0; /* Убрали скругление */
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 20px;
}

/* Lassie - горизонтальное изображение */
.case-card:nth-child(1) .case-card__image-container {
    padding-bottom: 114%; /* (338.58 / 297) * 100% */
}

/* Street Beat - горизонтальное изображение */
.case-card:nth-child(2) .case-card__image-container {
    padding-bottom: 66.56%; /* (205 / 308) * 100% */
}

/* Idol - вертикальное изображение */
.case-card:nth-child(3) .case-card__image-container {
    padding-bottom: 132.69%; /* (410 / 309) * 100% */
}

/* Dimonds are forever - вертикальное изображение */
.case-card:nth-child(4) .case-card__image-container {
    padding-bottom: 133%; /* Оптимальные пропорции для вертикального изображения приложения */
}

/* Gulliver - горизонтальное изображение */
.case-card:nth-child(5) .case-card__image-container {
    padding-bottom: 122%; /* (205 / 309) * 100% */
}

/* Ast Market - компактное горизонтальное изображение */
.case-card:nth-child(6) .case-card__image-container {
    padding-bottom: 38%; /* Максимально компактные пропорции для изображения */
}

/* Дополнительные стили для оптимального отображения Ast Market */
.case-card:nth-child(6) .case-card__image {
    object-fit: cover;
    object-position: center bottom; /* Позиционируем изображение по нижнему краю */
    transform: scale(1.1); /* Немного увеличиваем для обрезки пустых областей */
}

/* Стили для карточки Ast Market обновлены для корректного отображения */

/* Пан чемодан - горизонтальное изображение */
.case-card:nth-child(7) .case-card__image-container {
    padding-bottom: 77.35%; /* (239 / 309) * 100% */
}

/* Мосигра - вертикальное изображение */
.case-card:nth-child(8) .case-card__image-container {
    padding-bottom: 132.69%; /* (410 / 309) * 100% */
}

/* Ника - горизонтальное изображение */
.case-card:nth-child(9) .case-card__image-container {
    padding-bottom: 77.35%; /* (239 / 309) * 100% */
}

.case-card:hover {
    transform: none;
}

.case-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card__content {
    padding: 0;
    color: #000;
}

.case-card__title {
    font-size: 24px;
    margin: 0 0 15px;
    color: #000;
}

.case-card__buttons {
    display: flex;
    gap: 10px;
}

.case-card__button {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease; /* Ускоряем анимацию кнопок */
}

.case-card__button--ios {
    background: #000;
    color: #fff;
}

.case-card__button--android {
    background: #f5f5f5;
    color: #000;
    border: 1px solid #e0e0e0;
}

.case-card__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.case-card__button--ios:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.case-card__button--android:hover {
    background: #eaeaea;
    color: #000;
    border: 1px solid #ccc;
}

@media (max-width: 768px) {
    .cases {
        padding: 40px 0 30px;
    }

    .cases__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    /* Сбрасываем все отрицательные отступы на планшетах */
    .case-card:nth-child(n) {
        margin-top: 0;
    }

    .case-card__title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .case-card__buttons {
        flex-wrap: wrap;
    }

    .case-card__button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cases {
        padding: 30px 0 25px;
    }

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

    /* Скрываем последние 3 кейса на мобильной версии */
    .case-card:nth-child(n+7) {
        display: none;
    }

    /* Сохраняем оригинальные пропорции для каждой карточки */
    /* Lassie - горизонтальное */
    .case-card:nth-child(1) .case-card__image-container {
        padding-bottom: 114%;
    }

    /* Street Beat - горизонтальное */
    .case-card:nth-child(2) .case-card__image-container {
        padding-bottom: 66.56%;
    }

    /* Idol - вертикальное */
    .case-card:nth-child(3) .case-card__image-container {
        padding-bottom: 132.69%;
    }

    /* Dimonds are forever - вертикальное */
    .case-card:nth-child(4) .case-card__image-container {
        padding-bottom: 133%;
    }

    /* Gulliver - горизонтальное */
    .case-card:nth-child(5) .case-card__image-container {
        padding-bottom: 122%;
    }

    /* Ast Market - компактное */
    .case-card:nth-child(6) .case-card__image-container {
        padding-bottom: 38%;
    }
    
    /* Дополнительные стили для Ast Market на мобильных */
    .case-card:nth-child(6) .case-card__image {
        object-fit: cover;
        object-position: center bottom;
        transform: scale(1.1);
    }

    .case-card__content {
        padding: 15px 0;
    }

    .case-card__title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .case-card__buttons {
        gap: 8px;
    }

    .case-card__button {
        flex: 1;
        text-align: center;
        min-width: 80px;
    }
}



/* Стили для блока отзывов */
.testimonials {
    padding: 100px 40px;
    background: #ffffff;
    overflow: visible;
    position: relative;
}

.testimonials__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
    padding-right: 30%;
}

.testimonials__title {
    font-size: 42px;
    color: #000;
    margin-bottom: 60px;
    text-transform: uppercase;
    text-align: left;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: all 0.3s ease;
    height: auto;
    min-height: 220px;
    box-sizing: border-box;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover {
    transform: none;
    border-color: #FF6B00;
}

.testimonial-card__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 80px;
    min-height: 60px;
    justify-content: center;
}

.testimonial-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    left: 40px;
    top: 40px;
}

.testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card__info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-card__name {
    font-size: 18px;
    color: #000;
    margin: 0;
}

.testimonial-card__position {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

.testimonial-card__text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    position: relative;
    padding-left: 25px;
}

.testimonial-card__text:before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 40px;
    line-height: 1;
    color: #FF6B00;
    opacity: 0.5;
}

.testimonials__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 30px;
}

.testimonials__nav-button {
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.testimonials__nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.testimonials__nav-button:hover::before {
    transform: scale(1);
}

.testimonials__nav-button:hover {
    background: none;
    border-color: transparent;
    transform: translateY(-2px);
}

.testimonials__nav-button:hover svg {
    fill: #FF6B00;
}

.testimonials__nav-button:disabled {
    cursor: default;
    opacity: 0.5;
    transform: none;
}

.testimonials__nav-button svg {
    width: 24px;
    height: 24px;
    fill: #333;
    transition: fill 0.3s ease, stroke 0.3s ease;
    position: relative;
    z-index: 1;
    color: #333;
}

.testimonials__nav-button:hover svg {
    fill: #FF6B00;
    color: #FF6B00;
}

.testimonials__dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.testimonials__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials__dot:hover {
    background-color: rgba(255, 107, 0, 0.5);
}

.testimonials__dot.active {
    width: 20px;
    border-radius: 10px;
    background: linear-gradient(90deg, #FF6B00, #FF8534);
}

@media (max-width: 768px) {
    .testimonials__nav {
        margin-top: 30px;
        gap: 20px;
    }
    
    .testimonials__nav-button {
        width: 40px;
        height: 40px;
    }
    
    .testimonials__nav-button svg {
        width: 20px;
        height: 20px;
    }
    
    .testimonials__dots {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .testimonials__nav {
        margin-top: 25px;
        gap: 15px;
    }
    
    .testimonials__nav-button {
        width: 36px;
        height: 36px;
    }
    
    .testimonials__nav-button svg {
        width: 18px;
        height: 18px;
    }
    
    .testimonials__dots {
        gap: 8px;
    }
    
    .testimonials__dot {
        width: 6px;
        height: 6px;
    }
    
    .testimonials__dot.active {
        width: 16px;
    }
}

@media (max-width: 1200px) {
    .testimonials {
        padding: 60px 30px 60px;
    }

    .testimonial-card {
        padding: 30px;
        min-height: 200px;
    }

    .testimonial-card__avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }

    .testimonial-card__name {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 40px 20px 40px;
    }

    .testimonial-card {
        padding: 25px;
        min-width: auto;
        width: 100%;
    }

    .testimonial-card__header {
        padding-left: 70px;
        min-height: 60px;
        margin-bottom: 15px;
    }

    .testimonial-card__avatar {
        width: 55px;
        height: 55px;
        left: 25px;
        top: 25px;
    }

    .testimonial-card__name {
        font-size: 16px;
        line-height: 1.2;
    }

    .testimonial-card__position {
        font-size: 13px;
        line-height: 1.2;
    }

    .testimonial-card__text {
        font-size: 14px;
        line-height: 1.5;
        padding-left: 20px;
    }

    .testimonial-card__text:before {
        font-size: 32px;
    }

    .testimonials__nav {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .testimonials {
        padding: 40px 15px 30px;
    }
    
    .testimonial-card {
        padding: 20px;
    }

    .testimonial-card__header {
        padding-left: 60px;
        min-height: 45px;
    }

    .testimonial-card__avatar {
        width: 45px;
        height: 45px;
        left: 20px;
        top: 20px;
    }

    .testimonial-card__name {
        font-size: 15px;
    }

    .testimonial-card__position {
        font-size: 12px;
    }

    .testimonial-card__text {
        font-size: 13px;
        padding-left: 18px;
    }

    .testimonial-card__text:before {
        font-size: 28px;
    }

    .testimonials__nav-button {
        width: 32px;
        height: 32px;
    }

    .testimonials__nav-button svg {
        width: 20px;
        height: 20px;
    }
}



/* Стили для секции Advantages */
.advantages {
    padding: 40px 40px 60px;
    background: #ffffff;
}

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

.advantages__title {
    font-size: 42px;
    color: #000;
    margin-bottom: 60px;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

.advantage-card {
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
}

.advantage-card--active {
    background: #FF6B00;
    border-color: #FF6B00;
}

.advantage-card--dark {
    background: #000000;
    border-color: #000000;
}

.advantage-card__number {
    font-size: 32px;
    margin-bottom: 20px;
    color: #000;
}

.advantage-card--active .advantage-card__number,
.advantage-card--active .advantage-card__title,
.advantage-card--active .advantage-card__description {
    color: #ffffff;
}

.advantage-card--dark .advantage-card__number,
.advantage-card--dark .advantage-card__title,
.advantage-card--dark .advantage-card__description {
    color: #ffffff;
}

.advantage-card__title {
    font-size: 24px;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.2;
}

.advantage-card__description {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.advantage-card--active .advantage-card__description {
    color: rgba(255, 255, 255, 0.8);
}

.advantage-card--dark .advantage-card__description {
    color: rgba(255, 255, 255, 0.8);
}

.advantage-card__icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
}

.advantage-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.advantage-card__icon.snowflake {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    animation: float 6s ease-in-out infinite;
    transform-origin: center center;
    z-index: 2;
}

.advantage-card__icon.snowflake img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

@media (prefers-reduced-motion: reduce) {
    .advantage-card__icon.snowflake {
        animation: none;
    }
}

@media (max-width: 1200px) {
    .advantage-card__icon.snowflake {
        width: 180px;
        height: 180px;
        top: -60px;
        right: -60px;
    }
}

@media (max-width: 768px) {
    .advantages {
        padding: 30px 20px;
    }

    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .advantages__title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .advantage-card {
        padding: 25px;
    }

    .advantage-card__number {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .advantage-card__title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .advantage-card__description {
        font-size: 15px;
    }

    .advantage-card__icon.snowflake {
        width: 140px;
        height: 140px;
        top: -50px;
        right: -50px;
    }
}

@media (max-width: 480px) {
    .advantages {
        padding: 25px 15px;
    }

    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .advantages__title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .advantage-card {
        padding: 20px;
    }

    .advantage-card__number {
        font-size: 24px;
    }

    .advantage-card__title {
        font-size: 18px;
    }

    .advantage-card__description {
        font-size: 14px;
    }

    .advantage-card__icon.snowflake {
        width: 120px;
        height: 120px;
        top: -40px;
        right: -40px;
    }
}

/* Стили для секции Workflow */
.workflow {
    padding: 80px 40px;
    background: #ffffff;
}

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

.workflow__title {
    font-size: 42px;
    color: #000;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.workflow__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

.workflow-card {
    position: relative;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workflow-card:first-child {
    background: #000;
    border-color: #000;
}

.workflow-card:nth-child(5) {
    background: #FF6B00;
    border-color: #FF6B00;
}

.workflow-card__number {
    font-size: 32px;
    color: #000;
    margin-bottom: 20px;
    line-height: 1;
}

.workflow-card__title {
    font-size: 24px;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.2;
}

.workflow-card__description {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.workflow-card:first-child .workflow-card__number,
.workflow-card:first-child .workflow-card__title,
.workflow-card:first-child .workflow-card__description {
    color: #ffffff;
}

.workflow-card:nth-child(5) .workflow-card__number,
.workflow-card:nth-child(5) .workflow-card__title,
.workflow-card:nth-child(5) .workflow-card__description {
    color: #ffffff;
}

.workflow-card:first-child .workflow-card__description,
.workflow-card:nth-child(5) .workflow-card__description {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .workflow {
        padding: 30px 20px;
    }

    .workflow__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .workflow__title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .workflow-card {
        padding: 25px;
    }

    .workflow-card__number {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .workflow-card__title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .workflow-card__description {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .workflow {
        padding: 25px 15px;
    }

    .workflow__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .workflow__title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .workflow-card {
        padding: 20px;
    }

    .workflow-card__number {
        font-size: 24px;
    }

    .workflow-card__title {
        font-size: 18px;
    }

    .workflow-card__description {
        font-size: 14px;
    }

    /* Стили для блока principle внутри workflow */
    .workflow .principle {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .workflow .principle__container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0;
    }

    .workflow .principle__title {
        font-size: 24px;
        line-height: 1.3;
        text-align: left;
        margin: 0;
        max-width: 100%;
    }

    .workflow .principle__title span {
        display: inline;
        margin-right: 4px;
    }

    .workflow .principle__button {
        width: 80%;
        max-width: 280px;
        height: 56px;
        font-size: 16px;
        border-radius: 12px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(90deg, #FF5C00 0%, #FF8A00 100%);
    }
}

@media (max-width: 768px) {
    .workflow .principle {
        padding: 40px 20px;
    }
    
    .workflow .principle__container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 30px;
    }
    
    .workflow .principle__title {
        font-size: 24px;
        text-align: left;
        padding: 0;
        margin: 0;
    }
    
    .workflow .principle__button {
        align-self: flex-start;
        width: auto;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .workflow .principle {
        padding: 30px 15px;
    }
    
    .workflow .principle__title {
        font-size: 22px;
        line-height: 1.3;
        text-align: left;
    }
    
    .workflow .principle__button {
        height: 48px;
        font-size: 14px;
        padding: 0 24px;
        align-self: flex-start;
    }
}

/* Стили для секции Products */
.products {
    padding: 100px 0;
    background-color: #000000;
    position: relative;
}

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

.products__header {
    text-align: left;
    margin-bottom: 30px;
    max-width: 800px;
}

.products__title {
    font-size: 36px;
    color: #FFFFFF;
    margin-bottom: 20px;
    position: relative;
    text-transform: uppercase;
}

.products__subtitle {
    font-size: 20px;
    color: #FFFFFF;
    line-height: 1.5;
    max-width: 600px;
    margin-bottom: 40px;
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #1A1A1A;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.product-card__content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.product-card__title {
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.product-card__description {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-card__icon {
    margin-top: auto;
}

.product-card__icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}





/* Медиа-запросы для адаптивности */
@media (max-width: 1024px) {
    .products {
        padding: 80px 0;
    }
    
    .products__grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .products__title {
        font-size: 32px;
    }
    
    .products__subtitle {
        font-size: 18px;
        margin-bottom: 35px;
    }
}

@media (max-width: 768px) {
    .products {
        padding: 60px 0;
        position: relative;
    }
    
    .products__header {
        margin-bottom: 40px;
    }
    
    .products__title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .products__subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .products__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card__content {
        padding: 25px;
    }
    
    .product-card__title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .products {
        padding: 40px 0;
    }
    
    .products__grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding-bottom: 20px;
        margin: 0 -20px;
        padding: 0 20px 20px;
    }
    
    .product-card {
        flex: 0 0 90%;
        scroll-snap-align: start;
        min-width: 260px;
    }
    
    .products__title {
        font-size: 24px;
    }
    
    .products__subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .product-card__content {
        padding: 20px;
    }
    
    .product-card__title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .product-card__description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .products__nav {
        margin-top: 20px;
    }
}

/* Стили для секции "Мы в СМИ" */
.social-media {
    padding: 60px 40px 30px;
    background: #000000;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.social-media__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.social-media__title {
    font-size: 44px;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: left;
}

.social-media__content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
}

.social-media__text-left,
.social-media__text-right {
    max-width: 48%;
}

.social-media__text-left p,
.social-media__text-right p {
    font-size: 22px;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
}

.social-media__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 40px;
}

.social-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 30px 30px;
    width: 393px;
    height: 242px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border: none;
    outline: none;
}

.social-card:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .social-card:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .social-card:hover {
        transform: none;
        box-shadow: none;
    }
}

.social-card__title {
    font-size: 44px;
    color: #000000;
    margin: 0;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.social-card__icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.social-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease;
    margin-top: 3px;
    margin-left: 2px;
    border-radius: 0;
}

.social-card:hover .social-card__icon img {
    opacity: 1;
}

@media (max-width: 1200px) {
    .social-media {
        padding: 50px 30px;
    }
    
    .social-media__cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .social-card {
        width: 100%;
        height: 220px;
    }

    .social-card__title {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .social-media__cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .social-card {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .social-media {
        padding: 40px 20px;
    }
    
    .social-media__cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        width: 100%;
        height: 180px;
        padding: 20px 25px 25px;
    }

    .social-card__title {
        font-size: 32px;
    }

    .social-media__text-left,
    .social-media__text-right {
        max-width: 100%;
    }

    .social-media__text-left p,
    .social-media__text-right p {
        font-size: 18px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .social-media {
        padding: 30px 15px;
    }
    
    .social-media__cards {
        gap: 10px;
        margin-top: 30px;
    }
    
    .social-card {
        height: 160px;
        padding: 15px 20px 20px;
    }

    .social-card__title {
        font-size: 28px;
    }

    .social-media__text-left p,
    .social-media__text-right p {
        font-size: 16px;
        line-height: 1.2;
    }

    .social-media__content {
        margin-bottom: 20px;
    }
}

@media (max-width: 360px) {
    .social-card {
        height: 140px;
        padding: 12px 15px 15px;
    }

    .social-card__title {
        font-size: 24px;
    }

    .social-media__text-left p,
    .social-media__text-right p {
        font-size: 14px;
    }
}

.social-card__content {
    position: relative;
    z-index: 1;
    max-width: 60%;
}

.social-card__description {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

@media (max-width: 1200px) {
    .social-media {
        padding: 50px 30px;
    }
    
    .social-media__title {
        font-size: 38px;
        margin-bottom: 30px;
    }
    
    .social-media__text-left p,
    .social-media__text-right p {
        font-size: 20px;
    }
    
    .social-card__title {
        font-size: 24px;
    }
    
    .social-card {
        width: 100%;
        height: 200px;
    }
    
    .social-card::after {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .social-media {
        padding: 40px 20px;
    }
    
    .social-media__title {
        font-size: 32px;
        margin-bottom: 25px;
    }
    
    .social-media__content {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .social-media__text-left,
    .social-media__text-right {
        max-width: 100%;
    }
    
    .social-media__text-left p,
    .social-media__text-right p {
        font-size: 18px;
    }
    
    .social-media__cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-card {
        width: 100%;
        height: 180px;
    }
    
    .social-card__title {
        font-size: 32px;
    }
    
    .social-card::after {
        width: 80px;
        height: 80px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .social-media {
        padding: 30px 15px;
    }
    
    .social-media__title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .social-media__content {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .social-media__text-left p,
    .social-media__text-right p {
        font-size: 16px;
    }
    
    .social-media__cards {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-card {
        width: 100%;
        padding: 20px;
        min-height: 150px;
        height: auto; /* Позволяем карточке адаптироваться к содержимому */
    }
    
    .social-card__title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .social-card {
        height: 160px;
        padding: 15px 20px 20px;
    }
    
    .social-card__title {
        font-size: 28px;
    }
    
    .social-card::after {
        width: 60px;
        height: 60px;
        bottom: 10px;
        right: 10px;
    }
}

/* Стили для секции "Новости компании" */
.company-news {
    padding: 80px 40px;
    background: #000000;
    color: #ffffff;
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
}

.company-news__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.company-news__title {
    font-size: 44px;
    color: #ffffff;
    margin-bottom: 60px;
    text-transform: uppercase;
    text-align: left;
}

.company-news__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.news-card__content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.news-card__date {
    font-size: 14px;
    color: #666666;
}

.news-card__category {
    font-size: 12px;
    color: #FF6B00;
    background-color: #FFF0E8;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.news-card__title {
    font-size: 20px;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-card__description {
    font-size: 16px;
    line-height: 1.5;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card__link {
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    margin-top: auto;
    width: max-content;
}

.news-card__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000000;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.news-card__link:hover {
    color: #FF6B00;
}

.news-card__link:hover::after {
    background-color: #FF6B00;
    width: 0;
}

.company-news__more {
    display: flex;
    justify-content: center;
}

.company-news__more-button {
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid #ffffff;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.company-news__more-button:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

@media (max-width: 1200px) {
    .company-news {
        padding: 60px 30px;
    }
    
    .company-news__title {
        font-size: 38px;
        margin-bottom: 40px;
    }
    
    .company-news__grid {
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .news-card {
        min-height: 250px;
    }
    
    .news-card__content {
        padding: 25px;
    }
    
    .news-card__title {
        font-size: 18px;
    }
    
    .news-card__description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .company-news {
        padding: 40px 20px;
    }
    
    .company-news__title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .company-news__grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .news-card {
        min-height: 220px;
    }
    
    .news-card__content {
        padding: 20px;
    }
    
    .news-card__title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .news-card__description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .news-card__link {
        font-size: 14px;
    }
    
    .company-news__more-button {
        font-size: 16px;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .company-news {
        padding: 30px 15px;
    }
    
    .company-news__title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .company-news__grid {
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .news-card {
        min-height: 200px;
    }
    
    .news-card__content {
        padding: 15px;
    }
    
    .news-card__meta {
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .news-card__date {
        font-size: 12px;
    }
    
    .news-card__category {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .news-card__title {
        font-size: 15px;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .news-card__description {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .news-card__link {
        font-size: 13px;
    }
    
    .company-news__more-button {
        font-size: 14px;
        padding: 10px 25px;
        width: 100%;
        text-align: center;
    }
}

/* Стили для секции FAQ */
.faq {
    padding: 0px 40px 0;
    background: #ffffff;
    position: relative;
    margin-top: 0;
    overflow: hidden;
    padding-bottom: 30px;
}

.faq__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 80px; /* Добавляем внутренний отступ снизу */
}

.faq__container:before,
.faq__container:after {
    display: none;
}

.faq__title {
    font-size: 46px;
    color: #000;
    margin-bottom: 30px;
    margin-top: 100px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}

.faq__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.faq__item {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: none;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
}

.faq__item:before {
    content: none;
}

.faq__item:hover:before {
    opacity: 0;
}

.faq__item:hover {
    box-shadow: none;
    transform: none;
}

.faq__item.active {
    background: transparent;
    border-left: none;
    box-shadow: none;
    border-bottom-color: #FF6B00;
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.faq__question span {
    font-size: 20px;
    color: #000;
    padding-right: 40px;
    transition: color 0.3s ease;
    padding-left: 0;
    letter-spacing: 0.01em;
}

.faq__icon {
    position: absolute;
    right: 0;
    width: 24px;
    height: 24px;
    background: transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    background: #000;
    transition: all 0.3s ease;
}

.faq__icon::before {
    width: 14px;
    height: 1.5px;
}

.faq__icon::after {
    width: 1.5px;
    height: 14px;
    transform: rotate(0deg);
}

.faq__item.active .faq__icon {
    background: transparent;
    transform: rotate(0);
}

.faq__item.active .faq__question span {
    color: #FF6B00;
}

.faq__item.active .faq__icon::before,
.faq__item.active .faq__icon::after {
    background-color: #FF6B00;
}

.faq__item.active .faq__icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    padding: 0;
    opacity: 0;
    visibility: hidden;
}

.faq__item.active .faq__answer {
    max-height: 1000px;
    padding: 0 0 24px;
    opacity: 1;
    visibility: visible;
}

.faq__answer p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    padding-right: 20px;
    position: relative;
    padding-left: 0;
}

.faq__item.active .faq__answer p::before {
    content: none;
}

@media (max-width: 1200px) {
    .faq {
        padding: 80px 30px 60px;
    }
    
    .faq__title {
        font-size: 38px;
        margin-bottom: 50px;
    }
    
    .faq__question span {
        font-size: 17px;
    }
    
    .faq__answer p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .faq {
        padding: 60px 20px 40px;
    }
    
    .faq__title {
        font-size: 32px;
        margin-top: 60px;
        margin-bottom: 40px;
    }
    
    .faq__list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq__question {
        padding: 16px 0;
    }
    
    .faq__question span {
        font-size: 16px;
        padding-right: 30px;
    }
    
    .faq__icon {
        right: 0;
        width: 20px;
        height: 20px;
    }
    
    .faq__answer p {
        font-size: 14px;
        padding-right: 0;
    }
    
    .faq__item.active .faq__answer {
        padding: 0 0 20px;
    }
}

@media (max-width: 480px) {
    .faq {
        padding: 40px 15px 30px;
    }
    
    .faq__title {
        font-size: 28px;
        margin-top: 40px;
        margin-bottom: 30px;
    }
    
    .faq__question {
        padding: 14px 0;
    }
    
    .faq__question span {
        font-size: 15px;
        padding-right: 25px;
        line-height: 1.4;
    }
    
    .faq__icon {
        width: 18px;
        height: 18px;
    }
    
    .faq__icon::before {
        width: 10px;
    }
    
    .faq__icon::after {
        height: 10px;
    }
    
    .faq__answer p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .faq__item.active .faq__answer {
        padding: 0 0 16px;
    }
}

/* Стили для формы обратной связи */
.contact-form {
    padding: 80px 60px;
    background-color: #000000;
    color: #ffffff;
    position: relative;
    overflow: visible;
    z-index: 10;
    margin-top: 0 !important;
    margin-bottom: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.contact-form__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.contact-form__content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 40px;
}

.contact-form__left {
    flex: 1;
    min-width: 0;
    width: 610px;
    background-color: #f9f9f9;
    border-radius: 30px;
    padding: 40px;
    color: #000000;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 536px;
}

.contact-form__right {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.contact-form__title {
    font-size: 44px;
    line-height: 1.2;
    margin: 0 0 40px;
    color: #000000;
}

.contact-form__form {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-input {
    width: 100%;
    height: 50px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    background-color: transparent;
    font-size: 18px;
    padding: 10px 0;
    color: #000000;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-bottom-color: #000000;
}

.form-input::placeholder {
    color: #666666;
    font-size: 18px;
}

.checkbox-group {
    margin-top: auto;
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-text {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.6);
}

.submit-button {
    width: 100%;
    max-width: 320px;
    height: 60px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #333333;
    outline: none !important;
    border: none !important;
}

.submit-button:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

@media (max-width: 1200px) {
    .contact-form {
        padding: 60px 40px;
    }

    .contact-form__title {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .contact-form__left {
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .contact-form {
        padding: 50px 30px;
    }

    .contact-form__content {
        gap: 30px;
    }

    .contact-form__left {
        width: 100%;
        min-height: 450px;
    }

    .contact-form__title {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .form-input {
        font-size: 16px;
    }

    .submit-button {
        height: 54px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 40px 20px;
    }

    .contact-form__content {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form__left {
        padding: 25px;
        width: 100%;
        min-height: 400px;
    }

    .contact-form__right {
        display: none;
    }

    .contact-form__title {
        font-size: 28px;
        margin-bottom: 20px;
        text-align: center;
    }

    .submit-button {
        max-width: 100%;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 30px 15px;
    }

    .contact-form__container {
        padding: 0 15px;
    }

    .contact-form__left {
        padding: 20px;
        border-radius: 20px;
        width: 100%;
        min-height: 350px;
    }

    .contact-form__title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-input {
        font-size: 14px;
        height: 40px;
    }

    .checkbox-text {
        font-size: 12px;
    }
}

/* Стили для футера */
.footer {
    background-color: #f9f9f9;
    color: #fff;
    padding: 60px 0 40px;
    position: relative;
    z-index: 10;
    width: 100%;
}

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



.footer__middle {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer__info p {
    margin: 0 0 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
}

.footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
}

.footer__phone {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.footer__phone:hover {
    color: #FF6B00;
}

.footer__documents {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}

.footer__documents a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    text-align: right;
}

.footer__documents a:hover {
    color: #FF6B00;
}

@media (max-width: 768px) {
    .footer__middle {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer__right {
        align-items: flex-start;
        gap: 20px;
    }
    
    .footer__documents {
        text-align: left;
    }
    
    .footer__documents a {
        text-align: left;
    }
}

@media (max-width: 360px) {
    .footer__documents a {
        font-size: 12px;
    }
}



@media screen and (max-width: 360px) {
    .footer__documents a {
        font-size: 12px;
    }

    .content-wrapper {
        transform: translateY(-40px);
    }
}

/* Стили для блока principle внутри workflow */
.workflow .principle {
    padding: 60px 0 0;
}

.workflow .principle__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
}

.workflow .principle__title {
    font-size: 32px;
    color: #000;
    margin: 0;
    line-height: 1.4;
    max-width: 520px !important;
    width: 100%;
}

.workflow .principle__title .line1 {
    display: block;
    margin-bottom: 5px;
}

.workflow .principle__title .line2 {
    display: block;
}

.workflow .principle__button {
    margin: 0;
    padding: 0 36px;
    height: 52px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 26px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .workflow .principle__title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .workflow .principle {
        padding: 30px 15px;
    }
    
    .workflow .principle__title {
        font-size: 22px;
        line-height: 1.3;
        text-align: left;
    }
    
    .workflow .principle__button {
        height: 48px;
        font-size: 14px;
        padding: 0 24px;
        align-self: flex-start;
    }
}



/* Стили для плавной анимации появления блоков */
.appear-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--anim-duration-base, 0.3s) ease-out, 
                transform var(--anim-duration-base, 0.3s) ease-out;
    /* Включаем GPU-ускорение */
    will-change: opacity, transform;
    /* Установка уникальной задержки на каждый элемент через JS */
    --anim-delay: 0s;
}

/* Установка базовой задержки для разных типов элементов */
.service-card.appear-animation { --anim-delay: calc(var(--anim-delay-base) * 1); }
.case-card.appear-animation { --anim-delay: calc(var(--anim-delay-base) * 2); }
.workflow-card.appear-animation { --anim-delay: calc(var(--anim-delay-base) * 1.5); }
.product-card.appear-animation { --anim-delay: calc(var(--anim-delay-base) * 2.5); }
.social-card.appear-animation { --anim-delay: calc(var(--anim-delay-base) * 3); }
.testimonial-card.appear-animation { --anim-delay: calc(var(--anim-delay-base) * 2); }
.faq__item.appear-animation { --anim-delay: calc(var(--anim-delay-base) * 1.2); }

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

/* Стиль для мгновенного появления элементов при загрузке в середине страницы */
.page-scrolled .appear-animation.appear-visible {
    transition: none !important;
}

/* Специальный стиль для нижних блоков, которые должны быть сразу видны при перезагрузке */
.reload-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* Предзагрузка изображений и оптимизация ресурсов */
img {
    /* Применяем фильтр для плавного появления изображений */
    transition: opacity 0.3s ease, filter 0.3s ease;
}

img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* Стили для предварительной загрузки контента */
.content-wrapper {
    /* Улучшаем плавность прокрутки */
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    /* Остальные стили не меняем */
}

/* Оптимизация блоков для различных устройств */
@media (max-width: 768px) {
    .appear-animation {
        transform: translateY(20px); /* Меньшее смещение для мобильных */
    }
}

/* Индивидуальная настройка анимации для разных блоков */
.service-card.appear-animation,
.case-card.appear-animation {
    transition-duration: 0.3s; /* Ускоренная анимация для карточек */
}

.advantage-card.appear-animation {
    transition-duration: 0.4s; /* Более плавная анимация для преимуществ */
}

/* Добавляем стили для плавной загрузки фона */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

body.loaded::after {
    opacity: 0;
}



.testimonials__title {
    font-size: 42px;
    color: #000;
    margin-bottom: 60px;
    text-transform: uppercase;
    text-align: left;
}

.testimonials__slider {
    position: relative;
    display: flex;
    gap: 20px;
    overflow: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
    margin: -20px 0;
    transition: transform 0.5s ease;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .testimonials__title {
        font-size: 36px;
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .testimonials__title {
        font-size: 32px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .testimonials__title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 30px;
    }

    .testimonial-card__header {
        padding-left: 70px;
        min-height: 60px;
    }

    .testimonial-card__avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        overflow: hidden;
        position: absolute;
        left: 30px;
        top: 30px;
    }

    .testimonial-card__name {
        font-size: 16px;
    }

    .testimonial-card__position {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 25px;
    }

    .testimonial-card__header {
        padding-left: 65px;
        min-height: 45px;
    }

    .testimonial-card__avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        overflow: hidden;
        position: absolute;
        left: 25px;
        top: 25px;
    }

    .testimonial-card__name {
        font-size: 15px;
    }

    .testimonial-card__position {
        font-size: 12px;
    }
}

/* Стили для модального окна отзывов */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    background-color: #fff;
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #1a1a1a;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.modal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 1;
}

.modal-name {
    font-size: 24px;
    margin: 0 0 5px;
    color: #1a1a1a;
}

.modal-position {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.modal-body {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.modal-text {
    margin: 0;
    white-space: pre-line;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px;
        margin: 20px;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .modal-avatar {
        width: 60px;
        height: 60px;
    }
    
    .modal-name {
        font-size: 20px;
    }
    
    .modal-position {
        font-size: 14px;
    }
    
    .modal-body {
        font-size: 16px;
    }
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
    display: block;
    opacity: 1;
}

.modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: calc(100% - 40px);
    margin: 40px auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #333;
    transform-origin: center;
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .modal {
        padding: 15px;
    }

    .modal-content {
        padding: 30px 20px;
        margin: 20px auto;
        width: calc(100% - 30px);
        border-radius: 15px;
    }

    .modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .modal-avatar {
        width: 60px;
        height: 60px;
    }

    .modal-name {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .modal-position {
        font-size: 14px;
    }

    .modal-text {
        font-size: 15px;
        line-height: 1.5;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        padding: 25px 15px;
        margin: 15px auto;
        width: calc(100% - 20px);
        border-radius: 12px;
    }

    .modal-avatar {
        width: 50px;
        height: 50px;
    }

    .modal-name {
        font-size: 16px;
    }

    .modal-position {
        font-size: 13px;
    }

    .modal-text {
        font-size: 14px;
        line-height: 1.4;
    }
}



.cases__button-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.cases__button {
    min-width: 200px;
    text-align: center;
}

@media (max-width: 768px) {
    .cases__button-container {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .cases__button-container {
        margin-top: 24px;
    }
    
    .cases__button {
        width: 100%;
    }
}

.cases__button {
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    width: max-content;
    background: none;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.cases__button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000000;
    transition: all 0.3s ease;
}


.cases__button:hover::after {
    background-color: #FF6B00;
    width: 100%;
}

@media (max-width: 768px) {
    .cases__button {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cases__button {
        font-size: 15px;
    }
}

/* Стили для ленивой загрузки */
section {
    position: relative;
    opacity: 0.95;
    transition: opacity 0.5s ease;
}

section.loaded {
    opacity: 1;
}

/* Состояния анимации для секций */
section[data-animation-state="preparing"] .appear-animation {
    transition-delay: calc(var(--anim-delay, 0s) + 0.1s);
}

section[data-animation-state="active"] .appear-animation {
    opacity: 1;
    transform: translateY(0);
}

section[data-animation-state="complete"] {
    opacity: 1;
}

/* Стиль для страниц с перезагрузкой */
.page-reloaded section .appear-animation {
    transition-duration: 0s !important;
}

.page-reloaded section[data-animation-state="complete"] .appear-animation,
.page-reloaded section[data-animation-state="active"] .appear-animation {
    opacity: 1;
    transform: translateY(0);
}

img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}


.cases__button:hover::after {
    width: 0;
}

/* Стили для секции "Блог компании" */
.blog {
    padding: 30px 40px 120px 40px;
    background: #000000;
    color: #ffffff;
    position: relative;
    margin-top: 0;
    margin-bottom: 0; /* Убираем отрицательный отступ */
}
        
.blog__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.blog__title {
    font-size: 44px;
    color: #ffffff;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-align: left;
}

.blog__content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 0; /* Полностью убираем отступ снизу */
}
        
.blog__image {
    flex: 0 0 auto;
    margin-right: 0;
}

.blog__image img {
    width: 422px;
    height: 242px;
    object-fit: cover;
    border-radius: 20px;
    vertical-align: middle;
}

.blog__text {
    flex: 1;
    max-width: 58%;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    padding-left: 40px;
}

.blog__heading {
    font-size: 26px;
    color: #ffffff;
    margin: 0 0 20px;
    line-height: 1.2;
}

.blog__description {
    font-size: 20px;
    line-height: 1.4;
    color: #ffffff;
    margin: 0 0 30px;
}

.blog__description br {
    display: inline-block;
}

.blog__date {
    font-size: 16px;
    font-style: italic;
    color: #cccccc;
    margin: 0 0 15px;
}

.blog__empty,
.blog__error {
    font-size: 18px;
    line-height: 1.4;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
}

.blog__error {
    color: #ff6666;
}

.blog__more-button {
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    display: inline-block;
    margin-top: 40px;
    padding: 12px 30px;
    background: linear-gradient(45deg, #0070f3, #00c1ff);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.blog__more-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 112, 243, 0.3);
}

.blog__link {
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    width: max-content;
}

.blog__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.blog__link:hover::after {
    width: 0;
}

@media (max-width: 1200px) {
    .blog {
        padding: 50px 30px 0;
    }
    
    .blog__title {
        font-size: 38px;
        margin-bottom: 30px;
    }
    
    .blog__heading {
        font-size: 28px;
    }
    
    .blog__description {
        font-size: 20px;
    }
    
    .blog__image {
        flex: 0 0 auto;
    }
    
    .blog__text {
        flex: 1;
        max-width: 55%;
        padding-left: 30px;
    }
}

@media (max-width: 768px) {
    .blog {
        padding: 40px 20px 0;
    }
    
    .blog__title {
        font-size: 32px;
        margin-bottom: 25px;
    }
    
    .blog__content {
        flex-direction: column;
        gap: 30px;
    }
    
    .blog__image,
    .blog__text {
        flex: 0 0 100%;
        max-width: 100%;
        margin-left: 0;
        padding-left: 0;
    }
    
    .blog__image img {
        width: 100%;
        max-width: 422px;
        height: auto;
        border-radius: 30px;
    }
    
    .blog__heading {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .blog__description {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .blog__description br {
        display: none;
    }
    
    .blog__link {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .blog {
        padding: 30px 15px 25px;
    }
    
    .blog__title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .blog__image img {
        width: 100%;
        height: auto;
        border-radius: 20px;
    }
    
    .blog__heading {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .blog__description {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .blog__link {
        font-size: 15px;
    }

    .blog__description br {
        display: none;
    }
}