/* Единые размеры первого экрана: главная и о компании */
.home-hero, .about-photo-hero {
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    height: 440px;
    min-height: 440px;
    border-radius: 0;
}
.home-hero-content, .about-photo-content {
    padding-top: 24px;
    padding-bottom: 24px;
}
@media (max-width: 700px) {
    .home-hero, .about-photo-hero {
        height: auto;
        min-height: 510px;
    }
    .home-hero-content, .about-photo-content {
        padding-top: 54px;
        padding-bottom: 54px;
    }
}
/* Фиксированный размер фото — О компании */

.about-photo-hero {
    height: 440px !important;
    min-height: 440px !important;
    max-height: 440px !important;
    padding: 0 !important;
}

.about-photo-hero .about-photo-content {
    padding: 0 !important;
}

.about-photo-hero .about-hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Мобильная версия */

@media (max-width: 700px) {
    .about-photo-hero {
        height: auto !important;
        min-height: 510px !important;
        max-height: none !important;
    }
}
/* ФОТОГРАФИИ БЕЗ ОБРЕЗКИ */

.home-hero {
    background-size: cover, contain !important;
    background-position: center, right center !important;
    background-repeat: no-repeat !important;
    background-color: #f8fafc;
}

.about-photo-hero .about-hero-image,
.b2b-hero figure img {
    object-fit: contain !important;
    object-position: right center !important;
}

/* МОБИЛЬНАЯ ВЕРСИЯ */

@media (max-width: 700px) {

    .home-hero {
        background-size: cover, contain !important;
        background-position: center, center !important;
    }

    .about-photo-hero .about-hero-image,
    .b2b-hero figure img {
        object-fit: contain !important;
        object-position: center !important;
    }
}
/* =========================================
   НОВЫЙ АВТОМАТИЧЕСКИЙ СЛАЙДЕР
   ========================================= */

.smart-hero {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    background: #e2e8f0 !important;
}

.smart-hero-stage {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.smart-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.smart-hero-slide.active {
    opacity: 1;
}

/* ФОН НА ВСЮ ШИРИНУ */

.smart-hero-background {
    position: absolute;
    inset: -25px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(18px);
    opacity: 0.65;
}

/* ОСНОВНАЯ ФОТОГРАФИЯ БЕЗ ОБРЕЗКИ */

.smart-hero .smart-hero-photo {
    position: absolute !important;
    top: 0 !important;
    left: auto !important;
    right: 0 !important;
    width: 65% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* ПЛАВНЫЙ ПЕРЕХОД ОТ ТЕКСТА К ФОТО */

.smart-hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(248,250,252,1) 0%,
        rgba(248,250,252,0.98) 20%,
        rgba(248,250,252,0.90) 32%,
        rgba(248,250,252,0.25) 45%,
        rgba(248,250,252,0) 58%
    );
}

/* СКРЫВАЕМ СТАРЫЕ ФОТОГРАФИИ */

.smart-hero.about-photo-hero .about-hero-image,
.smart-hero.b2b-hero figure {
    display: none !important;
}

.smart-hero.about-photo-hero::before,
.smart-hero.b2b-hero::before {
    display: none !important;
}

/* ТЕКСТ ПОВЕРХ ФОТОГРАФИЙ */

.smart-hero .home-hero-inner,
.smart-hero .about-photo-inner,
.smart-hero .b2b-hero-copy {
    position: relative !important;
    z-index: 2 !important;
}

.smart-hero .home-hero-content,
.smart-hero .about-photo-content,
.smart-hero .b2b-hero-copy {
    max-width: 40% !important;
}

/* КНОПКА ПАУЗЫ */

.smart-hero-pause {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    background: rgba(30,58,50,0.8);
    color: #ffffff;
    cursor: pointer;
}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================= */

@media (max-width: 700px) {

    .smart-hero.home-hero,
    .smart-hero.about-photo-hero,
    .smart-hero.b2b-hero {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 !important;
    }

    .smart-hero-stage {
        position: relative !important;
        inset: auto !important;
        order: 2;
        width: 100%;
        height: 340px;
        z-index: 0;
    }

    .smart-hero .smart-hero-photo {
        width: 100% !important;
        height: 100% !important;
    }

    .smart-hero-stage::after {
        background: linear-gradient(
            180deg,
            rgba(248,250,252,0.5),
            transparent 20%
        );
    }

    .smart-hero .home-hero-inner,
    .smart-hero .about-photo-inner,
    .smart-hero .b2b-hero-copy {
        order: 1;
        width: 100% !important;
        max-width: 100% !important;
        padding: 30px 20px !important;
        background: #f8fafc;
    }

    .smart-hero .home-hero-content,
    .smart-hero .about-photo-content {
        max-width: 100% !important;
        padding: 0 !important;
    }

}

@media (prefers-reduced-motion: reduce) {
    .smart-hero-slide {
        transition: none;
    }
}
/* =========================================
   ПОЛНОШИРИННЫЙ СЛАЙДЕР
   ========================================= */

.smart-hero.home-hero,
.smart-hero.about-photo-hero,
.smart-hero.b2b-hero {
    height: 560px !important;
    min-height: 560px !important;
    max-height: none !important;
}

/* Убираем размытый фон */

.smart-hero-background {
    display: none !important;
}

/* Фотография на всю ширину */

.smart-hero .smart-hero-photo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* Затемнение фотографии */

.smart-hero-stage::after {
    background: linear-gradient(
        90deg,
        rgba(10,20,25,0.65) 0%,
        rgba(10,20,25,0.40) 45%,
        rgba(10,20,25,0.10) 100%
    ),
    linear-gradient(
        0deg,
        rgba(10,20,25,0.45) 0%,
        transparent 60%
    ) !important;
}

/* Белый текст */

.smart-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.smart-hero p {
    color: rgba(255,255,255,0.95) !important;
}

.smart-hero .home-eyebrow,
.smart-hero .eyebrow {
    color: #b6d9c9 !important;
}

/* Ширина текстового блока */

.smart-hero .home-hero-content,
.smart-hero .about-photo-content,
.smart-hero .b2b-hero-copy {
    max-width: 650px !important;
}

/* МОБИЛЬНАЯ ВЕРСИЯ */

@media (max-width: 700px) {

    .smart-hero.home-hero,
    .smart-hero.about-photo-hero,
    .smart-hero.b2b-hero {
        height: auto !important;
        min-height: 540px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .smart-hero-stage {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: -1 !important;
    }

    .smart-hero .home-hero-inner,
    .smart-hero .about-photo-inner,
    .smart-hero .b2b-hero-copy {
        background: transparent !important;
        padding: 40px 20px !important;
    }

    .smart-hero-stage::after {
        background: rgba(10,20,25,0.48) !important;
    }

    .smart-hero .smart-hero-photo {
        object-position: center center !important;
    }

    .smart-hero h1 {
        font-size: 34px !important;
    }

}
/* КОРРЕКТИРОВКА МАСШТАБА ФОТОГРАФИЙ */

.smart-hero-background {
    display: block !important;
    background-size: cover !important;
    background-position: center !important;
    filter: blur(35px) !important;
    opacity: 1 !important;
}

.smart-hero .smart-hero-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center right !important;
}

/* Затемнение для читаемости текста */

.smart-hero-stage::after {
    background: linear-gradient(
        90deg,
        rgba(10,20,25,0.75) 0%,
        rgba(10,20,25,0.50) 30%,
        rgba(10,20,25,0.10) 65%,
        rgba(10,20,25,0.05) 100%
    ) !important;
}

/* Мобильная версия */

@media (max-width: 700px) {

    .smart-hero .smart-hero-photo {
        object-fit: contain !important;
        object-position: center !important;
    }

    .smart-hero-stage::after {
        background: rgba(10,20,25,0.40) !important;
    }
}
/* УВЕЛИЧЕНИЕ ВТОРОЙ И ТРЕТЬЕЙ ФОТОГРАФИИ */

/* УПРАВЛЕНИЕ МАСШТАБОМ ФОТОГРАФИЙ */

@media (min-width: 701px) {

    /* Первая фотография */
    .smart-hero-slide:nth-child(1) .smart-hero-photo {
        transform: scale(1.50);
        transform-origin: right center;
    }

    /* Вторая фотография */
    .smart-hero-slide:nth-child(2) .smart-hero-photo {
        transform: scale(1.90);
        transform-origin: right center;
    }

    /* Третья фотография */
    .smart-hero-slide:nth-child(3) .smart-hero-photo {
        transform: scale(1.90);
        transform-origin: right center;
    }

}

}
.smart-hero-pause {
    width: 28px;
    height: 28px;
    opacity: 0.4;
    font-size: 12px;
}

.smart-hero-pause:hover,
.smart-hero-pause:focus-visible {
    opacity: 1;
}
/* ЕДИНАЯ ВЫСОТА ФОТОБЛОКОВ */

.smart-hero.home-hero,
.smart-hero.about-photo-hero,
.smart-hero.b2b-hero {
    height: 440px !important;
    min-height: 440px !important;
    max-height: 440px !important;
}

/* МОБИЛЬНАЯ ВЕРСИЯ */

@media (max-width: 700px) {

    .smart-hero.home-hero,
    .smart-hero.about-photo-hero,
    .smart-hero.b2b-hero {
        height: auto !important;
        min-height: 510px !important;
        max-height: none !important;
    }

}
/* ИСПРАВЛЕНИЕ ФОТОБЛОКА B2B */

.b2b-page .b2b-hero.smart-hero {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    grid-template-columns: none !important;
}

.b2b-page .b2b-hero .b2b-hero-copy {
    position: relative !important;
    z-index: 2 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
}

.b2b-page .smart-hero-stage {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.b2b-page .smart-hero .smart-hero-photo {
    object-fit: contain !important;
    object-position: right center !important;
}

.b2b-page .smart-hero .smart-hero-photo {
    min-height: 0 !important;
    max-height: none !important;
}
/* МАСШТАБ ФОТОГРАФИЙ B2B */

@media (min-width: 701px) {

    /* Первая фотография B2B */
    .b2b-hero .smart-hero-slide:nth-child(1) .smart-hero-photo {
        transform: scale(1.50);
        transform-origin: right center;
    }

    /* Вторая фотография B2B */
    .b2b-hero .smart-hero-slide:nth-child(2) .smart-hero-photo {
        transform: scale(1.60);
        transform-origin: right center;
    }

    /* Третья фотография B2B */
    .b2b-hero .smart-hero-slide:nth-child(3) .smart-hero-photo {
        transform: scale(1.60);
        transform-origin: right center;
    }
}

@media (max-width: 700px) {
    .b2b-page .smart-hero .smart-hero-photo {
        object-position: center !important;
    }

    .b2b-page .b2b-hero .b2b-hero-copy {
        width: 100% !important;
        max-width: 100% !important;
    }
}
/* РАСПОЛОЖЕНИЕ ФОТО И ТЕКСТА — О КОМПАНИИ */

.about-photo-hero.smart-hero {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.about-photo-hero .about-photo-content {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
}

.about-photo-hero .smart-hero-photo {
    object-fit: contain !important;
    object-position: right center !important;
}

/* МАСШТАБ ФОТОГРАФИЙ — О КОМПАНИИ */

@media (min-width: 701px) {

    /* Первая фотография */
    .about-photo-hero .smart-hero-slide:nth-child(1) .smart-hero-photo {
        transform: scale(1.80);
        transform-origin: right center;
    }

    /* Вторая фотография */
    .about-photo-hero .smart-hero-slide:nth-child(2) .smart-hero-photo {
        transform: scale(1.90);
        transform-origin: right center;
    }

    /* Третья фотография */
    .about-photo-hero .smart-hero-slide:nth-child(3) .smart-hero-photo {
        transform: scale(1.90);
        transform-origin: right center;
    }
}

/* МОБИЛЬНАЯ ВЕРСИЯ */

@media (max-width: 700px) {
    .about-photo-hero .smart-hero-photo {
        object-position: center !important;
    }

    .about-photo-hero .about-photo-content {
        max-width: 100% !important;
    }
}
/* ОКОНЧАТЕЛЬНОЕ ИСПРАВЛЕНИЕ B2B */

.b2b-hero.smart-hero {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    isolation: isolate !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: none !important;
    grid-template-columns: none !important;
    height: 440px !important;
    min-height: 440px !important;
    max-height: 440px !important;
}

/* Убираем старую фотографию */

.b2b-hero.smart-hero figure,
.b2b-hero.smart-hero::before,
.b2b-hero.smart-hero::after {
    display: none !important;
}

/* Правильное положение слайдера */

.b2b-hero.smart-hero .smart-hero-stage {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
}

.b2b-hero.smart-hero .smart-hero-slide {
    position: absolute !important;
    inset: 0 !important;
}

.b2b-hero.smart-hero .smart-hero-photo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: right center !important;
}

/* Возвращаем текст налево */

.b2b-hero.smart-hero .b2b-hero-copy {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 650px !important;
    margin: 0 auto 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
    background: transparent !important;
}

/* Белый текст */

.b2b-hero.smart-hero h1,
.b2b-hero.smart-hero p,
.b2b-hero.smart-hero .eyebrow {
    color: #ffffff !important;
}

/* Затемнение */

.b2b-hero.smart-hero .smart-hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10,20,25,0.75) 0%,
        rgba(10,20,25,0.50) 30%,
        rgba(10,20,25,0.10) 65%,
        transparent 100%
    ) !important;
}

/* Кнопка паузы */

.b2b-hero.smart-hero .smart-hero-pause {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    right: 15px !important;
    bottom: 15px !important;
    z-index: 5 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #1E3A32 !important;
    color: white !important;
    opacity: 0.4;
}

/* Мобильная версия */

@media (max-width: 700px) {

    .b2b-hero.smart-hero {
        height: auto !important;
        min-height: 510px !important;
        max-height: none !important;
        padding: 30px 20px !important;
    }

    .b2b-hero.smart-hero .smart-hero-photo {
        object-position: center !important;
    }

    .b2b-hero.smart-hero .b2b-hero-copy {
        max-width: 100% !important;
    }
}