
.headerBlock {
    background: linear-gradient(90deg, #EDBCD0 0%, #D4CBE1 50.73%, #C0D7EF 98.61%);
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: flex-start;
    padding: 50px;
    max-width: 920px;
    margin: 0 auto;
}

.headerBlock .h1 {
    color: #4D3651;
    text-align: start;
    font-family: PT Sans, Arial, sans-serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: 50px;
    letter-spacing: 1.28px;
    max-width: 883px;
}

.headerBlock p {
    color: #4D3651;
    text-align: start;
    font-family: PT Sans, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 0;
}

.headerBlock a.headerBlock_readPdf {
    color: #FFF !important;
    font-family: PT Sans, Arial, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-radius: 5px;
    background: #8BB8E8;
    padding: 16px 92px;
    text-decoration: none;
}

.modal_formContent * {
    margin: 0;
    padding: 0;
}

.taxReference p {
    font-size: 18px;
    line-height: 29px;
}

.modal_formContent p {
    margin-bottom: 20px;
}

.taxReference {
    box-sizing: border-box;
    max-width: 920px;
    background-color: white;
    box-shadow: 0px 0px 50px 0px #926EAB33;
    border-radius: 10px;
    overflow: hidden;
}

.modal_formContent {
    margin: 0 auto 70px auto;
    padding: 50px;
    border: 0!important;
}

.taxReference .taxReference_term {
    font-weight: 700;
    margin-bottom: 8px;
}

.taxReference h2 {
    margin: 70px 0 25px;
    font-size: 22px;
    line-height: 29px;
    font-weight: 700;
}

.taxReference fieldset {
    border: 0;
    border-bottom: 1px solid #D9D9D9;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.taxReference .taxReference_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
}

.taxReference .taxReference_grid-item {
    display: grid;
}

.taxReference .taxReference_grid-item label {
    color: #AFA5B1;
    font-size: 12px;
    line-height: 15px;
}

.taxReference .taxReference_grid-item input {
    height: 50px;
    border: 1px solid #8BB8E8;
    padding: 15px 21px;
}

.taxReference p.taxpayer,
.taxReference label[for="taxes-file"] {
    font-size: 12px;
    line-height: 16px;
    color: #A7A7A7;
    margin-bottom: 0;
}

.year_group {
    margin-bottom: 7px;
}

.year_group input {
    display: none;
}

.year_group input + label {
    position: relative;
    display: flex;
    align-items: center;
    color: #000;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    line-height: 28px;
    gap: 14px;
}

.year_group input + label:before {
    content: '';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #4D3651;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto;
}

.year_group input:checked + label::before {
    background-image: url(/local/templates/main/images/label.png);
}

input[type="file"] {
    display: none;
}

.taxReference_file {
    padding-top: 15px;
}

.taxReference_file p {
    font-size: 12px;
    line-height: 15px;
    color: #AFA5B1;
}

.taxReference_file_border {
    border: 1px dashed #8BB8E8;
    padding: 0 11px;
}

.taxReference_file label {
    position: relative;
}

.taxReference_file label[for="taxes-file"]:after {
    content: '';
    display: block;
    width: 100%;
    height: 50px;
}

.taxReference_file label[for="taxes-file"]:before {
    display: block;
    content: 'Прикрепить';
    text-decoration: underline;
    font-size: 12px;
    line-height: 15px;
    color: #AFA5B1;
    position: absolute;
    left: 0;
    bottom: 17.5px;
}

.taxReference_file p {
    display: flex;
    align-items: center;
    gap: 10px;
}

button.removeItem {
    width: 10px;
    height: 10px;
    border: unset;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: unset;
    background-image: url(/local/templates/main/images/remove.png);
    cursor: pointer;
}

.taxReference select {
    background-color: #F6F6F6;
    padding: 15px 21px;
    border: unset;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 15px;
    margin-bottom: 20px;
}

.sity_adress {
    display: none;
}

.sity_adress.active {
    display: block;
}

.taxReference_comment {
    position: relative;
    margin-bottom: 20px;
}

.taxReference_comment textarea {
    width: 100%;
    min-height: 160px;
    max-height: 160px;
    resize: none;
    border-radius: 5px;
    background-color: #F6F6F6;
    border: unset;
    padding: 13px;
    color: #848484;
    font-size: 14px;
    line-height: 17px;
}

.comment_counter {
    position: absolute;
    bottom: 13px;
    right: 13px;
    z-index: 1;
}

.taxReference_grid.pp {
    align-items: center;
}

.taxReference .approval,
.taxReference .approval * {
    font-size: 12px;
    line-height: 19.2px;
    color: #4D3651;
    margin-bottom: 0;
    max-width: 230px;
}

.taxReference .taxReference_grid-item input[type="submit"] {
    /*background-color: #3389B4;*/
    background-color: #8BB8E8;
    border: unset;
    border-radius: 5px;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

.policy_container {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}

.policy_container input {
    display: none;
}

/*.policy_container input + label:before {
    content: '';
    min-width: 22px;
    min-height: 22px;
    border-radius: 50%;
    border: 1px solid #4D3651;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto;
}*/

.checkbox__input {
    display: none;
}

.checkbox__label {
    position: relative;
    padding-left: 27px;
    min-height: 22px;
    line-height: 22px;
    font-size: .875rem;
    color: #4d3651;
    letter-spacing: .02em;
    cursor: pointer;
}

.checkbox__input:checked + label.checkbox__label:before {
    opacity: 1;
    background-color: #8bb8e8;
}

.checkbox__label-icon {
    position: absolute;
    width: 13px;
    height: 11px;
    left: 5px;
    top: 3px;
    z-index: 3;
    -webkit-transition: -webkit-transform .1s ease-in .2s;
    transition: -webkit-transform .1s ease-in .2s;
    -o-transition: transform .1s ease-in .2s;
    transition: transform .1s ease-in .2s;
    transition: transform .1s ease-in .2s, -webkit-transform .1s ease-in .2s;
    color: #fff;
    -webkit-transform: scale(.1);
    -ms-transform: scale(.1);
    transform: scale(.1);
}

.checkbox__label:before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid #8bb8e8;
    border-radius: 2px;
    background-color: #fff;
    top: 50%;
    margin-top: -11px;
    left: 0;
    z-index: 1;
    -webkit-transition: all .1s ease-in;
    -o-transition: all ease-in .1s;
    transition: all .1s ease-in;
}

.fs_row {
    display: flex;
    flex-direction: row;
}

.fs_row fieldset {
    min-width: 200px;
}

.sposob_group input + label {
    position: relative;
    display: flex ;
    align-items: center;
    color: #000;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    line-height: 28px;
    gap: 14px;
}

.sposob_group input + label:before {
    content: '';
    width: 22px;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #4D3651;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto;
}

.sposob_group input:checked + label::before {
    background-image: url(/local/templates/main/images/label.png);
}

/* =========================
   Responsive: <= 1024px
   ========================= */
@media (max-width: 1024px) {
    .headerBlock {
        max-width: 100%;
        padding: 32px;
        gap: 24px;
    }

    .headerBlock .h1 {
        font-size: 30px;
        line-height: 40px;
        max-width: 100%;
    }

    .headerBlock p {
        font-size: 16px;
    }

    .headerBlock a.headerBlock_readPdf {
        padding: 14px 48px;
        font-size: 16px;
    }

    .taxReference {
        max-width: 100%;
    }

    .modal_formContent {
        padding: 32px;
        margin: 0 auto 50px auto;
    }

    .taxReference h2 {
        margin: 50px 0 20px;
    }

    .taxReference .taxReference_grid {
        gap: 12px 20px;
    }
}

/* =========================
   Responsive: <= 576px (mobile)
   ========================= */
@media (max-width: 576px) {
    .headerBlock {
        padding: 18px;
        gap: 16px;
    }

    .headerBlock .h1 {
        font-size: 22px;
        line-height: 30px;
        letter-spacing: 0.6px;
    }

    .headerBlock p {
        font-size: 14px;
        line-height: 20px;
    }

    .headerBlock a.headerBlock_readPdf {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 16px;
        font-size: 14px;
    }

    .modal_formContent {
        padding: 18px;
        margin: 0 auto 35px auto;
    }

    .taxReference h2 {
        margin: 32px 0 16px;
        font-size: 18px;
        line-height: 24px;
    }

    .taxReference p,
    .taxReference p.taxpayer,
    .taxReference label[for="taxes-file"] {
        font-size: 14px;
        line-height: 22px;
    }

    /* Grid -> single column */
    .taxReference .taxReference_grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Field sizes */
    .taxReference .taxReference_grid-item input {
        height: 46px;
        padding: 12px 14px;
    }

    .taxReference select {
        width: 100%;
        padding: 12px 14px;
        font-size: 14px;
    }

    /* Two fieldsets row -> column */
    .fs_row {
        flex-direction: column;
        gap: 12px;
    }

    .fs_row fieldset {
        min-width: 0;
    }

    /* Radio groups text smaller */
    .year_group input + label,
    .sposob_group input + label {
        font-size: 16px;
        line-height: 24px;
        gap: 10px;
    }

    .year_group input + label:before,
    .sposob_group input + label:before {
        width: 20px;
        min-width: 20px;
        height: 20px;
    }

    /* File area: keep readable */
    .taxReference_file_border {
        padding: 0 10px;
    }

    .taxReference_file label[for="taxes-file"]:before {
        bottom: 16px;
    }

    /* Submit button full width */
    .taxReference .taxReference_grid-item input[type="submit"] {
        width: 100%;
        height: 48px;
    }

    /* Approval block shouldn't be narrow */
    .taxReference .approval,
    .taxReference .approval * {
        max-width: 100%;
    }
}
