#rega_files {
    padding: 112px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0px 4px 4px #00000020, 0 4px 4px 0 #00000020, 0 -4px 4px 0 #00000020;
}

.rega_files_wrapper {
    display: flex;
    flex-direction: row;
    gap: 65px;
    max-width: 1185px;
    margin: 0 auto;
    padding: 48px 0px 55px;
}

.rega_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#signup-form {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 48px;
    height: 100%;
    position: relative;
}

.files_block {
    position: relative;
    width: 100%;
    border-radius: 30px;
    background: url(../assets/white-paper.jpg);
    box-shadow: 0 1px 2px 0 #0000004d, 0 2px 6px 2px #00000026;
    padding: 16px;
}

body.dark .files_block {
    background: url(../assets/paper_black.jpg) center / cover no-repeat;
}

.files_border {
    background: linear-gradient(180deg, #4D4336 0%, #714A27 63.5%, #AA8E75 79%, #5E5548 98.5%);
    width: 100%;
    height: 100%;
    border-radius: 20px;
    padding: 3px;
}

body.dark .files_border {
    background: #877751;
}

.form_titlereg,
.block_files_h3 {
    font-family: Colus;
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -0.32px;
    text-align: center;
}

.form-group input {
    color: #9E9E9E;
    font-size: 18px;
    line-height: 24px;
    width: 100%;
    height: 56px;
    padding: 16px 32px;
    border-radius: 5px;
    background: #F5F5F5;
    box-shadow: 0 1px 4px 0 #00000040 inset;
}

body.dark .form-group input {
    background: #454545;
    color: #E0E0E0;
}

.prefiks_block {
    border-radius: 5px;
    background-color: #F5F5F5 !important;
    box-shadow: 0 1px 4px 0 #00000040 inset;
    color: #9E9E9E !important;
    font-size: 18px !important;
    line-height: 24px;
    margin: 0 6px 0 0;
}

body.dark .prefiks_block {
    background-color: #454545 !important;
}

.left_rega {
    width: 100%;
    max-width: 491px;
}

.checkbox label {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.001em;
    text-align: left;
    display: flex;
    gap: 8px;
    position: static;
    width: 100%;
    height: auto;
    cursor: pointer;
}

.form-group {
    position: relative;
    width: 100%;
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
    position: absolute;
    top: 3px;
    left: 3px;
    display: inline-block;
    content: "";
    width: 12px;
    height: 12px;
    border: #ffffff solid 2px;
    background: #aa0909;
    border-radius: 3px;
}

body.dark input[type="checkbox"]:checked::before,
body.dark input[type="radio"]:checked::before {
    background: #BD9C49;
}

input[type="checkbox"]::after,
input[type="radio"]::after {
    display: inline-block;
    content: "";
    width: 20px;
    height: 20px;
    border: 1px solid #F5F5F5;
    background: #FFFFFF;
    transition: .2s linear;
    border-radius: 3px;
}

input[type="checkbox"]:checked::after,
input[type="radio"]:checked::after {
    background: #aa0909;
}

body.dark input[type="checkbox"]:checked::after,
body.dark input[type="radio"]:checked::after {
    background: #BD9C49;
}

.checkbox label {
    font-family: Evolventa;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.001em;
    text-align: left;
    display: flex;
    gap: 12px;
    position: static;
    width: 100%;
    height: auto;
}

input[type="checkbox"] {
    width: 20px;
    height: 15px;
    min-width: 20px;
    border: none;
    background: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0;
}

.input-group {
    display: flex;
    flex-direction: row;
    width: 100%;
}

#form-signup {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.help-block {
    font-size: 14px;
    line-height: 16px;
}

.has-error .help-block {
    color: #AA0909;
}

.alert.alert-success {
    position: absolute;
    top: 32px;
    left: 32px;
    z-index: 10000;
    padding: 16px;
    background: #271d10;
    border-radius: 16px;
    max-width: 300px;
    color: #f3e9dc;
    font-family: Colus;
    font-size: 18px;
    font-style: normal;
    line-height: 30px;
    letter-spacing: -0.192px;
    box-shadow: 0px 0px 5px 5px #eed18763;
}

.block_files {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 40px;
    border-radius: 18px;
    background: url(../assets/white-paper.jpg);
    width: 100%;
    height: 100%;
    position: relative;
}

body.dark .block_files {
    background: url(../assets/paper_black.jpg) center / cover no-repeat;
}

.block_files: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;
}

.files_name {
    color: #AA0909;
    font-family: Jost;
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: -0.28px;
}

body.dark .files_name {
    background: linear-gradient(180deg, #BD9C49 0%, #E6B843 63.5%, #EECE7F 79%, #8C7845 98.5%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.files_text {
    font-size: 18px;
    line-height: 24px;
}

.files_between {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    color: #928158;
    font-family: Colus;
    font-size: 18px;
    line-height: 110%;
}

.files_between_line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #685C3E 0%, #685c3e00 100%);
}

.block_files_download {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.files_title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.files_download_part {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.block_files_content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.video_tutorial {
    border: 1px solid #ACACAC;
    background: #EDEDED;
    display: flex;
    padding: 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 100%;
}

body.dark .video_tutorial {
    background: #1e1e1e;
}

#form-signup .gold_button {
    width: 100%;
}

.video_popup_wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #141721ad;
    top: 0;
    left: 0;
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: -1;
    visibility: hidden;
    transition: all 0.6s ease;
}

.mb-16 a {
    color: #AA0909;
}

.video_popup_body {
    width: 100%;
    position: relative;
    padding: 32px;
    max-width: 800px;
    aspect-ratio: 16 /9;
}

.video_popup_body iframe {
    width: 100%;
    height: 100%;
}

.video_popup_close_wrapper {
    position: absolute;
    right: 32px;
    top: -30px;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #F7E8B232;
}

.video_popup_close {
    background: url(../assets/close.svg) center / cover no-repeat;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(98%) sepia(10%) saturate(373%) hue-rotate(220deg) brightness(117%) contrast(81%);
}

.video_popup_close_wrapper:hover .video_popup_close {
    transform: scale(1.2);
}

.rega_files_info {
    border: 1px solid #f7e8b23d;
    display: flex;
    max-width: 1191px;
    width: 100%;
    padding: 32px;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin: 0 auto;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.6s ease;
}

.rega_files_info.visible {
    transform: translateY(0);
    opacity: 1;
}

.rega_files_info_img {
    width: 24px;
    min-width: 24px;
    height: 24px;
    background: url(../assets/info.svg) center / cover no-repeat;
}

.rega_files_info_text {
    color: #FFF6D4;
    font-size: 16px;
    line-height: 130%;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none !important;
    z-index: 1000;
    gap: 0 !important;
    border-radius: 30px !important;
    background: linear-gradient(0deg, #FFF 0%, #FFF 100%), linear-gradient(180deg, #E0E0E0 0%, rgba(224, 224, 224, 0.85) 100%) !important;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 2px 6px 2px rgba(0, 0, 0, 0.15) !important;
    padding: 16px !important;
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    width: 620px;
    height: fit-content;
}

body.dark .popup {
    background: linear-gradient(180deg, #252525 0%, #141414 100%) !important;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 2px 6px 2px rgba(0, 0, 0, 0.15) !important;
}

.popup_body {
    border-radius: 20px;
    border: 3px solid #997759;
    padding: 40px;
    position: relative;
    background: linear-gradient(0deg, #FFF 0%, #FFF 100%), linear-gradient(180deg, #E0E0E0 0%, rgba(224, 224, 224, 0.85) 100%);
    width: 100%;
    height: 100%;
}

body.dark .popup_body {
    background: linear-gradient(180deg, #252525 0%, #141414 100%);
    border: 3px solid #877751;
}

.popup_body: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;
}

.popup_text {
    font-family: Colus;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: -0.32px;
    padding-bottom: 8px;
    max-width: 410px;
}

.popup_more {
    padding-bottom: 67px;
    max-width: 290px;
    line-height: 24px;
    font-size: 18px;
}

.sova {
    position: absolute;
    right: -20px;
    bottom: 0;
    z-index: 6;
    pointer-events: none;
}

body.dark .popup_text 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;
}

.popup_text span {
    color: #AA0909;
}

.butstyle {
    margin: 0 !important;
    position: relative !important;
}

.mt-16 {
    margin-top: 16px !important;
}

.bonuses {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 980px) {

    #rega_files {
        padding: 100px 16px;
        position: relative;
    }

    .main_head {
        position: relative;
        z-index: 4;
        padding: 0;
    }

    .left_rega {
        max-width: 100%;
    }

    .rega_files_wrapper {
        display: flex;
        flex-direction: column;
        padding: 0 0 36px;
    }

    .form_titlereg {
        font-size: 32px;
        line-height: 36px;
        letter-spacing: -0.32px;
    }

    #signup-form {
        padding: 30px 0;
        gap: 20px;
    }

    .files_block {
        border-radius: 20px;
        padding: 8px;
    }

    .block_files {
        gap: 32px;
        padding: 22px;
        border-radius: 18px;
    }

    .files_text {
        font-size: 16px;
        line-height: 20px;
    }

    .files_name {
        font-size: 24px;
        line-height: 28px;
    }
}

@media (max-width: 800px) {
    #rega_files {
        padding: 100px 0;
    }

    .rega_files_wrapper {
        padding: 0 16px 36px;
    }
}