/*Стили для банера*/

/*
    Классы для разных картинок:
    .vertical-image  - для вытянутой по вертикали, прижатая к низу
    .horizontal-image - для горизонтальных или квадратных, расположены по центру

    Изображения прописываются inline стилем, например:
    <div class="banner2__content_main_img horizontal-image" style="background-image: url('./assets/img/banner_comp.png')">
*/

:is(.banner2, .banner2__content_main_tb_h1) {
    transition: all 1s ease;
}

.temp-container {
    max-width: 1200px;
    margin: 0 auto;
    height: inherit;
    padding-left: 45px;
    padding-right: 45px;
}

.banner2 {
    height: 500px;
    margin: 0;
}

.banner2__background {
    height: inherit;
    background-image: url("../img/banner_background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    top: -100%;
    z-index: -1;
    opacity: 60%;
}

.banner2__content {
    display: flex;
    flex-direction: column;
    height: inherit;
}

.banner2__content_main {
    display: flex;
    height: inherit;
}

.banner2__content_main_img {
    height: inherit;
    width: 70%;
    transition: opacity 2s ease;
    background-size: contain;
    background-repeat: no-repeat;
    border-top: solid 50px transparent;
    box-sizing: border-box;
}

.vertical-image {
    background-position: bottom;
}

.horizontal-image {
    background-position: center;
    width: 60%;
}

.banner2__nav {
    margin-left: 0;
    margin-bottom: 10px;
    padding-top: 10px;
    position: absolute;
}

.banner2__nav_item {
    text-decoration: none;
    color: black;
}

.banner2__nav_item:hover {
    color: blue;
}

.banner2__nav_item:last-of-type {
    text-decoration: red;
    text-underline-position: under;
    text-decoration-line: underline;
}

.banner2__content_main_tb {
    align-self: center;
    width: 50%;
    /*z-index: -1;*/
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.banner2__content_main_tb_h1 {
    font-size: 44px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
    margin-left: 0;
}

.banner2__content_main_tb_h2 {
    width: fit-content;
    color: red;
    background-color: white;
    border-radius: 25px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 0;
    position: relative;
    right: 10px;
}

.banner2__content_main_tb_text {
    max-width: 400px;
    font-size: 18px;
    color: black;
    line-height: 1.2;
    padding-top: 30px;
    margin-bottom: 30px;
}

.banner2__content_main_tb_button {
    width: 180px;
    height: 35px;
    background-color: #c83636;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    position: relative;
    padding: 8px;
    cursor: pointer;
    z-index: 10;
}

@media (max-width: 1087px) {
    .banner2 {
        height: 450px;
        width: auto;
    }

    .banner2__nav {
        margin-bottom: 30px;
        font-size: 14px;
        z-index: 10;
    }

    .banner2__content_main_tb {
        width: 70%;
    }

    .banner2__content_main_tb_h1 {
        font-size: 36px;
    }

    .banner2__content_main_tb_text {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .temp-container {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 0;
    }

    .banner2 {
        height: 450px;
        width: auto;
    }

    .banner2__nav {
        margin-bottom: 30px;
        font-size: 14px;
        z-index: 10;
    }

    .banner2__content_main_tb {
        width: 70%;
    }

    .banner2__content_main_tb_h1 {
        font-size: 30px;
    }

    .banner2__content_main_tb_text {
        font-size: 14px;
    }

    .banner2__content_main_img {
        opacity: 20%;
        position: absolute;
        width: 90%;
    }

    .vertical-image {
        background-position: bottom right;
    }
}

@media (max-width: 650px) {
    .banner2__content_main_tb {
        width: auto;
    }
}

@media (max-width: 450px) {
    .banner2 {
        height: 500px;
        width: auto;
    }

    .banner2__nav {
        margin-bottom: 30px;
        font-size: 14px;
    }

    .banner2__content_main_tb {
        align-items: center;
    }

    .banner2__content_main_tb_h1 {
        font-size: 24px;
    }

    .banner2__content_main_tb_h2 {
        font-size: 18px;
        position: unset;
    }

    .banner2__content_main_tb_text {
        font-size: 14px;
        text-align: center;
    }

    .vertical-image {
        background-position: center;
        background-size: cover;
        left: 0;
    }
}

