/*Mobile*/
.blue-theme {
    --primary-text-color: #1E262E;
    background: #F4F7FA;
    .container {
        max-width: 1280px;
        width: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    .header {
        /* padding-top: 10px;
        padding-bottom: 10px; */
        width: 100%;
        display: inline-block;
        background-color: #fff;
        border-radius: 0 0 32px 32px;
        min-height: 81px;
        display: flex;
        align-items: center;
        box-shadow: 0px 4px 20px 0px #02113B1A;
    }
    .header__nav {
        z-index: 2;
    }
}

.header__top_menu {
    display: flex;
    justify-content: space-between; /* Распределяет элементы по ширине */
    align-items: center; /* Выравнивает элементы по вертикали */
    width: 100%; /* На всю ширину родителя */
}

.button.button-inverse {
    color: #038AEE;
    background-color: #F0F8FF;
    box-shadow: none;
    border: none;
    padding: 12px 51px;
}
.btn-600 {
    font-weight: 600;
}
.btn-fsize-14 {
    font-size: 14px;
}
.btn-line-h-24 {
    /* box-sizing: border-box; */
    line-height: 24px;
}
.button.button-inverse:hover {
    background-color: #038AEE;
    color: #F0F8FF;
}

.top_menu__left_section {
    display: flex;
    align-items: center;
    gap: 50px; /* Отступ между лого и списком */
}

.top_menu__list_items {
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--primary-text-color);
    a {
        font-size: 14px;
    }
}

.top_menu__login {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-text-color);
    a {
        font-size: 14px;
    }
}

.top_menu__button_mobile_menu {
    display: flex;
    z-index: 3;
}

/*бургер меню с лендоса*/
.header {
    position: relative;
    z-index: 1000
}

.logo-additional-text-delimiter {
    font-size: 35px;
}

.logo-additional-text {
    white-space: nowrap;
    line-height: 100%;
    font-size: 16px;
}

.top_menu__logo {
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 3;

    a img {
        width: 100px;
        height: 25px;
        padding-top: 3px;
    }
}

@media screen and (min-width: 1600px) {
    .logo-additional-text {
        font-size: 16px;
    }
}

@media screen and (max-width: 400px) {
    .top_menu__logo {
        .logo-additional-text {
            font-size: 14px;
            padding-top: 3px;
        }

        a img {
            width: 100px;
            padding-top: 5px;
        }
    }
}

@media screen and (max-width: 374px) {
    .top_menu__left_section {
        gap: 20px;
    }

    .top_menu__logo {
        gap: 6px;

        a img {
            width: 80px;
        }
    }

    .logo-additional-text-delimiter {
        font-size: 22px;
    }

    .logo-additional-text {
        font-size: 12px;
    }
}

@media screen and (max-width: 340px) {
    .top_menu__left_section {
        gap: 10px;
    }

    .top_menu__logo {
        gap: 4px;

        a img {
            width: 60px;
        }
    }

    .logo-additional-text-delimiter {
        font-size: 18px;
    }

    .logo-additional-text {
        font-size: 10px;
    }
}

.header__wrap {
    z-index: 4;
    position: relative;
    background-color: #fff;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 4px 20px #02113b1a
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 22px;
    gap: 22px;
    z-index: 4;
    min-height: 60px
}

.header__button {
    display: flex;
    position: relative;
    z-index: 3
}

.menu-open .header__button {
    display: none
}

.header__logo {
    margin-right: auto;
    position: relative;
    z-index: 3
}

.header__burger {
    position: relative;
    z-index: 3
}

.header__nav {
    position: absolute;
    display: flex;
    flex-direction: column;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    max-height: 100vh;
    box-sizing: border-box;
    padding-top: 60px;
    visibility: hidden;
    pointer-events: none
}

.menu-open .header__nav {
    visibility: visible;
    pointer-events: initial
}

.header__nav_wrapper {
    position: relative;
    height: 100%;
    display: flex;
    overflow-y: auto;
    scroll-behavior: smooth;
    snap-type: y mandatory
}

.nav {
    flex: 100%;
    display: flex;
    flex-direction: column
}

.nav__inner {
    padding: 0 22px
}

.nav__list {
    display: flex;
    flex-direction: column;
    transition: all .3s ease;
    padding: 22px 0 14px
}

.nav__item {
    opacity: 0;
    transition: all .1s ease
}

.menu-open .nav__item {
    opacity: 1;
    transition-delay: .2s;
    transition-duration: .3s
}

.nav__item a {
    padding: 16px 36px;
    font-size: 16px;
    line-height: 16px;
    text-decoration: none;
    font-weight: 600;
    display: block;
    white-space: nowrap
}

.nav__item a:hover {
    color: #038aee
}

.nav__item a.complaint-link-highlight {
    color: #eb5757;
    font-weight: 700;
    transition: color .3s ease;
}

.nav__item a.complaint-link-highlight:hover {
    color: #d94b4b;
}

@media screen and (max-width: 1100px) {
    .header__nav .nav__item a.complaint-link-highlight {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        width: auto;
        margin: 8px 36px 0;
        min-height: 52px;
        padding: 0 20px;
        border-radius: 999px;
        background-color: #FCF3F4;
        color: #C50F1F !important;
        font-size: 16px;
        line-height: 1.2;
        font-weight: 700;
        text-transform: none;
        text-decoration: none;
        transition: background-color .3s ease, transform .3s ease;
    }

    .header__nav .nav__item a.complaint-link-highlight span {
        flex: 0 1 auto;
        text-align: left;
        text-transform: none;
        white-space: nowrap;
    }

    .header__nav .nav__item a.complaint-link-highlight svg {
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
    }

    .header__nav .nav__item a.complaint-link-highlight:hover,
    .header__nav .nav__item a.complaint-link-highlight:active {
        background-color: #F9E4E7;
        color: #C50F1F !important;
        transform: translateY(-2px);
    }
}

.nav__list, .nav__top, .nav__bottom {
    position: relative;
    z-index: 4
}

.nav__top, .nav__bottom {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: all .1s ease-in
}

.menu-open .nav__top {
    opacity: 1;
    transition-delay: .1s;
    transition-duration: .3s
}

.menu-open .nav__bottom {
    opacity: 1;
    transition-delay: .3s;
    transition-duration: .3s
}

.nav__top {
    padding: 22px 12px 0
}

.nav__top * {
    flex: 100%
}

.nav__bottom {
    border-top: 1px solid #D6E3ED;
    padding: 14px 0 34px;
    gap: 24px
}

.nav__contacts {
    display: flex;
    flex-direction: column;
    gap: 24px
}

.nav__contacts_section {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.nav__contacts_section a {
    font-weight: 600;
    line-height: 24px;
    text-decoration: none
}

.nav__contacts_section span {
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    color: #6f7985
}
.header-nav-overlay {
    position: fixed;
    z-index: 4;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #038aee33;
    visibility: hidden;
    opacity: 0;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    transition: all .3s ease
}
.header-nav-backpanel {
    background-color: #fff;
    border-radius: 0 0 32px 32px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 130%;
    transform: translateY(-100%);
    transition: all .3s ease
}

.menu-open .header-nav-backpanel {
    transform: translateY(0)
}

body.lock {
    overflow: hidden
}

body.lock .header-nav-overlay {
    visibility: visible;
    opacity: 1;
    pointer-events: initial
}
.burger.opened .burger__icon_open {
    display: none
}

.burger__icon_close {
    display: none
}

.button--light,.button--light:hover {
    background-color: #e3f2ff;
    color: #038aee
}

.burger.opened .burger__icon_close {
    display: block
}
.socials {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap
}

.socials a {
    height: 53px;
    width: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #fafafa
}

.socials a:hover {
    background-color: #e3f2ff;
    transition: all .3s ease
}

.socials--smaller {
    gap: 0
}

.socials--smaller a {
    height: 48px;
    width: 48px
}

.socials:not(.socials--colorful) a {
    filter: hue-rotate(0deg)
}

.socials--colorful a {
    background-color: #e3f2ff
}
/**/

/*Desktop*/
@media screen and (min-width: 769px) {
    .hidden-desktop {
        display: none;
    }
    /* .blue-theme {
        .header {
            padding-top: 25px;
            padding-bottom: 25px;
        }
    } */
    .header__wrap {
        border-radius: 0 0 50px 50px;
        box-shadow: none
    }
    .header__inner {
        padding: 16px 0
    }
    .header__logo {
        margin-right: auto
    }
    .header__nav {
        display: block;
        position: relative;
        padding: 0;
        top: auto;
        left: auto;
        width: auto;
        height: auto
    }
    .nav__list {
        flex-direction: row;
        visibility: visible;
        pointer-events: initial;
        padding: 0
    }
    .nav__item {
        opacity: 1
    }
    .nav__item a {
        padding: 16px
    }
    .nav__top, .nav__bottom {
        display: none
    }
    .loginBtn {
        border-radius: 0;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #038aee;
        font-weight: 700;
        font-size: 16px;
        width: auto;
        height: auto
    }

    .loginBtn path {
        fill: #038aee
    }

    .loginBtn__icon {
        position: initial;
        transform: none;
        top: auto;
        left: auto
    }

    .loginBtn__text {
        display: block
    }

    .loginBtn:hover {
        color: #1f262e
    }

    .loginBtn:hover path {
        fill: #1f262e
    }
    .header-nav-overlay {
        display: none
    }
    .burger {
        display: none
    }
    .socials {
        justify-content: flex-end
    }

    .socials a {
        height: 56px;
        width: 56px
    }
}

@media screen and (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }
}

/* ========================
   upload.tpl styles
   ======================== */

#img_modal {
    width: 1200px;
    max-width: 90%;
}
#img_modal img {
    max-width: 100%;
    height: auto;
}
#img_modal .close {
    text-align: right;
}
#img_wrapper {
    width: 100%;
    text-align: center;
}

div:has(.pasport1__title) {
    text-align: start;
}

.fieldset-passport__wrapper,
.fieldset-card__wrapper {
    box-shadow: 0px 4px 20px 0px #02113B1A;
    border-radius: 32px;
    padding: clamp(22px, 14.5px + 2.222vw, 50px);
    display: inline-block;
    width: calc(50% - 16px);
    min-width: 280px;
    box-sizing: border-box;
}

.fieldset-other__wrapper {
    box-shadow: 0px 4px 20px 0px #02113B1A;
    border-radius: 32px;
    padding: clamp(22px, 14.5px + 2.222vw, 50px);
    margin: 32px 0 0;
}

.fieldsets_flex {
    display: flex;
    gap: 32px;
    align-items: stretch;
    flex-wrap: wrap;
}

#files_form fieldset.file-block {
    width: 100%;
}

#passport1_list, #passport-other_list {
    margin-left: auto;
    margin-right: auto;
    background-color: #038AEE;
    transition: background .35s;
    color: #FFF;
    padding: 0.4rem 3rem;
    font-size: 1.04rem;
    border-radius: 232px;
}

#passport1_list:hover {
    background: #0278d3;
    text-decoration: none;
}

.file-label:has(#passport1_list) {
    display: flex;
}

@media (max-width: 720px) {
    .fieldset-passport__wrapper,
    .fieldset-card__wrapper {
        width: 100%;
    }
}

.documents-upload-wrapper {
    box-shadow: 0px 4px 20px 0px rgba(2, 17, 59, 0.1);
    border-radius: 32px;
    padding: clamp(22px, 14.5px + 2.222vw, 50px);
    margin: 0 0 32px 0;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.documents-upload-wrapper:hover {
    box-shadow: 0px 6px 30px 0px rgba(2, 17, 59, 0.15);
}

.documents-upload__title {
    font-size: clamp(18px, 16px + 0.5vw, 24px);
    font-weight: 600;
    color: #02113B;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.documents-upload__button {
    display: inline-block;
    background-color: #038AEE;
    transition: all .35s ease;
    color: #FFF;
    padding: 12px 32px;
    font-size: 16px;
    border-radius: 232px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    font-family: "Inter", OpenSans, Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(3, 138, 238, 0.2);
}

.documents-upload__button:hover {
    background: #0278d3;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 138, 238, 0.3);
}

.documents-upload__button:active {
    transform: translateY(0);
}

.documents-upload__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.uploaded-documents-list {
    margin-top: 24px;
}

.uploaded-document-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px;
    background: #F4F7FA;
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all .2s ease;
    border: 2px solid transparent;
}

.uploaded-document-item:hover {
    background: #E8EDF3;
    border-color: #D1D5DB;
}

.uploaded-document-item:last-child {
    margin-bottom: 0;
}

.uploaded-document-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.uploaded-document-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.uploaded-document-name {
    font-size: 16px;
    font-weight: 500;
    color: #02113B;
    cursor: pointer;
    text-decoration: none;
    transition: color .2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uploaded-document-name:hover {
    color: #038AEE;
    text-decoration: underline;
}

.uploaded-document-date {
    font-size: 13px;
    color: #6F7985;
    font-weight: 400;
    white-space: nowrap;
}

.uploaded-document-actions {
    display: flex;
    justify-content: center;
    width: 100%;
}

.document-delete-btn {
    width: 80%;
    padding: 10px 16px;
    background: #FFE8EA;
    color: #C0392B;
    border: 1.5px solid #F5C0C4;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
    text-align: center;
    font-family: "Inter", OpenSans, Arial, sans-serif;
}

.document-delete-btn:hover {
    background: #DC3545;
    color: #fff;
    border-color: #DC3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

.document-delete-confirm-text {
    font-size: 13px;
    color: #6F7985;
    display: block;
    margin-right: 20px;
}

.document-delete-confirm,
.document-delete-cancel {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: "Inter", OpenSans, Arial, sans-serif;
    transition: all .2s ease;
}

.document-delete-confirm {
    background: #DC3545;
    color: #fff;
    margin-right: 6px;
}

.document-delete-confirm:hover {
    background: #b02a37;
}

.document-delete-cancel {
    background: #F4F7FA;
    color: #6F7985;
}

.document-delete-cancel:hover {
    background: #E5E9ED;
}

.empty-documents-message {
    text-align: center;
    padding: 32px 20px;
    color: #6F7985;
    font-size: 15px;
    line-height: 1.5;
}

#document-type-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(2, 17, 59, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.document-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: clamp(24px, 20px + 1vw, 40px);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0px 10px 40px rgba(2, 17, 59, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    box-sizing: border-box;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.document-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.document-modal-title {
    font-size: clamp(18px, 16px + 0.5vw, 22px);
    font-weight: 600;
    color: #02113B;
    margin: 0;
    line-height: 1.3;
}

.document-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6F7985;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all .2s ease;
    flex-shrink: 0;
}

.document-modal-close:hover {
    background: #F4F7FA;
    color: #02113B;
    transform: rotate(90deg);
}

.document-type-select-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.document-type-select {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #E5E9ED;
    border-radius: 16px;
    background-color: #F4F7FA;
    color: #02113B;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all .2s ease;
    font-family: "Inter", OpenSans, Arial, sans-serif;
}

.document-type-select:hover {
    border-color: #038AEE;
    background-color: #EEF6FD;
}

.document-type-select:focus {
    outline: none;
    border-color: #038AEE;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(3, 138, 238, 0.1);
}

.document-type-select-wrapper::after {
    content: ">";
    transform: rotate(90deg);
    position: absolute;
    right: 20px;
    top: 50%;
    margin-top: -10px;
    pointer-events: none;
    color: #6F7985;
    font-size: 18px;
    transition: transform .3s ease;
}

.document-type-select-wrapper:has(select:focus)::after {
    transform: rotate(270deg);
    color: #038AEE;
}

.document-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.document-modal-btn {
    padding: 12px 28px;
    border-radius: 232px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    font-family: "Inter", OpenSans, Arial, sans-serif;
}

.document-modal-btn.primary {
    background-color: #038AEE;
    color: #fff;
    box-shadow: 0 2px 8px rgba(3, 138, 238, 0.2);
}

.document-modal-btn.primary:hover {
    background-color: #0278d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 138, 238, 0.3);
}

.document-modal-btn.primary:active {
    transform: translateY(0);
}

.document-modal-btn.primary:disabled,
.document-modal-btn.primary.disabled {
    background-color: #B0D4F5;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.document-modal-btn.secondary {
    background-color: transparent;
    color: #6F7985;
    border: 2px solid #E5E9ED;
}

.document-modal-btn.secondary:hover {
    background-color: #F4F7FA;
    border-color: #D1D5DB;
    color: #02113B;
}

.document-upload-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .documents-upload-wrapper {
        padding: 24px 20px;
    }

    .document-modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 24px 20px;
    }

    .document-modal-actions {
        flex-direction: column;
    }

    .document-modal-btn {
        width: 100%;
        text-align: center;
    }

    .uploaded-document-item {
        padding: 14px 16px;
    }

    .document-delete-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .documents-upload__button {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 15px;
    }

    .documents-upload__title {
        font-size: 18px;
    }

    .uploaded-document-item {
        padding: 12px 14px;
    }
}

.doc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.doc-status-badge.pending {
    background: #FFF3CD;
    color: #856404;
}

.doc-status-badge.accepted {
    background: #D1FAE5;
    color: #065F46;
}

.doc-status-badge.dismissed {
    background: #FFE5E8;
    color: #9B1C1C;
}

.additional-docs-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.additional-docs-alert.warning {
    background: #FFF8E1;
    border: 1px solid #FFD54F;
    color: #5D4037;
}

.additional-docs-alert.info {
    background: #E8F4FD;
    border: 1px solid #90CAF9;
    color: #0D47A1;
}

.additional-docs-alert.success {
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    color: #1B5E20;
}

.additional-docs-alert__icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.additional-docs-alert__text strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}
