.page-personal-cabinet__tabs{
    grid-auto-flow: column;
}
.find-spec-by-name-wrapper{
    position: relative;
}
.find-spec-by-name-wrapper .specialist-list-names{
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    visibility: visible;
    opacity: 1;
    display: none;
	z-index: 1000;
}
.find-spec-by-name-wrapper .specialist-list-names .select-alpha__option {
    padding-inline: 1.25rem;
	border: 0px !important;
}
.find-spec-by-name-wrapper .specialist-list-names .select-alpha__option:hover {
    border: 1px solid var(--color-blc-primary);
}

.fc .fc-toolbar {
    flex-wrap: wrap;
}
@media screen and (max-width: 1140px) {
    th.fc-col-header-cell.fc-day {
        font-size: 14px;
        font-weight: 400;
    }
}

@media (max-width: 980px) {
    .fc .fc-view-harness {
        min-height: 600px;
    }
}
.specialists-chooses-filter-container__items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

@media (min-width: 980px) {
.specialists-chooses-filter-container__items-grid--collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    max-height: 84px;
}}

@media (max-width: 979px) {
.specialists-chooses-filter-container__items-grid--collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    max-height: 132px;
}}

.specialists-chooses-filter-container__items-grid--expanded {
    max-height: 2000px;
}

.specialists-chooses-filter-container__items-grid .btn {
    flex-shrink: 0;
}

.specialists-chooses-filter-container__toggle-wrapper {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}
.specialist-detailed__explanation-chip-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.specialist-detailed__explanation-chip-box--collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    max-height: 120px;
}

.specialist-detailed__explanation-chip-box--expanded {
    max-height: 2000px;
}

.specialist-detailed__explanation-chip-box .chip {
    display: inline-block;
    flex-shrink: 0;
}

.card-specialist-alpha__action-wrapper {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end; 
}
#requestsToggleBtn {
    width: 35%;
    min-width: 120px;
    text-align: center;
    margin-left: auto;
    margin-right: 0;
}

@media (max-width: 767px) {
    .specialists-chooses-filter-container__toggle-wrapper {
        justify-content: flex-start;
    }
    
    #requestsToggleBtn {
        width: 85%;
        min-width: unset;
        margin-right: auto;
        margin-left: 0;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #requestsToggleBtn {
        width: 50%;
    }
}

#toggleTagsBtn {
    width: 35%;
    min-width: 120px; 
    text-align: center;
	margin-left: auto;
	margin-right: 0;
}

/* Мобильные устройства (до 768px) */
@media (max-width: 767px) {
    .card-specialist-alpha__action-wrapper {
        justify-content: flex-start;
    }
    
    #toggleTagsBtn {
        width: 85%;
        min-width: unset;
		margin-right: auto;
        margin-left: 0;
    }
}

/* Планшеты (опционально, 768px - 1024px) */
@media (min-width: 768px) and (max-width: 1023px) {
    #toggleTagsBtn {
        width: 50%; /* Средняя ширина для планшетов */
		margin-right: auto;
        margin-left: 0;
    }
}
div.grecaptcha-badge {display:none!important;}
@media (min-width: 375px) and (max-width: 390px) {
.header__tail-desktop {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}}
@media (min-width: 390px) and (max-width: 780px) {
.header__tail-desktop {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}}
@media (min-width: 780px) and (max-width: 980px) {
.header__tail-desktop {
    display: flex;
    align-items: center;
    gap: 1.55rem;
}}
.group-activate-certificate-01.hidden,
.group-activate-certificate-01.hidden\! {
    display: none !important;
}
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}
 .account-next-record {
			margin-bottom: 30px!important;
}
@media (width > 63.9988rem) {
    .shema-dialog__description-box {
        margin-bottom: 3.75rem;
    }
}

@media (width > 47.9988rem) {
    .shema-dialog__description-box {
        margin-bottom: 2.5rem;
    }
}

.shema-dialog__description-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.shema-dialog__cta-box {
    display: flex;
    justify-content: center;
}

@media (width > 63.9988rem) {
    .shema-dialog__cta-box > * {
        max-width: 34rem;
    }
}

.shema-dialog__cta-box > * {
    width: 100%;
}
.shema-dialog__description-title {color: var(--color-gray-secondary);}
.profile-bar__actionbox {
    flex-direction: row !important;
    align-items: center;
    gap: 0.625rem !important;
}

.profile-bar__action {
    top: 0 !important;
}

.profile-push-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1c1c1e;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.profile-push-toggle:hover {
    background: rgba(0, 0, 0, .05);
}
.profile-push-toggle:active {
    background: rgba(0, 0, 0, .08);
}
.profile-push-toggle__icon {
    display: block;
    width: 1.25rem !important;
    height: 1.25rem !important;
    flex-shrink: 0;
}
.profile-push-toggle__dot {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}
.profile-push-toggle[data-state="subscribed"] {
    color: #34c759;
}
.profile-push-toggle[data-state="subscribed"]:hover {
    background: rgba(52, 199, 89, .1);
}
.profile-push-toggle[data-state="subscribed"] .profile-push-toggle__dot {
    display: none;
}
.profile-push-toggle[data-state="loading"] {
    opacity: .5;
    cursor: wait;
    pointer-events: none;
}
.profile-push-toggle[data-state="unsupported"] {
    opacity: .3;
    cursor: not-allowed;
}
.profile-push-toggle[data-state="ios-needs-pwa"] {
    color: #ff9500;
}
.profile-push-toggle[data-state="ios-needs-pwa"]:hover {
    background: rgba(255, 149, 0, .1);
}
.profile-biometric-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1c1c1e;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.profile-biometric-toggle:hover {
    background: rgba(0, 0, 0, .05);
}
.profile-biometric-toggle:active {
    background: rgba(0, 0, 0, .08);
}
.profile-biometric-toggle__icon {
    display: block;
    width: 1.25rem !important;
    height: 1.25rem !important;
    flex-shrink: 0;
}
.profile-biometric-toggle__dot {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}
.profile-biometric-toggle[data-state="enabled"] {
    color: #34c759;
}
.profile-biometric-toggle[data-state="enabled"]:hover {
    background: rgba(52, 199, 89, .1);
}
.profile-biometric-toggle[data-state="enabled"] .profile-biometric-toggle__dot {
    display: none;
}
.profile-biometric-toggle[data-state="loading"] {
    opacity: .5;
    cursor: wait;
    pointer-events: none;
}
.profile-biometric-toggle[data-state="unsupported"] {
    opacity: .3;
    cursor: not-allowed;
}
/* WebAuthn: кнопка входа по биометрии в форме логина */
.form-field__biometric-row {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

.form-field__biometric-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 999px;
    background: transparent;
    color: #1c1c1e;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.form-field__biometric-btn:hover {
    background: rgba(0, 0, 0, .04);
    border-color: rgba(0, 0, 0, .2);
}

.form-field__biometric-btn:active {
    background: rgba(0, 0, 0, .08);
}

.form-field__biometric-btn[data-state="loading"] {
    opacity: .5;
    cursor: wait;
    pointer-events: none;
}

.form-field__biometric-btn svg {
    display: block;
    flex-shrink: 0;
}
/* WebAuthn: переключатели входа в форме логина */
.form-field__login-toggles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-field__password-toggle {
    background: none;
    border: none;
    padding: 0;
    color: #1c1c1e;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.form-field__password-toggle:hover {
    opacity: 0.7;
}

.form-field__biometric-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0;
    border: none;
    background: none;
    color: #1c1c1e;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.form-field__biometric-toggle:hover {
    opacity: 0.7;
}

.form-field__biometric-toggle[data-state="loading"] {
    opacity: 0.5;
    cursor: wait;
    pointer-events: none;
}

.form-field__biometric-toggle svg {
    display: block;
    flex-shrink: 0;
}

/* Скрытие блоков пароля */
[data-js-login-password-block][hidden] {
    display: none !important;
}

[data-js-login-toggle-row][hidden] {
    display: none !important;
}
/* ==========================================================================
   Онбординг в ЛК (.profile-onboarding)
   ========================================================================== */

body.is-onboarding-open {
    overflow: hidden;
}

.profile-onboarding {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.profile-onboarding__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.profile-onboarding__content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 28rem;
    max-height: calc(100vh - 2rem);
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
    overflow-y: auto;
}

/* Кнопка закрытия */
.profile-onboarding__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1c1c1e;
    cursor: pointer;
    transition: background-color .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.profile-onboarding__close:hover {
    background: rgba(0, 0, 0, .05);
}

/* Галерея скриншотов */
.profile-onboarding__gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
}

.profile-onboarding__image-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 16rem;
    border-radius: .75rem;
    background: #f5f5f7;
    overflow: hidden;
}

.profile-onboarding__image {
    display: block;
    max-width: 100%;
    max-height: 22rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.profile-onboarding__gallery-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 50%;
    background: #fff;
    color: #1c1c1e;
    cursor: pointer;
    transition: background-color .15s ease, opacity .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.profile-onboarding__gallery-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, .04);
}
.profile-onboarding__gallery-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
}
.profile-onboarding__gallery-btn_prev {
    margin-right: .5rem;
}
.profile-onboarding__gallery-btn_next {
    margin-left: .5rem;
}

/* Точки-индикаторы шагов */
.profile-onboarding__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.profile-onboarding__dot {
    width: .5rem;
    height: .5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .15);
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.profile-onboarding__dot:hover {
    background: rgba(0, 0, 0, .3);
}
.profile-onboarding__dot.is-active {
    background: #1c1c1e;
    transform: scale(1.2);
}

/* Заголовок и текст */
.profile-onboarding__title {
    margin: 0 0 .5rem;
    font-family: var(--title-font, inherit);
    font-size: 1.125rem;
    line-height: 1.2;
    text-align: center;
    color: #1c1c1e;
}

.profile-onboarding__text {
    margin: 0 0 1.5rem;
    font-size: .875rem;
    line-height: 1.45;
    text-align: center;
    color: rgba(28, 28, 30, .7);
}

/* Кнопки навигации по шагам */
.profile-onboarding__actions {
    display: flex;
    gap: .75rem;
    margin-top: auto;
}
.profile-onboarding__actions .btn {
    flex: 1;
}

/* Мобильный: полноэкранный оверлей */
@media (max-width: 47.9988rem) {
    .profile-onboarding {
        padding: 0;
    }
    .profile-onboarding__content {
        max-width: none;
        max-height: none;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
    }
    .profile-onboarding__image-box {
        min-height: 18rem;
    }
    .profile-onboarding__image {
        max-height: 26rem;
    }
}

/* Пульсация кнопок в карточке профиля во время онбординга */
@keyframes profile-onboarding-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(52, 199, 89, .5); }
    70%  { box-shadow: 0 0 0 .75rem rgba(52, 199, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.profile-biometric-toggle.is-onboarding-pulse,
.profile-push-toggle.is-onboarding-pulse {
    animation: profile-onboarding-pulse 1.6s infinite;
    border-radius: 50%;
}
.profile-onboarding-reset {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1c1c1e;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.profile-onboarding-reset:hover {
    background: rgba(0, 0, 0, .05);
}
.profile-onboarding-reset:active {
    background: rgba(0, 0, 0, .08);
}
.profile-onboarding-reset__icon {
    display: block;
    width: 1.25rem !important;
    height: 1.25rem !important;
    flex-shrink: 0;
}