

/* Start:/local/templates/main/components/bitrix/system.auth.form/auth/style.css?178973539916646*/
#auth-modal.fancy-modal-wrap {
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 24px);
    padding: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
    overflow-x: hidden;
    overflow-y: auto;
}

#auth-modal .fancy-modal-wrap__close {
    top: 18px;
    right: 18px;
    width: 26px;
    height: 26px;
    color: #1f1e1d;
    background: transparent;
}

#auth-modal .fancy-modal-wrap__close svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

#auth-modal .auth-modal {
    position: relative; /* контекст для прелоадера .load:before — чтобы он накрывал всю модалку */
    max-width: none;
    padding: 40px 32px 20px; /* верхний отступ — чтобы крестик закрытия был над табами, а не на них */
    color: #24211f;
    font-family: inherit;
}

#auth-modal .auth-modal__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 20px;
    padding: 0;
    border-bottom: 1px solid #dedbd8;
    list-style: none;
}

#auth-modal .auth-modal__tab {
    position: relative;
    padding: 6px 0 14px;
    background: transparent !important;
    color: #a6a1a1;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

#auth-modal .auth-modal__tab.active {
    background: transparent !important;
    color: #111;
    font-weight: 700;
}

#auth-modal .auth-modal__tab.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 3px;
    background: #1f1e1d;
}

#auth-modal .auth-modal__inner {
    width: 100%;
    padding: 0 !important;
}

#auth-modal .auth-form__form-line {
    margin: 0 0 14px;
}

#auth-modal .form-line__label {
    display: block;
    margin: 0 0 6px;
    color: #55504d;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

#auth-modal .auth-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    border: 1px solid #dfdcda;
    border-radius: 6px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#auth-modal .auth-field:focus-within {
    border-color: #bdb4ae;
    box-shadow: 0 0 0 3px rgba(141, 116, 101, .1);
}

#auth-modal .auth-field.error {
    margin-bottom: 56px;
}

#auth-modal .auth-field label.error {
    top: calc(100% + 4px);
    right: auto;
    left: 0;
    width: 100%;
    padding-top: 0;
    line-height: 1.35;
    text-align: left;
}

#auth-modal .auth-form__captcha {
    position: relative;
    z-index: auto;
    /* Сбрасываем left/top, которые приходят от глобального .cf-turnstile
       (position:absolute;left:50%;top:50% — для invisible-капчи быстрого заказа).
       При position:relative они уводили видимую капчу входа вправо-вниз и обрезали её на мобильных. */
    left: auto;
    top: auto;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 14px auto 16px;
    transform: none;
}

#auth-modal .auth-form__captcha:empty {
    margin: 0 auto;
}

/* Пока идёт загрузка — держим место под капчу (один резерв, скелетон лежит
   поверх контейнера как overlay, а не отдельным блоком → нет «двойной» пустоты). */
#auth-modal .auth-form__captcha.cf-turnstile--loading {
    min-height: 100px;
}

/* Скелетон загрузки капчи: overlay поверх контейнера с анимацией и подписью,
   пока Yandex SmartCaptcha не отрисует видимый чекбокс (см. auth-captcha.js). */
#auth-modal .cf-turnstile__skeleton {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

#auth-modal .cf-turnstile__skeleton-box {
    height: 70px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ececec 25%, #f4f4f4 37%, #ececec 63%);
    background-size: 400% 100%;
    animation: cfCaptchaSkeleton 1.4s ease infinite;
}

#auth-modal .cf-turnstile__skeleton-text {
    color: #8a8378;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

@keyframes cfCaptchaSkeleton {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

#auth-modal .auth-field__icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: #4b4846;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

#auth-modal .auth-field__input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 46px;
    padding: 0 16px 0 50px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #24211f;
    font-size: 15px;
    line-height: 46px;
    outline: none;
}

#auth-modal .auth-field__input::placeholder {
    color: #b3afb0;
    opacity: 1;
}

#auth-modal .auth-field__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 16px 0 10px;
    border: 0;
    background: transparent;
    color: #4b4846;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

#auth-modal .auth-field__toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#auth-modal .auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -2px 0 16px;
}

#auth-modal .auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #55504d;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

#auth-modal .auth-remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#auth-modal .auth-remember span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1.5px solid #8f8985;
    border-radius: 3px;
    background: #fff;
}

#auth-modal .auth-remember input:checked + span::after {
    content: "";
    width: 11px;
    height: 6px;
    border-bottom: 2px solid #24211f;
    border-left: 2px solid #24211f;
    transform: rotate(-45deg) translate(1px, -1px);
}

#auth-modal .auth-remember b {
    font-weight: 400;
}

/* Согласие на ПДн в регистрации: многострочный текст, галочка сверху */
#auth-modal .auth-consent {
    display: flex;
    align-items: flex-start;
    margin: 4px 0 16px;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

#auth-modal .auth-consent span {
    flex: none;
}

#auth-modal .auth-consent a {
    color: #9a7769;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#auth-modal .auth-modal__link {
    color: #9a7769;
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#auth-modal .auth-form__btn,
#auth-modal .auth-phone__login {
    width: 100%;
    min-height: 48px;
    padding: 0 28px;
    border: 1px solid #252220;
    border-radius: 5px;
    background: #2b2927;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

#auth-modal .auth-form__btn:hover,
#auth-modal .auth-phone__login:hover {
    background: #191716;
}

#auth-modal .auth-modal__footer {
    margin: 0;
}

#auth-modal .auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
    margin: 18px 0 16px;
    color: #6c6764;
    font-size: 15px;
    text-align: center;
}

#auth-modal .auth-divider::before,
#auth-modal .auth-divider::after {
    content: "";
    height: 1px;
    background: #dedbd8;
}

#auth-modal .auth-phone {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#auth-modal .auth-phone__title {
    margin: 0 0 12px;
    color: #24211f;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

#auth-modal .auth-phone__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 10px;
    margin: 0 0 10px;
}

#auth-modal .auth-phone__row[hidden] {
    display: none;
}

#auth-modal .auth-phone__btn {
    min-width: 0;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #d5cfcc;
    border-radius: 6px;
    background: #f4f1ef;
    color: #4d4946;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

#auth-modal .auth-phone__btn:hover {
    background: #ebe6e3;
}

#auth-modal .auth-phone__code {
    margin-bottom: 10px;
}

#auth-modal .auth-phone__login {
    background: #fff;
    color: #2a2725;
    font-size: 16px;
    font-weight: 400;
}

#auth-modal .auth-phone__login:hover {
    background: #f7f5f3;
}

#auth-modal .auth-phone__message {
    margin: 8px 0 0;
    color: #9b3b2f;
    font-size: 13px;
    line-height: 1.35;
}

#auth-modal .auth-phone__message:empty {
    display: none;
}

#auth-modal .auth-phone__message.is-success {
    color: #3f7a42;
}

#auth-modal .auth-phone__timer {
    margin: 10px 0 0;
    color: #6c6764;
    font-size: 14px;
    line-height: 1.35;
}

#auth-modal .auth-phone__timer.is-expired {
    color: #9b3b2f;
}

#auth-modal .auth-phone__resend {
    margin: 8px 0 0;
    color: #6c6764;
    font-size: 13px;
    line-height: 1.35;
}

#auth-modal .auth-phone__resend:empty {
    display: none;
}

#auth-modal .auth-divider--vk {
    margin: 18px 0 12px;
}

#auth-modal .auth-divider--services {
    margin: 18px 0 12px;
}

#auth-modal .auth-social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#auth-modal .auth-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid #d4ceca;
    border-radius: 6px;
    background: #fff;
    color: #3a3633;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}

#auth-modal .auth-social-btn:hover {
    background: #f7f5f3;
}

#auth-modal .auth-social-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fc3f1d;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

#auth-modal .footer__social {
    display: flex;
    justify-content: center;
    margin: 0;
}

#auth-modal .auth-vk-id-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid #d4ceca;
    border-radius: 6px;
    background: #fff;
    color: #3a3633;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
}

#auth-modal .auth-social .auth-vk-id-btn {
    width: 100%;
    min-width: 0;
}

#auth-modal .auth-vk-id-btn:hover {
    color: #3a3633;
    background: #f7f5f3;
}

#auth-modal .auth-vk-id-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #4c8ddd;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

#auth-modal .auth-modal__info {
    max-width: 440px;
    margin: 16px auto 0;
    color: #504b48;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

#auth-modal .auth-modal__info a {
    display: initial;
    color: #9a7769;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#auth-modal .auth-modal--server-error {
    margin-top: 12px;
}

#auth-modal .reg-form .form-line > .text-input {
    display: block;
    width: 100%;
    max-width: none;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #dfdcda;
    border-radius: 6px;
    background: #fff;
    color: #24211f;
    font-size: 15px;
    line-height: 46px;
    outline: none;
}

#auth-modal .reg-form .form-line > .text-input:focus {
    border-color: #bdb4ae;
    box-shadow: 0 0 0 3px rgba(141, 116, 101, .1);
}

#auth-modal .reg-form .submit-line__left,
#auth-modal .reg-form .submit-line__row {
    display: block;
    width: 100%;
}

#auth-modal .reg-form .submit-line__row {
    margin: 0 0 12px !important;
}

#auth-modal .reg-form .checkbox {
    display: block;
    color: #4f4a47;
    font-size: 13px;
    line-height: 1.4;
}

#auth-modal .reg-form .checkbox__text {
    padding-left: 30px;
}

#auth-modal .reg-form .checkbox__text::before,
#auth-modal .reg-form .checkbox__text::after {
    width: 20px;
    height: 20px;
}

#auth-modal .reg-form__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 28px 0 0;
    padding: 0 28px;
    border: 1px solid #252220;
    border-radius: 5px;
    background: #2b2927;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

#auth-modal .reg-form__btn:hover {
    background: #191716;
}

#auth-modal .reg-form .footer__social {
    display: block;
    margin: 18px 0 0;
}

#auth-modal .reg-form .social__description {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin: 0 0 12px;
    color: #6c6764;
    text-align: center;
}

#auth-modal .reg-form .social__description::before,
#auth-modal .reg-form .social__description::after {
    content: "";
    height: 1px;
    background: #dedbd8;
}

#auth-modal .reg-form .description__p {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    white-space: nowrap;
}

#auth-modal .reg-form .auth-vk-id-btn {
    display: flex;
    margin: 0 auto;
}

#auth-modal form.load {
    /* static — чтобы прелоадер .load:before позиционировался относительно .auth-modal
       и растягивался на всю модалку (табы + поля + отступы), а не только на форму */
    position: static !important;
}

.item__link {
    cursor: pointer;
    display: block;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin-right: 15px;
    background-size: contain;
}

@media (max-width: 640px) {
    /* fancybox по умолчанию выравнивает слайд по низу (align-items:flex-end);
       при динамической адресной строке модалка оказывается выше слайда и её
       верх (табы Вход/Регистрация) уходит за край. Прижимаем к верху. */
    .fancybox-slide:has(#auth-modal) {
        align-items: flex-start;
    }

    #auth-modal.fancy-modal-wrap {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;          /* учитывает адресную строку мобильного браузера */
        max-height: 100vh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
    }

    #auth-modal .auth-modal {
        padding: 44px 18px 26px; /* место под крестик закрытия над табами */
    }

    #auth-modal .fancy-modal-wrap__close {
        top: 16px;
        right: 16px;
    }

    #auth-modal .auth-modal__nav {
        margin-bottom: 18px;
    }

    #auth-modal .auth-modal__tab {
        font-size: 17px;
        padding-bottom: 14px;
    }

    #auth-modal .auth-phone__row {
        grid-template-columns: 1fr;
    }

    #auth-modal .auth-phone__btn,
    #auth-modal .auth-vk-id-btn {
        width: 100%;
    }

    #auth-modal .auth-social {
        grid-template-columns: 1fr;
    }

    #auth-modal .reg-form .social__description {
        gap: 12px;
    }

    #auth-modal .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    #auth-modal .auth-field__toggle span {
        display: none;
    }

    #auth-modal .auth-field__toggle {
        padding-right: 14px;
    }
}

/* End */
/* /local/templates/main/components/bitrix/system.auth.form/auth/style.css?178973539916646 */
