* {
    margin: 0;
}


html, body, div, table, td, th, a, img, p, font, ul, pre, input {
    padding: 0;
}

div {
    display:block;
}

html {
    scrollbar-shadow-color:black;
    scrollbar-arrow-color:black;
    scrollbar-darkshadow-color:white;
    overflow-y: auto;
    overflow-x: hidden;
    line-height:1.47;
}

img {
    border: 0;
}

body {
    margin: 0;
    padding: 0;
}

:root {
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    background-color: #0a2a4a;
}

@media (min-width: 780px) {
    body {
        background-color: #f0f4f9;
    }
}

#wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.out {
    display: flex;
    flex: 1 0 auto;
    width: 100%;
    background: linear-gradient(180deg, #e8eaed 0%, #d8dbe0 50%, #cbd0d6 100%);
    overflow-x: hidden;

}
* {
    scrollbar-width: thin;
    scrollbar-color: #284c79 #001242;
}

/* Chrome */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #ccc;
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
    transition: background 0.3s;
}

*::-webkit-scrollbar-thumb:hover {
    background: #333;
}


.out-index{
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    background: linear-gradient(180deg, #e8eaed 0%, #d8dbe0 50%, #cbd0d6 100%);
    overflow-x: hidden;
}
.info-block,
.stats-block {
    width: 80%;
    margin: 20px auto 0px;
    background: #fff;
    font-family: sans-serif;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.titleinfo{
    font-size: 14px;
    font-weight: 500;
    color: #004687;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
}

.info-block{
    margin: 0;
}

@keyframes smooth-blink {
    0%   {
        box-shadow: 0 0 0 0 rgba(160,196,255,0.8);
        border: 1px dashed #a0c4ff;
    }
    50%  {
        box-shadow: 0 0 20px 8px rgba(160,196,255,0.5);
        border: 1px dashed #a0c4ff;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(160,196,255,0.8);
        border: 1px dashed #a0c4ff;
    }
}

.blink-highlight {
    animation: smooth-blink 1s ease-in-out 1;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-title-stats {
    font-size: 14px;
    font-weight: 500;
    color: #004687;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
}

.stats-row {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.stats-index {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #e1eeff;
    border: 1px dashed #60a5fa;
    border-radius: 10px;
    color: #1d4ed8;
    text-align: left;
}

.stats-title {
    font-size: 14px;
    margin: 0;
    color: #0053a0;
}

.stats-value {
    font-size: 14px;
    font-weight: 500;
    color: #003366;
}

.stats-indexm{
    display: none;
}

.stats-titlem{
    display: none;
}

.stats-valuem{
    display: none;
}

.stats-rowm{
    display: none;
}

.form-title-statsm{
    display: none;
}

.stats-mobile{
     display: none;
}


.custom-select-wrapper {
    display: inline-block;
    width: 100%;
    position: relative;
}
.custom-option.disabled {
    color: #999;
    cursor: default;
    pointer-events: none;
}


.custom-select-trigger {
    padding: 5px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s;
    cursor: pointer;
    user-select: none;
}

.custom-select-trigger.but {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .18);
}


.custom-select-trigger:hover {
    border-color: #d1d5db;
}

.custom-options {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    max-height: 170px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
}

.custom-option {
    padding: 12px 14px;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    user-select: none;
}

.custom-option:hover {
    background: #f0f4ff;
}

.custom-options.show {
    display: flex;
}
.custom-options::-webkit-scrollbar {
    width: 6px;
}

.custom-options::-webkit-scrollbar-track {
    background: transparent;
}

.custom-options::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 3px;
}

.custom-options {
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
}

.custom-options.custom-options--portal {
    margin-top: 0;
    z-index: 10050;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.custom-option {
    padding: 10px 14px;
    cursor: pointer;
}

.custom-option:hover {
    background: #f0f0f0;
}

/* Основной контейнер / Форма поиска */
.content {
    width: 80%;
    margin: 0px auto;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    font-family: sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.db-info {
    text-align: center;
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
}

/* Заголовок формы */
.form-title {
    font-size: 20px;
    font-weight: bold;
    color: #004687;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #dfe6eb;
}

/* Обёртка формы */
.login-formContainer {
    #text-align: center;
}

/* Новая строка для десктопа */
.formindex {
    width: 100%;
}

.form-row-desktop {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.form-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex: 1 1 0;
}

.form-row-desktop .form-group:first-child {
    flex: 1.4 1 0;
    min-width: 0;
}
.form-row-desktop .form-group:nth-child(3) {
    flex: 1 1 0;
    min-width: 0;
}


/* Вертикальный разделитель */
.form-divider {
    width: 1px;
    background: #dfe6eb;
    margin: 0 8px;
}

/* Контейнеры полей */
.input-container {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.button-container {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
}

/* Поля ввода */
.input-container input[type="text"],
.input-container input[type="date"],
.input-container select,
.login-Input {
    width: 100%;
    height: 40px;
    padding: 0 8px 0 14px;
    font-size: 14px;
    line-height: 1.2;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    outline: none;
    transition: border-color 0.2s;
    color: #000;
    box-sizing: border-box;
    caret-color: #000;
    appearance: none;
}
.cal-custom-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cal-custom-header button {
    width: 32px;
    height: 32px;
    border: none;
    background: #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

.cal-custom-header button.disabled {
    opacity: 0;
    cursor: default;
    pointer-events: none;
}

.cal-custom-header .cal-title {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.cal-days span.disabled {
    opacity: .35;
    pointer-events: none;
}

.cal-days span.selected {
    background: #2563eb;
    color: #fff;
}

.cal-months-grid,
.cal-years-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 6px;
}

.cal-months-grid span,
.cal-years-grid span {
    padding: 6px 8px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    background: #f0f0f0;
    transition: background 0.2s, color 0.2s;
}

.cal-months-grid span:hover:not(.disabled),
.cal-years-grid span:hover:not(.disabled) {
    background: #e5e7eb;
}

.cal-months-grid span.selected,
.cal-years-grid span.selected {
    background: #2563eb;
    color: #fff;
}

.cal-months-grid span.selected:hover,
.cal-years-grid span.selected:hover,
.cal-days span.selected:hover {
    background: #1e40af;
}

.cal-years-grid span.disabled {
    color: #a1a1aa;
    cursor: default;
}

.cal-footer {
    margin-top: 8px;
    text-align: right;
}

.cal-footer .btn-today,
.cal-footer .btn-current-year {
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid #2563eb;
    border-radius: 6px;
    background: #fff;
    color: #2563eb;
    transition: 0.2s all;
}

.cal-footer .btn-today:hover,
.cal-footer .btn-current-year:hover {
    background: #2563eb;
    color: #fff;
}
.cal-months-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.cal-months-grid span {
    padding: 8px 0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    background: #f0f0f0;
    transition: background 0.2s, color 0.2s;
}

.cal-months-grid span:hover:not(.disabled) {
    background: #e5e7eb;
}

.cal-months-grid span.selected {
    background: #2563eb;
    color: #fff;
}

.cal-months-grid span.selected:hover {
    background: #1e40af;
}

.calendar.popup {
    display: none;
    position: absolute;
    border: 1px solid #e5e7eb;
    top: 110%;
    left: 0;
    height: max-content;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 12px;
    z-index: 1000;
    font-family: sans-serif;
    user-select: none;
    transition: opacity 0.2s ease;
}

.calendar.popup.open {
    display: block;
}

.cal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.cal-header select {
    flex: 1;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    cursor: pointer;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 500;
    margin-bottom: 6px;
    color: #6b7280;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-days span {
    height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.15s all;
    user-select: none;
}

.cal-days span:hover {
    background: #e5e7eb;
}

.cal-days .today {
    border: 1px solid #2563eb;
}

.cal-days .selected {
    background: #2563eb;
    color: #fff;
}

/* ——— Календарь: только для мобильных (под/над инпутом, без растягивания) ——— */
@media (max-width: 768px) {
    .calendar.popup {
        width: 280px;
        max-width: calc(100vw - 24px);
        max-height: 70vh;
        overflow-y: auto;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
        left: 0;
        box-sizing: border-box;
    }
    .calendar.popup .cal-custom-header .cal-title {
        font-size: 13px;
    }
    .calendar.popup .cal-custom-header button {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .calendar.popup .cal-weekdays {
        font-size: 11px;
        margin-bottom: 4px;
    }
    .calendar.popup .cal-days {
        gap: 2px;
    }
    .calendar.popup .cal-days span {
        height: 28px;
        line-height: 28px;
        font-size: 12px;
    }
    .calendar.popup .cal-months-grid span,
    .calendar.popup .cal-years-grid span {
        padding: 5px 4px;
        font-size: 12px;
    }
    .calendar.popup .cal-footer .btn-today,
    .calendar.popup .cal-footer .btn-current-year {
        font-size: 12px;
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .calendar.popup {
        width: 260px;
        max-width: calc(100vw - 24px);
        padding: 8px;
    }
    .calendar.popup .cal-days span {
        height: 26px;
        line-height: 26px;
        font-size: 11px;
    }
    .calendar.popup .cal-months-grid span,
    .calendar.popup .cal-years-grid span {
        padding: 4px 2px;
        font-size: 11px;
    }
}

/* Фокус */
.input-container input:focus,
.input-container select:focus,
.login-Input:focus {
    border-color: #007bff;
}

/* Лейблы */
.input-container label,
.login-Input + label {
    position: absolute;
    top: 8px;
    left: 12px;
    background: white;
    padding: 0 4px;
    color: #e0e0e0;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s ease all;
}

/* Подъем лейбла при фокусе или заполнении */
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label,
.input-container select:focus + label,
.input-container select:not([value=""]) + label,
.login-Input:focus + label,
.login-Input:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #007bff;
}

.label-active {
    position: absolute!important;
    top: -8px!important;
    left: 10px!important;
    font-size: 12px!important;
    color: #007bff!important;
    background: white!important;
    padding: 0 4px!important;
    pointer-events: none!important;
}



/* Кнопка */
.input-container .sub-btn {
    font-size: 14px;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-container .sub-btn:hover {
    background-color: #0060d0;
}


.sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 10px 20px;
    font-size: 15px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-grow: 1;
    min-width: 0;
    font-family: "Inter", "Arial", sans-serif;
}

.sub-btn:hover {
    background-color: #1d4ed8;
}

.sub-btn img.icon {
    width: 15px;
    height: 15px;
}


/* Группа с кнопкой */
.form-group-btn {
    flex: 1 1 140px;
    display: flex;
    align-items: center;
}

/* Ссылка */
.advanced-link {
    display: block;
    margin-top: 12px;
    font-size: 16px;
    color: #004687;
    text-decoration: none;
}

.advanced-link:hover {
    text-decoration: underline;
}

/* Скрытие placeholder */
.login-Input::placeholder {
    color: transparent;
}

/* --- Адаптация для экранов до 768px --- */
@media (max-width: 768px) {

    .out-index .content { order: 1; }
    .out-index .SearchCemetery { order: 2; }
    .out-index .stats-mobile { order: 3; }



    /* Заголовок формы */
    .form-title {
        font-size: 19px;!important;
        font-weight: bold;
        color: #004687;
        margin-bottom: 16px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding-bottom: 6px;
        border-bottom: 1px solid #e0e0e0;
    }

    .out-index {
        /*display: flex;*/
        flex: 1 0 auto;
        flex-direction: column;
        align-items: center;
        gap: 0px;
        width: 100%;
        background: linear-gradient(180deg, #e8eaed 0%, #d8dbe0 50%, #cbd0d6 100%);
        overflow-x: hidden;
    }

    .left-block,
    .stats-mobile {
        display: block;
        width: 90%;
        margin: 20px auto 20px;
        background: #fff;
        font-family: sans-serif;
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 12px 16px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.05);
        box-sizing: border-box;
    }

    .form-title-statsm {
        display: block;
        text-align: center;
        font-size: 18px;
        font-weight: bold;
        color: #004687;
        margin-bottom: 0px;
        padding-bottom: 6px;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }



    .stats-titlem {
        display: block;
        font-size: 10px;
        margin-bottom: 2px;
        color: #0053a0;
    }

    .stats-valuem {
        font-size: 11px;
        display: block;
        font-weight: bold;
        color: #003366;
    }

    .stats-rowm {
        display: flex;
        gap: 5px;
        justify-content: center;
        margin: 10px 0 10px;
    }

    .stats-indexm {
        display: block;
        flex: 1;
        text-align: center;
        padding: 3px 3px;
        background-color: #eef5ff;
        border: 1px dashed #a0c4ff;
        border-radius: 10px;
        color: #0053a0;
    }

    .stats-block{
        display: none;
    }

    .form-title-stats {
        display: none;
    }

    .stats-title {
        display: none;
    }

    .stats-value {
        display: none;
    }

    .stats-row {
        display: none;
    }

    .stats-index {
        display: none;
    }


    .form-row-desktop {
        flex-direction: column;
        gap: 20px;
    }

    .form-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .form-row-desktop .form-group:nth-child(3) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }


    .form-divider {
        display: none;
    }

    .form-group-btn {
        width: 100%;
    }

    .content {
        width: 90%;
        max-height: max-content;
        padding: 16px;
        margin: 20px auto 5px;
    }

    .input-container input[type="text"],
    .input-container input[type="date"],
    .input-container select,
    .login-Input {
        font-size: 14px;
        height: 36px;
        padding: 8px 10px;
    }

    .login-Binput,
    .sub-btn {
        font-size: 14px;
        padding: 10px;
    }

    .advanced-link {
        font-size: 14px;
        text-align: center;
    }
}

.input-container select {
    color: #888;
}

.input-container select option[value=""]:checked {
    color: #888;
}

.input-container select option:not([value=""]):checked {
    color: #000;
}



/*форма входа*/
.logform-container {
    width: 300px;
    height: max-content;
    display: flex;
    flex-direction: column;
    margin: 40px auto;
    padding: 24px;
    border-radius: 15px;
    background: #fff;
    font-family: sans-serif;
    box-shadow:
            0 4px 6px rgba(0, 0, 0, 0.1),
            0 10px 20px rgba(0, 0, 0, 0.08),
            0 15px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.separatorform {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0;
}

.separatorform::before,
.separatorform::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #dfe6eb;
}

.separatorform::before {
    margin-right: 10px;
}

.separatorform::after {
    margin-left: 10px;
}

.separatorform span {
    font-size: 14px;
    color: #a7b7c3;
}


.logform-container.has-error {
    height: max-content;
    transition: height 0.3s ease;
}

.logform-container.has-success{
    height: max-content;
    transition: height 0.3s ease;
}

/* Сторінка відновлення паролю — обгортка та відступи */
.reset-form-wrap {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 20px 48px;
    box-sizing: border-box;
}

.logform-divider {
    height: 1px;
    border: 0;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    margin: 0 0 20px;
}

.logform-text-center {
    text-align: center;
}

.logform-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logform-row.logform-vertical {
    margin-bottom: 18px;
}

.logform-row.logform-vertical:last-of-type {
    margin-bottom: 0;
}

/* Форма відновлення паролю — трохи ширший контейнер */
.logform-container.logform-reset {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 28px 24px;
}

.logform-reset .logform-row-actions {
    margin-top: 24px;
    margin-bottom: 0;
}

.logform-reset .logform-row-submit {
    margin-top: 22px;
    margin-bottom: 0;
}

.logform-reset .logform-row-back {
    margin-top: 16px;
    margin-bottom: 0;
}

.logform-reset .logform-reset-hint {
    margin-bottom: 16px;
    color: #555;
    font-size: 14px;
}

.logform-reset .regerror1,
.logform-reset .regsuccess1 {
    margin-top: 0;
    margin-bottom: 16px;
}

/* Заголовок */
.logform-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 16px;
    color: #004687;
}

.strepform-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0px;
    color: #004687;
}

/* Форма */
.logform-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.title-inp-cont{
    margin-bottom: 6px;
}
.title-inp{
    font-size: 14px;
    font-weight: 500;
}

.logform-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
}

.logform-row.but {
    margin-bottom: 0px;
}

.logform-row.a {
    margin-bottom: 10px;
}

.logform-row.butt {
    margin-bottom: 10px;
}

.logform-row.succ {
    margin-bottom: 0px;
}


.logform-input-container {
    position: relative;
    width: 100%;
}


.logform-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: "Inter", "Arial", sans-serif;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    color: #000;
    caret-color: #000;
}


.logform-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .18);
    background: #ffffff;
}

.logform-input::placeholder {
    color: transparent;
}

.logform-input-container label {
    position: absolute;
    top: 10px;
    left: 12px;
    background: white;
    padding: 0 4px;
    color: #888;
    font-size: 14px;
    border-radius: 12px;
    pointer-events: none;
    transition: 0.2s ease all;
}


.logform-advanced-link,
.logform-reg-link {
    text-decoration: none;
    font-weight: normal;
    color: #0056b3;
    transition: 0.3s;
}

.logform-advanced-link:hover,
.logform-reg-link:hover {
    color: #002f6c;
}


.logform-registration-line {
    font-size: 15px;
}

.logform-button,
.logform-google {
    border: none;
}


.logform-input:focus + label,
.logform-input:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #1d4ed8;
}

/* Кнопка входу */
.logform-button {
    padding: 12px 24px;
    font-size: 15px;
    background: #2563eb;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    align-self: stretch;
    text-decoration: none;
    box-sizing: border-box;
}

.googlelog{
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    font-size: 15px;
    background-color: transparent;
    border-radius: 30px;
    color: black;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    cursor: pointer;
    justify-content: center;
    transition: border 0.2s , color 0.2s;
    width: 100%;
    box-sizing: border-box;
    gap: 15px;
}

.googlelog:hover {
    color: #1d4ed8;
    border: 1px solid #1d4ed8;
}

.google-icon {
    width: 20px;
    height: 20px;
}

.logform-button:hover {
    background: #1d4ed8;
}

.logform-button + .logform-google {
    margin-top: 16px;
}

.logform-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 15px;
    background-color: #ffffff;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.logform-google:hover {
    border-color: #007bff;
    background-color: #ffffff;
    color: #007bff;
}


.authform-container2 {
    width: 300px;
    height: 40px;
    margin-top: 30px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fff;
    font-family: sans-serif;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    left: -24px;
}






/* регистрация  */
.regform-container {
    width: 300px;
    height: max-content;
    margin: 40px auto;
    padding: 24px;
    border-radius: 15px;
    background: #fff;
    font-family: sans-serif;
    box-shadow:
            0 4px 6px rgba(0, 0, 0, 0.1),
            0 10px 20px rgba(0, 0, 0, 0.08),
            0 15px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: height 0.3s ease;
}

.regform-container.active{
    width: 350px;
}

.regform-container.has-error,
.regform-container.has-success {
    height: max-content;
    transition: height 0.3s ease;
}

.toggle-eye-icon{
    color: #ccc;
    padding: 5px;
    vertical-align: middle;
    transition: fill 0.2s ease;
}

/* Заголовок */
.regform-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 16px;
    color: #004687;
}

/* Центровка */
.regform-text-center {
    text-align: center;
}

/* Ряды */
.regform-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
}

.regform-row.a{
    margin-bottom: 0px;
}

.regform-row.fl{
   flex-direction: row;
}

.regform-row.but {
    margin-bottom: 10px;
}

.regform-row.b {
    margin-bottom: 0px;
}

.regform-vertical {
    align-items: stretch;
}

/* Контейнер input + label */
.regform-input-container {
    position: relative;
    width: 100%;
}

/* Поле ввода */
.regform-input {
    width: 100%;
    font-family: "Inter", "Arial", sans-serif;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    color: #000;
    caret-color: #000;
}

/* Фокус */
.regform-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .18);
    background: #ffffff;
}

.regform-input::placeholder {
    color: transparent;
}

/* Лейбл поверх input */
.regform-input-container label {
    position: absolute;
    top: 10px;
    left: 12px;
    background: white;
    padding: 0 4px;
    color: #888;
    border-radius: 12px;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s ease all;
}

/* Анимация лейбла */
.regform-input:focus + label,
.regform-input:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #2563eb;
}

.regform-reg-link {
    text-decoration: none;
    font-weight: normal;
    color: #0056b3;
    transition: 0.3s;
}

.regform-reg-link:hover {
    color: #002f6c;
}


/* Кнопка */
.regform-button {
    padding: 12px 24px;
    font-size: 15px;
    box-sizing: border-box;
    text-decoration: none;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    align-self: stretch;
}

.regform-button:hover {
    background-color: #1d4ed8;
}

.regform-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 8px 0 15px;
    width: 100%;
}

/* Группы полей */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.activate-block{
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 10px;
    background-color: #e1eeff;
    border: 2px solid #60a5fa;
    border-radius: 10px;
    color: #0053a0;
    text-align: left;
}


/*index*/


/* Группы полей */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

/* Поля ввода */
.input-container input[type="text"],
.input-container input[type="date"],
.input-container select {
    height: 34px;
    line-height: 1.2;
    appearance: none;
    width: 100%;
    padding: 0px 8px 0px 14px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s;
    color: #000;
    font-family: "Inter", "Arial", sans-serif;
    box-sizing: border-box;
}

/* Фокус поля */
.input-container input:focus,
.input-container select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .18);
    background: #ffffff;
}

/* Лейблы */
.input-container label {
    position: absolute;
    top: 8px;
    left: 12px;
    border-radius: 12px;
    background: white;
    padding: 0 4px;
    color: #888;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s ease all;
    z-index: 10000;
}

/* Подъём лейбла */
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label,
.input-container select:focus + label,
.input-container select:not([value=""]) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #2563eb;
}



.regerror1 {
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background-color: #ffe6e6;
    border: 1px solid #ff4d4d;
    color: #b00020;
    font-size: 14px;
    text-align: left;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.regsuccess1 {
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background-color: #e6ffe6;
    border: 1px solid #3ac93a;
    color: #006600;
    font-size: 14px;
    text-align: left;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.loginsuccess {
    padding: 10px 14px;
    border-radius: 30px;
    background-color: #e6ffe6;
    border: 1px solid #3ac93a;
    color: #006600;
    font-size: 14px;
    text-align: left;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}


#togglePass {
    pointer-events: auto;
    z-index: 10;
}






/* форма поховання */
.contentgrave-form {
    max-width: 670px;
    height: max-content;
    margin: 0 auto;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 16px;
    /* border: 1px solid #ddd; */
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    font-family: sans-serif;
    box-sizing: border-box;
    padding: 0;
}


.form-header {
    width: 100%;
    padding: 8px 24px;
    background-color: #007bff;
    color: white;
    border-radius: 16px 16px 0 0;
    box-sizing: border-box;
}

.form-header h2 {
    display: flex;
    text-align: left;
    margin: 0 0 3px 0;
}

.form-header p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

/* Заголовки секций */
.section-header {
    width: 100%;
    padding-left: 0;
    #border-bottom: 1px solid #0061ba;
    margin-bottom: 5px;
    padding-bottom: 3px;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    margin-top: 0;
    padding: 0;
    font-size: 15px;
    text-align: left;
    color: #3c84d7;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}



/* Группы полей */
.form-row-grave {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.form-row-gravebutton {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 5px;}

.form-vertical-grave {
    display: flex;
    #flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
}

.input-container-grave input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 8px 12px;
    border: 1px solid #007bff;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.input-container-grave input[type="file"]::file-selector-button:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.input-container-grave input[type="file"]::file-selector-button:active {
    background: #004892;
}

.input-container-grave input[type="file"]:focus-visible::file-selector-button {
    box-shadow: 0 0 0 3px rgba(0,123,255,.25);
}

.input-container-grave input[type="file"]::-webkit-file-upload-button {
    margin-right: 10px;
    padding: 6px 10px;
    border: 1px solid #007bff;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.input-container-grave input[type="file"]::-webkit-file-upload-button:hover { background: #0056b3; border-color: #0056b3; }
.input-container-grave input[type="file"]::-webkit-file-upload-button:active { background: #004892; }

.input-container-md {
    position: relative;
    flex: 1 1 15%;
    min-width: 100px;
}

/* Контейнер поля */
.input-container-grave {
    position: relative;
    flex: 1 1 30%;
    min-width: 160px;
}

/* Поля ввода */
.input-container-grave input[type="text"],
.input-container-grave input[type="date"],
.input-container-grave input[type="file"],
.input-container-grave select,
.input-container-md input[type="text"],
.input-container-md input[type="date"],
.input-container-md select {
    height: 34px;
    line-height: 1.2;
    appearance: none;
    width: 100%;
    padding: 0px 8px 0px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    outline: none;
    transition: border-color 0.2s;
    color: #000;
    box-sizing: border-box;
}

/* Фокус поля */
.input-container-grave input:focus,
.input-container-grave select:focus,
.input-container-md input:focus,
.input-container-md select:focus {
    border-color: #007bff;
}

/* Лейблы */
.input-container-grave label,
.input-container-md label {
    position: absolute;
    top: 8px;
    left: 12px;
    background: white;
    padding: 0 4px;
    color: #888;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s ease all;
}

/* Подъём лейбла */
.input-container-grave input:focus + label,
.input-container-grave input:not(:placeholder-shown) + label,
.input-container-grave select:focus + label,
.input-container-grave select:not([value=""]) + label,
.input-container-md input:focus + label,
.input-container-md input:not(:placeholder-shown) + label,
.input-container-md select:focus + label,
.input-container-md select:not([value=""]) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #007bff;
}

/* select: пустое значение */
.input-container-grave select:invalid {
    color: #888;
    appearance: none;
}

/* select: скрыть пустой option */
.input-container-grave select option[value=""] {
    display: none;
}

/* Файлы */
.input-container-grave input[type="file"] {
    height: auto;
    color: #0053a0;
    padding: 10px 15px;
    background-color: #eef5ff;
    border: 1.5px dashed #a0c4ff;
    border-radius: 10px;
    font-size: 14px;
}

/* Кнопки */
.form-row-grave.form-actions-grave {
    justify-content: flex-start;
    margin-top: 25px;
}

.sub-btngrave {
    padding: 10px 24px;
    font-size: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-grow: 1;
    min-width: 0;
}

.sub-btngrave:hover{
    background-color: #0060d0;
}

.sub-btn:hover {
    background-color: #0060d0;
}

.cancel-btn {
    background-color: transparent;
    border: 2px solid #007bff;
    color:  #007bff;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 1em;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    flex-grow: 0;
    white-space: nowrap;
    width: 160px;
}

.cancel-btn:hover {
    border: 2px solid #0060d0;
    background-color: #0060d0;
    color: white;
}

/* Кнопка внутри инпута */
.input-container-grave .add-region-btn {
    position: absolute;
    top: 50%;
    right: 1px;
    transform: translateY(-50%);
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border: none;
    border-left: 1px solid #ccc;
    border-radius: 0px 5px 5px 0px;
    width: 33px;
    height: 33px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    display: flex;
    font-weight: 500;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}
.input-container-grave .add-region-btn:hover {
    background-color: #0060d0;
}

/* Попап */
.popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(17, 24, 39, 0.10);
    min-width: 360px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-family: sans-serif;
    position: relative;
}

.close-pop {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    background: none;
    color: #004687;
    font-size: 25px;
    cursor: pointer;
}

.popup-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #004687;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.popup-content input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}


/* Лейбл с подъемом */
.popup .input-container-grave input:focus + label,
.popup .input-container-grave input:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #007bff;
}

.popup .input-container-grave {
    position: relative;
    margin-top: 12px;
    display: flex;
    gap: 12px;
}
.popup .input-container-grave label {
    position: absolute;
    top: 8px;
    left: 12px;
    background: #fff;
    padding: 0 4px;
    color: #888;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s ease all;
}
.popup .input-container-grave input {
    height: 34px;
    line-height: 1.2;
    width: 100%;
    padding: 0 8px 0 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.popup .input-container-grave input:focus {
    border-color: #007bff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-js {
    padding: 10px 20px;
    margin-top: 5px;
    max-width: 100%;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease;
    transition: opacity 0.4s ease;
}

.alert-js-error {
    background: #ffe6e6;
    border: 1px solid #dc3545;
    color: #721c24;
}



@media (max-width: 480px) {

    .contentgrave-form {
        max-width: 95%;
        height: auto;
        margin: 15px auto;
        border-radius: 12px;
    }


    .form-header {
        padding: 10px 20px;
        border-radius: 10px 10px 0 0;
    }

    .form-header h2 {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .form-header p {
        font-size: 12px;
    }



    .section-header {
        margin-bottom: 15px;
        padding-bottom: 2px;
    }

    .section-header h3 {
        font-size: 14px;
        gap: 6px;
        margin-bottom: 3px;
    }

    .section-header h3 img {
        width: 16px;
        height: 16px;
    }

    .input-container-grave{
        min-width: 130px;
    }

    /* ФИО */
    .form-row-grave.fio {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .form-row-grave.fio .input-container-grave:nth-child(3) {
        grid-column: 1 / -1;
    }

    /* Даты */
    .form-row-grave.dates {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    /* Место поховання */
    .form-row-grave.location {
        display: grid;
        grid-template-columns: 1fr 1fr; /* область + район */
        gap: 8px;
    }
    .form-row-grave.location .input-container-grave:nth-child(3) {
        grid-column: 1 / -1;
    }

    /* все поля в ряд */
    .form-row-grave.cemetery {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    /* вторая строка с кварталом, рядом, местом */
    .form-row-grave.cemetery .second-row {
        display: grid;
        grid-template-columns: 0.9fr 0.7fr 0.7fr;
        gap: 6px;
    }

    .form-row-grave.cemetery .input-container-grave:first-child {
        min-width: 100%;
        grid-column: 1 / -1;
    }
    /* квартал */
    .form-row-grave.cemetery .input-container-md:nth-child(2) {
        min-width: 70px;
    }

    /* ряд  */
    .form-row-grave.cemetery .input-container-md:nth-child(3) {
        min-width: 30px;
    }

    /* место */
    .form-row-grave.cemetery .input-container-md:nth-child(4) {
        min-width: 50px;
    }



    /* текст в полях Квартал / Ряд / Місце */
    .form-row-grave.cemetery .input-container-md input {
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    /* паддинги */
    .form-row-grave.cemetery .input-container-md input {
        padding-left: 2px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    .form-vertical-grave {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 10px;
        width: 100%;
    }

    /* Кнопки */
    .form-row-grave.form-actions-grave {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .form-row-grave.form-actions-grave button {
        width: 100%;
    }

    .form-row-gravebutton{
        gap: 10px;
    }
    .cancel-btn{
        width: 120px;
    }
}









.graveadd-container {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
}


/*белая зона graveadd*/
.gravezone{
    width: 90%;
    height: 640px;
    margin: 0 auto;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 16px;
    border: 1px solid #ddd;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    font-family: sans-serif;
    box-sizing: border-box;
    padding: 0;
}









/*Таблица грейв лист*/
.grave-table {
    width: auto;
    min-width: 900px;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95em;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

.grave-table thead tr {
    background-color:#004998;
    color: #ffffff;
    text-align: left;
}

.grave-table th,
.grave-table td {
    padding: 6px 8px;
    border: 1px solid #dddddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grave-table tbody tr {
    border-bottom: 1px solid #dddddd;
}


.grave-table tbody tr:nth-child(odd) {
    background-color: white;
}


.grave-table tbody tr:nth-child(even) {
    background-color: #f3f3f3;
}

.grave-table tbody tr:last-of-type {
    border-bottom: 2px solid #004998;
}

.grave-table tbody tr:hover {
    background-color: #d8e2ff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
/*таблица макс.pos1/2*/
.grave-maxpos {
    border-collapse: collapse;
    margin: 0;
    font-size: 0.95em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-width: auto;
}

.grave-maxpos thead tr {
    background-color:#004998;
    color: #ffffff;
    text-align: left;
}

.grave-maxpos th,
.grave-maxpos td {
    padding: 6px 8px;
    border: 1px solid #dddddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grave-maxpos tbody tr {
    border-bottom: 1px solid #dddddd;
}

.grave-maxpos tbody tr:nth-child(odd) {
    background-color: white;
}

.grave-maxpos tbody tr:nth-child(even) {
    background-color: #f3f3f3;
}

.grave-maxpos tbody tr:last-of-type {
    border-bottom: 2px solid #004998;
}

.grave-maxpos tbody tr:hover {
    background-color: #d8e2ff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.warn {
    position: center;
    font-weight: bold;
    color: red;
    border: 1px dotted blue;
    background: white;
}




/*карточка с кол-вом. захоронение и кварталы*/
.stat-blocks {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: left;
}

.stat-card {
    width: auto;
    min-width: 160px;
    max-width: 200px;
    padding: 10px 14px;
    margin: 5px 0;
    margin-left: 1px;
    background-color: #004998;
    border-radius: 8px;
    text-align: center;
    font-family: sans-serif;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.stat-title {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #329cff;
}


.gravesfoto {
    height: 60px;
    width: 40px;
}

.gravestable {

    border-collapse: collapse;
    margin: 0 auto;
    padding: 0 auto;
}



/* Footer v2 */
.site-footer-v2 {
    --footer-link-text: rgba(238, 247, 255, 0.95);
    --footer-link-hover-bg: rgba(88, 144, 198, 0.24);
    --footer-link-hover-border: rgba(177, 213, 245, 0.5);
    --footer-link-focus: rgba(196, 227, 255, 0.95);
    margin-top: auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #102338 0%, #0f2135 100%);
    color: #eaf4ff;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    flex-shrink: 0;
}

.site-footer-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(460px 260px at 100% 0%, rgba(94, 136, 180, 0.13), transparent 72%),
        radial-gradient(420px 240px at 0% 100%, rgba(86, 130, 174, 0.11), transparent 70%);
    pointer-events: none;
}

.site-footer-v2__wrap {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
    padding: 32px 0 18px;
}

.site-footer-v2__top {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(180px, 1fr));
    gap: 20px;
}

.site-footer-v2__brand {
    border: 1px solid rgba(173, 204, 234, 0.22);
    background: rgba(8, 22, 37, 0.38);
    border-radius: 16px;
    padding: 16px;
}

.site-footer-v2__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
}

.site-footer-v2__logo-mark {
    width: 41px;
    height: 41px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.site-footer-v2__logo-mark img {
    width: 41px;
    height: 41px;
    display: block;
}

.site-footer-v2__logo-text strong {
    display: block;
    font-size: 16px;
    line-height: 1.1;
}

.site-footer-v2__logo-text span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(231, 244, 255, 0.8);
}

.site-footer-v2__note {
    margin: 0;
    color: rgba(230, 243, 255, 0.88);
    line-height: 1.45;
    font-size: 14px;
}

.site-footer-v2__col-title {
    margin: 0 0 10px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(198, 225, 250, 0.86);
}

.site-footer-v2__dropdown {
    margin: 0;
}

.site-footer-v2__dropdown-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.site-footer-v2__dropdown-summary::-webkit-details-marker {
    display: none;
}

.site-footer-v2__dropdown-summary .site-footer-v2__col-title {
    margin: 0;
}

.site-footer-v2__dropdown-summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(203, 228, 252, 0.92);
    border-bottom: 2px solid rgba(203, 228, 252, 0.92);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.site-footer-v2__dropdown[open] .site-footer-v2__dropdown-summary::after {
    transform: rotate(-135deg);
}

.site-footer-v2__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 7px;
}

.site-footer-v2__links a,
.site-footer-v2__contact a {
    color: var(--footer-link-text);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 8px;
    padding: 2px 8px;
    margin-left: -8px;
    box-sizing: border-box;
    border: 1px solid transparent;

}

.site-footer-v2__links a:hover,
.site-footer-v2__contact a:hover {
    color: #ffffff;
    background: var(--footer-link-hover-bg);
    border-color: var(--footer-link-hover-border);
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(6, 17, 30, 0.28);
}

.site-footer-v2__contact {
    margin: 0 0 10px;
    color: rgba(235, 247, 255, 0.92);
    font-size: 14px;
    line-height: 1.45;
}

.site-footer-v2__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer-v2__chip {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(170, 201, 232, 0.28);
    background: rgba(8, 24, 40, 0.32);
    font-size: 12px;
    color: rgba(223, 239, 255, 0.92);
}

.site-footer-v2__bottom {
    margin-top: 18px;
    border-top: 1px solid rgba(195, 223, 248, 0.26);
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.site-footer-v2__copyright {
    margin: 0;
    font-size: 13px;
    color: rgba(209, 231, 252, 0.78);
}

.site-footer-v2__legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-footer-v2__legal a {
    color: var(--footer-link-text);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 2px 8px;
    margin-left: -8px;
    border: 1px solid transparent;

}

.site-footer-v2__legal a:hover {
    color: #ffffff;
    background: var(--footer-link-hover-bg);
    border-color: var(--footer-link-hover-border);
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(6, 17, 30, 0.28);
}

.site-footer-v2__links a:focus-visible,
.site-footer-v2__contact a:focus-visible,
.site-footer-v2__legal a:focus-visible {
    outline: 2px solid var(--footer-link-focus);
    outline-offset: 2px;
    color: #ffffff;
    background: var(--footer-link-hover-bg);
    border-color: var(--footer-link-hover-border);
}

@media (prefers-reduced-motion: reduce) {
    .site-footer-v2__links a,
    .site-footer-v2__contact a,
    .site-footer-v2__legal a {

    }

    .site-footer-v2__links a:hover,
    .site-footer-v2__contact a:hover,
    .site-footer-v2__legal a:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 980px) {
    .site-footer-v2__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-v2__brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 681px) {
    .site-footer-v2__dropdown-summary {
        pointer-events: none;
        margin-bottom: 10px;
    }

    .site-footer-v2__dropdown-summary::after {
        display: none;
    }

    .site-footer-v2__dropdown > .site-footer-v2__links,
    .site-footer-v2__dropdown:not([open]) > .site-footer-v2__links {
        display: grid !important;
        margin-top: 0;
    }
}

@media (max-width: 680px) {
    .site-footer-v2 {
        margin-top: auto;
    }

    .site-footer-v2__wrap {
        width: calc(100% - 24px);
        padding: 24px 0 calc(16px + env(safe-area-inset-bottom, 0));
    }

    .site-footer-v2__top {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .site-footer-v2__top > section,
    .site-footer-v2__top > .site-footer-v2__dropdown {
        border: 1px solid rgba(173, 204, 234, 0.2);
        background: rgba(8, 22, 37, 0.28);
        border-radius: 14px;
        padding: 12px;
    }

    .site-footer-v2__brand {
        display: none;
    }

    .site-footer-v2__dropdown-summary {
        cursor: pointer;
        min-height: 34px;
    }

    .site-footer-v2__dropdown > .site-footer-v2__links {
        margin-top: 4px;
    }

    .site-footer-v2__links {
        gap: 2px;
    }

    .site-footer-v2__links a,
    .site-footer-v2__contact a,
    .site-footer-v2__legal a {
        width: 100%;
        min-height: 34px;
        box-sizing: border-box;
        padding: 6px 8px;
        margin-left: 0;
        border-radius: 8px;
    }

    .site-footer-v2__links a:hover,
    .site-footer-v2__contact a:hover,
    .site-footer-v2__legal a:hover {
        transform: none;
    }

    .site-footer-v2__contact {
        margin-bottom: 8px;
    }

    .site-footer-v2__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .site-footer-v2__legal {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
}

/* ВЕРХНЕЕ МЕНЮ */
.Menu_Up {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: linear-gradient(270deg, #007bff 0px, #e8f3fc);
    padding: 0 20px;
    padding-left: 0px;
    height: 65px;
    font-family: Arial, Helvetica, sans-serif;
    gap: 20px;
    box-sizing: border-box;
    overflow: visible;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07),
    0 2px 4px rgba(0,0,0,0.05),
    0 4px 8px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-menu-topbar {
    display: none;
}

.mobile-menu-brand {
    text-decoration: none;
}

.mobile-menu-actions {
    display: flex;
    align-items: center;
}

body.burger-open,
body.profile-menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
}

.title {
    font-size: 22px;
    font-weight: 700;
    color: #004687;
    text-decoration: none;
}

.menu-divider {
    width: 1px;
    height: 40px;
    background-color: #b0d5dd;
    margin: 0 20px;
    list-style: none;
    pointer-events: none;
    flex-shrink: 0;
}

.menu-center {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.menu_ups {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu_ups li {
    position: relative;
}

.menu_ups li a {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: black;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.menu_ups li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: black;
    transition: 0.3s ease;
    transform: translateX(-50%);
}

.menu_ups li a:hover::after {
    width: 100%;
}

@media (min-width: 769px) {

    .menu_ups li:has( .submenu)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 14px;
        z-index: 998;
    }

    .submenu {
        list-style: none;
        display: block;
        position: absolute;
        top: calc(100% + 12px);
        left: 50%;
        transform: translateX(-50%);
        min-width: 220px;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 14px;
        box-shadow:
            0 0 0 1px rgba(0, 0, 0, 0.03),
            0 4px 6px -2px rgba(0, 0, 0, 0.05),
            0 12px 24px -8px rgba(0, 0, 0, 0.12),
            0 24px 48px -12px rgba(0, 0, 0, 0.08);
        padding: 8px 0;
        z-index: 999;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: visibility 0.15s ease, opacity 0.15s ease;
        transition-delay: 0.18s;
    }

    .submenu::before {
        content: "";
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 8px solid transparent;
        border-bottom-color: rgba(0, 0, 0, 0.06);
        margin-bottom: -1px;
    }

    .submenu li {
        margin: 0 6px;
        border-radius: 10px;
        overflow: hidden;
    }

    .submenu li:first-child { margin-top: 0; }
    .submenu li:last-child { margin-bottom: 0; }

    .submenu li a {
        display: block;
        padding: 12px 18px;
        font-family: "Inter", "Arial", sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: #1a1a1a;
        white-space: nowrap;
        text-decoration: none;
        border-radius: 10px;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .submenu li a:hover {
        background: rgba(0, 115, 200, 0.1);
        color: #0066b8;
    }

    .menu_ups li:hover > .submenu {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition-delay: 0s;
        box-shadow:
            0 0 0 1px rgba(0, 0, 0, 0.04),
            0 8px 16px -4px rgba(0, 0, 0, 0.08),
            0 20px 40px -10px rgba(0, 0, 0, 0.14),
            0 32px 64px -16px rgba(0, 0, 0, 0.1);
    }
}

.support-login-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 200;
}

.support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f3fc;
    border: none;
    cursor: pointer;
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.support-btn:hover {
    color: #004687;
}

.support-btn svg {
    width: 18px;
    height: 18px;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-link {
    padding: 8px 14px;
    color: #007bff;
    background-color: #e8f3fc;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: "Inter", "Arial", sans-serif;
}

.login-link:hover {
    background-color: #ffffff;
    color: #004687;
}


.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 200;
}

/* скрытый чекбокс */
.dropdown-toggle {
    display: none;
}

.avatar-button {
    display: block;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f4f4f4;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.menu-button {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: black;
    border-radius: 50%;
    background: #f4f4f4;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.menu-button-none{
    display: none;
}

.menu-button:hover,
.avatar-button:hover {
    background: #e9e9e9;
    /* transform: scale(1.05); */
}

.menu-button::after,
.avatar-button::after{
    content: attr(data-tooltip);
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 300;
    box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.15),
            0 8px 16px rgba(0, 0, 0, 0.1);
}

.email-tooltip::after{
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 300;
    box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.15),
            0 8px 16px rgba(0, 0, 0, 0.1);
}

.menu-button:hover::after,
.avatar-button:hover::after,
.email-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
    transition-delay: 0.1s;
}

.menu-button::after,
.avatar-button::after,
.email-tooltip::after{
    transition-delay: 0s;
}

.email-tooltip {
    position: relative;
}

/* Аватарка */
.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;

}

.header-avatar:hover{
filter: brightness(80%);
    transition: 0.3s;
}

.avatar-wrapper {
    position: relative !important;
    display: inline-block;
}

.avatar-arrow {
    position: absolute!important;
    bottom: 5.7px!important;
    right: 0px!important;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    box-sizing: border-box!important;
}

.avatar-arrow img {
    width: 8px;
    height: 8px;
    position: absolute;
    top: 3.5px;
}


.dropdown {
    position: relative;
}

/* Выпадающее меню */
.dropdown-menu {
    position: fixed;
    top: 60px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.12),
            0 8px 20px rgba(0, 0, 0, 0.15),
            0 12px 40px rgba(0, 0, 0, 0.08);
    padding: 0px 0px 10px 0px;
    min-width: 260px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 150;
}

.menu_ups_mobile{
    list-style: none;
}
.menu_ups_mobile li {
    position: relative;
}

/* Выпадающее меню */
.dropdown-menu.nav {
    position: fixed;
    top: 60px;
    right: 10px;
    left: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow:
            0 4px 12px rgba(0, 0, 0, 0.15),
            0 12px 28px rgba(0, 0, 0, 0.18),
            0 20px 60px rgba(0, 0, 0, 0.12);

    padding: 0px 0px 10px 0px;
    width: max-content;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 150;
}

.menu-button.nav{
    display: none;
}



.menu-nav {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 10px;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dropdown-menu.nav a {
    display: flex;
    font-size: 15px;
    align-items: center;
    margin: 0px 10px 0px 10px;
    padding: 8px 6px;
    border-bottom: 1px #e6e6e6 solid;
    border-radius: 0px;
    color: #333;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s ease;
}

.dropdown.nav{
    display: none;
}

.menu_ups_mobile .submenu-label {
    display: block;
    color: #333;
    cursor: pointer;
    font-size: 15px;
    align-items: center;
    margin: 0px 10px 0px 10px;
    padding: 8px 6px;
    border-bottom: 1px #e6e6e6 solid;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s ease;
}

.menu_ups_mobile a:hover,
.menu_ups_mobile .submenu-label:hover {
    background: rgba(0,0,0,0.05);
}

.submenu-toggle {
    display: none;
}

.submenu-mobile {
    display: none;
    list-style: none;
    padding-left: 16px;
    margin: 0;
}

.submenu-toggle:checked + .submenu-label + .submenu-mobile {
    display: block;
}

.has-submenu .submenu-label::after {
    content: "▾";
    float: right;
    transition: transform 0.3s ease;
}

.submenu-toggle:checked + .submenu-label::after {
    transform: rotate(-180deg);
}

.submenu-label{

}

.dropdown-menu.block {
    position: fixed;
    top: 60px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.12),
            0 8px 20px rgba(0, 0, 0, 0.15),
            0 12px 40px rgba(0, 0, 0, 0.08);
    padding: 0px 0px 10px 0px;
    min-width: 260px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 150;
}

.icon-wrapper {
    position: relative;
    display: flex;
    background: #e3e3e3;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: black;
    margin-right: 10px;
}


.menu-icon {
    width: 16px;
    height: 16px;
    padding: 8px;
    vertical-align: middle;
    transition: fill 0.2s ease;
}

.pr-icon{
    width: 20px;
    height: 20px;
    vertical-align: middle;
    transition: fill 0.2s ease;
}

.dpm-icon {
    width: 16px;
    height: 16px;
    padding: 8px;
    vertical-align: middle;
    transition: fill 0.2s ease;
}

.dpms-icon {
    width: 20px;
    height: 20px;
    padding: 8px;
    vertical-align: middle;
    transition: fill 0.2s ease;
}

.menu-name {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}


.dropdown-menu a {
    display: flex;
    font-size: 15px;
    align-items: center;
    margin: 0px 10px 0px 10px;
    padding: 8px 6px;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: #efefef;
}


@media (max-width: 400px) {
    .dropdown-menu,
    .dropdown-menu.block{
        position: fixed;
        top: 60px;
        right: 10px;

    }

    .menu-button::after,
    .avatar-button::after {
        display: none;
    }


}

@media (max-width: 768px) {
    .dropdown.nav {
        display: block;
    }


    .menu-button.nav {
        display: flex;
        align-items: center;
        position: relative;
        justify-content: center;
        width: 30px;
        height: 40px;
        border-radius: 50%;
        background: transparent;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
    }

}

    /* Активное меню */
.dropdown-toggle:checked + label + .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/* Разделитель */
.menu-separator {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

.menu-friends {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 10px;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;

}

.saved-edit-btn {
    background: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: auto;
    position: relative;
    width: 32px;
    height: 32px;
}

.saved-edit-btn:hover {
    background: #0060d0;
}

.saved-edit-btn.active {
    background: #0060d0;
}

.saved-edit-btn.active:hover {
    background: #0056b3;
}

.saved-edit-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: currentColor;
}

.saved-edit-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 300;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.saved-edit-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.saved-item-delete::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 300;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.saved-item-delete:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.saved-actions-bar {
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    margin-top: 8px;
    text-align: center;
}

.saved-delete-selected-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
}

.saved-delete-selected-btn:hover:not(:disabled) {
    background: #c0392b;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.saved-delete-selected-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.saved-checkbox-label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    z-index: 15;
    transition: all 0.2s ease;
    margin: 0;
}

.saved-checkbox-label.checked {
    background: #007bff;
    border-color: #007bff;
}

.saved-checkbox-label.checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.saved-item-wrapper.edit-mode {
    padding-left: 35px;
    position: relative;
}

/* Блок профиля сверху меню */
.menu-profile {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 10px;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.menu-profile:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #bbb;
}

.menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.menu-name {
    font-weight: 500;
    font-size: 16px;
    color: #333;
}

/* Название в левом меню */
.menu-title {
    font-weight: 600;
    padding: 4px 14px 6px;
    color: #666;
    font-size: 14px;
}

.dropdown-menu a:active {
    background: #eaeaea;
}

.dropdown-menu,
.menu-profile {
    font-family: "Inter", "Arial", sans-serif;
    font-size: 15px;
}

/* Avatar dropdown: refreshed menu item design */
.dropdown-menu.block {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 10px 8px 8px 8px;
    min-width: 270px;
    background: #ffffff;
}

.dropdown-menu.block .menu-profile {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 4px 8px 10px 8px;
    padding: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.dropdown-menu.block .menu-profile:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border-color: #dbe3ea;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.dropdown-menu.block .menu-separator {
    margin: 8px 8px;
    background: #edf1f4;
}

.dropdown-menu.block > a {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 8px;
    #padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: #1f2937;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.menu-balance-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.menu-balance-primary {
    display: inline-flex;
    align-items: center;
}

.menu-balance-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    padding-left: 10px;
    border-left: 1px solid #dbe3ea;
}

.menu-balance-coin {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.dropdown-menu.block > a:hover {
    background: #f8fafc;
    border-color: #e5e7eb;
    transform: translateX(2px);
}

.dropdown-menu.block > a:active {
    background: #eef2ff;
    transform: translateX(0);
}

.dropdown-menu.block > a .icon-wrapper {
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin-right: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu.block > a .dpm-icon {
    width: 20px;
    height: 20px;
    padding: 0;
}

.dropdown-menu.block > a:hover .icon-wrapper {
    background: #e6efff;
    color: #1d4ed8;
}

.dropdown-menu.block > a[href*="exit=1"] {
    color: #b42318;
    background: #fff6f6;
    border-color: #ffd9d9;
}

.dropdown-menu.block > a[href*="exit=1"] .icon-wrapper {
    background: #ffecec;
    color: #dc2626;
}

.dropdown-menu.block > a[href*="exit=1"]:hover {
    background: #ffe9e9;
    border-color: #ffc2c2;
}

.burger {
    position: relative;
    width: 22px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #004687;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#menu-main:checked + .menu-button .burger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

#menu-main:checked + .menu-button .burger span:nth-child(2) {
    opacity: 0;
}

#menu-main:checked + .menu-button .burger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Мобильная версия верхнего меню --- */
@media (max-width: 768px) {
    .Menu_Up {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 56px;
        padding: 0 14px;
        gap: 0;
        background: linear-gradient(135deg, #101826 0%, #1c2a3d 50%, #283c57 100%);
        z-index: 1000;
    }

    /* Щоб контент не ховався під фіксованим меню */
    #wrapper {
        padding-top: 56px;
    }

    /* Скрываем десктопные блоки, показываем только мобильную шапку */
    .Menu_Up > .menu-left,
    .Menu_Up > .menu-divider,
    .Menu_Up > .menu-center,
    .Menu_Up > .header-right,
    .Menu_Up > .support-login-container {
        display: none !important;
    }

    .mobile-menu-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 56px;
    }

    .mobile-menu-brand {
        font-family: "Inter", "Arial", sans-serif;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 0.02em;
        color: rgba(255, 255, 255, 0.96);
    }

    .mobile-menu-actions {
        gap: 10px;
    }

    .mobile-menu-auth {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.96);
        text-decoration: none;
        font-family: "Inter", "Arial", sans-serif;
        font-size: 13px;
        font-weight: 500;
        backdrop-filter: blur(10px);
    }

    .mobile-menu-auth:active {
        transform: translateY(1px);
    }

    .mobile-burger .menu-button.nav {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .mobile-burger .burger span {
        background: rgba(255, 255, 255, 0.96);
        height: 2px;
    }

    .mobile-burger .dropdown-menu.nav {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100vw;
        height: 100vh;
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
        border-radius: 0;
        padding: 0;
        background: linear-gradient(135deg, #101826 0%, #1c2a3d 50%, #283c57 100%);
        box-shadow: none;
        z-index: 999;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 9px 14px 18px;
        margin: 0;
        border: none;
        border-radius: 0;
    }

    .mobile-menu-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        color: rgba(255, 255, 255, 0.96);
        border-radius: 8px;
        transition: background 0.2s ease;
        flex-shrink: 0;
    }

    .mobile-menu-close-btn:active {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-close-btn svg {
        width: 24px;
        height: 24px;
    }

    .mobile-burger .menu-nav {
        display: none;
    }

    .mobile-burger .menu-name {
        color: rgba(255, 255, 255, 0.92);
        font-weight: 600;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.16em;
    }

    .mobile-burger .menu_ups_mobile {
        list-style: none;
        margin: 0;
        padding: 0 24px;
        flex: 1 1 auto;
        overflow: hidden;
        box-sizing: border-box;
    }

    .mobile-burger .dropdown-menu.nav a,
    .mobile-burger .menu_ups_mobile .submenu-label {
        color: rgba(255, 255, 255, 0.96);
        font-family: "Inter", "Arial", sans-serif;
        font-size: 24px;
        line-height: 1.3;
        padding: 10px 0;
        border: none;
    }

    .mobile-burger .menu_ups_mobile a:hover,
    .mobile-burger .menu_ups_mobile .submenu-label:hover {
        background: transparent;
    }

    .mobile-burger .submenu-mobile {
        padding-left: 16px;
    }

    .mobile-menu-divider {
        margin: 20px 24px 18px;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        flex-shrink: 0;
    }

    .mobile-menu-blocks {
        display: flex;
        gap: 14px;
        padding: 0 24px 28px;
        flex-shrink: 0;
    }

    .mobile-menu-blocks-single .mobile-menu-block {
        flex: 1;
        min-width: 0;
    }

    .mobile-burger .mobile-menu-blocks .mobile-menu-block {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start!important;
        justify-content: center;
        gap: 8px!important;
        margin: 0px!important;
        padding: 16px 12px!important;
        border-radius: 12px!important;
        -webkit-tap-highlight-color: transparent!important;
        border: 1px solid rgba(148, 163, 184, 0.35)!important;
        background: rgba(30, 41, 59, 0.7)!important;
        color: rgba(255, 255, 255, 0.94)!important;
        text-decoration: none!important;
        font-family: "Inter", "Arial", sans-serif!important;
        font-size: 14px!important;
        font-weight: 500!important;
        transition: background 0.2s ease, border-color 0.2s ease!important;
    }

    .mobile-burger .mobile-menu-blocks .mobile-menu-block:hover {
        background: rgba(40, 51, 70, 0.85);
        border-color: rgba(148, 163, 184, 0.5);
    }

    .mobile-burger .mobile-menu-blocks .mobile-menu-block:active {
        background: rgba(25, 35, 52, 0.9);
    }

    .mobile-burger .mobile-menu-blocks .mobile-menu-block-icon {
        width: 24px;
        height: 24px;
        stroke: currentColor;
        flex-shrink: 0;
    }

    .mobile-burger .mobile-menu-blocks .mobile-menu-block span {
        line-height: 1.3;
        text-align: center;
    }

    .mobile-account-panel {
        margin-top: auto;
        margin-left: 24px;
        margin-right: 24px;
        margin-bottom: 24px;
        padding: 14px 16px;
        border-radius: 16px;
        background: rgba(15, 23, 42, 0.85);
        border: 1px solid rgba(148, 163, 184, 0.5);
        color: rgba(248, 250, 252, 0.96);
        font-family: "Inter", "Arial", sans-serif;
        font-size: 13px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .mobile-account-title {
        font-weight: 600;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.65);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 2px;
    }

    .mobile-account-name-link {
        color: rgba(255, 255, 255, 0.96);
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        padding: 0;
        display: block;
        line-height: 1.4;
    }

    .mobile-account-name-link:active {
        opacity: 0.8;
    }

    .container-info-block {
        box-sizing: border-box;
        width: max-content;
    }

    .mobile-account-logout {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        height: 34px;
        border-radius: 10px;
        /* background: rgba(255, 255, 255, 0.06); */
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: #fca5a5;
        font-weight: 500;
        font-size: 13px;
        text-decoration: none;
        padding: 0 12px;
        margin-top: 4px;
    }



    .mobile-account-logout.btn {
        padding: 0 !important;
    }


    .mobile-account-login {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        width: auto;
        height: 34px;
        border-radius: 10px;
        /* background: rgba(255, 255, 255, 0.06); */
        border: 1px solid rgba(255, 255, 255, 0.18);
        color: rgba(255, 255, 255, 0.96);
        font-weight: 600;
        font-size: 13px;
        text-decoration: none;
        padding: 0 12px;
        align-self: flex-start;
    }



}














.Menu_Left {
    background: #001242;
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.Menu_Left .menu-link {
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.Menu_Left .menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


.Red_Box {
    border: 3px dotted red;

}



.alert-file {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(-40px);
    background: #ffe6e6;
    border: 1px solid #dc3545;
    color: #721c24;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    font-family: Arial, sans-serif;
}


.alert-file.show {
    opacity: 1;
    transform: translateX(-50%);
    pointer-events: auto;
}


.alert-file.hide {
    opacity: 0;
    transform: translateX(-50%);
    pointer-events: none;
}


/*профиль*/

.profile-container{
    display: flex;
    width: -webkit-fill-available;
    flex-direction: column;
}
.banner-profile {
    position: relative;
    height: 150px;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #1b63c7, #6a9def, #6a9def, #1b63c7);
    background-size: 300% 100%;
    animation: gradientFlow 12s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 0%;
    }
}

.profile-card {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    font-family: sans-serif;
    box-sizing: border-box;
    padding: 20px;
    gap: 20px;
}

.profile-card .tel-empty {
    position: absolute;
    right: 20px;
    min-width: 150px;
}

.profile-empty {
    padding: 10px 15px;
    background-color: #eef5ff;
    border: 1px dashed #a0c4ff;
    border-radius: 10px;
    margin-left: 25px;
}

.profile-emptyt {
    padding: 10px 15px;
    background-color: #eef5ff;
    border: 1px dashed #a0c4ff;
    border-radius: 10px;
    margin-left: 25px;
}

.profile-empty p,
.profile-emptyt p{
    font-size: 14px;
    color: #333;
}

.profile-fill-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: 0.3s;
}

.profile-fill-link:hover {
    background-color: #0056b3;
}

/* Аватар */
.avatar {
    margin-top: -60px;
    display: flex;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e0e0e0;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px #f1f1f1, 0 0 0 5px #e9e9e9;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    object-fit: cover;
}

/* Имя и фамилия */
.avatar-name-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-family: sans-serif;
}

.avatar-fullname {
    font-weight: 600;
    font-size: 22px;
    color: #333;
}

.avatar-followers {
    font-size: 15px;
    color: #666;
}

.profile-separator {
    max-width: 700px;
    margin-left: 30px;
    border: none;
    border-top: 1px solid #ccc;
    margin-top: 10px;
}


/* Телефонный блок */
.profile-empty.tel-empty {
    min-width: 150px;
    position: absolute;
    right: 20px;
}



/* Адаптив для мобильных */
@media (max-width: 768px) {
    .profile-card {
        display: flex;
        flex-wrap: wrap;
        height: max-content;
        align-items: flex-start;
        padding: 10px;
    }

    .profile-empty {
        flex: 1 1 auto;
        padding: 8px 8px;!important;
        margin-left: 10px;
        width: 50%;
        margin-top: 0;
        box-sizing: border-box;
    }

    .profile-emptyt {
        flex: 1 1 auto;
        padding: 8px 8px;!important;
        margin-left: 0px;!important;
        width: 50%;
        margin-top: 10px;
        box-sizing: border-box;
    }

    .profile-empty.tel-empty {
        flex: 0 0 100% !important;
        width: 100% !important;
        position: relative !important;
        right: 60px; !important;
        margin-left: 0 !important;
    }

    .profile-info {
        flex-direction: column !important;
        width: 100%;
    }

    .profile-separator {
        display: none;
    }

    .avatar {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .avatar-name input {
        width: 100%;
        font-size: 20px!important;
        margin-bottom: 5px;
    }
}

.out-profile{
    display: flex;
    flex: 1 0 auto;
    min-height: 0;
    width: 100%;
    overflow-y: visible;
    overflow-x: hidden;
}


.layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

.content-profile {
    margin-left: 271px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    background: #f5f5f5;
    overflow: hidden;
}
.content-inner {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}



/*меню профиля*/
.Menu_Profile {
    background: #f7f7f7;
    margin-top: 65px;
    width: 230px;
    /* position: fixed; */
    height: -webkit-fill-available;
    min-width: 230px;
    max-width: 230px;
    border-right: 1px solid #dfe6eb;
    position: fixed;
    top: 0;
    left: 0;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    line-height: 1.4;
}

.Menu_Profile,
.Menu_Profile * {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.Menu_Profile .menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2b2b2b;
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 8px;
    transition: background-color 0.2s;
    font-weight: 600;
    font-size: 15px;
}

.Menu_Profile .menu-link .profile-menu-badge {
    margin-left: auto;
}

.Menu_Profile .menu-link .menu-icon {
    flex-shrink: 0;
}

.Menu_Profile .menu-link:hover {
    background-color: #ddedff;
    color: #004794;
}

/* Разделительная линия над кнопкой выхода */
.Menu_Profile .logout-separator {
    height: 1px;
    background-color: #dfe6eb;
    margin: 8px -20px 20px -20px;
    align-self: stretch;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    font-size: 15px;
    color: #2a2a2a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: color 0.2s;
    margin-top: auto;
}

.logoutdiv{
    margin-top: auto;
}

.logout-btn .logout-icon {
    flex-shrink: 0;
}

.logout-btn:hover {
    background: #f8e1e3;
    color: #e7000b;
}

/* Разделительная линия */
.Menu_Profile .divider {
    height: 1px;
    background-color: #dfe6eb;
    margin: 8px 0;
    border: none;
}

.Menu_Profile .menu-link.active {
    background-color: #0071df;
    color: #ffffff;
}

@media (max-width: 779px) {
    .Menu_Profile {
        display: none;
    }
}



.profile-menu-btn,
.profile-menu-overlay,
.profile-menu-btn-wrap {
    display: none;
}


@media (max-width: 768px) {

    .profile-menu-overlay,
    .profile-menu-btn,
    .profile-menu-title,
    .profile-menu-item,
    .profile-menu-logout-btn {
        font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    }

    .content-profile {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .content-inner {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .profile-menu-btn-wrap {
        display: none;
        background: linear-gradient(120deg, var(--menu-up-new-bg-1), var(--menu-up-new-bg-2));
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        padding: 10px 16px;
        box-shadow: 0 8px 18px rgba(5, 24, 44, 0.14);
    }

    .profile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 999px;
        padding: 11px 18px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        transition: all 0.2s ease;
        font-family: "Manrope", "Arial", sans-serif;
        backdrop-filter: blur(10px);
    }

    .profile-menu-btn svg {
        width: 18px;
        height: 18px;
    }

    .profile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.28);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
        transform: translateY(-1px);
    }

    .profile-menu-btn:active {
        transform: translateY(0);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    .profile-menu-btn i {
        font-size: 18px;
    }

    /* Оверлей меню */
    .profile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100vw;
        height: 100vh;
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
        background:
                #0a2a4a;
        z-index: 9999;
        display: none;
        flex-direction: column;
        padding: 0;
        #padding-bottom: env(safe-area-inset-bottom);
        box-sizing: border-box;
        overflow-y: auto;
        overflow-x: hidden;
        animation: fadeIn 0.2s ease;
    }

    /* Дополнительная поддержка для Safari */
    @supports (-webkit-touch-callout: none) {
        .profile-menu-overlay {
            height: -webkit-fill-available;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    /* Заголовок */
    .profile-menu-title {
        padding: 24px 24px 16px 24px;
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        text-align: left;
        color: rgba(255, 255, 255, 0.96);
        font-family: "Manrope", "Arial", sans-serif;
        background: transparent;
        border: none;
        border-radius: 0;
        position: relative;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    /* Кнопка закрытия */
    .profile-menu-overlay .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        color: rgba(255, 255, 255, 0.96);
        font-size: 24px;
        line-height: 1;
        font-weight: 300;
        transition: background 0.2s ease, border-color 0.2s ease;
        border-radius: 10px;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.14);
        padding: 0;
        z-index: 10000;
    }

    .profile-menu-overlay .close-btn:hover,
    .profile-menu-overlay .close-btn:active {
        background: rgba(255, 255, 255, 0.14);
    }

    /* Сетка меню */
    .profile-menu-list {
        list-style: none;
        margin: 0;
        padding: 8px 24px 0 24px;
        flex: 1 1 auto;
        overflow-y: auto;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    /* Пункты меню */
    .profile-menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        color: rgba(255, 255, 255, 0.92);
        font-family: "Manrope", "Arial", sans-serif;
        font-size: 17px;
        line-height: 1.35;
        padding: 12px 14px;
        border: 1px solid transparent;
        border-radius: 16px;
        text-decoration: none;
        transition: all 0.2s ease;
        background: transparent;
        font-weight: 600;
        letter-spacing: 0;
    }

    .profile-menu-item .profile-menu-badge {
        margin-left: auto;
    }

    .profile-menu-item:hover {
        background: rgba(10, 39, 66, 0.5);
        border-color: rgba(255, 255, 255, 0.14);
        color: rgba(255, 255, 255, 1);
        transform: translateX(2px);
    }

    .profile-menu-item:active {
        background: rgba(147, 201, 255, 0.16);
        border-color: rgba(187, 222, 255, 0.28);
        color: rgba(255, 255, 255, 0.98);
        transform: translateX(1px);
    }

    .profile-menu-item:last-child {
        margin-bottom: 0;
    }


    /* Разделитель */
    .profile-menu-separator {
        margin: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    /* Кнопка выхода */
    .profile-menu-logout-btn {
        margin: 24px;
        padding: 15px 20px!important;
        border-radius: 14px;
        background:
            linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
            rgba(10, 39, 66, 0.78);
        border: 1px solid rgba(187, 222, 255, 0.28);
        text-align: center;
        font-size: 15px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.95);
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: "Manrope", "Arial", sans-serif;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-sizing: border-box;
        backdrop-filter: blur(10px);
        box-shadow: 0 14px 24px rgba(5, 24, 44, 0.14);
    }

    /* Дополнительная поддержка для Safari iOS */
    @supports (-webkit-touch-callout: none) {
        .profile-menu-logout-btn {
            #margin-bottom: calc(32px + env(safe-area-inset-bottom) + 20px);
        }
    }

    .profile-menu-logout-btn:hover {
        background: rgba(220, 38, 38, 0.25);
        border-color: rgba(220, 38, 38, 0.5);
        color: rgba(255, 255, 255, 1);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
    }

    .profile-menu-logout-btn:active {
        background: rgba(220, 38, 38, 0.35);
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
    }

}






/* Контактная информация профиля */
.contact-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: sans-serif;
    box-sizing: border-box;
    height: 235px;
    display: inline-block;
    overflow: hidden;
}

/* Заголовок */
.contact-title {
    margin-bottom: 10px;
    font-size: 18px;
    color: #002147;
    font-weight: bold;
}

/* Подписи полей */
.contact-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-align: left;
}

/* Контейнер для телефона и кнопки */
.tel-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* Поля ввода */
.contact-input {
    flex: 1;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.contact-input:focus {
    border: 1px solid #007bff;
    outline: none;
}

/* Кнопки */
.contact-btn {
    padding: 8px 14px;
    background-color: #007bff;
    color: #fff;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #0060d0;
}

/* Email блок */
.email-display {
    margin-top: 12px;
}

.email-value {
    padding: 8px 10px;
    background-color: #eeeeee;
    border-radius: 6px;
    font-size: 14px;
    color: #222;
    font-weight: 500;
}

/* Разделитель */
.contact-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 10px 0 20px 0;
}

/* --- Адаптив для мобильных --- */
@media (max-width: 600px) {
    .contact-card {
        display: block;
        margin: 20px auto;
        width: 90%;
        max-width: 400px;
        height: auto;
    }

    .tel-row {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-bottom: 10px;
    }

    .contact-card {
        max-height: 235px;
    }

}



/*настройки профиля*/
.settings-block {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    max-width: 400px;
    height: 515px;
    margin: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: sans-serif;
    box-sizing: border-box;
    display: inline-block;
    overflow: hidden;
    transition: all 0.3s ease;
}

.settings-block.has-message {
    height: 570px;
}


.alert-setting {
    padding: 10px 20px;
    margin-bottom: 5px;
    max-width: 100%;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease;
}

.alert-setting-success {
    background: #e6ffed;
    border: 1px solid #28a745;
    color: #155724;
}

.alert-setting-error {
    background: #ffe6e6;
    border: 1px solid #dc3545;
    color: #721c24;
}


.settings-block form.updatelname,
.settings-block form.updatefname {
    display: flex;
    flex-direction: column;
    /* gap: 6px; */
    #margin-bottom: 10px;
}


.input-row {
    position: relative;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-row input.namesettings {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
    background: #f9f9f9;
}

.input-row label {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #999;
    font-size: 14px;
    pointer-events: none;
    background-color: #f9f9f9;
    padding: 0 4px;
    transition: 0.2s ease all;
}


.input-row input:not(:placeholder-shown) + label,
.input-row input[value]:not([value=""]) + label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #999;
}


.input-row input.namesettings:focus + label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #007bff; !important;
}

/* Поля ввода для имени и фамилии */
.settings-block form.updatelname input[type="text"],
.settings-block form.updatefname input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.settings-block form.updatelname input[type="text"]:focus,
.settings-block form.updatefname input[type="text"]:focus {
    border-color: #007bff;
    outline: none;
}

/* Кнопки отправки для имени и фамилии */
.settings-block form.updatelname .sub-sett-btn,
.settings-block form.updatefname .sub-sett-btn {
    padding: 8px 14px;
    background-color: #007bff;
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.settings-block form.updatelname .sub-sett-btn:hover,
.settings-block form.updatefname .sub-sett-btn:hover {
    background-color: #0060d0;
}

/* Разделительная линия после двух форм с именами */
.settings-block .divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 10px 0 20px 0;
}

/* Форма с паролями — вертикальный столбик */
.settings-block form.updatepasw {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

/* Поля пароля */
.settings-block form.updatepasw input[type="password"] {
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.settings-block form.updatepasw input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
}

/* Кнопка отправки пароля */
.settings-block form.updatepasw .sub-sett-btn {
    align-self: flex-start;
    padding: 8px 14px;
    background-color: #007bff;
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.settings-block form.updatepasw .sub-sett-btn:hover {
    background-color: #0060d0;
}

.settings-title {
    font-size: 18px;
    font-weight: bold;
    color: #002147;
    margin-bottom: 8px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.settings-podtitle{
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #002147;
    margin-bottom: 15px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.settings-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 10px;

}

.dividerset2 {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 10px;
    margin-top: 10px;
}


/*настройки аватарки*/
.avatar-settings {
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 5px;
    border-radius: 20px;
}

.avatar-preview{
    align-items: center;
    display: flex;
}

.avatar-preview .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}

.avatar-actions {
    gap: 10px;
    display: flex;
}

.btn-avatar {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn-deleteava {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #dc3545;
    transition: background 0.2s ease;
}

.change-avatar {
    background-color: #007bff;
    color: #fff;
}

.change-avatar:hover {
    background-color: #0056b3;
}

.delete-avatar {
    background-color: #dc3545;
    color: #ffffff;
}

.delete-avatar:hover {
    background-color: #b12a34;
    color: #e5e5e5;
}


/*Поп ап смены аватарки*/
.avatar-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.avatar-popup.show {
    opacity: 1;
    pointer-events: auto;
}


.avatar-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.avatar-popup.show .avatar-popup-content {
    transform: translateY(0);
}


.avatar-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avatar-popup-title {
    font-weight: 500;
    font-size: 22px;
}

.avatar-popup-close {
    background: none;
    border: none;
    cursor: pointer;
}

.avatar-popup-divider {
    margin: 10px 0;
    border: none;
    border-top: 1px solid #dfe6eb;
}

.avatar-popup-body {
    display: flex;
    justify-content: center;
}

.avatar-input {
    display: none;
}


.avatar-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: -webkit-fill-available;
    height: 140px;
    background-color: #dfe6eb;
    border: 2px dashed #c9cfd3;
    color: #343434;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.avatar-upload-box:hover {
    background-color: #e1eeff;
    border: 2px dashed #60a5fa;
    color: #1e468b;
}

.avatar-upload-icon {
    font-size: 36px;
}

.avatar-upload-text {
    font-size: 16px;
}

/* превью */
.avatar-preview-popup {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.avatar-preview-popup img {
    max-width: 160px;
    max-height: 160px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #ccc;
}

.avatar-save-btn {
    background: #2563eb;
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.avatar-save-btn:hover {
    background: #1d4ed8;
}

.avatar-cancel-btn {
    background: #e9e9e9;
    color: #888;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: 0.3s;
}

.avatar-cancel-btn:hover {
    background: #d9d9d9;
    color: #6f6f6f;
    border: 1px solid #a8a8a8;
}

.avatar-preview-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.avatar-preview-buttons button {
    flex: 1;
    cursor: pointer;
    box-sizing: border-box;
}


@media (max-width: 480px) {
    .avatar-popup-content {
        margin: 20px;
    }
}



.floating-input {
    position: relative;
    margin-bottom: 5px;
}

.floating-input input {
    width: 100%;
    padding: 12px 12px 12px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
}

.floating-input label {
    position: absolute;
    top: 8px;
    left: 12px;
    color: #999;
    font-size: 14px;
    pointer-events: none;
    background-color: #f9f9f9;
    padding: 0 4px;
    transition: 0.2s ease all;
}


.floating-input input:focus + label,
.floating-input input:not(:placeholder-shown) + label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #007bff;
}

.labelflname {
    display: block;
    margin-bottom: 0px;
    font-size: 14px;
    font-weight: 600;
    color: #002147;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.password-title {
    font-size: 18px;
    font-weight: bold;
    color: #002147;
    margin-bottom: 8px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Центрирование формы на мобильных */
@media (max-width: 600px) {
    .settings-block {
        display: block;
        margin: 20px auto;
        width: 90%;
        max-width: 400px;
    }
}



/*Финансовая инфа*/

.wallet-container {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    box-sizing: border-box;
}


.balance-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 16px 0;
}

.wallet-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.wallet-icon {
    margin-top: 5px;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.wallet-texts {
    display: flex;
    flex-direction: column;
}

.wallet-title {
    font-size: 18px;
    font-weight: bold;
    color: #002147;
    margin-bottom: 1px;
}

.wallet-subtitle {
    font-size: 14px;
    color: #666;
}

.wallet-balance-box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.04);
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.balance-icon {
    width: 24px;
    height: 24px;
}

.balance-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.balance-amount {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 14px;
}

.wallet-topup-btn {
    padding: 8px 14px;
    background-color: #007bff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.wallet-topup-btn:hover {
    background-color: #005dc1;
}

.finance-summary {
    display: flex;
    gap: 16px;
    margin: 20px;
    max-width: 100%;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}


.finance-card {
    flex: 1;
    height: 50px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.finance-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #002147;
    margin-bottom: 1px;
}

.finance-amount {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
}

.income .finance-amount {
    color: #28a745;
}

.expenses .finance-amount {
    color: #dc3545;
}

.wallet-full-wrapper {
    width: 100%;
    max-width: 360px;
    margin: 0;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}


/* --- Адаптив для мобильных --- */
@media (max-width: 600px) {
    .wallet-full-wrapper {
        max-width: 100%;
        padding: 0 18px;
        align-items: center;
        gap: 16px;
    }

    .wallet-container {
        margin: 20px auto;
        padding: 16px;
        max-width: 100%;
    }

    .finance-summary {
        align-items: stretch;
        gap: 12px;
        margin: 0 auto 16px auto;
        width: 100%;
        max-width: 100%;
    }

    .finance-card {

        width: 100%;
        height: auto;
        padding: 12px;
    }
}






.out-xsearch{
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    width: 100%;
    background: radial-gradient(120% 100% at 0% 0%, #f8fbff 0%, transparent 55%), radial-gradient(120% 100% at 100% 0%, #eef2f8 0%, transparent 55%), linear-gradient(165deg, #edf1f6 0%, #e3e9f1 100%);
    overflow-x: hidden;
}

.search-container {
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    font-family: Arial, sans-serif;
}

.search-out {
    display: flex;
    gap: 16px;
    width: -webkit-fill-available;
    background-color: #fff;
    padding: 16px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.04);
}

/* Левая часть */
.search-left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: #000;
    white-space: nowrap;
    flex: 0 0 auto;
    height: 36px;
    box-sizing: border-box;
}


/* Текст параметра */
.search-param {
    font-weight: 500;
    color: #333;
}


.search-count {
    color: #555;
}


.search-left .search-divider {
    width: 1px;
    height: 18px;
    background-color: #e5e7eb;
}


.search-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    margin-left: auto;
    position: relative;
}

/* Форма поиска */
.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
}

/* Контейнер инпута */
.search-input-container {
    position: relative;
    flex: 1;
}

/* Поле ввода */
.search-inputx {
    width: 100%;
    padding: 0 12px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #000;
    box-sizing: border-box;
    caret-color: #000;
    transition: border-color 0.2s;
    height: 36px;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.search-inputx:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .18);
    background: #ffffff;
}

/* Лейбл */
.search-input-container label {
    position: absolute;
    top: 8px;
    left: 12px;
    background: white;
    padding: 0 4px;
    color: #888;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s ease all;
}

.search-inputx:focus + label,
.search-inputx:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #007bff;
}

.searchklb-container label {
    position: absolute;
    top: 8px;
    left: 12px;
    background: white;
    padding: 0 4px;
    color: #888;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s ease all;
}

.searchklb-input:focus + label,
.searchklb-input:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #007bff;
}


/* Кнопки */
.search-btn,
.filter-btnx {
    height: 36px;
    padding: 0 16px;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    box-sizing: border-box;

}

.search-btn {
    background-color: #2563eb;
    color: #fff;
}

.search-btn:hover {
    background-color: #1d4ed8;
}

.filter-btnx {
    background-color: #004687;
    color: #fff;
}

.filter-btnx:hover {
    background-color: #002147;
}

.filter-btnx.active {
    background-color: #005cb8;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

/* Панель розширеного фільтру на сторінці результатів */
.filter-panel {
    position: absolute;
    top: 110%;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(148, 163, 184, 0.25);
    padding: 16px 18px 14px;
    min-width: 320px;
    max-width: 440px;
    z-index: 20;
    display: none;
}

.filter-panel.open {
    display: block;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.filter-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.filter-close {
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 2px 6px;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.filter-close:hover {
    background-color: rgba(148, 163, 184, 0.15);
    color: #0f172a;
    transform: translateY(-1px);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.filter-field--full {
    grid-column: 1 / -1;
}

.filter-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.filter-panel .input-container {
    width: 100%;
}

.filter-panel .login-Input {
    font-size: 14px;
    padding-top: 10px;
    padding-bottom: 8px;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 2px;
}

.filter-apply,
.filter-reset {
    height: 34px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.filter-apply {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.filter-apply:hover {
    background-color: #1d4ed8;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.filter-reset {
    background-color: #e5e7eb;
    color: #111827;
}

.filter-reset:hover {
    background-color: #d1d5db;
}

@media (max-width: 768px) {
    .filter-panel {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        top: auto;
        bottom: 16px;
        width: calc(100% - 32px);
        max-width: 520px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-dates {
        grid-template-columns: 1fr;
    }
}

/* Разделитель */
.search-divider {
    width: 1px;
    height: 28px;
    background-color: #e5e7eb;
}

.search-input {
    flex: 1;
    padding: 6px 10px;
}

/* Кнопки */
.sub-btnx, .filter-btn {
    padding: 6px 12px;
    cursor: pointer;
}

.sub-btnx {
    background-color: #007bff;
    color: #fff;
    border: none;
}

.filter-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
}

/* Контейнер пагинатора */
.paginator-out {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    margin-top: auto;
    font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}


.paginator-out ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
}

.paginator-out li {
    display: inline-block;
}

/* Ссылки и активная страница */
.paginator-out a,
.paginator-out span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Наведение */
.paginator-out a:hover {
    background: #2563eb;
    border-color:  #2563eb;
    color: #fff;
}

/* Активная страница */
.paginator-out .active,
.paginator-out span.current {
    background:  #2563eb;
    border-color:  #2563eb;
    color: #fff;
}

/* Отключенные стрелки */
.paginator-out .disabled {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    color: #aaa;
}


.cards-out {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(284px, 1fr));
    gap: 16px;
    padding: 20px;
}

.cardx {
    padding: 12px;
    border-radius: 12px;
    background: #f5f7fa;
    border: 1px solid #ccd5e0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 4px 12px rgba(28, 46, 82, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    font-family: "Manrope", "Trebuchet MS", sans-serif!important;
}

.cardx-moderation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    max-width: calc(100% - 20px);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    box-shadow: 0 4px 10px rgba(15, 28, 45, 0.16);
}

.cardx-moderation--pending {
    padding: 5px 10px;
    color: #8a5600;
    background: #fff1d1;
    border: 1px solid #ffd58a;
}

.cardx-moderation--approved {
    padding: 5px 10px;
    color: #1f7a43;
    background: #e9f7ef;
    border: 1px solid #b9e6c9;
    cursor: default;
}

.cardx-moderation--approved svg {
    width: 15px;
    height: 15px;
    display: block;
    flex: 0 0 auto;
}

.cardx-moderation-text {
    white-space: nowrap;
}

.cardx-img {
    flex: 0 0 auto;
    position: relative;
}

.cardx-img img {
    width: 100%;
    height: 280px;
    /*object-fit: cover;*/
    border-radius: 10px;
    background: #e6ebf2;
    border: 1px solid #d2d9e3;
    box-sizing: border-box;
}



.cardx-data {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    font-family: "Manrope", "Trebuchet MS", sans-serif;
}


.cardx-data .text2center {
    text-align: left;
    margin-bottom: 6px;
    line-height: 1.28;
}
.cardx-location {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    color: #5c6f8a;
    font-size: 14px;
    line-height: 1.32;
    text-align: left;
}


.cardx-data .text2center.font-bold.font-white.height50 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
    font-weight: 700;
    color: #0f2f54;
    text-align: left;
    margin-bottom: 5px;
    font-family: "Manrope", "Trebuchet MS", sans-serif;
    display: block;
    width: 100%;
    height: auto;
}




.cardx-data .text2center.font-white {
    text-align: left;
    letter-spacing: 0;
    margin: 0 0 4px;
    color: #465975;
    font-size: 16px;
    font-weight: 500;
}


.cardx-data .text2right {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.cardx .text2right a {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 6px 0;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(140deg, #0f1d38, #101e3d);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    transition: background 0.2s ease;
}

.cardx .text2right a:hover {
    background: linear-gradient(140deg, #152548, #132244);
}

.cardx:hover {
    transform: translateY(-3px);
}

@media (max-width: 480px) {

    /* Левая часть */
    .search-left {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 0 14px;
        border: 1px solid #ccc;
        border-radius: 6px;
        background: #fff;
        font-size: 14px;
        color: #000;
        white-space: nowrap;
        flex: 0 0 auto;
        height: 36px;
        box-sizing: border-box;
        width: 100%;
    }

    .search-right {
        display: none;
    }

}

.cardx-img img {
    object-fit: cover;
}

.no-results-wrap {
    display: flex;
    justify-content: center;
    height: 55px;
}

.no-results {
    max-width: 400px;
    padding: 15px 15px;
    text-align: center;
    font-size: 18px;
    color: #444;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cards-out:has(.no-results-wrap) {
    display: flex;
    justify-content: center;
    min-height: 50vh;
}


/* Контейнер формы */
.update-grave {
    max-width: 400px;
    height: 250px;
    margin: 40px auto;
    background: #f9f9f9;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-family: 'Arial', sans-serif;
    color: #333;
    transition: height 0.3s ease;
}

.update-grave.has-message {
    height: 80px;
}

.alert {
    padding: 10px 20px;
    margin-bottom: 5px;
    max-width: 100%;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease;
    font-family: Arial, sans-serif;
}

.alert-success {
    background: #e6ffed;
    border: 1px solid #28a745;
    color: #155724;
}

.alert-error {
    background: #ffe6e6;
    border: 1px solid #dc3545;
    color: #721c24;
}


/* Заголовок формы */
.update-grave .form-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

/* Сетка формы */
.update-grave form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* ФИО */
.update-grave .fullname {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* Даты */
.update-grave .dates {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Подписи */
.update-grave label {
    margin-bottom: 5px;
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #002147;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

/* Поля ввода */
.update-grave input[type="text"],
.update-grave input[type="date"] {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    color: #000;
    box-sizing: border-box;
}

.update-grave input[type="text"]:focus,
.update-grave input[type="date"]:focus {
    border-color: #007bff;
}




/* Кнопка формы */
.editbtn {
    grid-column: span 3;
    padding: 12px;
    background: #007bff;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}
.editbtn:hover {
    background: #0056b3;
}


.back-link {
    text-align: center;
    margin-top: 15px;
}
.back-link a {
    text-decoration: none;
    font-weight: bold;
    color: #007bff;
    transition: 0.3s;
}
.back-link a:hover {
    color: #0056b3;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}





/* Контейнер блока сообщений для graveadd */
.graveadd.has-message {
    max-width: 400px;
    height: 80px;
    margin: 40px auto;
    background: #f9f9f9;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-family: Arial, sans-serif;
    color: #333;
    text-align: center;
    transition: height 0.3s ease;
    animation: fadeIn 0.4s ease;

}


.graveadd.has-message .alert {
    padding: 10px 10px;
    margin-bottom: 5px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease;
    font-family: Arial, sans-serif;
}

/* Успешное сообщение */
.graveadd.has-message .alert-success {
    background: #e6ffed;
    border: 1px solid #28a745;
    color: #155724;
}

/* Ошибка */
.graveadd.has-message .alert-error {
    background: #ffe6e6;
    border: 1px solid #dc3545;
    color: #721c24;
}

/* Ссылка возврата */
.graveadd.has-message .back-link {
    text-align: center;
    margin-top: 15px;
}
.graveadd.has-message .back-link a {
    text-decoration: none;
    font-weight: bold;
    color: #007bff;
    transition: 0.3s;
}
.graveadd.has-message .back-link a:hover {
    color: #0056b3;
}

.success-overlay {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-40px);
    background: #e6ffed;
    border: 1px solid #28a745;
    color: #155724;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    font-family: Arial, sans-serif;
}


.success-overlay.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}


.success-overlay.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-40px);
    pointer-events: none;
}

@media (max-width: 480px) {

    .graveadd.has-message {
        max-width: 100%;
        height: 80px;
        margin-left: 15px;
        margin-right: 15px;
        background: #f9f9f9;
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        font-family: 'Arial', sans-serif;
        color: #333;
        text-align: center;
        transition: height 0.3s ease;
    }


    .graveadd.has-message .alert {
        padding: 10px 10px;
        margin-bottom: 5px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 500;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        animation: fadeIn 0.4s ease;
    }

    .graveadd.has-message .back-link {
        text-align: center;
        margin-top: 12px;
    }

}


/* Контейнер сторінки кладовищ: контент + пагинатор на одному сірому фоні */
.kladb-page-out {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    width: 100%;
    min-height: 0;
    background: #cbd0d6;
    overflow-x: hidden;
}

.out-kladb{
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    background: linear-gradient(180deg, #e8eaed 0%, #d8dbe0 50%, #cbd0d6 100%);
    overflow-x: hidden;
}


.searchklb-container {
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    font-family: Arial, sans-serif;
}

.searchklb-out {
    display: flex;
    gap: 16px;
    align-items: center;
    width: -webkit-fill-available;
    background-color: #fff;
    padding: 16px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.04);
}

/* Левая часть */
.searchklb-left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: #000;
    white-space: nowrap;
    flex: 0 0 auto;
    height: 36px;
    box-sizing: border-box;
}

.searchklb-param {
    font-weight: 500;
    color: #333;
}

.searchklb-count {
    color: #555;
}

.searchklb-left .searchklb-divider {
    width: 1px;
    height: 18px;
    background-color: #e5e7eb;
}

.searchklb-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    margin-left: auto;
}

/* Форма поиска */
.searchklb-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
}

/* Контейнер инпута */
.searchklb-input-container {
    position: relative;
    flex: 1;
}

/* Поле ввода */
.searchklb-input {
    width: 100%;
    padding: 0 12px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #000;
    box-sizing: border-box;
    caret-color: #000;
    transition: border-color 0.2s;
    height: 36px;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.searchklb-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .18);
    background: #ffffff;
}

/* Лейбл */
.searchklb-input-container label {
    position: absolute;
    top: 8px;
    left: 12px;
    background: white;
    padding: 0 4px;
    color: #888;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s ease all;
}

.searchklb-input:focus + label,
.searchklb-input:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #007bff;
}

/* Кнопки */
.searchklb-btn,
.filterklb-btnx {
    height: 36px;
    padding: 0 15px;
    font-size: 15px;
    gap: 6px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    text-decoration: none;
}

.searchklb-btn .btn-add-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.searchklb-btn {
    background-color: #2563eb;
    color: #fff;
}

.searchklb-btn:hover {
    background-color: #1d4ed8;
}

.filterklb-btnx {
    background-color: #004687;
    color: #fff;
}

.filterklb-btnx:hover {
    background-color: #002147;
}

/* Разделитель */
.searchklb-divider {
    width: 1px;
    height: 28px;
    background-color: #e5e7eb;
}

.cardk-out {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 20%;
}



.cardk {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 12px;
    border-radius: 15px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: Arial, sans-serif;
}


.cardk:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12),
    0 0 12px rgb(125, 165, 255);
}

.cardk-img {
    flex: 0 0 120px;
    width: 100%;
    height: 116px;
    object-fit: cover;
    overflow: hidden;
    border-radius: 6px;
    background: #eaeaea;
    border: #e0e0e0 2px solid;
    box-sizing: border-box;
}

.cardk-img img {
    width: 100%;
    height: 100%;
    object-position: center;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

.cardk-data {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cardk-title {
    color: #004687;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 4px;
}

.cardk-town,
.cardk-district,
.cardk-adress {
    font-size: 14px;
    color: #333;
}

.cardk-town b,
.cardk-district b,
.cardk-adress b {
    font-weight: bold;
}

.cardk-footer {
    display: flex;
    align-items: center;
    text-align: right;
}

.cardk-link {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 6px 20px;
    border: 1px solid #2563eb;
    font-size: 14px;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    transition: background 0.2s ease;
    margin-right: 10px;
    align-self: center;
}

.cardk-link:hover {
    background-color: #1d4ed8;
    color: #fff;
}

.paginator-out.kladb-page {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    margin-top: auto;
    font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.out-kladb-mobile{
    display: none;
}

@media (max-width: 768px) {
    .cardk-out {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px 5%;
    }

.filterklb-btnx{
    display: none;
}

    .searchklb-out {
        display: none;
    }

    .searchklb-out-mobile {
        display: table;
        gap: 16px;
        width: -webkit-fill-available;
        background-color: #fff;
        padding: 16px;
        box-shadow: inset 0 1px 4px rgba(0,0,0,0.04);
    }

    .cardk {
        flex-wrap: wrap;
        gap: 8px;
    }
    .cardk-footer {
        width: 100%;
    }
    .cardk-link {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0;
        border-radius: 8px;
    }

    .out-kladb-mobile{
        display: flex;
        flex-direction: column;
        width: 100%;
        flex: 1 0 auto;
        background: #9f9f9f;
        overflow-x: hidden;
    }

    .out-kladb {
        display: block;
    }

    .searchklb-container-mobile {
        display: block;
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
        font-family: Arial, sans-serif;
    }



    /* Левая часть */
    .searchklb-left {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 0 14px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        font-size: 14px;
        color: #000;
        white-space: nowrap;
        flex: 0 0 auto;
        height: 36px;
        box-sizing: border-box;
    }

    .searchklb-btn {

        color: #fff;
        justify-content: center;
    }

    .searchklb-buttons {
        display: flex;
        gap: 10px;
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }

    .searchklb-buttons .filterklb-btnx {
        flex: 1;
    }

    .filterklb-btnx {
        justify-content: center;
    }

    .searchklb-buttons .searchklb-btn {
        flex: 2;
    }



}

.out-cem{
    flex: 1 0 auto;
    width: 100%;
    background: #9f9f9f;
    overflow-x: hidden;
}

/* Форма добавления кладбища */
.cemetery-form-kladb {
    width: 570px;
    margin: 30px auto;
    height: max-content;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background: white;
    font-family: sans-serif;
}


.cemetery-form-title-kladb {
    background-color: #007bff;
    color: #fff;
    padding: 12px 16px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin: 0;
    margin-top: -21px;
    margin-left: -21px;
    margin-right: -21px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}


/* Подзаголовки рядов формы */
.form-subtitle-kladb {
    font-size: 14px;
    align-items: center;
    display: flex;
    font-weight: 600;
    color: #3c84d7;
    margin: 20px 0 10px 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    font-family: sans-serif;
}

.form-subtitle-kladb .subtitle-icon {
    margin-right: 4px;
    flex-shrink: 0;
}

/* Группы полей */
.form-row-kladb {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
}

/* Колонки */
.form-row-kladb.three-cols .form-group-kladb {
    flex: 1 1 calc(33.33% - 16px);
}

.form-row-kladb.two-cols .form-group-kladb {
    flex: 1 1 calc(50% - 16px);
}

.form-group-kladb {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Кнопка внутри инпута */
.form-group-kladb .add-region-btn {
    position: absolute;
    top: 50%;
    right: 1px;
    transform: translateY(-50%);
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border: none;
    border-left: 1px solid #ccc;
    border-radius: 0px 5px 5px 0px;
    width: 33px;
    height: 33px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    display: flex;
    font-weight: 500;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}
.form-group-kladb .add-region-btn:hover {
    background-color: #0060d0;
}

.add-settlement-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    /* background: #ccc; */
}


/* Поля ввода */
.form-input-kladb,
.form-input-kladb select {
    width: 100%;
    height: 34px;
    line-height: 1.2;
    appearance: none;
    padding: 0px 8px 0px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    outline: none;
    transition: border-color 0.2s;
    /* color: #000; */
    box-sizing: border-box;
}

/* Фокус */
.form-input-kladb:focus {
    border-color: #007bff;
}

/* Файл */
.form-input-kladb[type="file"] {
    height: auto;
    color: #0053a0;
    padding: 10px 15px;
    background-color: #eef5ff;
    border: 1.5px dashed #a0c4ff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
}

/* Кнопка выбора файла */
.form-input-kladb[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 8px 12px;
    border: 1px solid #007bff;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.form-input-kladb[type="file"]::file-selector-button:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.form-input-kladb[type="file"]::file-selector-button:active {
    background: #004892;
}

.form-input-kladb[type="file"]:focus-visible::file-selector-button {
    box-shadow: 0 0 0 3px rgba(0,123,255,.25);
}


.form-input-kladb[type="file"]::-webkit-file-upload-button {
    margin-right: 10px;
    padding: 6px 10px;
    border: 1px solid #007bff;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.form-input-kladb[type="file"]::-webkit-file-upload-button:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.form-input-kladb[type="file"]::-webkit-file-upload-button:active {
    background: #004892;
}


.form-group-kladb label {
    position: absolute;
    top: 8px;
    left: 12px;
    background: white;
    padding: 0 4px;
    color: #888;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s ease all;
}

/* Подъём лейбла */
.form-input-kladb:focus + label,
.form-input-kladb:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #007bff;
}

/* Кнопки */
.form-actions-kladb {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 25px;
}

.btn-add-kladb {
    padding: 10px 24px;
    font-size: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex: 3;
}

.btn-add-kladb:hover {
    background-color: #0060d0;
}

.btn-cancel-kladb {
    background-color: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 15px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    flex: 1;
}

.btn-cancel-kladb:hover {
    border: 2px solid #0060d0;
    background-color: #0060d0;
    color: white;
}

select.form-input-kladb:invalid {
    color: #888;
    appearance: none;
}


select.form-input-kladb option[value=""] {
    display: none;
}

@media (max-width: 480px) {
    .cemetery-form-kladb {
        max-width: 85%;
        margin: 15px auto;
        height: max-content;
        padding: 20px;
        border: 1px solid #ddd;
        border-radius: 16px;
        background: white;
        font-family: sans-serif;
    }

    .form-row-kladb {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 20px;
    }

    .form-group-kladb{
        width: -webkit-fill-available;
    }

    #kladbfile2{
        margin-top: 5px;
    }
}


.execution-time{
    z-index: 99999;
    padding: 10px 20px;
    max-width: 100%;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: opacity 0.4s ease;
    background: #e6ecff;
    border: 1px solid #2844a7;
    color: #152057;
}

/*авто-зум на iPhone и Android */
@media (max-width: 768px) {
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}
/* каптча */
.captcha-modal {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.64);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.captcha-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.captcha-box {
    background: #fff;
    font-family: "Inter", "Arial", sans-serif;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1),
    0 15px 50px rgba(0, 0, 0, 0.15),
    0 20px 80px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 360px;

    opacity: 0;
    transform: scale(0.9);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.captcha-modal.show .captcha-box {
    opacity: 1;
    transform: scale(1);
}

.captcha-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 15px 0;
    text-align: center;
}

.captcha-title span#captchaQuestion {
    font-weight: bold;
    color: #007bff;
}

.captcha-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
    font-family: "Inter", "Arial", sans-serif;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

.captcha-modal-title {
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    flex: 1;
}

.captcha-close {
    position: absolute;
    right: 0;
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.3s ease;
}

.captcha-close:hover {
    filter: brightness(95%);
}

.captcha-close-icon {
    width: 30px;
    height: 30px;
}

.captcha-actions {
    margin-top: 15px;
    display: flex;
    justify-content: space-around;
}

.captcha-error {
    margin-top: 15px;
    background: #ffe6e6;
    border: 1px solid #dc3545;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: left;
    display: none;
}


/* Контейнер для списка */
.saved-items-container {
    min-height: max-content;
    max-height: 350px;
    overflow-y: auto;
    margin-top: 8px;
    padding: 8px 0;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    display: block;
}

.saved-items-container.loading {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: opacity 0.15s ease, visibility 0.15s ease, max-height 0.15s ease, padding 0.15s ease, margin 0.15s ease;
}

.saved-items-container::-webkit-scrollbar {
    width: 6px;
}

.saved-items-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.saved-items-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.saved-items-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}


.saved-item-wrapper {
    position: relative;
    margin: 4px 8px;
    border-radius: 8px;
    overflow: visible;
    background-color: #fff;
}

.saved-item-wrapper:hover {
    background-color: #f5f5f5;
}

.saved-item-wrapper.swiping {
    overflow: visible;
}

.saved-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    background-color: #fff;
    z-index: 2;
    touch-action: pan-y;
}

.saved-item-wrapper:hover .saved-item {
    background: #efefef;
}


.saved-item.swiped {
    transform: translateX(-70px);
}

.saved-photo {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.saved-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    color: #333;
    line-height: 1.4;
}

.saved-item-delete {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 45px;
    height: 45px;
    border: none;
    background: #e74c3c;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
    opacity: 0;
    pointer-events: none;
}

.saved-item-wrapper.swiped .saved-item-delete {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

.saved-item-delete:hover {
    background: #c0392b;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.4);
}

.saved-item-delete:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 1px 4px rgba(231, 76, 60, 0.4);
}

.saved-item-delete svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    pointer-events: none;
}

.empty-saved {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
    font-style: italic;
}


/*стили для системного сообщения*/
#global-alert,
#client-profile-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
}

#global-alert.show,
#client-profile-alert.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

#global-alert .notification-content,
#client-profile-alert .notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

#global-alert .notification-icon,
#client-profile-alert .notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

#global-alert .notification-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

#global-alert .notification-message,
#client-profile-alert .notification-message {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    font-family: inherit;
}

#global-alert.notification-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#global-alert.notification-success .notification-icon,
#client-profile-alert.notification-success .notification-icon {
    color: #28a745;
}

#global-alert.notification-error,
#client-profile-alert.notification-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

#global-alert.notification-error .notification-icon,
#client-profile-alert.notification-error .notification-icon {
    color: #dc3545;
}

@media (max-width: 768px) {
    #global-alert {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    #global-alert.show,
    #client-profile-alert.show {
        transform: translateY(0);
    }
}

.testblock{
    background: white;
    width: 100%;
    margin: 30px;
    padding: 50px;
    height: 300px;
}

.leftMenu {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #f7faff;
    border-right: 1px solid #e3e8ef;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
}

.menuItem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    font-size: 16px;
    text-decoration: none;
    color: #1d1d1d;
    transition: 0.2s;
}

.menuItem:hover {
    background: #e8f0ff;
}

.menuItem.active {
    background: #007bff;
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
}

.logoutBtn {
    margin-top: auto;
    margin: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #ffe8e8;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    color: #d70000;
    transition: 0.2s;
}

.logoutBtn:hover {
    background: #ffdbdb;
}

.icon {
    font-size: 18px;
}


/* --- Сторінка FAQ --- */
.faq-page {
    width: 100%;
    padding: 1rem 0 3rem;
    background:
        radial-gradient(78% 58% at 18% -6%, rgba(81, 169, 205, 0.20) 0%, rgba(81, 169, 205, 0) 64%),
        radial-gradient(62% 52% at 92% -8%, rgba(32, 86, 153, 0.18) 0%, rgba(32, 86, 153, 0) 70%),
        linear-gradient(160deg, #edf3f9 0%, #e2eaf3 52%, #d8e2ee 100%);
}

.faq-page,
.faq-page * {
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    box-sizing: border-box;
}

.faq-container {
    max-width: 920px;
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 0 16px;
}

.faq-hero {
    margin-bottom: 20px;
    padding: 20px 0 8px;
    text-align: center;
}

.faq-title {
    text-align: center;
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 800;
    color: #102c47;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.faq-title::after {
    content: "";
    display: block;
    width: 58px;
    height: 5px;
    margin: 0.9rem auto 0;
    background: linear-gradient(90deg, #1f5c91, #69b0d6);
    border-radius: 999px;
}

.faq-section {
    margin-bottom: 1rem;
    padding: 1.25rem 1.35rem 1.35rem;
    border: 1px solid #d6e2ef;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(12, 40, 70, 0.06);
}

.faq-section:last-child {
    margin-bottom: 0;
}

.faq-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #133657;
    margin: 0 0 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #dbe5ef;
}

/* --- Сторінка «Про нас» --- */
.about-page {
    width: 100%;
    padding: 1rem 0 3rem;
    background:
        radial-gradient(78% 58% at 18% -6%, rgba(81, 169, 205, 0.20) 0%, rgba(81, 169, 205, 0) 64%),
        radial-gradient(62% 52% at 92% -8%, rgba(32, 86, 153, 0.18) 0%, rgba(32, 86, 153, 0) 70%),
        linear-gradient(160deg, #edf3f9 0%, #e2eaf3 52%, #d8e2ee 100%);
}

.about-page,
.about-page * {
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    box-sizing: border-box;
}

.about-container {
    max-width: 920px;
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 0 16px;
}

.about-hero {
    margin-bottom: 20px;
    padding: 20px 0 8px;
    text-align: center;
}

.about-title {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #102c47;
    font-weight: 800;
}

.about-title::after {
    content: "";
    display: block;
    margin: 0.9rem auto 0;
    width: 58px;
    height: 5px;
    background: linear-gradient(90deg, #1f5c91, #69b0d6);
    border-radius: 999px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.about-section {
    margin: 0;
}

.about-section-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}

.about-section-index {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #d3e0ee;
    background: #f3f8fd;
    color: #1d4f7d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.about-section-head-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
    padding-top: 2px;
}

.about-section-kicker {
    margin: 0!important;
    color: #53718f!important;
    font-size: 12px!important;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-section-title {
    margin: 0;
    padding: 0;
    border: 0;
    color: #133657;
    font-size: 1.22rem;
    line-height: 1.3;
}

.about-block {
    padding: 1.35rem 1.45rem 1.4rem;
    border: 1px solid #d6e2ef;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(12, 40, 70, 0.06);
    line-height: 1.7;
    color: #475569;
}

.about-block p {
    margin: 0 0 1rem;
    font-size: 0.97rem;
    color: #4b6079;
}

.about-block p:last-child {
    margin-bottom: 0;
}

.about-block strong {
    color: #163a5f;
}

.about-badge {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 0.95rem;
    padding: 0.4rem 0.78rem;
    border: 1px solid #f0d997;
    border-radius: 999px;
    background: #fff7db;
    color: #8b6a15;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 640px) {
    .about-page {
        padding: 0.75rem 0 2.5rem;
    }

    .about-container {
        padding: 0 14px;
    }

    .about-hero {
        padding: 16px 0 6px;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-section-head {
        grid-template-columns: 36px minmax(0, 1fr);
        column-gap: 12px;
        margin-bottom: 12px;
    }

    .about-section-index {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .about-section-kicker {
        font-size: 11px !important;
        letter-spacing: 0.11em;
    }

    .about-section-title {
        font-size: 1.08rem;
    }

    .about-block {
        padding: 1.15rem 1.1rem 1.2rem;
        border-radius: 18px;
    }

    .about-block p {
        font-size: 0.93rem;
        line-height: 1.68;
    }

    .about-badge {
        padding: 0.34rem 0.68rem;
        font-size: 11px;
    }
}

.faq-item {
    background: #fdfefe;
    border: 1px solid #d8e3ee;
    border-radius: 18px;
    margin-bottom: 12px;
    box-shadow: 0 8px 18px rgba(12, 40, 70, 0.04);
    overflow: hidden;
}

.faq-item.active {
    border-color: #c8d9ea;
    box-shadow: 0 10px 22px rgba(12, 40, 70, 0.06);
}

.faq-question {
    cursor: pointer;
    padding: 1rem 3.1rem 1rem 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #133657;
    position: relative;
    line-height: 1.45;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.95) 0%, rgba(243, 248, 253, 0.95) 100%);
}

.faq-question::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -6px;
    border-right: 2px solid #5c7691;
    border-bottom: 2px solid #5c7691;
    transform: rotate(45deg);
    transition: transform 0.3s ease, border-color 0.2s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(-135deg);
    border-color: #1f5c91;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    transition: max-height 0.35s ease;
    color: #4b6079;
    font-size: 0.96rem;
    line-height: 1.85;
}

.faq-answer__inner {
    padding: 1rem 1.35rem 1.3rem;
    border-top: 1px solid #e2ebf3;
}

.faq-answer p {
    margin: 0 0 0.9rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-status-row {
    margin: 0 0 0.9rem;
    line-height: 1.8;
}

.faq-status-row + .faq-status-row {
    margin-top: 0.8rem;
}

.faq-status-row:last-child {
    margin-bottom: 0;
}

.faq-status-row .faq-status-badge {
    margin-right: 0.2rem;
    vertical-align: middle;
}

.faq-status-separator {
    display: inline;
    margin-right: 0.38rem;
    color: #5c7691;
    font-weight: 700;
}

.faq-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.1;
    white-space: nowrap;
}

.faq-status-badge--pending {
    border-color: rgba(180, 121, 16, 0.28);
    background: linear-gradient(135deg, rgba(255, 242, 213, 0.95) 0%, rgba(255, 249, 231, 0.98) 100%);
    color: #8a6110;
}

.faq-status-badge--approved {
    border-color: rgba(18, 123, 91, 0.24);
    background: linear-gradient(135deg, rgba(223, 248, 238, 0.95) 0%, rgba(241, 253, 247, 0.98) 100%);
    color: #127255;
}

.faq-status-badge--rejected {
    border-color: rgba(174, 53, 71, 0.24);
    background: linear-gradient(135deg, rgba(255, 230, 234, 0.95) 0%, rgba(255, 244, 246, 0.98) 100%);
    color: #a03144;
}

.faq-link {
    display: inline-block;
    color: #1f6fc4;
    font-weight: 700;
    font-size: 0.95em;
    line-height: 1.4;
    text-decoration: none;
    padding: 0.2em 0.56em;
    margin: 0.08em 0.12em 0.08em 0;
    border-radius: 999px;
    border: 1px solid rgba(31, 111, 196, 0.24);
    background: rgba(31, 111, 196, 0.09);
    vertical-align: baseline;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.faq-link:hover {
    color: #185aa0;
    background: rgba(31, 111, 196, 0.14);
    border-color: rgba(31, 111, 196, 0.36);
}

@media (max-width: 640px) {
    .faq-page {
        padding: 0.75rem 0 2.5rem;
    }

    .faq-container {
        padding: 0 14px;
    }

    .faq-title {
        font-size: 2rem;
    }

    .faq-hero {
        padding: 16px 0 6px;
    }

    .faq-section {
        padding: 1rem 1rem 1.05rem;
        border-radius: 18px;
    }

    .faq-section-title {
        font-size: 1.08rem;
    }

    .faq-item {
        border-radius: 16px;
    }

    .faq-question {
        padding: 0.95rem 2.9rem 0.95rem 1rem;
        font-size: 0.96rem;
        line-height: 1.4;
    }

    .faq-answer {
        font-size: 0.93rem;
        line-height: 1.78;
    }

    .faq-answer__inner {
        padding: 0.9rem 1rem 1rem;
    }

    .faq-status-row {
        line-height: 1.7;
    }

    .faq-link {
        font-size: 0.92em;
        padding: 0.18em 0.5em;
        white-space: normal;
    }
}

/* --- Сторінка «Контактна інформація» --- */
.contact-page {
    width: 100%;
    padding: 1rem 0 3rem;
    background:
        radial-gradient(78% 58% at 18% -6%, rgba(81, 169, 205, 0.20) 0%, rgba(81, 169, 205, 0) 64%),
        radial-gradient(62% 52% at 92% -8%, rgba(32, 86, 153, 0.18) 0%, rgba(32, 86, 153, 0) 70%),
        linear-gradient(160deg, #edf3f9 0%, #e2eaf3 52%, #d8e2ee 100%);
}

.contact-page,
.contact-page * {
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    box-sizing: border-box;
}

.contact-page .contact-container {
    max-width: 920px;
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 0 16px;
}

.contact-hero {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0 8px;
}

.contact-title {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 800;
    color: #102c47;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.contact-title::after {
    content: "";
    display: block;
    width: 58px;
    height: 5px;
    margin: 0.9rem auto 0;
    background: linear-gradient(90deg, #1f5c91, #69b0d6);
    border-radius: 999px;
}

.contact-lead {
    margin: 16px auto 0;
    max-width: 32rem;
    font-size: 0.97rem;
    color: #4f6680;
    line-height: 1.72;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.contact-tile {
    padding: 1.35rem 1.3rem 1.3rem;
    border: 1px solid #d6e2ef;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(12, 40, 70, 0.06);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.contact-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 0.9rem;
    border-radius: 12px;
    border: 1px solid #d3e0ee;
    background: #f3f8fd;
    color: #1d4f7d;
}

.contact-icon-svg {
    width: 22px;
    height: 22px;
}

.contact-tile-heading {
    margin: 0 0 0.7rem;
    font-size: 1.18rem;
    font-weight: 800;
    color: #133657;
    line-height: 1.32;
}

.contact-tile-text {
    font-size: 0.96rem;
    color: #4b6079;
    line-height: 1.72;
    margin: 0 0 1.1rem;
    flex: 1;
}

.contact-tile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    font-size: 0.93rem;
    font-weight: 700;
    color: #1f6fc4;
    text-decoration: none;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 111, 196, 0.24);
    background: rgba(31, 111, 196, 0.09);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    text-align: center;
    margin-top: auto;
}

.contact-tile-btn:hover {
    color: #185aa0;
    background: rgba(31, 111, 196, 0.14);
    border-color: rgba(31, 111, 196, 0.36);
}

.contact-tile-btn-email {
    font-weight: 700;
    word-break: break-word;
}

.contact-footer-note {
    margin-top: 16px;
    padding: 1.2rem 1.3rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    border: 1px solid #d6e2ef;
    box-shadow: 0 10px 24px rgba(12, 40, 70, 0.05);
    text-align: center;
}

.contact-footer-note p,
.contact-footer-text {
    margin: 0;
    font-size: 0.96rem;
    color: #4b6079;
    line-height: 1.72;
}

.contact-footer-text strong {
    color: #163a5f;
    font-weight: 700;
}

.contact-inline-link {
    color: #1f6fc4;
    text-decoration: none;
    font-weight: 700;
}

.contact-inline-link:hover {
    text-decoration: underline;
}

/* Контакти: планшет — 2 колонки */
@media (min-width: 769px) and (max-width: 990px) {
    .contact-page .contact-container {
        padding: 0 16px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Контакти: мобільні */
@media (max-width: 768px) {
    .contact-page .contact-container {
        padding: 0 14px;
    }

    .contact-page {
        padding: 0.75rem 0 2.5rem;
    }

    .contact-hero {
        padding: 16px 0 6px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-lead {
        font-size: 0.92rem;
        line-height: 1.64;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-tile {
        padding: 1.15rem 1.05rem 1.1rem;
        border-radius: 18px;
    }

    .contact-tile-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .contact-icon-svg {
        width: 20px;
        height: 20px;
    }

    .contact-tile-heading {
        font-size: 1.05rem;
        margin: 0 0 0.5rem;
    }

    .contact-tile-text {
        font-size: 0.92rem;
        line-height: 1.66;
        margin: 0 0 1rem;
    }

    .contact-tile-btn {
        font-size: 0.89rem;
        min-height: 38px;
    }

    .contact-footer-note {
        padding: 1rem 1rem 1.05rem;
        border-radius: 18px;
    }

    .contact-footer-text {
        font-size: 0.92rem;
    }
}

/* Контакти: дуже малі екрани */
@media (max-width: 380px) {
    .about-container,
    .faq-container,
    .contact-page .contact-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .about-title,
    .faq-title,
    .contact-title {
        font-size: 1.82rem;
    }

    .about-block,
    .faq-section,
    .contact-tile,
    .contact-footer-note {
        border-radius: 16px;
    }

    .about-block {
        padding: 1rem 0.95rem 1.05rem;
    }

    .about-section-head {
        grid-template-columns: 34px minmax(0, 1fr);
        column-gap: 10px;
    }

    .about-section-index {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .about-section-title,
    .faq-section-title,
    .contact-tile-heading {
        font-size: 1rem;
    }

    .about-block p,
    .faq-answer,
    .contact-tile-text,
    .contact-footer-text,
    .contact-lead {
        font-size: 0.9rem;
    }

    .faq-question {
        padding: 0.88rem 2.65rem 0.88rem 0.92rem;
        font-size: 0.92rem;
    }

    .faq-answer__inner {
        padding: 0.82rem 0.92rem 0.92rem;
    }

    .faq-link {
        font-size: 0.9em;
        padding: 0.16em 0.46em;
    }

    .contact-grid {
        gap: 12px;
    }

    .contact-tile {
        padding: 1rem 0.95rem 1rem;
    }

    .contact-tile-btn {
        min-height: 36px;
        font-size: 0.85rem;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
}

/* --- Сторінка «Послуги» --- */
.service-page {
    width: 100%;
    padding: 1rem 0 3rem;
    background:
        radial-gradient(70% 58% at 14% -6%, rgba(88, 168, 208, 0.22) 0%, rgba(88, 168, 208, 0) 64%),
        radial-gradient(60% 50% at 92% -8%, rgba(25, 90, 160, 0.18) 0%, rgba(25, 90, 160, 0) 68%),
        linear-gradient(160deg, #edf3f9 0%, #e4edf5 52%, #dbe5ef 100%);
}

.service-page,
.service-page * {
    box-sizing: border-box;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
}

.service-container {
    max-width: 980px;
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 0 16px;
}

.service-hero {
    text-align: center;
    padding: 22px 0 12px;
}

.service-hero-kicker {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #2d6d9f;
}

.service-title {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #102c47;
    font-weight: 800;
}

.service-title::after {
    content: "";
    display: block;
    width: 58px;
    height: 5px;
    margin: 0.9rem auto 0;
    background: linear-gradient(90deg, #1f5c91, #69b0d6);
    border-radius: 999px;
}

.service-lead {
    max-width: 42rem;
    margin: 16px auto 0;
    font-size: 0.98rem;
    line-height: 1.74;
    color: #4f6680;
}

.service-quick-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.service-quick-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 194px;
    padding: 1.25rem 1.2rem;
    text-decoration: none;
    border-radius: 22px;
    border: 1px solid #d6e2ef;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(12, 40, 70, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(12, 40, 70, 0.08);
    border-color: #c6d9ea;
}

.service-quick-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 0.95rem;
    color: #1f5f96;
    background: linear-gradient(180deg, #f4f8fd 0%, #e8f0f9 100%);
    border: 1px solid #d6e2ef;
}

.service-quick-card__icon svg {
    width: 24px;
    height: 24px;
}

.service-quick-card__title {
    display: block;
    margin-bottom: 0.55rem;
    color: #133657;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.28;
}

.service-quick-card__text {
    display: block;
    color: #516780;
    font-size: 0.94rem;
    line-height: 1.7;
}

.service-section {
    margin-top: 18px;
}

.service-section-head {
    margin-bottom: 12px;
}

.service-section-title {
    margin: 0;
    color: #123556;
    font-size: 1.32rem;
    font-weight: 800;
    line-height: 1.25;
}

.service-section-text {
    margin: 0.42rem 0 0;
    color: #4f6680;
    font-size: 0.95rem;
    line-height: 1.68;
}

.service-card-list {
    display: grid;
    gap: 14px;
}

.service-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 1.2rem 1.25rem;
    border-radius: 22px;
    border: 1px solid #d6e2ef;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(12, 40, 70, 0.06);
}

.service-card__icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
}

.service-card-icon--teal {
    background: linear-gradient(180deg, #2fb7a6 0%, #178879 100%);
}

.service-card-icon--blue {
    background: linear-gradient(180deg, #4f8ae9 0%, #235dc1 100%);
}

.service-card-icon--gold {
    background: linear-gradient(180deg, #f2b847 0%, #d99212 100%);
}

.service-card__body {
    min-width: 0;
}

.service-card__meta {
    margin-bottom: 0.45rem;
    color: #2b6ca2;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-card__title {
    margin: 0 0 0.42rem;
    color: #133657;
    font-size: 1.14rem;
    font-weight: 800;
    line-height: 1.3;
}

.service-card__text {
    margin: 0;
    color: #4f6680;
    font-size: 0.95rem;
    line-height: 1.72;
}

.service-card__text--mobile {
    display: none;
}

.service-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: #1f6fc4;
    background: rgba(31, 111, 196, 0.09);
    border: 1px solid rgba(31, 111, 196, 0.22);
    font-size: 0.91rem;
    font-weight: 800;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.service-card__action:hover {
    color: #185aa0;
    background: rgba(31, 111, 196, 0.14);
    border-color: rgba(31, 111, 196, 0.34);
}

.service-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.service-info-card {
    padding: 1.22rem 1.25rem;
    border-radius: 22px;
    border: 1px solid #d6e2ef;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(12, 40, 70, 0.05);
}

.service-steps {
    margin: 0.95rem 0 0;
    padding-left: 1.2rem;
    color: #4f6680;
}

.service-steps li {
    margin-bottom: 0.8rem;
    line-height: 1.68;
    font-size: 0.95rem;
}

.service-steps li:last-child {
    margin-bottom: 0;
}

.service-mini-list {
    display: grid;
    gap: 12px;
    margin-top: 0.95rem;
}

.service-mini-card {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid #e0e9f2;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-mini-card:hover {
    transform: translateY(-1px);
    border-color: #cbdced;
    box-shadow: 0 10px 20px rgba(12, 40, 70, 0.05);
}

.service-mini-card__icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-top: 0.2rem;
}

.service-mini-icon--slate {
    background: linear-gradient(180deg, #7392b2 0%, #4f6987 100%);
}

.service-mini-icon--rose {
    background: linear-gradient(180deg, #ee8a86 0%, #d25666 100%);
}

.service-mini-icon--violet {
    background: linear-gradient(180deg, #9c92f1 0%, #695dc3 100%);
}

.service-mini-card__body {
    display: block;
    min-width: 0;
}

.service-mini-card__title {
    display: block;
    color: #143758;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.32;
}

.service-mini-card__text {
    display: block;
    margin-top: 0.28rem;
    color: #556c84;
    font-size: 0.92rem;
    line-height: 1.62;
}

.service-support {
    margin-top: 18px;
    padding: 1.25rem 1.3rem;
    border-radius: 22px;
    border: 1px solid #d6e2ef;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(12, 40, 70, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.service-support__copy {
    min-width: 0;
}

.service-support__eyebrow {
    margin: 0 0 0.4rem;
    color: #2c6ca2;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.service-support__title {
    margin: 0;
    color: #123556;
    font-size: 1.24rem;
    font-weight: 800;
    line-height: 1.28;
}

.service-support__text {
    margin: 0.5rem 0 0;
    color: #4f6680;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-support__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.service-support__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: #1f6fc4;
    background: rgba(31, 111, 196, 0.09);
    border: 1px solid rgba(31, 111, 196, 0.22);
    font-size: 0.92rem;
    font-weight: 800;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.service-support__btn:hover {
    color: #185aa0;
    background: rgba(31, 111, 196, 0.14);
    border-color: rgba(31, 111, 196, 0.34);
}

.service-support__btn--primary {
    color: #ffffff;
    background: linear-gradient(150deg, #2b78d3, #1f5fa9);
    border-color: rgba(22, 79, 139, 0.28);
}

.service-support__btn--primary:hover {
    color: #ffffff;
    background: linear-gradient(150deg, #3380dd, #2167b6);
}

@media (max-width: 900px) {
    .service-quick-panel,
    .service-columns {
        grid-template-columns: 1fr;
    }

    .service-support {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-support__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .service-page {
        padding: 0.75rem 0 2.5rem;
    }

    .service-container {
        padding: 0 14px;
    }

    .service-hero {
        padding: 16px 0 8px;
    }

    .service-title {
        font-size: 2rem;
    }

    .service-lead {
       display: none;
    }

    .service-quick-panel,
    .service-info-card--steps {
        display: none;
    }

    .service-card,
    .service-card__action,
    .service-quick-card,
    .service-mini-card,
    .service-support__btn,
    .mobile-nav-card,
    .mobile-nav-support__btn {
        transition: none;
        -webkit-tap-highlight-color: transparent;
    }

    .service-quick-card:hover,
    .service-quick-card:active {
        transform: none;
        box-shadow: 0 10px 24px rgba(12, 40, 70, 0.06);
        border-color: #d6e2ef;
    }

    .service-quick-card {
        min-height: 0;
        padding: 1.05rem 1rem;
        border-radius: 18px;
    }

    .service-quick-card__icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        margin-bottom: 0.78rem;
    }

    .service-quick-card__title {
        font-size: 1rem;
    }

    .service-quick-card__text,
    .service-section-text,
    .service-card__text,
    .service-mini-card__text,
    .service-support__text,
    .service-steps li {
        font-size: 0.92rem;
        line-height: 1.66;
    }

    .service-card-list {
        gap: 10px;
    }

    .service-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 0.85rem 0.9rem;
        border-radius: 18px;
    }

    .service-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .service-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .service-card__meta {
        margin-bottom: 0.28rem;
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    .service-card__title {
        margin-bottom: 0.24rem;
        font-size: 0.98rem;
        line-height: 1.24;
    }

    .service-card__text {
        font-size: 0.87rem;
        line-height: 1.5;
    }

    .service-card__text--desktop {
        display: none;
    }

    .service-card__text--mobile {
        display: block;
    }

    .service-card__action {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 38px;
        margin-top: 0.08rem;
        padding: 0.52rem 0.85rem;
        font-size: 0.84rem;
    }

    .service-card__action:hover,
    .service-card__action:active {
        color: #1f6fc4;
        background: rgba(31, 111, 196, 0.09);
        border-color: rgba(31, 111, 196, 0.22);
    }

    .service-support__btn:hover,
    .service-support__btn:active {
        color: #1f6fc4;
        background: rgba(31, 111, 196, 0.09);
        border-color: rgba(31, 111, 196, 0.22);
    }

    .service-support__btn--primary:hover,
    .service-support__btn--primary:active {
        color: #ffffff;
        background: linear-gradient(150deg, #2b78d3, #1f5fa9);
        border-color: rgba(22, 79, 139, 0.28);
    }

    .service-info-card,
    .service-support {
        padding: 1rem;
        border-radius: 18px;
    }

    .service-section-title,
    .service-support__title {
        font-size: 1.08rem;
    }

    .service-mini-card:hover,
    .service-mini-card:active {
        transform: none;
        box-shadow: none;
        border-color: #e0e9f2;
    }

    .mobile-nav-card:hover,
    .mobile-nav-card:active {
        transform: none;
        box-shadow: 0 10px 24px rgba(12, 40, 70, 0.06);
        border-color: #d6e2ef;
    }

    .mobile-nav-support__btn:hover,
    .mobile-nav-support__btn:active {
        color: #1f6fc4;
        background: rgba(31, 111, 196, 0.09);
        border-color: rgba(31, 111, 196, 0.22);
    }

    .mobile-nav-support__btn--primary:hover,
    .mobile-nav-support__btn--primary:active {
        color: #ffffff;
        background: linear-gradient(150deg, #2b78d3, #1f5fa9);
        border-color: rgba(22, 79, 139, 0.28);
    }
}

@media (max-width: 380px) {
    .service-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .service-title {
        font-size: 1.82rem;
    }

    .service-quick-card,
    .service-card,
    .service-info-card,
    .service-support {
        border-radius: 16px;
    }

    .service-quick-card,
    .service-card,
    .service-info-card,
    .service-support {
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }

    .service-quick-card__title,
    .service-card__title,
    .service-mini-card__title,
    .service-section-title,
    .service-support__title {
        font-size: 0.96rem;
    }

    .service-quick-card__text,
    .service-section-text,
    .service-card__text,
    .service-mini-card__text,
    .service-support__text,
    .service-lead,
    .service-steps li {
        font-size: 0.9rem;
    }
}

.mobile-nav-page {
    width: 100%;
    padding: 1rem 0 3rem;
    background:
        radial-gradient(72% 60% at 12% -6%, rgba(88, 168, 208, 0.18) 0%, rgba(88, 168, 208, 0) 64%),
        radial-gradient(62% 52% at 90% -10%, rgba(25, 90, 160, 0.14) 0%, rgba(25, 90, 160, 0) 68%),
        linear-gradient(160deg, #edf3f9 0%, #e4edf5 52%, #dbe5ef 100%);
}

.mobile-nav-page,
.mobile-nav-page * {
    box-sizing: border-box;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
}

.mobile-nav-container {
    max-width: 980px;
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 0 16px;
}

.mobile-nav-hero {
    text-align: center;
    padding: 22px 0 14px;
}

.mobile-nav-kicker {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #2d6d9f;
}

.mobile-nav-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #102c47;
    font-weight: 800;
}

.mobile-nav-title::after {
    content: "";
    display: block;
    width: 58px;
    height: 5px;
    margin: 0.9rem auto 0;
    background: linear-gradient(90deg, #1f5c91, #69b0d6);
    border-radius: 999px;
}

.mobile-nav-section {
    margin-top: 18px;
}

.mobile-nav-section-head {
    margin-bottom: 12px;
}

.mobile-nav-section-head-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-nav-section-title {
    margin: 0;
    color: #123556;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.25;
}

.mobile-nav-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    color: #1f5fa9;
    background: rgba(31, 111, 196, 0.1);
    border: 1px solid rgba(31, 111, 196, 0.18);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mobile-nav-section-text {
    margin: 0.42rem 0 0;
    color: #4f6680;
    font-size: 0.95rem;
    line-height: 1.68;
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mobile-nav-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 1rem 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid #d6e2ef;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(12, 40, 70, 0.06);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(12, 40, 70, 0.08);
    border-color: #c6d9ea;
}

.mobile-nav-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.mobile-nav-card__icon svg {
    width: 24px;
    height: 24px;
}

.mobile-nav-card__body {
    display: block;
    min-width: 0;
}

.mobile-nav-card__title {
    display: block;
    color: #133657;
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.28;
}

.mobile-nav-card__text {
    display: block;
    margin-top: 0.34rem;
    color: #4f6680;
    font-size: 0.93rem;
    line-height: 1.6;
}

.mobile-nav-card-icon--blue {
    background: linear-gradient(180deg, #4f8ae9 0%, #235dc1 100%);
}

.mobile-nav-card-icon--teal {
    background: linear-gradient(180deg, #2fb7a6 0%, #178879 100%);
}

.mobile-nav-card-icon--gold {
    background: linear-gradient(180deg, #f2b847 0%, #d99212 100%);
}

.mobile-nav-card-icon--slate {
    background: linear-gradient(180deg, #7392b2 0%, #4f6987 100%);
}

.mobile-nav-card-icon--rose {
    background: linear-gradient(180deg, #ee8a86 0%, #d25666 100%);
}

.mobile-nav-card-icon--violet {
    background: linear-gradient(180deg, #9c92f1 0%, #695dc3 100%);
}

.mobile-nav-support {
    margin-top: 18px;
    padding: 1.25rem 1.3rem;
    border-radius: 22px;
    border: 1px solid #d6e2ef;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(12, 40, 70, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.mobile-nav-support__copy {
    min-width: 0;
}

.mobile-nav-support__eyebrow {
    margin: 0 0 0.4rem;
    color: #2c6ca2;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.mobile-nav-support__title {
    margin: 0;
    color: #123556;
    font-size: 1.24rem;
    font-weight: 800;
    line-height: 1.28;
}

.mobile-nav-support__text {
    margin: 0.5rem 0 0;
    color: #4f6680;
    font-size: 0.95rem;
    line-height: 1.7;
}

.mobile-nav-support__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mobile-nav-support__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: #1f6fc4;
    background: rgba(31, 111, 196, 0.09);
    border: 1px solid rgba(31, 111, 196, 0.22);
    font-size: 0.92rem;
    font-weight: 800;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-support__btn:hover {
    color: #185aa0;
    background: rgba(31, 111, 196, 0.14);
    border-color: rgba(31, 111, 196, 0.34);
}

.mobile-nav-support__btn--primary {
    color: #ffffff;
    background: linear-gradient(150deg, #2b78d3, #1f5fa9);
    border-color: rgba(22, 79, 139, 0.28);
}

.mobile-nav-support__btn--primary:hover {
    color: #ffffff;
    background: linear-gradient(150deg, #3380dd, #2167b6);
}

@media (max-width: 900px) {
    .mobile-nav-grid {
        grid-template-columns: 1fr;
    }

    .mobile-nav-support {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-nav-support__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .mobile-nav-page {
        padding: 0.75rem 0 2.5rem;
    }

    .mobile-nav-container {
        padding: 0 14px;
    }

    .mobile-nav-hero {
        padding: 16px 0 8px;
    }

    .mobile-nav-title {
        font-size: 1.95rem;
    }

    .mobile-nav-grid {
        gap: 10px;
    }

    .mobile-nav-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 0.85rem 0.9rem;
        border-radius: 18px;
    }

    .mobile-nav-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .mobile-nav-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .mobile-nav-card__title {
        font-size: 0.98rem;
        line-height: 1.24;
    }

    .mobile-nav-card__text,
    .mobile-nav-section-text,
    .mobile-nav-support__text {
        font-size: 0.88rem;
        line-height: 1.56;
    }

    .mobile-nav-support {
        padding: 1rem;
        border-radius: 18px;
    }

    .mobile-nav-section-title,
    .mobile-nav-support__title {
        font-size: 1.06rem;
    }
}

@media (max-width: 380px) {
    .mobile-nav-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .mobile-nav-title {
        font-size: 1.78rem;
    }

    .mobile-nav-card,
    .mobile-nav-support {
        border-radius: 16px;
    }

    .mobile-nav-card,
    .mobile-nav-support {
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }
}



.admpanel-out{
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    width: 100%;
    background: #9f9f9f;
    overflow-x: hidden;
}

.admin-users-table-container {
    max-width: max-content;
    margin: 20px auto;
    overflow-x: auto;
    background-color: #f0f4f8;
    padding: 10px;
    border-radius: 8px;
}

.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.admin-users-table th,
.admin-users-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.admin-users-table th {
    background-color: #007bff;
    color: #fff;
    font-weight: 600;
}

.admin-users-table tr:nth-child(even) td {
    background-color: #f9f9f9;
}

.roles-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.toggle-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label .toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 18px;
    background-color: #ccc;
    border-radius: 18px;
    transition: 0.2s;
}

.toggle-label .toggle-switch:before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    left: 2px;
    top: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle-label input:checked + .toggle-switch:before {
    transform: translateX(18px);
}

.toggle-label input:checked + .toggle-switch {
    background-color: #007bff;
}

.toggle-label .toggle-name {
    font-size: 13px;
}

.admin-users-table button {
    padding: 5px 12px;
    background-color: #007bff;
    color: #fff;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

p.updated-msg {
    color: #28a745;
    font-weight: bold;
    margin-top: 10px;
}



.out-active{
    display: grid;
    place-items: center;
    flex: 1 0 auto;
    width: 100%;
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    padding: clamp(24px, 4vw, 40px) clamp(14px, 3vw, 24px);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.1), transparent 28%),
        linear-gradient(180deg, #eef4fb 0%, #f7fafc 100%);
    overflow-x: hidden;
    box-sizing: border-box;
}

.activation-container {
    width: min(100%, 680px);
    margin: 0 auto;
    font-family: "Inter", "Arial", sans-serif;
}

.activation-card {
    position: relative;
    overflow: hidden;
    padding: 34px 34px 30px;
    border-radius: 24px;
    border: 1px solid #d8e3ef;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
    text-align: left;
}

.activation-card::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: #dbe7f3;
}

.activation-container--success .activation-card::after {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.activation-container--error .activation-card::after {
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

.activation-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #edf4fb;
    color: #48627a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.activation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #eef4fb;
    color: #315d8f;
}

.activation-icon svg {
    width: 24px;
    height: 24px;
}

.activation-container--success .activation-icon {
    background: #e8f8ee;
    color: #1f9d55;
}

.activation-container--error .activation-icon {
    background: #fff4e8;
    color: #d97706;
}

.activation-container h1 {
    margin: 0 0 10px;
    color: #102338;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 800;
}

.activation-subtitle {
    margin: 0 0 18px;
    color: #5d7286;
    font-size: 16px;
    line-height: 1.6;
}

.activation-message {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #d8e4f0;
    background: #f7fafc;
    color: #22384e;
    font-size: 15px;
    line-height: 1.55;
}

.activation-container--success .activation-message {
    border-color: #cce8d4;
    background: #f2fbf5;
    color: #19643a;
}

.activation-container--error .activation-message {
    border-color: #f1dcc7;
    background: #fff8f2;
    color: #8a4b11;
}

.activation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.activation-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid #2563eb;
    box-sizing: border-box;
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
}

.activation-action:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.activation-action--secondary {
    background: #ffffff;
    border-color: #d1dbe5;
    color: #29425c !important;
}

.activation-action--secondary:hover {
    background: #f8fafc;
    border-color: #bfcddd;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

@media (max-width: 640px) {
    .out-active {
        min-height: calc(100svh - 64px);
        min-height: calc(100dvh - 64px);
        padding: 18px 14px 22px;
    }

    .activation-container {
        width: 100%;
    }

    .activation-card {
        padding: 24px 18px 20px;
        border-radius: 18px;
    }

    .activation-container h1 {
        font-size: 25px;
    }

    .activation-subtitle,
    .activation-message {
        font-size: 14px;
    }

    .activation-subtitle {
        line-height: 1.5;
    }

    .activation-message {
        padding: 14px 14px;
        border-radius: 14px;
    }

    .activation-actions {
        flex-direction: column;
        gap: 10px;
    }

    .activation-action {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 420px) {
    .out-active {
        padding: 14px 12px 18px;
    }

    .activation-card {
        padding: 20px 16px 18px;
        border-radius: 16px;
    }

    .activation-kicker {
        padding: 6px 10px;
        font-size: 11px;
        letter-spacing: 0.06em;
    }

    .activation-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .activation-icon svg {
        width: 22px;
        height: 22px;
    }

    .activation-container h1 {
        font-size: 22px;
    }

    .activation-subtitle {
        margin-bottom: 16px;
        font-size: 13px;
    }

    .activation-message {
        font-size: 13px;
        line-height: 1.45;
    }
}

.activ-container{
    display: flex;
    width: max-content;
    padding: 10px;
    gap: 8px;
    border-radius: 12px;
    background:#fff;
    margin: 0px 30px 0px 30px;
}
.profile-activate-btn{
    background: #2563eb;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
}

.profile-activate-btn:hover{
    background: #1d4ed8;
}

.profile-alert.success{
    background: #e6ffed;
    border: 1px solid #28a745;
    color: #155724;
    padding: 5px;
    border-radius: 10px;
}


.profile-alert.error{
    background: #ffe6e6;
    border: 1px solid #dc3545;
    color: #721c24;
    padding: 5px;
    border-radius: 10px;
}


/* === New Full-Width Top Menu === */
.nm-top-menu {
    position: sticky;
    top: 0;
    z-index: 1200;
}

body.nm-menu-open {
    overflow: hidden;
}

.nm-top-menu .nm-menu-toggle,
.nm-top-menu .dropdown-toggle {
    display: none;
}

.nm-top-menu .nm-menu-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 66px;
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(120deg, #0a2a4a, #174d78);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 28px rgba(5, 24, 44, 0.25);
}

.nm-top-menu .nm-menu-left,
.nm-top-menu .nm-menu-actions {
    position: relative;
    z-index: 5;
}

.nm-top-menu .nm-menu-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nm-top-menu .nm-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nm-top-menu .nm-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(150deg, #57a6ff, #2f7fe2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 16px rgba(6, 22, 39, 0.24);
    overflow: hidden;
}

.nm-top-menu .nm-brand-mark img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: saturate(1.1) brightness(1.08);
}

.nm-top-menu .nm-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nm-top-menu .nm-brand-text strong {
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 0.02em;
}

.nm-top-menu .nm-brand-text small {
    color: rgba(240, 248, 255, 0.8);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nm-top-menu .nm-desk-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.nm-top-menu .nm-nav-link,
.nm-top-menu .nm-nav-link-button {
    border: 0;
    background: transparent;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    color: rgba(242, 248, 255, 0.94);
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nm-top-menu .nm-nav-link:hover,
.nm-top-menu .nm-nav-link-button:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.nm-top-menu .nm-nav-link.is-active {
    background: rgba(255, 255, 255, 0.16);
}

.nm-top-menu .nm-nav-link-group {
    position: relative;
}

.nm-top-menu .nm-submenu {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translate(-50%, 8px);
    width: 260px;
    padding: 8px;
    border-radius: 14px;
    background: #f8fbff;
    box-shadow: 0 16px 34px rgba(12, 34, 57, 0.24);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nm-top-menu .nm-submenu a {
    display: block;
    text-decoration: none;
    color: #0b2238;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 12px;
}

.nm-top-menu .nm-submenu a:hover {
    background: #e4f1ff;
}

.nm-top-menu .nm-nav-link-group:hover .nm-submenu,
.nm-top-menu .nm-nav-link-group:focus-within .nm-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nm-top-menu .nm-action {
    text-decoration: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 14px;
    transition: transform 0.2s ease;
}

.nm-top-menu .nm-action:hover {
    transform: translateY(-1px);
}

.nm-top-menu .nm-action-support {
    color: #dcedff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.nm-top-menu .nm-action-login {
    color: #ffffff;
    background: linear-gradient(150deg, #4d9dff, #317dd8);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.nm-top-menu .nm-action-login:hover {
    background: linear-gradient(150deg, #6aaeff, #3a88e7);
}

.nm-top-menu .menu-button {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #eaf4ff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.nm-top-menu .menu-button svg {
    width: 20px;
    height: 20px;
}

.nm-top-menu .avatar-button {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 10px 0 8px;
    border-radius: 999px;
    color: #f3f8ff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nm-top-menu .nm-avatar-media,
.nm-top-menu .nm-avatar-initial {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.nm-top-menu .nm-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nm-top-menu .nm-avatar-initial {
    background: #5caaff;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
}

.nm-top-menu .nm-avatar-caret {
    font-size: 11px;
    line-height: 1;
    transform: translateY(-1px);
    opacity: 0.95;
}

.nm-top-menu .menu-button:hover,
.nm-top-menu .avatar-button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.nm-top-menu .menu-button::after,
.nm-top-menu .avatar-button::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 300;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.nm-top-menu .menu-button:hover::after,
.nm-top-menu .avatar-button:hover::after {
    opacity: 1;
}

.nm-top-menu .dropdown {
    position: relative;
}

.nm-top-menu .dropdown-menu,
.nm-top-menu .dropdown-menu.block {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 200;
}

.nm-top-menu .nm-menu-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #5caaff;
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.nm-top-menu .nm-burger {
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
}

.nm-top-menu .nm-burger span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #eff7ff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nm-top-menu .nm-mobile-panel {
    display: none;
}

@media (max-width: 1200px) {
    .nm-top-menu .nm-desk-nav {
        gap: 4px;
    }

    .nm-top-menu .nm-nav-link,
    .nm-top-menu .nm-nav-link-button {
        padding: 10px 10px;
        font-size: 13px;
    }
}

@media (max-width: 980px) {
    .nm-top-menu .nm-menu-wrap {
        min-height: 58px;
        padding: 10px 14px;
    }

    .nm-top-menu .nm-brand-text small {
        display: none;
    }

    .nm-top-menu .nm-desk-nav,
    .nm-top-menu .guest-actions .nm-action,
    .nm-top-menu .auth-actions .menu-button,
    .nm-top-menu .auth-actions .dropdown {
        display: none;
    }

    .nm-top-menu .menu-button::after,
    .nm-top-menu .avatar-button::after {
        display: none;
    }

    .nm-top-menu .nm-burger {
        display: inline-flex;
    }

    .nm-top-menu .nm-mobile-panel {
        display: block;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        background: linear-gradient(145deg, #0c2d4f, #1a4a74);
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
        transition: max-height 0.25s ease, opacity 0.25s ease;
    }

    .nm-top-menu .nm-mobile-panel > a,
    .nm-top-menu .nm-mobile-services summary {
        display: block;
        text-decoration: none;
        color: #edf6ff;
        padding: 14px 16px;
        font-size: 16px;
        font-weight: 700;
    }

    .nm-top-menu .nm-mobile-services summary {
        cursor: pointer;
        list-style: none;
    }

    .nm-top-menu .nm-mobile-services summary::-webkit-details-marker {
        display: none;
    }

    .nm-top-menu .nm-mobile-submenu {
        margin: 0 16px;
        padding: 6px 0 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nm-top-menu .nm-mobile-submenu a {
        display: block;
        padding: 7px 0;
        color: rgba(235, 246, 255, 0.9);
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
    }

    .nm-top-menu .nm-mobile-grid {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr 1fr;
        padding: 14px 16px 16px;
    }

    .nm-top-menu .nm-mobile-grid a {
        text-decoration: none;
        text-align: center;
        color: #f2f8ff;
        font-size: 14px;
        font-weight: 700;
        border-radius: 12px;
        padding: 11px 10px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.24);
    }

    .nm-top-menu #nm-menu-main:checked + .nm-menu-wrap .nm-burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nm-top-menu #nm-menu-main:checked + .nm-menu-wrap .nm-burger span:nth-child(2) {
        opacity: 0;
    }

    .nm-top-menu #nm-menu-main:checked + .nm-menu-wrap .nm-burger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nm-top-menu #nm-menu-main:checked ~ .nm-mobile-panel {
        max-height: calc(100vh - 58px);
        opacity: 1;
    }
}
.out-xsearch .search-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: transparent;
    box-shadow: none;
}

.out-xsearch .search-badges {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.out-xsearch .search-badge {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    gap: 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
    font-size: 14px;
    color: #374151;
    box-sizing: border-box;
}

.out-xsearch .search-badge strong {
    font-size: 16px;
    color: #1f2937;
}

.out-xsearch .search-badge--params {
    max-width: 520px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.out-xsearch .searchklb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #111827;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.out-xsearch .searchklb-btn:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(17, 24, 39, 0.28);
}

.out-xsearch .searchklb-btn .btn-add-icon {
    width: 22px;
    height: 22px;
    margin-right: 6px;
    flex-shrink: 0;
}

.out-xsearch .search-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.out-xsearch .filter-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.out-xsearch .filter-panel {
    top: calc(100% + 8px);
    right: 0;
    margin-top: 0;
    min-width: 360px;
    max-width: 420px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.04);
    padding: 18px 20px 16px;
}

.out-xsearch .filter-header {
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.out-xsearch .filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.out-xsearch .filter-close {
    background: #f3f4f6;
}

.out-xsearch .filter-close:hover {
    background: #e5e7eb;
}

.out-xsearch .filter-actions {
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid #eef2f7;
}

.out-xsearch .filter-apply,
.out-xsearch .filter-reset {
    height: 38px;
    border-radius: 10px;
    font-weight: 600;
}

.out-xsearch .filter-apply {
    background: #111827;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.2);
}

.out-xsearch .filter-apply:hover {
    background: #0f172a;
}

.out-xsearch .filter-reset {
    background: #f3f4f6;
    color: #111827;
}

.out-xsearch .filter-reset:hover {
    background: #e5e7eb;
}

.out-xsearch .paginator-out {
    margin: 0;
    margin-top: auto;
    padding: 4px 20px 20px;
    justify-content: center;
}

.out-xsearch .paginator-out ul {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px;
    gap: 4px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.out-xsearch .paginator-out li {
    display: flex;
}

.out-xsearch .paginator-out a,
.out-xsearch .paginator-out span {
    min-width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.out-xsearch .paginator-out a:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #111827;
}

.out-xsearch .paginator-out span.current {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.25);
}

.out-xsearch .paginator-out span.disabled {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: default;
}

.out-xsearch .paginator-out svg {
    width: 16px;
    height: 16px;
}

.out-xsearch .no-results-wrap {
    width: 100%;
    padding: 0 20px 20px;
    box-sizing: border-box;
}

.out-xsearch .no-results {
    max-width: none;
    width: 100%;
    padding: 24px 18px;
    text-align: center;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1.45;
    color: #6b7280;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
    box-shadow: none;
}

.out-xsearch .cards-out:has(.no-results-wrap) {
    display: block;
    min-height: auto;
    padding: 20px 0;
}

.out-xsearch .search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
}

.out-xsearch .search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 260px;
}

.out-xsearch .search-inputx {
    width: 100%;
    min-width: 220px;
    height: 40px;
    padding: 0 44px 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #ffffff;
    outline: none;
    display: block;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.out-xsearch .search-submit-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: #111827;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.out-xsearch .search-submit-btn:hover {
    background: #0f172a;
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.2);
}

.out-xsearch .search-submit-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.out-xsearch .search-inputx::placeholder {
    color: #9ca3af;
}

.out-xsearch .search-inputx:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.out-xsearch .search-btn,
.out-xsearch .filter-btnx {
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.out-xsearch .search-btn:hover,
.out-xsearch .filter-btnx:hover {
    background: #f3f4f6;
}

.out-xsearch .filter-btnx.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.out-xsearch .filter-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .out-xsearch .search-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 14px 14px 10px;
        align-items: stretch;
    }

    .out-xsearch .search-toolbar-right {
        margin-left: 0;
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: stretch;
    }

    .out-xsearch .search-form {
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .out-xsearch .search-input-wrap {
        width: 100%;
        min-width: 0;
    }

    .out-xsearch .search-inputx {
        flex: 1 1 100%;
        min-width: 0;
    }

    .out-xsearch .search-badges {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .out-xsearch .search-badge {
        width: 100%;
        min-width: 0;
        height: auto;
        padding: 10px 12px;
        border-radius: 14px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: #ffffff;
        border-color: #dbe5ef;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }


    .out-xsearch .search-badge strong {
        font-size: 24px;
        line-height: 1;
    }

    .out-xsearch .search-badges .search-badge:last-child {
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .out-xsearch .search-badge--params {
        display: none !important;
    }

    .out-xsearch .searchklb-btn {
        width: 100%;
        justify-content: center;
        min-height: 46px;
        border-radius: 14px;
        font-size: 15px;
    }

    .out-xsearch .filter-dropdown {
        width: auto;
    }

    .out-xsearch .filter-btnx {
        width: auto;
        min-width: 104px;
        height: 46px;
        padding: 0 14px;
        border-radius: 14px;
        justify-content: center;
    }

    .out-xsearch .search-inputx {
        height: 46px;
        padding-right: 48px;
        border-radius: 14px;
        font-size: 15px;
    }

    .out-xsearch .search-submit-btn {
        right: 8px;
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .out-xsearch .filter-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        transform: none;
        top: auto;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 12px);
        width: auto;
        max-width: none;
        max-height: calc(100vh - 132px - env(safe-area-inset-bottom, 0px));
        padding: 0;
        border-radius: 24px;
        border: 1px solid rgba(203, 213, 225, 0.92);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.7);
        overflow: hidden;
        z-index: 4905;
        backdrop-filter: blur(16px);
    }

    .out-xsearch .filter-panel::before {
        content: "";
        display: block;
        width: 42px;
        height: 5px;
        margin: 10px auto 2px;
        border-radius: 999px;
        background: #cbd5e1;
        flex-shrink: 0;
    }

    .out-xsearch .filter-form {
        gap: 0;
        max-height: calc(100vh - 144px - env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .out-xsearch .filter-header {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px 14px;
        margin: 0;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid #e7edf5;
        backdrop-filter: blur(12px);
    }

    .out-xsearch .filter-title {
        font-size: 16px;
        font-weight: 800;
        color: #0f172a;
    }

    .out-xsearch .filter-close {
        width: 34px;
        height: 34px;
        min-width: 34px;
        padding: 0;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        color: #475569;
        background: #eef2f7;
    }

    .out-xsearch .filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .out-xsearch .filter-field .input-container {
        margin: 0;
    }

    .out-xsearch .filter-panel .custom-select-trigger,
    .out-xsearch .filter-panel .login-Input {
        min-height: 52px;
        border-radius: 14px;
    }

    .out-xsearch .filter-panel .custom-select-wrapper {
        display: block !important;
    }

    .out-xsearch .filter-panel .login-Input {
        display: none !important;
    }

    .out-xsearch .filter-panel .custom-options {
        top: calc(100% + 6px);
        left: 0;
        right: auto;
        margin-top: 0;
        max-height: 220px;
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
        z-index: 7005;
    }

    .out-xsearch .filter-panel .custom-select-trigger {
        min-height: 52px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        line-height: 1.35;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .out-xsearch .filter-panel .custom-option {
        padding: 13px 14px;
        white-space: normal;
        line-height: 1.35;
    }

    .out-xsearch .filter-panel .custom-select-wrapper.open {
        z-index: 7004;
    }

    .out-xsearch .filter-actions {
        position: sticky;
        bottom: 0;
        z-index: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #e7edf5;
        backdrop-filter: blur(12px);
    }

    .out-xsearch .filter-apply,
    .out-xsearch .filter-reset {
        width: 100%;
        height: 44px;
        border-radius: 14px;
        font-size: 14px;
        font-weight: 800;
    }

    .out-xsearch .paginator-out {
        padding: 4px 16px 24px;
    }

    .out-xsearch .paginator-out a,
    .out-xsearch .paginator-out span {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .out-xsearch .filter-panel {
        left: 8px;
        right: 8px;
        width: auto;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 10px);
        border-radius: 22px;
    }

    .out-xsearch .filter-header,
    .out-xsearch .filter-grid {
        padding-left: 14px;
        padding-right: 14px;
    }

    .out-xsearch .filter-actions {
        padding-left: 14px;
        padding-right: 14px;
        grid-template-columns: 1fr;
    }
    .out-xsearch .search-toolbar-right {
        grid-template-columns: minmax(0, 1fr) 98px;
    }

    .out-xsearch .filter-btnx {
        min-width: 98px;
        padding: 0 12px;
        font-size: 13px;
    }
}
