/* =============================================
   slider_home
   ============================================= */
#slider_home {
    position: relative;
    overflow: hidden;
}

#slider_home .slider_arrow_over {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 20;
}

#slider_home .slider_arrow_over .slider_arrow .slider-arrow-item {
    pointer-events: initial;
}

#slider_home .slider_item {
    flex: 0 0 auto;
    /* старый код
    flex: 0 0 auto;
    display: flex;
    width: 100%;
    justify-content: center;
     */
}

#slider_home .slider_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    /* old от этого зависит анимация слайдера
    width: 100%;
    max-width: 100%;
    max-height: 100%;
     */
}

@media (min-width: 992px) {
    #slider_home .slider_fading {
        padding: 0;
    }
}

@media (max-width: 992px) {
    #slider_home .slider_arrow_over {
        display: none;
    }
}


/* выдерживаем высоту блока */
.slider_home_height {
    height: 280px;
}

@media (max-width: 1900px) {
    .slider_home_height { height: 16vw; }
}

@media (max-width: 1400px) {
    .slider_home_height { height: 15vw; }
}

@media (max-width: 1150px) {
    .slider_home_height { height: 14vw; }
}

@media (max-width: 992px) {
    .slider_home_height { height: 188px; }
}

@media (max-width: 760px) {
    /*
    #slider_home .slider_item {
        width: 340px;
    }
     */
}


/* =============================================
   catalog_home
   ============================================= */
.catalog_home_wrapper {
    overflow: auto;
}

.catalog_home_items {
    display: flex;
    gap: 1.75em;
    flex-wrap: wrap;
    margin-bottom: 1.75em;
}

.catalog_home_item {
    display: flex;
    width: calc(20% - 1.4em);
    padding: 3em 1.5em 1.5em;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    box-sizing: border-box;
    background: var(--Mono-G1);
    color: var(--Mono-G4);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    min-height: 264px;
}

.catalog_home_item:hover {
    background: var(--Color-Light-color);
}

.catalog_home_item a {
    color: inherit;
}

.catalog_url {
    position: absolute;
    inset: 0;
    border-radius: 13px;
    backdrop-filter: blur(0px);
    z-index: 1;
    -webkit-transition: all .3s;
    transition: all .3s;
}

.catalog_home_item:hover .catalog_url {
    box-shadow: 0 0 0 1px #60b6bb inset;
    backdrop-filter: blur(4px);
}

/* catalog footer */
.catalog_footer_wrapper {
    z-index: 10;
    width: 100%;
    position: relative;
    height: 4em;
}

.catalog_footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--Mono-W);
    -webkit-transition: all .3s;
    transition: all .3s;
}

.catalog_home_item:hover .catalog_footer {
    background: var(--Mono-G4);
    color: var(--Mono-W);
}

.catalog_footer .catalog_name {
    display: block;
    text-align: center;
    font-weight: 600;
    padding: 1em 0;
    -webkit-transition: padding .3s;
    transition: padding .3s;
}

.catalog_home_item:hover .catalog_footer .catalog_name {
    padding: 1.5em 0;
}

.catalog_footer .sub_category {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9em;
    max-height: 0;
    -webkit-transition: max-height .5s ease-in-out;
    transition: max-height .5s ease-in-out;
}

.catalog_footer .sub_category a {
    flex: 0 0 50%;
    padding: 0.5em 1em;
    box-sizing: border-box;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.catalog_footer .sub_category a:hover {
    color: var(--Color-Color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.catalog_img img {
    max-width: 100%;
    max-height: 100%;
}

/* catalog responsive */
@media (min-width: 1501px) {
    .catalog_home_item {
        margin-top: 1.75em;
    }

    .catalog_home_item:nth-child(2n) {
        padding: 4em 1.5em 1.5em;
        margin-top: 0;
        margin-bottom: -1.75em;
    }
}

@media (min-width: 761px) {
    .catalog_home_item:hover .sub_category {
        max-height: 300px;
    }
}

@media (max-width: 1500px) {
    .catalog_home_item {
        width: calc(25% - 0.8em);
    }

    .catalog_home_items {
        gap: 1em;
        margin-bottom: 1em;
    }
}

@media (max-width: 1150px) {
    .catalog_home_item {
        width: calc(33.33% - 0.7em);
        min-height: 220px;
        padding: 2em 1em 1em;
    }

    .catalog_img {
        height: 66px;
    }

    .catalog_footer .catalog_name {
        padding: 0.5em 0;
    }
}

@media (max-width: 760px) {
    /* Объединены два дублирующихся блока .catalog_home_item */
    .catalog_home_item {
        width: calc(50% - 0.5em);
        min-height: 161px;
    }
}


/* =============================================
   our_clients
   ============================================= */
.our_client_items {


}

.our_client_item {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.our_client_item img {
    max-width: 100%;
    max-height: 100%;
}


/* =============================================
   carusel (css-only)
   ============================================= */
@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); }
}

.css-carusel {
    margin: auto;
    overflow: hidden;
    position: relative;
}

/* Общие свойства для обоих псевдоэлементов */
.css-carusel::before,
.css-carusel::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100px;
    width: 200px;
    z-index: 2;
    background: linear-gradient(
            to right,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0) 100%
    );
}

.css-carusel::before {
    left: 0;
}

.css-carusel::after {
    right: 0;
    transform: rotateZ(180deg);
}

.css-carusel-track {
    animation: scroll 35s linear infinite;
    display: flex;
    width: calc(250px * 14);
}

.css-carusel-track > * {
    height: 100px;
    width: 250px;
}

@media (max-width: 1024px) {
    .css-carusel {
        width: calc(100% + 32px);
        margin-left: -16px;
    }

    .css-carusel::before,
    .css-carusel::after {
        width: 50px;
        height: 64px;
    }

    .css-carusel-track > * {
        height: 64px;
        width: 200px;
    }

    .our_client_item img {
        max-width: 150px;
    }
}


/* =============================================
   title_home
   ============================================= */
.title_home {
    margin-top: 3em;
    margin-bottom: 2em;
    text-align: center;
}

.title_home .hint {
    color: var(--Mono-G3);
}


/* =============================================
   certificates
   ============================================= */
.certificates_home {
    border-radius: 24px;
    background: url("../img/mask/mask_certifikats.png"),
    radial-gradient(50% 50% at 50% 50%, #D5E3E5 46.28%, #E9F1F2 100%);
    background-size: cover;
    position: relative;
    padding-bottom: 9vw;
    overflow: hidden;
}

.certificates_home::after {
    content: "Сертификаты";
    position: absolute;
    bottom: 2.5vw;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 0;
    font-size: 12vw;
    font-weight: 700;
    color: var(--Mono-W);
}

@media (min-width: 1900px) {
    .certificates_home {
        padding-bottom: 10em;
    }

    .certificates_home::after {
        font-size: 14em;
        bottom: 0.2em;
    }
}

.certificates_items {
    gap: 5em;
}

.certificates_items a {
    border-radius: 1em;
    overflow: hidden;
}

.certificates_items a img {
    display: block;
}

@media (max-width: 1500px) {
    .certificates_items {
        gap: 2em;
    }
}

@media (max-width: 760px) {
    .certificates_items img {
        zoom: 0.5;
    }
}
