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

/* Паддинги секций на мобилке */

@media screen and (max-width: 767px) {
    #fullpage-disabled > *:not(:first-child) {
        padding: 50px 0;
    }
}

* {
    min-height: 0;
    min-width: 0;
}

/* Первый экран */

#fullpage-disabled > *:first-child {
    height: auto;
    overflow: hidden;
}

.head__wrapper {
    padding-top: 206px;
    position: relative;
}

.head {
    background: url(/site/templates/default/imgs/bghead-our-cases.jpg) no-repeat center center/cover;
    min-height: auto;
    height: auto;
}

.head__container {
    max-width: 1366px;
    padding: 0 20px;
    margin: 80px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.hashtag__container {
    margin: 38px 0 58px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.hashtag__item {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 0em;
    text-align: center;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 40px;
    color: #E4E5EA;
    border: 1px solid #A5A6A8;
}

.head__container .left {
    max-width: 492px;
    min-height: 482px; /* Если убрать то слайдер будет скакать из-за отрицательного марджина у слайдов */
    z-index: 10;
}

.head__container .right {
    max-width: 651px;
}

.our-cases__slider_item {
    width: 651px;
    height: 476px;
    border-radius: 16px;
    object-fit: cover;
    transform: scale(0.8);
    opacity: 0;
    transition: 1s;
    margin: 0 -20px -48px;
}

.our-cases__slider_item.slick-active, .our-cases__slider_item.slick-current {
    transition: 1s;
    transform: scale(1);
    opacity: 1;
    margin: 0 -20px 0;
}

.our-cases__slider .slick-active ~ img {
    opacity: 0.4;
}

.head__description {
    line-height: 28px;
}

.head__container .mobile {
    display: none;
    margin-top: 38px;
}

@media screen and (max-width: 1062px) {
    .head__container {
        flex-direction: column;
    }

    .head__container .mobile {
        display: block;
    }

    .head__container .desktop {
        display: none;
    }

    .head__container .left {
        min-height: auto;
    }

    .head__container .right {
        max-width: 100%;
    }

    .hashtag__container {
        margin: 38px 0;
    }

    .our-cases__slider_item {
        margin: 0;
        opacity: 0.6;
    }

    .our-cases__slider_item.slick-active, .our-cases__slider_item.slick-current {
        margin: 0;
    }
}

@media screen and (max-width: 1023px) {
    .head__container {
        margin-top: 0;
    }
}

@media screen and (max-width: 767px) {
    .our-cases__slider_item {
        max-width: 318px;
        width: auto;
        height: 278px !important;
        margin: 0;
    }

    .our-cases__slider_item.slick-active {
        margin: 0;
    }

    .head__container .left {
        max-width: 100%;
    }

    .head__container .mobile {
        margin: 0 auto;
    }

    .hashtag__container {
        gap: 16px;
    }

    .head.pd {
        padding: 90px 0;
    }
}

/* Блок со списком кейсов */


.cases__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 500px 330px;
    grid-gap: 24px;
}

a {
    text-decoration: none;
    color: #000;
}

.quesion-wrap a {
    text-decoration: none;
    color: #fff;
}



.case__item {
    border-radius: 16px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: all .4s ease-in-out;
    background-size: 300% 100%;
    z-index: 2;
}

.case__item:hover {
    background-position: 100% 0;
    -o-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

.case__item_long-row {
    grid-column: span 2;
}

.case__item_long-column {
    grid-row: span 2;
}

.case__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 49px;
    margin-bottom: 24px;
}

.kalyanich {
    background-image: linear-gradient(to right, #DFBE4A, #e43603, #fa7199, #DFBE4A);
    box-shadow: 0 2px 15px 0 rgba(229, 66, 10, 0.75);
}

.radio {
    background-image: linear-gradient(to right, #fff, #dfc8ff, #e3d4fa, #F1E8FF);
    box-shadow: 0 4px 15px 0 rgba(223, 200, 255, 0.75);
}


.bar-service {

    background-image: linear-gradient(to right, #29323c, #485563, #2b5876, #4e4376);
    box-shadow: 0 4px 15px 0 rgba(45, 54, 65, 0.75);
    color: #fff;
}

.perspektiva {
    background-image: linear-gradient(to right, #63c9f3, #95cff3, #80d4f1, #d0e9fa);
    box-shadow: 0 4px 15px 0 rgba(176, 235, 253, 0.75);
}

.sovet-metrologov {
    background-image: linear-gradient(to right, #0ba360, #3cba92, #30dd8a, #2bb673);
    box-shadow: 0 4px 15px 0 rgba(23, 168, 108, 0.75);
}

.hi-tech {
    background-image: linear-gradient(to right, #25aae1, #5ab8ec, #5ca7dc, #4B9ED5);
    box-shadow: 0 4px 15px 0 rgba(49, 196, 190, 0.75);
    color: #fff;
}

.ostrov {
    background-image: linear-gradient(to right, #FFC8AB, #ff9a44, #ef9d43, #e75516);
    box-shadow: 0 4px 15px 0 rgba(252, 104, 110, 0.75);
}

.bar-uchebniy {
    background-image: linear-gradient(to right, #FFA0A1, #ec8c69, rgba(239, 50, 120, 0.74), #FBB03B);
    box-shadow: 0 4px 15px 0 rgba(236, 116, 149, 0.75);
}

.csm {
    background-image: linear-gradient(to right, #009245, #54A692, #00A8C5, #D9E021);
    box-shadow: 0 4px 15px 0 rgba(83, 176, 57, 0.75);
    color: #fff;
}

.case__subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 27px;
    max-width: 474px;
}

.case__image {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
}

.case__item_long-row .case__image {
    top: 48px;
    bottom: 36px;
    right: 36px;
}

.csm .case__image {
    top: 24px;
    bottom: 36px;
    right: 36px;
}

@media screen and (max-width: 1062px) {
    .asite_btn.mobile {
        margin-top: 36px;
    }
}

@media screen and (max-width: 894px) {
    .case__item_long-row {
        grid-column: span 1;
    }

    .case__item_long-column {
        grid-row: span 1;
    }

    .cases__list {
        grid-template-columns: 1fr;
        grid-auto-rows: 330px;
    }
}

@media screen and (max-width: 730px) {
    .case__item {
        padding: 24px;
    }

    .case__item_long-row .case__image {
        top: auto;
        right: 0;
        bottom: 0;
    }

    .case__image {
        max-width: 50%;
    }

    .case__title {
        font-size: 22px;
        font-weight: 700;
        line-height: 38px;
        margin-bottom: 16px;
    }

    .case__subtitle {
        font-size: 14px;
    }
}
