#second {
    padding: 0;
    overflow: hidden;
}

#second.is-visible .left_hand {
    transform: translateX(-100px);
    opacity: 0;
    transition-delay: 0.3s;
}

#second.is-visible .right_hand {
    transform: translateX(100px);
    opacity: 0;
    transition-delay: 0.3s;
}

#second.is-visible .second_content_head {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.4s;
}

#second.is-visible .second_column {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.9s;
}

.hand {
    position: absolute;
    z-index: 30;
    pointer-events: none;
    transition-delay: 0.3s;
}

.left_hand {
    left: -50px;
    top: 24px;
    opacity: 1;
    transition: transform 0.7s ease, opacity 0.7s ease;
    will-change: transform, opacity;
}

.right_hand {
    right: -80px;
    top: -20px;
    opacity: 1;
    transition: transform 0.7s ease, opacity 0.7s ease;
    will-change: transform, opacity;
}

.left_hand.is-visible {
    transform: translateX(-100%);
    opacity: 0;
}

.right_hand.is-visible {
    transform: translateX(100%);
    opacity: 0;
}

.column {
    position: absolute;
    top: 103px;
    width: 275px;
    height: 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    transform: translateY(160px);
    opacity: 0;
    transition: all 1.6s ease;
    transition-delay: 0.6s;
}

.column_r {
    right: 0;
}

.column_l {
    left: 0;
}

.column_top {
    background-image: url(../assets/column_top.png);
    height: 424px;
}

.column_body {
    background-image: url(../assets/column_body.png);
    height: 100%;
}

.second_content_head {
    padding: 62px 180px 22px;
    text-align: center;
    position: relative;
    margin: 0 auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.6s ease, opacity 0.6s ease;
    will-change: transform, opacity;
}

.second_content_head::before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 25px;
    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;
}

.second_content_title {
    text-transform: uppercase;
    text-shadow: 0 4px 8px #00000026, 0 1px 3px #0000004d;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.second_block {
    width: 100%;
    background-position: center;
    background-size: contain;
    box-shadow: 0px 2px 6px 2px #00000026;
    position: relative;
    overflow: hidden;
}

.second_show {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 20;
    transition: all 0.3s ease;
}

.second_show:hover {
    transform: translate(-50%, 0) scale(1.01) !important;

}

.second_cards.is-visible,
.column.is-visible {
    transform: translateY(0);
    opacity: 1;
}


.second_show.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.second_cards.is-open {
    max-height: 1090px;
}

.second_inblock.no-after::after {
    background: none;
}


.second_inblock {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 50px 0 0;
    justify-content: center;
}

.second_inblock::after {
    content: '';
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    height: 202px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%);
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.second_border {
    position: relative;
    width: 100%;
    height: 100%;
}

.second_text_block {
    position: relative;
    max-width: 1248px;
    width: 100%;
    margin: 0 auto;
    gap: 40px;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.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%;
}

.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);
}

.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_card_text {
    font-size: 16px;
    line-height: 24px;
}

.second_column {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.6s ease, opacity 0.6s ease;
    will-change: transform, opacity;
}

.second_cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 32px;
    padding: 0 32px 112px;
    align-items: center;
    justify-content: center;
    max-height: 581px;
    overflow: hidden;
    transform: translateY(160px);
    opacity: 0;
    will-change: transform, opacity;
    transition:
        transform 0.6s ease 1s, 
        opacity 0.6s ease 1s,  
        max-height 0.6s ease;   
}

#second.is-visible .second_cards {
    transform: translateY(0);
    opacity: 1;
}


.second_card {
    padding: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    background: linear-gradient(0deg, #ffffff 0%, #ffffff 100%), linear-gradient(249deg, #f4f4f4d9 0%, #F5F5F5 85.7%);
    max-width: 272px;
    width: 100%;
    height: 230px;
}

.second_card:nth-child(1),
.second_card:nth-child(2),
.second_card:nth-child(3) {
    max-width: 373px;
    height: 198px;
}

.second_card:nth-child(1) .second_card_body,
.second_card:nth-child(2) .second_card_body,
.second_card:nth-child(3) .second_card_body {
    padding: 24px;
}

.second_card:nth-child(1) .second_card_title,
.second_card:nth-child(2) .second_card_title,
.second_card:nth-child(3) .second_card_title {
    font-size: 36px;
}

.second_card_border {
    background: linear-gradient(180deg, #4D4336 0%, #714A27 63.5%, #AA8E75 79%, #5E5548 98.5%);
    width: 100%;
    height: 100%;
    border-radius: 12px;
    padding: 3px;
}

.second_card_body {
    border-radius: 10px;
    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: 24px;
    font-family: Evolventa;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    position: relative;
    overflow: hidden;
    justify-content: space-between;
}

.second_card_body:after {
    content: "";
    position: absolute;
    bottom: 4px;
    height: calc(100% - 10px);
    left: 4px;
    border: 1px dotted #997759;
    border-radius: 6px;
    width: calc(100% - 10px);
    pointer-events: none;
}

.second_card_title {
    font-family: Colus;
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -0.36px;
    padding: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.second_card_img {
    width: 40px;
    height: 40px;
    aspect-ratio: 1/1;
    border-radius: 4px;
}

@media (max-width: 1680px) {
    .column {
        display: none;
    }
}

@media (max-width: 1260px) {

    .second_card:nth-child(1),
    .second_card:nth-child(2),
    .second_card:nth-child(3) {
        max-width: 283px;
        height: 198px;
    }

    .second_card {
        max-width: 206px;
        height: 162px;
    }

    .second_cards {
        max-width: 980px;
        width: 100%;
        margin: 0 auto;
        gap: 24px;
        max-height: 486px;
    }

    .second_card_title {
        font-size: 24px;
        line-height: 130%;
        letter-spacing: -0.24px;
    }

    .second_card_img {
        width: 24px;
        height: 24px;
        aspect-ratio: 1/1;
        border-radius: 4px;
    }

    .second_card_body {
        padding: 20px 20px 20px 20px;
    }

    .second_card_text {
        font-size: 13px;
        line-height: 130%;
    }

    .second_card:nth-child(1) .second_card_img,
    .second_card:nth-child(2) .second_card_img,
    .second_card:nth-child(3) .second_card_img {
        width: 40px;
        height: 40px;
        aspect-ratio: 1/1;
    }

    .second_card:nth-child(1) .second_card_text,
    .second_card:nth-child(2) .second_card_text,
    .second_card:nth-child(3) .second_card_text {
        font-size: 14px;
    }
}

@media (max-width: 970px) {

    .left_hand {
        left: 6px;
        top: 68px;
        max-width: 300px;
    }

    .right_hand {
        right: 0px;
        top: 36px;
        max-width: 300px;
    }

    .second_cards.is-open {
        max-height: 1220px;
    }

    .second_card:nth-child(1),
    .second_card:nth-child(2),
    .second_card:nth-child(3),
    .second_card {
        max-width: 167px;
        height: 131px;
        padding: 4px;
        border-radius: 8px;
    }

    .second_card_border {
        border-radius: 6px;
        padding: 1.5px;
    }

    .second_card_body {
        border-radius: 4px;
        padding: 40px 30px 30px 30px;
    }

    .second_card:nth-child(1) .second_card_title,
    .second_card:nth-child(2) .second_card_title,
    .second_card:nth-child(3) .second_card_title,
    .second_card_title {
        font-size: 20px;
    }

    .second_card:nth-child(1) .second_card_img,
    .second_card:nth-child(2) .second_card_img,
    .second_card:nth-child(3) .second_card_img,
    .second_card_img {
        width: 32px;
        height: 32px;
    }

    .second_card:nth-child(1) .second_card_text,
    .second_card:nth-child(2) .second_card_text,
    .second_card:nth-child(3) .second_card_text {
        font-size: 13px;
    }

    .second_cards {
        gap: 8px;
        max-height: 486px;
    }

    .second_text_block {
        gap: 26px;
    }

    .second_card:nth-child(1) .second_card_body,
    .second_card:nth-child(2) .second_card_body,
    .second_card:nth-child(3) .second_card_body,
    .second_card_body {
        padding: 12px;
    }

    .second_card_title {
        gap: 8px;
    }
}

@media (max-width: 810px) {
    .second_content_head {
        padding: 62px 32px 22px;

    }
}

@media (max-width: 579px) {

    .left_hand {
        left: -60px;
        top: 105px;
        max-width: 220px;
    }

    .right_hand {
        right: -57px;
        top: 95px;
        max-width: 220px;
    }

    .second_card:nth-child(1) {
        width: 100%;
        max-width: 341px;
        height: 131px;
        padding: 4px;
        border-radius: 8px;
    }
}

@media (max-width: 500px) {
    .second_content_head::before {
        background-size: cover;
    }

    .second_content_head {
        padding: 62px 16px 22px;
    }

    .second_cards {
        padding: 0 16px 112px;
    }

    .second_card_body:after {
        display: none;
    }
}