#brend {
    padding: 112px 0;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
}

.brend_head {
    padding: 74px 84px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.brend_head::before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    background-image: url(../assets/long.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

body.dark .brend_head::before {
    opacity: 0.1;
}

.brend_title {
    text-transform: uppercase;
    text-shadow: 0px 4px 4px #00000059;
    position: relative;
    z-index: 2;
}

.brend_title span {
    color: var(--red-70);
}

body.dark .brend_title span {
    color: #BD9C49;
    background: linear-gradient(180deg, #FFE5A3 0%, #CBA74C 63.5%, #EECE7F 79%, #8C7845 98.5%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: none;
}

.brend_cards {
    padding: 13px 64px 112px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 32px;
    justify-content: center;
    cursor: pointer;
}

.brend_card {
    height: 720px;
    padding: 16px;
    border-radius: 30px;
    background: linear-gradient(249.17deg, rgba(244, 244, 244, 0.85) 0%, #F5F5F5 85.7%);
    box-shadow: 0px 2px 6px 2px #00000026;
    transition: all 0.3s cubic-bezier(1, 0.31, 0.03, 0.75);
}

body.dark .brend_card {
    background: url(../assets/paper_black.jpg);
    background-size: cover;
}

body.dark .brend_card_border {
    background: #877751;
}

body.dark .brend_incard {
    background: url(../assets/paper_black.jpg);
    background-size: cover;
}

.brend_card:hover {
    box-shadow: 0px 2px 9px 6px #00000026;
}

.brend_card_close {
    max-width: 424px;
    width: 100%;
}

.brend_card_open {
    max-width: 880px;
    width: 100%;
}

.brend_card_border {
    background: linear-gradient(180deg, #4D4336 0%, #714A27 63.5%, #AA8E75 79%, #5E5548 98.5%);
    width: 100%;
    height: 100%;
    border-radius: 20px;
    padding: 3px;
}

.brend_card_open .brend_incard {
    justify-content: space-between;
}

.brend_incard {
    border-radius: 17px;
    background: linear-gradient(249.17deg, #f4f4f4 0%, #F5F5F5 85.7%);
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.brend_incard:after {
    content: "";
    position: absolute;
    bottom: 4px;
    height: calc(100% - 10px);
    left: 4px;
    border: 1px dotted #997759;
    border-radius: 16px;
    width: calc(100% - 10px);
    pointer-events: none;
}

.brend_bottom {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 78.5%, #FFFFFF 100%);
    width: 100%;
    border-radius: 17px;
    z-index: 3;
    height: 30%;
    min-height: 30%;
    display: flex;
    align-items: flex-end;
    position: absolute;
    bottom: 0;
}

body.dark .brend_bottom {
    background: linear-gradient(180deg, rgb(5 5 5 / 0%) 0%, #1c1c1c 100%);
}

.brend_card_close .brend_top .brend_top_text {
    opacity: 0;
    visibility: hidden;
}

.brend_card_open .brend_top .brend_top_text {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.3s;
}


.brend_top {
    display: flex;
    max-width: 60%;
    padding: 48px 0 0 45px;
    max-height: 55%;
    flex-direction: column;
}

.brend_top_text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.1s ease;

}

.brend_top_text p {
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    text-align: left;
}

.brend_bottom h3 {
    font-family: Colus;
    font-size: 32px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: -0.01em;
    text-align: left;
    text-transform: uppercase;
    padding: 0 18px 56px 45px;
    transition: text-align 0.3s ease;
    transition: padding 0.4s ease;
    height: 83px;
}

body.dark .brend_bottom h3 {
    background: linear-gradient(180deg, #D3A940 0%, #FCC63D 50%, #D3A940 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brend_card_close .brend_bottom h3 {
    text-align: center;
    width: 100%;
    padding: 0 18px 20px 18px;
}

.brend_pic {
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
    filter: brightness(1.2);
}

.brend_divider {
    background-image: url(../assets/beforemus.png);
    width: 100%;
    height: 56px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

body.dark .brend_divider {
    opacity: 0.2;
}

.brend_title_top {
    display: none;
}

@media (max-width: 1800px) {

    .brend_card_close {
        max-width: 303px;
    }

    .brend_card {
        height: 580px;
    }

    .brend_bottom h3 {
        font-size: 24px;
        line-height: 28px;
        padding: 0 0px 32px 28px;
        height: 66px;
    }

    .brend_pic {
        max-height: 542px;
        object-fit: cover;
        right: -30px;
    }

    .brend_card_close .brend_bottom h3 {
        padding: 0 0px 10px 0px;
    }

    .brend_pic_first {
        right: -55px;
    }

    .brend_top {
        padding: 48px 0 0 28px;
    }
}

@media (max-width: 1415px) {
    .brend_head {
        background-size: cover;
    }
}

@media (max-width: 1350px) {

    .brend_head::before {
        background-size: cover;
    }

    #brend {
        padding: 40px 0;
    }
}

@media (max-width: 920px) {
    #brend {
        padding: 40px 0;
    }

    .brend_cards {
        padding: 24px 32px 112px;
    }
}

@media (max-width: 1375px) {
    .brend_cards {
        flex-direction: column;
        align-items: center;
    }

    .brend_card_close .brend_top .brend_top_text {
        opacity: 1;
        visibility: visible;
    }

    .brend_title {
        font-size: 40px;
    }

    .brend_card_close {
        max-width: 880px;
    }

    .brend_title_top {
        display: block;
        padding-bottom: 32px;
    }

    .brend_title_top h3 {
        font-family: Colus;
        font-size: 24px;
        font-weight: 400;
        line-height: 28px;
        letter-spacing: -0.008em;
        text-align: left;
    }

    .brend_bottom h3 {
        display: none;
    }

    .brend_card_close .brend_top {
        opacity: 1;
    }
}

@media (max-width: 720px) {
    .brend_pic {
        max-height: 542px;
        object-fit: cover;
        right: -110px;
    }

    .brend_pic_first {
        right: -102px;
    }

    .brend_top {
        max-width: 70%;
        max-height: 100%;
    }

    .brend_top_text {
        gap: 8px;
    }
}

@media (max-width: 599px) {
    .brend_pic {
        display: none;
    }

    .brend_top {
        max-width: 100%;
        padding: 30px;
    }

    .brend_card {
        height: fit-content;
    }

    .brend_bottom {
        display: none;
    }

    .brend_head {
        padding: 64px 16px 49px;
    }

    .brend_cards {
        padding: 13px 16px 88px;
    }

    .brend_top_text p {
        font-size: 14px;
        line-height: 20px;
    }

    .brend_title_top {
        display: block;
        padding-bottom: 16px;
    }

    .brend_top_text {
        gap: 16px;
    }

    .brend_divider {
        background-size: cover;
    }

    #brend {
        padding: 40px 0 0;
    }
}