@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders:opsz,wght@10..72,100..900&family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap");

.banner-outer {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.banner {
    max-width: 900px;
    max-height: 375px;
    width: 100%;
    height: 375px;
    background-image: url('../../images/banner/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 57px 0 48px 52px;


}

.banner-content {
    display: flex;
    gap: 24px;
    z-index: 2;

    height: 100%;
    align-items: end;
}

.text-content {
    width: 311px;
    padding-bottom: 10px;
}

.text-content h2 {
    font-family: Big Shoulders;
    font-weight: 500;
    font-size: 85px;
    line-height: 115%;
    letter-spacing: 12.8px;
    text-transform: uppercase;
    padding-bottom: 22px;
}

.text-content p {
    font-family: Roboto Flex;
    font-weight: 400;
    font-size: 19px;
    line-height: 136%;
    letter-spacing: 0.5px;
    color: #000;
}

.btn {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 20.5px 43px;
    text-decoration: none;
    border: 1px solid #000;

    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 100px;

    font-family: Roboto Flex;
    font-weight: 500;
    font-size: 27px;
    line-height: 105%;
    letter-spacing: 1.9px;
    text-align: center;

}

.btn:hover,
.btn:active,
.btn:focus {
    background-color: transparent;
    color: #000;
}

.image-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;

    height: 100%;
    right: 0;
}

.image-wrapper {
    position: relative;
    height: 100%;
}

.obalka {
    max-height: 100%;
    height: auto;
    display: block;
}

@media (min-width: 769px) {
    .image-wrapper {
        top: -70px;
        right: -50px;
    }

    .image-container {
        overflow: hidden;
    }

    .obalka {
        max-height: 120%;
    }
}

@media (max-width: 768px) {
    .banner {
        max-width: 100%;
        max-height: 100%;
        padding: 20px;
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        height: auto;
    }

    .text-content {
        width: 100%;
        padding-bottom: 0;
        order: 1;
    }

    .text-content h2 {
        font-size: 38px;
        letter-spacing: 5px;
        padding-bottom: 3px;
        margin-bottom: 10px;
        margin-top: 10px;
    }

    .text-content p {
        font-size: 15px;
        letter-spacing: 0.3px;
        margin-bottom: 12px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 18px;
        letter-spacing: 1.2px;
        order: 2;
        align-self: flex-start;
    }

    .image-container {
        position: relative;
        top: auto;
        transform: none;
        height: auto;
        order: 3;
        margin-top: 20px;
    }

    .image-wrapper {
        max-width: 350px;
        margin-left: auto;
    }

    .obalka {
        width: 100%;
        position: relative;
        right: -20px;
        bottom: -20px;
        margin-top: -72%;
    }
}


@media (max-width: 576px) {
    .obalka {
        width: 100%;
        position: relative;
        right: -20px;
        bottom: -20px;
        margin-top: -50%;
    }
}

.banner-link {
    text-decoration: none;
    color: inherit;
    display: block;
    max-width: 900px;
    width: 100%;
    transition: all 0.3s ease;
}

.banner-link:hover .banner,
.banner-link:focus .banner,
.banner-link:active .banner {
    opacity: 0.95;
}

.banner-link:hover .btn,
.banner-link:focus .btn,
.banner-link:active .btn {
    background-color: transparent;
    color: #000;
}

.banner-link .btn {
    cursor: pointer;
}