/**
 * Layout: hero_cases
 *
 * Enqueued automatically when a page has a `hero_cases` row
 * in designer_page_sections. Depends on the `designer-base` handle.
 */

.case-hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 140px;
    overflow: hidden;
}

.case-hero .case-hero__container {
    display: flex;
    flex-direction: column;
    max-width: 1840px;
    width: 100%;
    padding: 40px 40px 0;
    margin: 0 auto;
}

.case-hero .section-header {
    display: flex;
    justify-content: space-between;
    padding: 0 160px;
}

.section-header__title {
    display: flex;
    flex-direction: column;
    max-width: 980px;
}

.case-hero__txt {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 44px;
    line-height: 114%;
    color: #1a1a1a;
}

.case-hero__details {
    display: flex;
    flex-direction: column;
    max-width: 450px;
    width: 100%;
    gap: 40px;
}

.case-hero .details-row {
    display: flex;
    gap: 42px;
}

.case-hero .details-block {
    display: flex;
    flex-direction: column;
    max-width: 200px;
    width: 100%;
}

.case-hero .details-name,
.case-hero .details-name a {
    font-weight: 700;
    font-size: 20px;
    line-height: 130%;
    color: #1a1a1a;
}

.case-hero__image {
    background: #eaeaea;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.case-hero__bg-img {
    width: 890px;
    height: auto;
    position: absolute;
    right: -25%;
    top: -80%;
    z-index: -1;
}

.case-hero__big-img {
    width: 861px;
    height: auto;
}

.case-hero__logo-img {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    width: 180px;
    height: 180px;
    position: absolute;
    left: 20px;
    bottom: 20px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-hero__logo-img img {
    width: calc(100% - 22px);
}

@media(max-width:1720px) {
    .case-hero .section-header {
        display: flex;
        padding: 0 60px;
    }

    .case-hero__details {
        max-width: 360px;
        align-self: self-end;
    }

    .case-hero .details-row {
        display: flex;
        gap: 32px;
    }

    .case-hero .details-block {
        display: flex;
        flex-direction: column;
        max-width: 170px;
        width: 100%;
    }

    .case-hero__bg-img {
        width: 690px;
        height: auto;
        position: absolute;
        right: -20%;
        top: -70%;
    }

    .case-hero__txt {
        font-size: 30px;
    }
}

@media(max-width:1600px) {
    .case-hero .section-header {
        padding: 0 80px;
    }
}

@media (max-width:1521px) {
    .case-hero .section-header {
        padding: 0 60px;
    }

    .case-hero__details {
        max-width: 300px;
    }

    .case-hero .details-row {
        gap: 26px;
    }

    .case-hero .details-block {
        max-width: 160px;
    }

    .case-hero .details-name {
        font-size: 18px;
    }
}

@media (max-width:1442px) {
    .section-header__title {
        max-width: 700px;
    }

    .case-hero__big-img {
        width: 661px;
        height: auto;
    }
}

@media(max-width:1366px) {
    .case-hero__logo-img {
        width: 120px;
        height: 120px;
    }
}

@media(max-width:1202px) {
    .case-hero {
        margin-bottom: clamp(60px, 8.5vw, 140px);
    }
}

@media(max-width:1025px) {
    .case-hero .section-header {
        padding: 0;
    }

    .section-header__title {
        max-width: 580px;
    }

    .case-hero__big-img {
        width: 590px;
        height: auto;
    }
}

@media(max-width:821px) {
    .case-hero__big-img {
        width: 450px;
    }

    .case-hero__logo-img {
        width: 100px;
        height: 100px;
    }

    .case-hero .section-header {
        flex-direction: column;
        padding: 0;
        gap: 40px;
    }

    .case-hero__details {
        max-width: 100%;
        align-self: self-start;
        display: flex;
        flex-direction: row;
        gap: 20px;
    }

    .case-hero .details-row {
        display: flex;
        gap: 32px;
        width: fit-content;
    }
}

@media(max-width:480px) {
    .case-hero {
        margin-bottom: 60px;
    }

    .case-hero__details {
        flex-direction: column;
    }

    .case-hero .case-hero__container {
        padding: 20px 20px 0;
    }

    .case-hero__image {
        flex-direction: column;
    }

    .case-hero__big-img {
        width: 100%;
        padding: 16px 16px;
        margin-bottom: 20px;
    }

    .case-hero__logo-img {
        width: 80px;
        height: 80px;
        position: relative;
        align-self: flex-start;
    }
}

