#boxes {
    position: relative;
    z-index: 2;
    background: url(../assets/bg_boxes.png) no-repeat center;
    background-size: 100% 100%;
    padding: 260px 0 320px 0;
}

#boxes::before {
    display: block;
    content: "";
    width: 100%;
    height: 212px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(19, 0, 36, 0.00) 0%, #130024 100%);
}

.boxes_content {
    padding: 0 0 80px;
    max-width: 930px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.boxes_pre_title {
    text-align: center;
    font-family: Jost;
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

.boxes_title {
    color: #FF0080;
    text-shadow: 0 0 34px rgba(255, 0, 128, 0.42);
}

.boxes_after_title {
    text-align: center;
    max-width: 800px;
}

.boxes_grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    max-width: 1336px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.boxes_box {
    display: flex;
    width: 424px;
    height: 744px;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 40px;
    position: relative;
    cursor: pointer;
    transition: all 0.5s ease;
    overflow: hidden;
}

.skidka {
    position: absolute;
    display: flex;
    padding: 6px 12px;
    align-items: center;
    right: 20px;
    top: 24.805px;
    border-radius: 42px;
    background: #F06;
    color: #000;
    font-family: Jost;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -0.18px;
    text-transform: uppercase;
}

.important {
    display: flex;
    padding: 6px 12px;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 20px;
    top: 20px;
    border-radius: 42px;
    border: 1px solid #E2D201;
    background: #e2d2011f;
    color: #E2D201;
    text-align: center;
    font-family: Jost;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -0.18px;
    text-transform: uppercase;
}

.gradient_ball {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    pointer-events: none;
    top: -39%;
}

.box_first .gradient_ball {
    background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.00) 100%);
}

.box_second .gradient_ball {
    background: radial-gradient(50% 50% at 50% 50%, rgba(255, 0, 238, 0.16) 0%, rgba(255, 0, 238, 0.00) 100%);
}

.box_third .gradient_ball {
    background: radial-gradient(50% 50% at 50% 50%, rgba(255, 238, 0, 0.16) 0%, rgba(255, 238, 0, 0.00) 100%);
}

.box_first {
    border-radius: 12px;
    border: 3px solid #1B1D1F;
    background-image: url(../assets/box1.png), url(../assets/card1.png);
    background-color: #0A1116;
    background-repeat: no-repeat;
    background-position: top center, center;
}

.box_second {
    border-radius: 12px;
    border: 3px solid #55007D;
    background: url(../assets/box2.png), url(../assets/card2.png);
    background-color: #170A22;
    background-repeat: no-repeat;
    background-position: top center, center;
}

.box_third {
    border-radius: 12px;
    border: 3px solid #423100;
    background: url(../assets/box3.png), url(../assets/card3.png);
    background-color: #170F06;
    background-repeat: no-repeat;
    background-position: top center, center;
}

.box_first:hover {
    border: 3px solid #72FFBB;
}

.box_second:hover {
    border: 3px solid #C448FF;
}

.box_third:hover {
    border: 3px solid #b98a00;
}

.boxes_first_block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.sunduk {
    width: 148px;
    height: 142px;
}

.sunduk_name {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sunduk_prename {
    text-align: center;
    font-family: Jost;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: 0.72px;
    text-transform: uppercase;
}

.sunduk_title {
    text-align: center;
    font-family: Jost;
    font-size: 42px;
    font-style: normal;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: 1.26px;
    text-transform: uppercase;
}

.box_first .sunduk_title {
    color: #72FFBB;
}

.box_second .sunduk_title {
    color: #DF28FF;
}

.box_third .sunduk_title {
    color: #FFEE00;
}

.boxes_second_block {
    border-radius: 12.6px;
    border: 2.1px solid #24132C;
    padding: 24px 24px 46px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 17px 11px;
    position: relative;
    transition: all 0.5s ease;
}

.box_first .boxes_second_block {
    border: 2.1px solid #1C1C1C;
}

.box_second .boxes_second_block {
    border: 2.1px solid #24132C;
}

.box_third .boxes_second_block {
    border: 2px solid #423100;
}

.box_first .boxes_second_block:hover {
    border: 2.1px solid #817f7f;
}

.box_second .boxes_second_block:hover {
    border: 2.1px solid #C448FF;
}

.box_third .boxes_second_block:hover {
    border: 2px solid #b98a00;
}

.gradient_text {
    position: absolute;
    bottom: 0;
    border-radius: 12.6px;
    text-align: center;
    font-family: Evolventa Bold;
    font-size: 18.9px;
    font-style: normal;
    line-height: 25.2px;
    width: 100%;
    height: 100%;
    padding-bottom: 19px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s linear;
}

.boxes_second_block:hover .gradient_text {
    transform: translateY(-5px);
}

.box_first .gradient_text {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.00) 0%, #141414 100%);
}

.box_second .gradient_text {
    background: linear-gradient(180deg, rgba(23, 10, 34, 0.00) 0%, #170A22 100%);
}

.box_third .gradient_text {
    background: linear-gradient(180deg, rgba(23, 15, 6, 0.00) 0%, #170F06 100%);
}

.boxes_second_block img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.boxes_third_block {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: center;
}

.boxes_price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 3px 0 0;
}

.boxes_new {
    color: #D800FF;
    text-align: center;
    font-family: Evolventa Bold;
    font-size: 42px;
    font-style: normal;
    line-height: 100%;
}

.boxes_old {
    color: #ffffff52;
    text-align: center;
    font-family: Evolventa Bold;
    font-size: 26px;
    font-style: normal;
    line-height: 100%;
    text-decoration-line: line-through;
}

.boxes_popup {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 0, 32, 0.80);
    backdrop-filter: blur(7px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.boxes_popup_body {
    max-width: 1225px;
    max-height: 744px;
    gap: 32px;
    display: none;
    margin: auto;
    padding: 20px;
}

.for_scroll {
    border-radius: 32px;
    padding: 0 5px;
    width: 728px;
    height: 744px;
    position: relative;
}

.boxes_popup_close img {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(2%) hue-rotate(231deg) brightness(109%) contrast(101%);
}

.boxes_popup_close {
    position: absolute;
    right: -12px;
    top: -12px;
    display: flex;
    padding: 10px;
    align-items: center;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

#box_first .boxes_popup_close {
    border: 3px solid #1C1C1C;
    background: #141414;
}

#box_second .boxes_popup_close {
    border: 3px solid #420F5A;
    background: #170A22;
}

#box_third .boxes_popup_close {
    border: 3px solid #423100;
    background: #170F06;
}

.boxes_popup_left {
    display: flex;
    padding: 40px 35px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    overflow-y: auto;
    gap: 32px;
    width: 100%;
    height: 100%;
}

#box_first .for_scroll {
    border: 3px solid #1C1C1C;
    background: #141414;
}

#box_second .for_scroll {
    border: 3px solid #420F5A;
    background: #170A22;
}

#box_third .for_scroll {
    border: 3px solid #423100;
    background: #170F06;
}

.boxes_popup_one {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    align-self: stretch;
    max-width: 308px;
}

.boxes_popup_title1,
.boxes_popup_title2,
.boxes_popup_title3 {
    text-align: left;
    font-family: Evolventa Bold;
    font-size: 22px;
    font-style: normal;
    line-height: normal;
    letter-spacing: 0.66px;
}

#box_third .boxes_popup_one {
    max-width: 100%;
}

.boxes_popup_title1 {
    color: #FFBB00;
}

.boxes_popup_title2 {
    color: #C300FF;
}

.boxes_popup_title3 {
    color: #00FFB2;
}

.boxes_popup_in,
.boxes_popup_two {
    display: flex;
    padding: 16px;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

#box_first .boxes_popup_in,
#box_first .boxes_popup_two {
    border-radius: 12px;
    background: #1C1C1C;
}

#box_second .boxes_popup_in,
#box_second .boxes_popup_two {
    border-radius: 12px;
    background: #1B1025;
}

#box_third .boxes_popup_in,
#box_third .boxes_popup_two {
    background: inherit;
}

.boxes_popup_two {
    max-width: 308px;
}

.popup_item_row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.popup_item_row img {
    width: 32px;
    height: 32px;
}

.popup_item_name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popup_item_name p:nth-child(1) {
    color: #FFF;
    font-family: Evolventa Bold;
    font-size: 16px;
    font-style: normal;
    line-height: 20px;
}

.popup_item_name p:nth-child(2) {
    color: #ffffff52;
    font-family: Evolventa Bold;
    font-size: 14px;
    font-style: normal;
    line-height: 15px;
}

.popup_items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.boxes_second_empty {
    border: none;
    height: 100%;
}

.boxes_popup_left::-webkit-scrollbar {
    width: 3px;
}

.boxes_popup_left::-webkit-scrollbar-track {
    background: none;
}

.boxes_popup_left::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 20px;
}

.boxes_popup_left {
    scrollbar-width: thin;
    scrollbar-color: #262626 transparent;
}

.boxes_box .btn {
    border-radius: 4px;
}

.box_first .btn {
    border: 2px solid #125246;
    background: linear-gradient(180deg, #0A2220 0%, #0E3931 100%);
    color: #00BE6C;
}

.box_first .btn:hover {
    background: linear-gradient(180deg, #0E302C 0%, #165347 100%);
}

.box_second .btn {
    border: 2px solid #7D1D8E;
    background: linear-gradient(180deg, #170A22 0%, #250E39 100%);
    color: #D800FF;
}

.box_third .btn {
    border: 2px solid #766718;
    background: linear-gradient(180deg, #22200A 0%, #39320E 100%);
    color: #FFAE00;
}

.box_third .btn:hover {
    background: linear-gradient(180deg, #2E2A0D 0%, #4A4113 100%);
}

.box_first .boxes_new {
    color: #00FFD0;
}

.box_second .boxes_new {
    color: #DD1CFF;
}

.box_third .boxes_new {
    color: #FFAE00;
}

@media (max-width: 1920px) {
    #boxes {
        background-size: auto 100%;
    }
}

@media (max-width: 1400px) {
    .boxes_popup_body .boxes_box {
        display: none;
    }

    .boxes_box {
        width: 343px;
        height: 618px;
        padding: 40px 22px;
        margin: 0 auto;
        border-radius: 22px;
    }

    .sunduk {
        width: 106px;
        height: 106px;
    }

    .sunduk img {
        width: 106px;
    }

    .sunduk_prename {
        font-size: 18px;
        line-height: 20px;
        letter-spacing: 0.54px;
    }

    .sunduk_title {
        font-size: 30px;
        line-height: 26px;
        letter-spacing: 0.9px;
    }

    .boxes_second_block img {
        width: 36px;
        height: 36px;
        border-radius: 2px;
    }

    .boxes_second_block {
        border-radius: 12.6px;
        padding: 16px 16px 50px;
        width: 100%;
        gap: 17px 9px;
    }

    .boxes_new {
        font-size: 36px;
        line-height: 100%;
    }

    .boxes_old {
        font-size: 22px;
        font-style: normal;
        line-height: 100%;
    }

    .boxes_price {
        padding: 4px 0px 0;
    }

    .boxes_third_block {
        gap: 13px;
    }

    .skidka {
        top: 21px;
    }
}

@media (max-width: 1200px) {
    .boxes_grid {
        gap: 16px;
        padding: 0 16px 147px;
    }
}

@media (max-width: 1100px) {

    .boxes_grid {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 920px) {
    #boxes {
        padding: 192px 0;
    }

    .boxes_lampochki_up {
        top: -5px;
    }

    .boxes_grid {
        gap: 32px;
        padding: 0 16px;
    }

    .boxes_pre_title {
        font-size: 16px;
        line-height: 36px;
        letter-spacing: 1.6px;
    }

    .boxes_content {
        padding: 112px 0 64px;
        max-width: 400px;
        gap: 8px;
    }

    .boxes_title {
        font-size: 32px !important;
        font-style: normal;
        line-height: 36px !important;
        letter-spacing: -0.32px;
    }

    .boxes_after_title {
        text-align: center;
        max-width: 355px;
        font-size: 18px;
        line-height: 24px;
    }
}

@media (max-width: 1366px) {
    .for_scroll {
        max-height: 500px;
    }
}

@media (max-width: 770px) {
    #box_second .boxes_popup_in, #box_second .boxes_popup_two {
        border: 3px solid #55007D !important;
    }

    #box_third .for_scroll {
        background: #170F06 !important;
        padding: 16px 0 16px 16px;
        border-radius: 12px;
        border: 3px solid #423100 !important;
    }

    .boxes_popup_body {
        max-width: 100%;
        max-height: 500px;
    }

    .boxes_popup_left {
        flex-direction: column;
        gap: 16px;
        padding: 0;
        border: none !important;
        background: inherit !important;
        border-radius: 12px;
        max-height: 500px;
    }

    .for_scroll {
        max-width: max-content;
        border: none !important;
        background: inherit !important;
        padding: 0;
        width: 100%;
    }

    .boxes_popup_one {
        max-width: 100%;
        gap: 16px;
    }

    .boxes_popup_two {
        max-width: 100%;
    }
}