body {
    background: #F5F5F5;
}

.header {
    background: #616C72;
    padding: 53px 0 !important;
}

.wrapper {
    display: flex;
}

.header .wrapper {
    flex-direction: column;
    justify-content: start;
    align-items: center;
    transition: min-height .6s cubic-bezier(.22, .61, .36, 1);
    padding: 0 26px;
}

.login-logo {
    margin: 0 0 83px;
}

.fields-section {
    max-width: 846px;
    width: 100%;
}

.login-form,
.reg-form,
.recovery-form {
    width: 100%;
    max-width: 846px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.recovery-form {
    max-width: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header .wrapper .field label {
    color: #D3D9D7;
}

.cont {
    display: flex;
    justify-content: space-between;
}

.reset-password {
    color: #EFFE7D;
    transition: color .3s ease-in-out;
    cursor: pointer;
    margin: 0 0 8px;
    line-height: 17px;
    font-size: 14px;
}

.reset-password:hover {
    color: #D3D9D7;
}

.agreement__link {
    color: #EFFE7D;
    text-decoration: none;
    transition: color .3s ease-in-out;
}

.agreement__link:hover {
    color: #D3D9D7;
    text-decoration: none;
}

.service-main_button--transparent {
    background: transparent !important;
    color: #EFFE7D;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0;
    width: auto;
    height: auto;
    padding: 0;
    transition: .3s ease-in-out;
    margin: 39px 0 15px;
}

.service-main_button--active {
    color: #D3D9D7;
}

.service-main_button--transparent:hover {
    background: transparent !important;
    color: #D3D9D7 !important;
}

.service-main_button--disabled {
    background: #D3D9D7 !important;
    cursor: not-allowed;
    opacity: .5;
}

.service-main_button--disabled:hover {
    background: #D3D9D7 !important;
}

.main {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.puzzle-blocks {
    height: 65px;
}

.puzzle-blocks--white {
    background: #F5F5F5;
    flex: 1;
}

.puzzle-blocks--left {
    border-top-right-radius: 13px;
}

.puzzle-blocks--right {
    border-top-left-radius: 13px;
}

.puzzle-blocks--grey {
    width: 567px;
    background: #616C72;
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
    flex-shrink: 0;
}

.puzzle-blocks--bg {
    position: absolute;
    top: -30px;
    z-index: -1;
    width: 100%;
}

.footer {
    background: #F5F5F5;
    padding: 46px 36px !important;
}

/* .footer .wrapper {
    
} */

.footer__title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}

.slider {
    margin: 65px auto 30px;
}

/* .slider__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
} */

/* .card {
    width: 552px;
    background: #D3D9D7;
    border-radius: 8px;
} */

.card__header {
    height: 235px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card__main {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    background: #FFFFFF;
}

.card__puzzle-blocks {
    height: 30px;
}

.card__puzzle-blocks--grey {
    width: 149px;
    background: #D3D9D7;
}

.card__puzzle-blocks--left {
    border-bottom-right-radius: 9px;
    width: 152px;
}

.card__puzzle-blocks--right {
    border-bottom-left-radius: 9px;
    width: 152px;
}

.card__puzzle-blocks--white {
    width: 254px;
    background: #FFFFFF;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    position: relative;
    z-index: 1;
}

.card__puzzle-blocks--bg {
    position: absolute;
    top: -10px;
    /* left: 31%; */
    z-index: 0;
    width: 100%;
}

.card__footer {
    background: #FFFFFF;
    border-radius: 8px;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    color: #616C72;
    line-height: 110.00000000000001%;
    padding: 29px 0;
}

/* 
.slider__dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 102px;
    margin: 30px auto 0;
} */

/* .dot {
    width: 17px;
    height: 17px;
    background: #3D4043;
    opacity: .6;
    border-radius: 50%;
    cursor: pointer;
    transition: all .3s ease-in-out;
} */

/* .dot:hover {
    opacity: 1;
    width: 36px;
    height: 36px;
} */

/* ---------- Слайдер ---------- */
.slider__wrapper {
    position: relative;
    height: 517px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card {
    width: 552px;
    /* ФИКСИРОВАННАЯ ширина */
    background: #D3D9D7;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1), box-shadow .4s ease-in-out;
    transform-origin: center center;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -276px;
    /* половина от 552px */
    margin-top: -215px;
    z-index: 1;
}

.card--active {
    z-index: 2;
}

.slider__dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 102px;
    margin: 30px auto 0;
    height: 36px;
}

.dot {
    width: 17px;
    height: 17px;
    background: #3D4043;
    opacity: .6;
    border-radius: 50%;
    cursor: pointer;
    transition: all .3s ease-in-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot:hover {
    opacity: 1;
    background: #616C72;
    width: 36px;
    height: 36px;
}

.dot--active {
    opacity: 1;
    background: #616C72;
    width: 36px;
    height: 36px;
}

.dot-ring-svg {
    position: absolute;
    width: 36px;
    height: 36px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.dot-ring-svg circle {
    stroke-dasharray: 66;
    stroke-dashoffset: 66;
    animation: draw-ring .5s cubic-bezier(.65, .05, .36, 1) forwards;
}

@keyframes draw-ring {
    from {
        stroke-dashoffset: 66;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.about-us {
    color: #3D4043;
}

.about-us__title {
    text-align: center;
    margin: 0 0 34px;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0;
}

.about-us__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 350;
}

.about-us__link {
    text-decoration: none;
    transition: color .3s ease-in-out;
}

.about-us__link:hover {
    text-decoration: none;
}


/* Переключатель соглашения */
.agreement-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 846px;
    width: 100%;
    margin: 8px 0 25px;
}

.agreement-text {
    flex: 1;
    color: #D3D9D7;
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

.toggle-switch {
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
}

.toggle-switch__track {
    width: 56px;
    height: 30px;
    background: #D3D9D7;
    border-radius: 6px;
    position: relative;
    transition: background .3s ease-in-out;
}

.toggle-switch__thumb {
    width: 26px;
    height: 26px;
    background: #FFFFFF;
    border-radius: 15%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform .3s ease-in-out, background .3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch__track--active .toggle-switch__thumb {
    transform: translateX(26px);
}

.toggle-switch__thumb--active {
    background: #EFFE7D;
}

.help-notif {
    border: 1px solid #EFFE7D;
    border-radius: 10px;
    padding: 14px 20px;
    margin: 0 0 19px;
    color: #D3D9D7;
    max-width: 846px;
    width: 100%;
}

.field__helper {
    color: #D3D9D7;
    font-weight: 400;
    font-size: 10px;
}

/* ====== Анимация появления/скрытия формы регистрации ====== */
.reg-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .6s cubic-bezier(.22, .61, .36, 1);
    width: 100%;
    max-width: 846px;
}

.reg-wrapper--open {
    grid-template-rows: 1fr;
}

.reg-wrapper>section {
    overflow: hidden;
    min-height: 0;
}

.reg-inner {
    opacity: 0;
    transition: opacity .5s ease .1s;
}

.reg-inner--visible {
    opacity: 1;
}

.reg-fields-section {
    margin-top: 30px;
}

.service-main_button--think {
    margin: 2px 0 0 !important;
    max-width: 456px;
    width: 100%;
    height: 39px;
    border-radius: 8px !important;
}

.code-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
    width: 272px;
    margin: 0 auto;
}

.timer-text {
    font-size: 17px;
    font-weight: 500;
    color: #D3D9D7;
    text-align: center;
}

.resend-code {
    color: #EFFE7D;
    font-weight: 500;
    font-size: 17px;
}

.code-container .service-form__input {
    width: 45px;
    height: 81px;
    text-align: center;
    font-size: 30px !important;
    max-height: 81px !important;
    border-radius: 10px !important;
}

.verify-phone-block {
    margin-top: 15px;
}

.timer-text--bottom-indentation {
    margin: 0 0 10px;
}

.timer-text--top-indentation {
    margin: 10px 0;
}

.success-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.success-block__text {
    color: #D3D9D7;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    overflow: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.recovery-modal {
    background: #FFFFFF;
    border-radius: 12px;
    width: 100%;
    max-width: 880px;
    padding: 78px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    opacity: 0;
    animation: modalSlideDown 0.4s cubic-bezier(.22, .61, .36, 1) forwards;
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-overlay.closing .recovery-modal {
    animation: modalSlideUp 0.4s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-50px);
        opacity: 0;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 42px;
    border-bottom: none !important;
    padding: 0 !important;
}

.modal-body--custom-modal {
    width: 435px;
    padding: 0;
    margin: 0 auto;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #3D4043;
    margin: 0;
    line-height: 100%;
    margin: 0 auto;
}

.modal-close {
    cursor: pointer;
}

.modal-close img {
    width: 24px;
    height: 24px;
}

.recovery-icon {
    text-align: center;
    margin-bottom: 20px;
}

.phone-icon-placeholder {
    width: 48px;
    height: 48px;
    background: #EFFE7D;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.recovery-text {
    color: #616C72;
    font-size: 20px;
    line-height: 150%;
    margin-bottom: 24px;
    font-weight: 400;
    margin: 0 0 0 10px;
}

.recovery-input {
    width: 100%;
    margin-bottom: 16px;
    height: 48px !important;
}

.modal-body--custom-modal .recovery-input {
    height: 48px !important;
    max-height: 48px !important;
    border-radius: 10px !important;
}

.recovery-button {
    width: 394.29px !important;
    margin: 52px auto 0;
}

.recovery-error {
    color: #ff4d4f;
    font-size: 13px;
    margin-bottom: 12px;
    text-align: center;
}

.recovery-code-container {
    margin: 24px auto;
}

.recovery-timer {
    text-align: center;
    margin: 16px 0;
    font-size: 14px;
    color: #D3D9D7;
}

.recovery-timer .resend-code {
    color: #EFFE7D;
    cursor: pointer;
    font-weight: 500;
}

.recovery-text--small {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0;
    color: black;
    text-align: center;
    margin: 0 0 10px;
}

.resend-code--blue {
    color: #007AFF !important;
}

.about-recovery {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 43px;
}

.block__error {
    background: #D3D9D7;
    padding: 38px 35px;
    display: flex;
    align-items: center;
    border-radius: 20px;
    max-width: 836px;
    width: 100%;
    margin: 30px 0;
}

.block__error p {
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    margin-left: 14px;
}

.link-error {
    color: #EFFE7D !important;
}

.btns-wrapper {
    max-width: 426px;
    width: 100%;
    margin: 0 auto;
}

.service-main_button {
    width: 100%;
}

@media (max-width: 1024px) {
    .slider {
        margin: 40px 0 20px;
    }

    .slider__wrapper {
        position: relative;
        height: auto;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 20px 5vw;
        gap: 20px;
        justify-content: flex-start;
        align-items: stretch;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .slider__wrapper::-webkit-scrollbar {
        display: none;
    }

    .card {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin: 0 !important;
        transform: none !important;

        width: 80vw;
        max-width: 540px;
        flex: 0 0 auto;
        scroll-snap-align: center;
        height: auto;
    }

    /* .card__header {
        height: 180px;
    } */

    /* .card__footer {
        font-size: 18px;
        padding: 40px 15px 20px;
        height: 128px;
    } */

    .footer {
        padding: 30px 20px !important;
    }

    .slider__dots {
        display: flex;
        /* Показываем точки */
        justify-content: center;
        /* Центрируем */
        align-items: center;
        width: auto;
        margin: 25px auto 0;
        height: 36px;
        gap: 12px;
        /* Расстояние между точками */
    }

    .dot {
        width: 12px;
        /* Чуть меньше на мобильных */
        height: 12px;
        background: #3D4043;
        opacity: .4;
        /* Более прозрачные неактивные */
        border-radius: 50%;
        cursor: pointer;
        transition: all .3s ease-in-out;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dot:hover {
        opacity: 0.8;
    }

    .dot--active {
        opacity: 1;
        background: #616C72;
        width: 32px;
        /* Активная точка шире */
        height: 32px;
        border-radius: 50%;
    }

    .dot-ring-svg {
        position: absolute;
        width: 32px;
        height: 32px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-90deg);
        pointer-events: none;
    }

    .dot-ring-svg circle {
        stroke-dasharray: 66;
        stroke-dashoffset: 0;
        /* Всегда видим кольцо на активной */
    }
}

@media (max-width: 768px) {
    .footer__title {
        font-size: 20px;
    }

    .about-us__title {
        font-size: 14px;
    }

    .about-us__info {
        font-size: 14px;
    }

    .card__footer {
        font-size: 27px;
    }

    .card__header {
        height: 252px;
    }

    .puzzle-blocks {
        height: 40px;
    }

    .puzzle-blocks--white {
        width: 200px;
    }

    .puzzle-blocks--bg {
        width: 100% !important;
    }

    .puzzle-blocks--grey {
        width: 360px;
    }
}

@media (max-width: 635px) {
    .card__header {
        height: auto;
    }

}

@media (max-width: 480px) {

    .footer__title {
        font-size: 10px;
    }

    .card {
        width: 85vw;
    }

    .card__header {
        height: 150px;
    }

    .card__header img {
        max-width: 80% !important;
        height: auto;
    }

    .card__puzzle-blocks {
        height: 14px;
    }

    .card__puzzle-blocks--bg {
        position: absolute;
        top: -6px;
    }

    .card__puzzle-blocks--left {
        border-bottom-right-radius: 4px;
    }

    .card__puzzle-blocks--right {
        border-bottom-left-radius: 4px;
    }

    .card__puzzle-blocks--white {
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    .footer {
        padding: 24px 20px !important;
    }

    .slider {
        margin: 22px 0;
    }

    .slider__dots {
        margin: 22px auto 0;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot-ring-svg {
        width: 16px;
        height: 16px;
    }

    .dot--active {
        width: 16px;
        height: 16px;
    }

    .puzzle-blocks {
        height: 24px;
    }

    .puzzle-blocks--bg {
        top: -12px;
    }

    .puzzle-blocks--grey {
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    .puzzle-blocks--white {
        width: 200px;

    }

    .puzzle-blocks--bg {
        left: 0;
        width: 100%;
    }

    .puzzle-blocks--left {
        border-top-right-radius: 5px;
    }

    .puzzle-blocks--right {
        border-top-left-radius: 5px;
    }

    .card__footer {
        font-size: 14px;
        padding: 18px 15px;
        height: auto;
    }

    .btns-wrapper {
        width: 162px;
    }

    .service-main_button {
        height: 28px;
        font-size: 9px !important;
        border-radius: 8px !important;
    }

    .service-main_button--transparent {
        font-size: 9px;
        height: auto !important;
        margin: 0;
    }

    .about-us__info {
        font-size: 7px;
    }

    .about-us__title {
        font-size: 7px;
    }

    .t-support {
        width: 10px;
    }

    .login-logo {
        width: 150px;
    }

    .dot:hover {
        width: 16px;
        height: 16px;
    }

    .puzzle-blocks--grey {
        width: 207px;
    }
}

.help-notif__item {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 120%;
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 500;
}

.help-notif__item img {
    width: 19px;
    height: 19px;
}

.help-notif__item--small {
    font-size: 16px;
    font-weight: 400;
}