#second {
    padding: 0;
}

.second_content_head {
    padding: 115px 180px 40px;
    text-align: center;
    position: relative;
    margin: 0 auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.second_content_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 .second_content_head::before {
    opacity: 0.1;
}

.second_text {
    text-align: center;
    font-size: 24px;
    line-height: 32px;
    position: relative;
    z-index: 2;
}

.second_content_title {
    text-transform: uppercase;
    text-shadow: 0px 4px 4px #00000059;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.second_block {
    background-image: url(../assets/white-paper.jpg);
    width: 100%;
    background-position: center;
    background-size: contain;
    box-shadow: 0px 2px 6px 2px #00000026;
    position: relative;
    overflow: hidden;
}

body.dark .second_block {
    background-image: url(../assets/paper_head.jpg);
}

.second_block:before {
    content: "";
    position: absolute;
    bottom: 20px;
    width: 100%;
    left: 0;
    height: 2px;
    background: linear-gradient(270deg, #4D4336 0.05%, #714A27 63.49%, #8B6849 78.97%, #5E5548 98.45%);
}

.second_block:after {
    content: "";
    position: absolute;
    top: 19px;
    width: 100%;
    left: 0;
    height: 2px;
    background: linear-gradient(270deg, #4D4336 0.05%, #714A27 63.49%, #8B6849 78.97%, #5E5548 98.45%);
}

body.dark .second_block:before {
    background: linear-gradient(180deg, #877751 0%, #69582A 63.5%, #8B7336 79%, #65562F 98.5%);
}

body.dark .second_block:after {
    background: linear-gradient(180deg, #877751 0%, #69582A 63.5%, #8B7336 79%, #65562F 98.5%);
}

.second_inblock {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 50px 0 177px;
}

.second_border {
    position: relative;
    width: 100%;
    height: 100%;
}

.second_border:before {
    content: "";
    position: absolute;
    bottom: 11px;
    width: 100%;
    left: 0;
    height: 4px;
    background: linear-gradient(270deg, #4D4336 0.05%, #714A27 63.49%, #8B6849 78.97%, #5E5548 98.45%);
}

.second_border:after {
    content: "";
    position: absolute;
    top: 9px;
    width: 100%;
    left: 0;
    height: 6px;
    background: linear-gradient(270deg, #4D4336 0.05%, #714A27 63.49%, #8B6849 78.97%, #5E5548 98.45%);
}

body.dark .second_border:before {
    background: linear-gradient(180deg, #877751 0%, #69582A 63.5%, #8B7336 79%, #65562F 98.5%);
}

body.dark .second_border:after {
    background: linear-gradient(180deg, #877751 0%, #69582A 63.5%, #8B7336 79%, #65562F 98.5%);
}

.draconic {
    bottom: 0;
    position: absolute;
    right: 0;
    z-index: 2;
    display: block;
}

.luchi {
    position: absolute;
    right: 0px;
    bottom: 32px;
    z-index: 1;
    display: block;
}

.second_text_block {
    position: relative;
    max-width: 1452px;
    width: 100%;
    margin: 0 auto;
    gap: 40px;
    display: flex;
    flex-direction: column;
}

.second_title {
    position: relative;
}

.second_title::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    background: url(../assets/union2.png) center / contain no-repeat;
    height: 40px;
    width: 100%;
}

body.dark .second_title::after {
    opacity: 0.1;
}

body.dark .petlya {
    opacity: 0.1;
}

.flag {
    position: absolute;
    top: 15px;
    left: 64px;
    z-index: 2;
    display: block;
}

.second_p {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.second_title span {
    color: var(--red-70);
}

body.dark .second_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;
}

.petlya {
    position: absolute;
    display: block;
}

.petlyal {
    bottom: 45px;
    left: 20px;
}

.petlyar {
    bottom: 45px;
    right: 20px;
    transform: rotate(270deg);
}

.petlyalt {
    transform: rotate(90deg);
    top: 30px;
    left: 20px;
}

.petlyart {
    transform: rotate(190deg);
    top: 30px;
    right: 20px;
}

.second_cards {
    display: flex;
    flex-direction: row;
    gap: 18px;
    padding: 0 32px;
}

.second_card {
    padding: 8px;
    box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px 0px rgba(0, 0, 0, 0.30);
    border-radius: 20px;
    background: linear-gradient(0deg, #ffffff 0%, #ffffff 100%), linear-gradient(249deg, #f4f4f4d9 0%, #F5F5F5 85.7%);
    height: 272px;
    width: 100%;
}

body.dark .second_card {
    background: url(../assets/paper_black.jpg) center /cover no-repeat;
}

body.dark .second_card_border {
    background: #877751;
}

body.dark .second_card_body {
    background: url(../assets/paper_black.jpg) center /cover no-repeat;
}

.second_card_border {
    background: linear-gradient(180deg, #4D4336 0%, #714A27 63.5%, #AA8E75 79%, #5E5548 98.5%);
    width: 100%;
    height: 100%;
    border-radius: 18px;
    padding: 3px;
}

.second_card_body {
    border-radius: 16px;
    background: linear-gradient(0deg, #ffffff 0%, #ffffff 100%), linear-gradient(249deg, #f4f4f4d9 0%, #F5F5F5 85.7%);
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 8px;
    justify-content: center;
    font-family: Evolventa;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    position: relative;
    overflow: hidden;
}

.second_card_content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    padding: 34px 30px 30px;

}

.second_card_body:after {
    content: "";
    position: absolute;
    bottom: 4px;
    height: calc(100% - 10px);
    left: 4px;
    border: 1px dotted #997759;
    border-radius: 14px;
    width: calc(100% - 10px);
    pointer-events: none;
}

.second_card_title {
    font-family: Colus;
    font-size: 28px;
    font-weight: 400;
    line-height: 32px;
}

.second_card_content:nth-child(2) {
    top: 100%;
}

@media (max-width: 1400px) {
    .second_cards {
        flex-direction: column;
    }

    .second_card {
        height: 230px;
    }

    .second_card_content {
        padding: 20px;
    }
}

@media (max-width: 1150px) {
    .second_content_head {
        padding: 115px 32px 40px;
    }
}

@media (max-width: 920px) {

    .second_card_title {
        font-family: Colus;
        font-size: 22px;
        font-weight: 400;
        line-height: 28px;
    }

    .second_title {
        font-size: 40px;
        font-weight: 400;
        line-height: 52px;
    }

    .second_p {
        font-size: 18px;
        font-weight: 400;
        line-height: 24px;
    }

    .second_title::after {
        bottom: -40px;
        left: -32px;
        background: url(../assets/union2.png) center / cover no-repeat;
        height: 40px;
        width: 125%;
    }

}

@media (max-width: 800px) {
    .second_cards {
        padding: 0 16px;
    }

    .second_content_head {
        padding: 115px 16px 40px;
    }

    .petlya {
        display: none;
    }

    .second_content_head::before {
        background-size: cover;
        max-height: 280px;
    }
}

@media (max-width: 599px) {

    .second_title {
        font-size: 28px;
        line-height: 36px;
        text-align: center;
    }

    .second_inblock {
        padding: 80px 0px;
        align-items: flex-start;
    }

    .second_text_block {
        gap: 38px;
    }

    .second_p {
        font-size: 16px;
        line-height: 22px;
    }

    #second {
        overflow: hidden;
    }
}