#innovation {
    background: url(../assets/mramor.jpg);
    position: relative;
    box-shadow: 0px 4px 6px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px 0px rgba(0, 0, 0, 0.30), 0px 0px 6px 3px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

#innovation::after {
    content: '';
    position: absolute;
    background: linear-gradient(180deg, #0000001f 0%, #00000000 100%);
    width: 100%;
    height: 21px;
    right: 0;
    top: 0;
}

#innovation::before {
    content: '';
    position: absolute;
    background: linear-gradient(180deg, #0000001f 0%, #00000000 100%);
    width: 100%;
    height: 21px;
    right: 0;
    bottom: 0;
    transform: scaleY(-1);
}

body.dark #innovation::after,
body.dark #innovation::before {}

body.dark #innovation {
    background: url(../assets/mramor_b.jpg);
}

.innovation_wrapper {
    padding: 62px 32px 104px;
    position: relative;
    margin: 0 auto;
}

.innovation_head {
    padding: 64px 84px;
    text-align: center;
    position: relative;
    margin: 0 auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.innovation_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 .innovation_head::before {
    opacity: 0.1;
}

.innovation_title {
    text-align: center;
    text-shadow: 0 8px 12px rgba(0, 0, 0, 0.15), 0 4px 4px rgba(0, 0, 0, 0.30);
    font-family: Colus;
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: 68px;
    letter-spacing: -0.64px;
    text-transform: uppercase;
    text-shadow: 0px 4px 4px #00000059;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.innovation_title span {
    color: #AA0909;
}

body.dark .innovation_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;
}

.cards-section {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 28px;
    padding: 48px 0;
    position: relative;
}

.innov_card {
    max-width: 1452px;
    max-height: 907px;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    padding: 66px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
    background: url(../assets/white-paper.jpg);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.innov_card::after {
    content: '';
    position: absolute;
    width: calc(100% - 62px);
    height: calc(100% - 40px);
    background: url(../assets/ramka.svg) center / contain no-repeat;
    top: 19px;
    left: 31px;
    pointer-events: none;
}

body.dark .innov_card::after {
    filter: brightness(0) saturate(100%) invert(65%) sepia(5%) saturate(5837%) hue-rotate(5deg) brightness(74%) contrast(67%);
}

body.dark .innov_card {
    background: url(../assets/paper_black.jpg);
    background-size: cover;
}

.innov_card_body {
    background: linear-gradient(0deg, #00000008 0%, #00000008 100%);
    box-shadow: 0 0.833px 0 0 #FFF, 0 -0.833px 0 0 #0000001f, 0 -1.25px 0.833px 0 #ffffff1f inset, 0 -2.508px 0.502px 0 #ffffff1f inset, 0 1.254px 2.508px 0 #0000003d inset;
    display: flex;
    flex-direction: row;
    padding: 29px 38px 19px;
    justify-content: space-between;
    width: 100%;
    gap: 32px;
}

body.dark .innov_card_body {
    box-shadow: 0px -2px 4px 0px rgba(255, 255, 255, 0.25) inset, 2px 2px 4px 0px rgba(0, 0, 0, 0.25) inset;
}

.card_buttons {
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-items: center;
}

.innov_card_img {
    width: 100%;
    height: 100%;
    box-shadow: 0 0.833px 0 0 #FFF, 0 -0.833px 0 0 #0000001f, 0 -1.25px 0.833px 0 #ffffff1f inset, 0 -2.508px 0.502px 0 #ffffff1f inset, 0 1.254px 2.508px 0 #0000003d inset;
}

body.dark .innov_card_img {
    box-shadow: 0px -2px 4px 0px rgba(255, 255, 255, 0.25) inset, 2px 2px 4px 0px rgba(0, 0, 0, 0.25) inset;
}

.innov_card_img_1 {
    background: url(../assets/1.jpg) center / cover no-repeat;
}

.innov_card_img_2 {
    background: url(../assets/2.jpg) center / cover no-repeat;
}

.innov_card_img_3 {
    background: url(../assets/3.jpg) center / cover no-repeat;
}

.innov_card_img_4 {
    background: url(../assets/4.jpg) center / cover no-repeat;
}

.innov_card_img_5 {
    background: url(../assets/5.jpg) center / cover no-repeat;
}

.card_texts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 648px;
}

.card_title {
    color: #AA0909;
    font-family: Colus;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: -0.32px;
    text-transform: uppercase;
}

body.dark .card_title {
    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;
}

.card_text {
    font-size: 18px;
    line-height: 24px;
}

@media (max-width: 1020px) {

    .innov_card {
        padding: 35px;
    }

    .innov_card::after {
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        top: 10px;
        left: 10px;
    }

    .card_title {
        font-size: 24px;
        line-height: 28px;
        letter-spacing: -0.24px;
    }

    .card_text {
        font-size: 16px;
        line-height: 24px;
    }

    .innov_card_body {
        padding: 18px 24px;
    }

    .card_buttons .red_circle,
    .card_buttons .white_form_but {
        width: 195px;
        min-width: 195px;
        height: 39px;
        min-height: 39px;

        font-size: 12px;
        line-height: 18px;
    }

    .show {
        top: 10px;
    }

    .innovation_head {
        padding: 64px 0px;
    }

    .innovation_title {
        font-family: Colus;
        font-size: 48px;
        font-weight: 400;
        line-height: 52px;
        letter-spacing: -0.01em;
    }

}

@media (max-width: 800px) {

    .cards-section {
        padding: 48px 16px;
    }

    .innovation_head::before {
        background-size: cover;
    }

    .innov_card {
        padding: 26px;
    }

    .innov_card_body {
        flex-direction: column;
    }

    .card_buttons {
        flex-direction: row;
    }

    .innovation_wrapper {
        padding: 62px 0 104px;
    }
}

@media (max-width: 700px) {

    .innov_card::after {
        content: '';
        position: absolute;
        width: calc(100% - 11px);
        height: calc(100% - 11px);
        background: url(../assets/mini_ramka.svg) center / contain no-repeat;
        top: 6px;
        left: 6px;
        pointer-events: none;
    }

    .innov_card {
        aspect-ratio: 9 / 15;
        max-width: 440px;
        padding: 18px;
    }

    .card_buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 599px) {
    .innovation_title {
        font-size: 32px;
        font-weight: 400;
        line-height: 36px;
        letter-spacing: -0.01em;
    }
}

@media (max-width: 540px) {

    .card_text {
        font-size: 14px;
        line-height: 20px;
    }

    .card_buttons {
        flex-direction: column;
        align-items: start;
    }
}