.reg__banner {
    background: url("data:image/svg+xml,%3Csvg width='1335' height='240' viewBox='0 0 1335 240' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_20_19290)'%3E%3Crect width='1335' height='240' rx='40' fill='%23F2E1DD'/%3E%3Cpath d='M1271.71 306.774C1195.8 306.774 1134.26 246.549 1134.26 172.258C1134.26 97.9666 1195.8 37.7417 1271.71 37.7417C1347.63 37.7417 1409.17 97.9666 1409.17 172.258C1409.17 246.549 1347.63 306.774 1271.71 306.774Z' fill='url(%23paint0_linear_20_19290)'/%3E%3Cpath d='M909 264C818.425 264 745 192.142 745 103.5C745 14.8583 818.425 -57 909 -57C999.575 -57 1073 14.8583 1073 103.5C1073 192.142 999.575 264 909 264Z' fill='url(%23paint1_linear_20_19290)'/%3E%3Cpath d='M69.3833 317.71C-34.658 317.71 -119 235.171 -119 133.355C-119 31.5385 -34.658 -51 69.3833 -51C173.425 -51 257.767 31.5385 257.767 133.355C257.767 235.171 173.425 317.71 69.3833 317.71Z' fill='url(%23paint2_linear_20_19290)'/%3E%3Cpath d='M260.888 250.548C206.274 250.548 162 207.221 162 153.774C162 100.327 206.274 57 260.888 57C315.503 57 359.777 100.327 359.777 153.774C359.777 207.221 315.503 250.548 260.888 250.548Z' fill='url(%23paint3_linear_20_19290)'/%3E%3C/g%3E%3Cdefs%3E%3ClinearGradient id='paint0_linear_20_19290' x1='1292.1' y1='-21.5366' x2='1292.1' y2='171.905' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='white' stop-opacity='0.7'/%3E%3Cstop offset='1' stop-color='white' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='paint1_linear_20_19290' x1='933.322' y1='-127.729' x2='933.322' y2='103.079' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='white' stop-opacity='0.7'/%3E%3Cstop offset='1' stop-color='white' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='paint2_linear_20_19290' x1='97.3215' y1='-132.241' x2='97.3215' y2='132.871' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='white' stop-opacity='0.7'/%3E%3Cstop offset='1' stop-color='white' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='paint3_linear_20_19290' x1='275.554' y1='14.3537' x2='275.554' y2='153.52' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='white' stop-opacity='0.7'/%3E%3Cstop offset='1' stop-color='white' stop-opacity='0'/%3E%3C/linearGradient%3E%3CclipPath id='clip0_20_19290'%3E%3Crect width='1335' height='240' rx='40' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A")
        no-repeat 100%;
    display: block;
    height: 240px;
    border-radius: 40px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

.reg__inner {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 80px;
    min-height: 50dvh;
}

.flash-verification-stages {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
}
.flash-code-stage,
.flash-password-fallback {
    grid-area: 1 / 1;
    width: 100%;
}
.flash-password-fallback[hidden],
.flash-code-stage[hidden] {
    display: none !important;
}

.flash-verification-group {
    max-width: 420px;
    margin: 0 auto;
}

.reg__inner-custom {
    display: none;
    flex-direction: column;
    margin-top: 20px;
    gap: 20px;
}

.reg__block {
    border-radius: 40px;
    padding: 50px;
    background-color: white;
    border: 1px solid #f1ecec;
    height: fit-content;
    width: 100%;
    max-width: 716px;
    position: relative;
    margin: 0 auto;
}
.reg__block._small {
    max-width: 570px;
}
.reg__block._small .reg__block-inner {
    max-width: 400px;
    margin: 20px auto 0 auto;
}
.reg__block .title {
    font-size: clamp(1.25rem, 1.0313rem + 0.625vw, 1.5rem);
    text-align: center;
}

.reg__block-inner {
    margin-top: 20px;
}

.reg__block-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.btn__reg {
    height: 58px;
    width: 200px;
}

.btn__reg.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
}

.btn__reg .btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes btn-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.form-group._border {
    border: 1px solid #f1ecec;
    border-radius: 20px;
    padding: 18px 20px;
}

.form-control__error {
    display: none;
    font-size: 12px;
    color: #d1416b;
    margin-top: 4px;
    padding-left: 20px;
}

.form-control._error .form-control__input {
    background-color: rgba(209, 65, 107, 0.05);
    border-color: #d1416b;
}

.form-control._error .form-control__error {
    display: block;
    margin-top: 7px;
    padding-left: 14px;
}

/* Таймер */
.resend-timer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #d1416b;
    margin-left: auto;
    width: fit-content;
}

.js-resend-text {
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 8px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-text {
    font-size: 16px;
    color: #27314a;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-input,
.radio-input {
    width: 17px;
    height: 17px;
    cursor: pointer;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #f1ecec;
    background-color: white;
    position: relative;
    transition: all 0.2s ease;

    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-input:checked::after,
.radio-input:checked::after {
    content: "";
    width: 9px;
    height: 9px;
    background-color: #d1416b;
    border-radius: 50%;
}

.checkbox-input {
    border-radius: 5px;
}

.checkbox-input:checked::after {
    border-radius: 2px;
}

.checkbox-text {
    font-size: 16px;
    color: #27314a;
}

.form-control__input--centered {
    padding: 18px 20px !important;
    height: 58px;
    font-family: inherit!important;
    letter-spacing: normal!important;
}
.form-control__label {
    font-size: 14px;
    color: #27314a;
    font-family: "Onest", sans-serif;
    margin-bottom: 8px;
    display: block;
}

.back-btn {
    position: absolute;
    top: 0;
    left: -59px;
    width: 48px;
    height: 48px;
    background: #e7c9c1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background-color: rgba(209, 65, 107, 0.1);
}

.checkbox-group--vertical {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.radio-group {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 8px;
}
.dropdown-control {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border: 1px solid #f1ecec;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.form-control._error .dropdown-trigger {
    border-color: #d1416b;
    background-color: rgba(209, 65, 107, 0.05);
}

.dropdown-trigger:hover {
    border-color: #d1416b;
}

.dropdown-text {
    font-size: 16px;
    color: #bbbdc3;
    font-family: "Onest", sans-serif;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.dropdown-control.active .dropdown-arrow {
    transform: rotate(180deg);
}
.dropdown-control.active .dropdown-trigger:hover {
    border-color: #f1ecec;
}

.dropdown-content {
    position: static;
    top: 100%;
    left: 0;
    right: 0;
    background: white;

    border-radius: 0 0 20px 20px;
    /* margin-top: 4px; */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 10;
}

.dropdown-control.active .dropdown-content {
    max-height: 350px;
    border: 1px solid #f1ecec;
    border-top: unset;
}
.dropdown-control.active .dropdown-trigger {
    border-radius: 20px 20px 0 0;
    border-bottom: unset;
}

/* Мобильный: список поверх полей, иначе кажется что «не открывается» */
@media screen and (max-width: 768px) {
    .dropdown-control {
        z-index: 1;
    }
    .dropdown-control.active {
        z-index: 40;
    }
    .dropdown-trigger {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-height: 52px;
    }
    .dropdown-control.active .dropdown-content {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        max-height: min(320px, 45vh);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
        border-radius: 0 0 12px 12px;
        z-index: 41;
    }
    .dropdown-control.active .dropdown-scroll {
        max-height: none;
    }
}

.dropdown-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px 20px;
}

.dropdown-scroll .checkbox-item,
.dropdown-scroll .radio-item {
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
}

.dropdown-scroll .checkbox-item:last-child {
    border-bottom: none;
}
.dropdown-selected {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dropdown-placeholder {
    font-size: 16px;
    color: #bbbdc3;
}

.dropdown-placeholder.hidden {
    display: none;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.selected-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f9efec;
    border: 1px solid #f1d8d1;
    color: #8e3f55;
    font-size: 13px;
    line-height: 1.2;
}

.selected-tag span:last-child {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.iti.iti--allow-dropdown.iti--show-flags {
    width: 100%;
}

/* Анкета сиделки: маска +7 без флага/выбора страны */
#assistant_auth .iti__flag-container,
#step-0 .iti__flag-container {
    display: none !important;
}
#assistant_auth .iti input.form-control__input,
#assistant_auth .iti input#phone,
#step-0 .iti input#phone {
    padding-left: 16px !important;
}

.tag-remove {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid #e9bdc5;
    background-color: #fff;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.tag-remove::before,
.tag-remove::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 1.5px;
    background-color: #d1416b;
    border-radius: 2px;
}

.tag-remove::before {
    transform: rotate(45deg);
}

.tag-remove::after {
    transform: rotate(-45deg);
}

.tag-remove:hover {
    background: #d1416b;
    border-color: #d1416b;
}

.tag-remove:hover::before,
.tag-remove:hover::after {
    background-color: #fff;
}

.selected-value {
    font-size: 16px;
    display: none;
}

.schedule-subtitle {
    font-size: 16px;
    color: #bbbdc3;
    text-align: center;
    margin-bottom: 24px;
}

.schedule-table {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.schedule-header {
    display: grid;
    grid-template-columns: 140px repeat(4, 1fr);
    background-color: #f8f8f8;
}

.schedule-row {
    display: grid;
    grid-template-columns: 140px repeat(4, 1fr);
    border-top: 1px solid white;
}

.schedule-cell {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #27314a;
    border-right: 1px solid white;
    position: relative;
    cursor: pointer;
    background-color: #fbf6f4;
}

.schedule-cell:last-child {
    border-right: none;
}

.schedule-header .schedule-cell {
    font-weight: 500;
    color: #666;
    cursor: default;
}

.day-label {
    justify-content: flex-start;
    padding-left: 20px;
    font-weight: 400;
    cursor: default;
}

.schedule-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.schedule-cell:has(.schedule-checkbox:checked)::after,
.schedule-checkbox:checked + .schedule-checkmark::after {
    content: "";
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17L4 12' stroke='%23D1416B' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

.form-control__textarea {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #f1ecec;
    border-radius: 27px 27px 6px 27px;
    font-size: 14px;
    color: #27314a;
    resize: vertical;
    min-height: 200px;
    transition: border-color 0.2s ease;
    margin: 0;
}
.schedule-textarea {
    max-width: 500px;
    margin: 0 auto;
    margin-top: 24px;
}

.form-control__textarea:focus {
    outline: none;
    border-color: #d1416b;
}

.form-control__textarea::placeholder {
    color: #bbbdc3;
}

.schedule-note {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-top: 16px;
}

.info-icon {
    margin-left: 8px;
    vertical-align: middle;
}

.upload-section {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 150px 150px;
    gap: 16px;
}

.upload-block {
    position: relative;
}

.upload-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #fbf6f4;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 10px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.upload-label:hover {
    border-color: #e7c9c1;
    background: #f9f6f5;
}

.upload-label.has-file {
    border-style: solid;
    border-color: #d1416b;
}

.upload-label.has-file:hover {
    border-color: #d1416b;
}

.upload-label.has-file .upload-content,
.upload-label.has-file .upload-text {
    display: none;
}

.upload-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    z-index: 1;
}

.upload-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-icon {
    margin-bottom: 12px;
}

.upload-text {
    font-size: 12px;
    color: #e7c9c1;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background-color: white;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    z-index: 1;
}

.upload-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #d1416b;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    font-weight: 600;
    z-index: 3;
    cursor: pointer;
    display: none;
    border: 1px solid #f1ecec;
}

.upload-label.has-file .upload-remove {
    display: inline-block;
}

.reg__about {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 16px;
}

.about-upload-feedback {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.3;
}

.about-upload-feedback.error {
    color: #d1416b;
}

.about-upload-feedback.success {
    color: #2f8a5a;
}

.about-upload-progress {
    margin-top: 6px;
}

.about-upload-progress__track {
    width: 100%;
    height: 8px;
    background: #f2e6e3;
    border-radius: 999px;
    overflow: hidden;
}

.about-upload-progress__bar {
    width: 0;
    height: 100%;
    background: #d1416b;
    transition: width 0.15s ease;
}

.about-upload-progress__text {
    margin-top: 4px;
    font-size: 12px;
    color: #7f7f7f;
    text-align: right;
}

.about-video-note {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #f1d8d1;
    border-radius: 12px;
    background: #fff9f7;
}

.about-video-note__title {
    font-size: 13px;
    font-weight: 600;
    color: #d1416b;
    margin-bottom: 4px;
}

.about-video-note__text {
    font-size: 12px;
    line-height: 1.35;
    color: #6b5f5b;
}

[data-tooltip] {
    position: relative;
    cursor: help;
    font-size: 14px;
}

[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    content: attr(data-tooltip);
    left: 0;
    top: 100%;
    border-radius: 4px 20px 20px 20px;
    background-color: white;
    border: 1px solid #f1ecec;
    z-index: 10;
    padding: 18px;
    width: fit-content;
    transform: translateY(-20px);
    transition: all 150ms cubic-bezier(0.25, 0.8, 0.25, 1);

    color: #000000;
    font-size: 12px;
    text-align: left;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(0);
    transition-duration: 0.3s;
}

.reg__inner-column {
    max-width: 716px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.reg__inner-column {
    flex-direction: column;
    gap: 20px;
}

.accordion-section {
    width: 100%;
    max-width: 716px;
}

.accordion-item {
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.accordion-item.active {
    border-color: #d1416b;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    transition: background-color 0.2s ease;
}

.accordion-icon {
    background: url("data:image/svg+xml,%3Csvg width='46' height='46' viewBox='0 0 46 46' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='46' height='46' rx='23' fill='%23E7C9C1'/%3E%3Cpath d='M28 13.9998C28.2626 13.7372 28.5744 13.5288 28.9176 13.3867C29.2608 13.2445 29.6286 13.1714 30 13.1714C30.3714 13.1714 30.7392 13.2445 31.0824 13.3867C31.4256 13.5288 31.7374 13.7372 32 13.9998C32.2626 14.2625 32.471 14.5743 32.6131 14.9174C32.7553 15.2606 32.8284 15.6284 32.8284 15.9998C32.8284 16.3712 32.7553 16.739 32.6131 17.0822C32.471 17.4254 32.2626 17.7372 32 17.9998L18.5 31.4998L13 32.9998L14.5 27.4998L28 13.9998Z' fill='white'/%3E%3Cpath d='M30.3535 19.6465L29.6465 20.3535L25.6465 16.3535L26.3535 15.6465L30.3535 19.6465Z' fill='%23E7C9C1'/%3E%3C/svg%3E%0A")
        no-repeat 100%;
    width: 46px;
    height: 46px;
    display: inline-block;
}

.accordion-item.active .accordion-icon {
    background: url("data:image/svg+xml,%3Csvg width='46' height='46' viewBox='0 0 46 46' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='46' height='46' rx='23' fill='%23E7C9C1'/%3E%3Cpath d='M30.5 26.75L23 19.25L15.5 26.75' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
        no-repeat 100%;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.accordion-item.active .accordion-content {
    max-height: 840px;
}
@media screen and (max-width: 850px) {
    .back-btn {
        left: unset;
        top: -60px;
        right: 50%;
        transform: translateX(50%);
    }
}

@media screen and (max-width: 768px) {
    .back-btn {
        left: unset;
        top: -60px;
        right: 50%;
        transform: translateX(50%);
    }
    .reg__banner {
        left: -15px;
        right: -50px;
        border-radius: unset;
    }
    .reg__block {
        padding: 24px 16px;
        border-radius: 8px;
    }
    .reg__block-inner {
        margin-top: 16px;
    }
    .form-group._border,
    .dropdown-trigger,
    .dropdown-content,
    .dropdown-control.active .dropdown-trigger,
    .schedule-table,
    .upload-label,
    .form-control__textarea,
    .pin-code-input,
    .back-btn,
    .upload-text,
    .about-video-note {
        border-radius: 10px;
    }
    .schedule-header,
    .schedule-row {
        grid-template-columns: 52px repeat(4, 1fr);
    }
    .day-label .text {
        display: none;
    }
    .day-label {
        padding: 0;
        text-align: center;
    }
    .day-label::after {
        content: attr(data-day);
        width: 100%;
    }
}

@media screen and (max-width: 540px) {
    .reg__about {
        grid-template-columns: 1fr;
    }
    .upload-section {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        align-items: start;
    }
    .upload-block {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .upload-label {
        min-height: 140px;
        height: 140px;
    }
    .about-upload-progress {
        margin-top: 0;
    }
    .selected-tags {
        gap: 6px;
    }
    .selected-tag {
        max-width: 100%;
        padding: 6px 8px;
        border-radius: 8px;
        font-size: 12px;
        line-height: 1.25;
    }
    .about-video-note {
        margin-top: 6px;
    }
}

.js-resend-timer-outer{
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.flash-verification-text {
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}
.flash-phone-nowrap {
    white-space: nowrap;
    font-weight: 600;
    color: #1f2937;
}

.flash-call-status {
    margin: 0 0 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}
.flash-call-status[hidden] {
    display: none !important;
}
.flash-call-status.is-waiting {
    background: transparent;
}
.flash-call-status.is-success {
    background: transparent;
    color: #047857;
}
.flash-call-status.is-error {
    background: transparent;
    color: #b91c1c;
}

.pin-code-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.pin-code-inputs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 56px));
    gap: 10px;
    margin-top: 0;
}
.pin-code-input {
    height: 56px;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-size: 24px;
    line-height: 1;
    font-weight: 600;
    color: #1f2937;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pin-code-input:focus,
.pin-code-input:focus-visible {
    outline: none;
    border-color: #d1416b;
    box-shadow: 0 0 0 3px rgba(209, 65, 107, .12);
}
.pin-code-error {
    display: none;
    margin-top: 8px;
    color: #d1416b;
    font-size: 14px;
    line-height: 1.35;
}
.pin-code-control._error .pin-code-input {
    border-color: #d1416b;
}
.pin-code-control._error .pin-code-error {
    display: block;
}

#flash-code-stage .reg__block-btn {
    margin-top: 20px;
}

.flash-secondary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    text-align: center;
}
.flash-resend-countdown {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.35;
}
.flash-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #6b7280;
    font: inherit;
    font-size: 15px;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.flash-link-btn:hover:not(:disabled),
.flash-link-btn:focus-visible:not(:disabled) {
    color: #d1416b;
}
.flash-link-btn:focus-visible {
    outline: 2px solid #d1416b;
    outline-offset: 3px;
    border-radius: 4px;
}
.flash-link-btn[hidden] {
    display: none !important;
}
.flash-link-btn:disabled,
.flash-link-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: wait;
    text-decoration: none;
    pointer-events: none;
    color: #9ca3af;
}

.flash-how {
    margin-top: 16px;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}
.flash-how > summary {
    cursor: pointer;
    list-style: none;
    color: #9ca3af;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.flash-how > summary::-webkit-details-marker {
    display: none;
}
.flash-how[open] > summary {
    color: #6b7280;
    margin-bottom: 8px;
}
.flash-verification-steps {
    margin: 0;
    padding: 0 0 0 18px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}
.flash-verification-steps li + li {
    margin-top: 4px;
}

.flash-password-fallback {
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}
.flash-password-fallback__lead {
    margin: 0 0 1.25rem;
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.45;
    text-align: center;
}
.flash-password-fallback .form-group {
    margin-bottom: 0.875rem;
}
.flash-password-fallback > .form-control__label,
.flash-password-fallback .form-group > .form-control__label {
    position: static;
    display: block;
    margin: 0 0 0.5rem;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    color: #27314a;
    pointer-events: auto;
}
.flash-password-fallback .form-control {
    position: relative;
}
.flash-password-fallback .form-control__input {
    display: block;
    width: 100%;
    min-height: 3.625rem;
    height: 3.625rem;
    padding: 1rem 3rem 1rem 1.15rem;
    border: 1.5px solid #e8e4e4;
    border-radius: 1.25rem;
    background: #fff;
    font-size: 1rem;
    line-height: 1.3;
    color: #27314a;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.flash-password-fallback .form-control__input:hover {
    border-color: #d8d0d0;
}
.flash-password-fallback .form-control__input:focus {
    outline: none;
    border-color: #d1416b;
    box-shadow: 0 0 0 3px rgba(209, 65, 107, 0.14);
}
.flash-password-fallback .form-control__input::placeholder {
    color: #9aa1ad;
}
.flash-password-fallback .form-control__pass .icon__eye {
    top: 1.8125rem;
    right: 0.35rem;
}
.flash-password-fallback .form-control._error .form-control__input {
    border-color: #d1416b;
    background-color: rgba(209, 65, 107, 0.04);
}
.flash-password-fallback .form-control__error {
    padding-left: 0.25rem;
}
.flash-password-fallback .reg__block-btn {
    margin-top: 1.25rem;
}
.flash-password-fallback .reg__block-btn .btn__reg {
    width: 100%;
    max-width: 100%;
}
.flash-password-fallback #flash-back-to-code {
    margin-top: 0.75rem;
}

.flash-call-help {
    margin-top: 16px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    text-align: center;
}
.flash-call-help__title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}
.flash-call-help__list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.45;
}
.flash-call-help__list li + li {
    margin-top: 2px;
}
.flash-call-help__list a {
    color: #d1416b;
}

.step0-inline-error {
    margin-top: 6px;
    color: #d1416b;
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 576px) {
    .flash-verification-text,
    .flash-link-btn {
        font-size: 15px;
    }
    .pin-code-inputs {
        grid-template-columns: repeat(4, minmax(0, 64px));
        gap: 12px;
    }
    .pin-code-input {
        height: 58px;
    }
}

/* --- Согласие с политикой (шаг 0): крупная зона нажатия для мобильных --- */
.policy-consent {
    margin-top: 8px;
}

.policy-consent__label {
    display: block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

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

.policy-consent__card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #f1ecec;
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    touch-action: manipulation;
}

.policy-consent__check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 2px solid #e7c9c1;
    border-radius: 6px;
    background: #fff;
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.policy-consent__check::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    transition: transform 0.15s ease;
}

.policy-consent__text {
    font-size: 14px;
    line-height: 1.45;
    color: #27314a;
}

.policy-consent__link {
    color: #d1416b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.policy-consent__link:hover {
    color: #b83258;
}

.policy-consent__input:focus-visible + .policy-consent__card {
    box-shadow: 0 0 0 3px rgba(250, 119, 150, 0.35);
}

.policy-consent__input:checked + .policy-consent__card {
    border-color: #fa7796;
    background: #fff7f9;
}

.policy-consent__input:checked + .policy-consent__card .policy-consent__check {
    border-color: #fa7796;
    background: #fa7796;
}

.policy-consent__input:checked + .policy-consent__card .policy-consent__check::after {
    transform: rotate(45deg) scale(1);
}

.policy-consent._error .policy-consent__card,
#step0-policy-group._error .policy-consent__card {
    border-color: #d1416b;
    background: #fff5f7;
}

.policy-consent__error {
    margin-top: 8px;
    color: #d1416b;
    font-size: 12px;
    line-height: 1.35;
}

/* --- CTA-кнопки: цвет как у виджета Bitrix24 (#fa7796) --- */
:root {
    --reg-cta: #fa7796;
    --reg-cta-hover: #f25585;
    --reg-cta-active: #e8456f;
    --reg-cta-shadow: rgba(250, 119, 150, 0.38);
}

.auth-layout .btn__pink,
.auth-layout .btn__reg,
.auth-layout .btn__pink.btn__reg,
#assistant_auth .btn__pink,
#assistant_auth .btn__reg,
#assistant_auth .btn__pink.btn__reg,
.lk__content .form__footer .btn__pink,
.lk__content .btn__pink._w-200,
.reg__block-btn .btn__pink,
.reg__block-btn .btn__reg {
    background-color: var(--reg-cta);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 10px 28px var(--reg-cta-shadow);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.auth-layout .btn__pink:hover,
.auth-layout .btn__reg:hover,
#assistant_auth .btn__pink:hover,
#assistant_auth .btn__reg:hover,
.lk__content .form__footer .btn__pink:hover,
.lk__content .btn__pink._w-200:hover,
.reg__block-btn .btn__pink:hover,
.reg__block-btn .btn__reg:hover {
    background-color: var(--reg-cta-hover);
    color: #fff;
    box-shadow: 0 12px 32px rgba(242, 85, 133, 0.42);
}

.auth-layout .btn__pink:active,
.auth-layout .btn__reg:active,
#assistant_auth .btn__pink:active,
#assistant_auth .btn__reg:active,
.lk__content .form__footer .btn__pink:active,
.lk__content .btn__pink._w-200:active,
.reg__block-btn .btn__pink:active,
.reg__block-btn .btn__reg:active {
    background-color: var(--reg-cta-active);
    transform: translateY(1px);
}

.auth-layout .btn__pink:focus-visible,
.auth-layout .btn__reg:focus-visible,
#assistant_auth .btn__pink:focus-visible,
#assistant_auth .btn__reg:focus-visible,
.lk__content .form__footer .btn__pink:focus-visible,
.lk__content .btn__pink._w-200:focus-visible,
.reg__block-btn .btn__pink:focus-visible,
.reg__block-btn .btn__reg:focus-visible {
    background-color: var(--reg-cta-hover);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(250, 119, 150, 0.38);
}

@media screen and (max-width: 768px) {
    .policy-consent__card {
        padding: 16px;
        min-height: 56px;
    }

    .auth-layout .btn__pink,
    .auth-layout .btn__reg,
    #assistant_auth .btn__pink,
    #assistant_auth .btn__reg,
    .lk__content .form__footer .btn__pink,
    .lk__content .btn__pink._w-200 {
        width: 100%;
        max-width: none;
        min-height: 52px;
        font-size: 16px;
    }

    /* Анкета сиделки: фокус на форме (body-класс + запасной селектор по #assistant_auth) */
    body.laba-assistant-auth footer.footer,
    body.laba-assistant-auth-embed footer.footer,
    body:has(#assistant_auth) footer.footer {
        display: none !important;
    }

    body.laba-assistant-auth .reg__banner,
    body.laba-assistant-auth-embed .reg__banner,
    .auth-layout:has(#assistant_auth) .reg__banner {
        display: none;
    }

    body.laba-assistant-auth .reg__inner,
    body.laba-assistant-auth-embed .reg__inner,
    .auth-layout:has(#assistant_auth) .reg__inner {
        padding-top: 12px;
        padding-bottom: 24px;
        min-height: auto;
    }

    body.laba-assistant-auth .auth-layout,
    body.laba-assistant-auth-embed .auth-layout,
    .auth-layout:has(#assistant_auth) {
        padding-bottom: 88px; /* запас под мобильный tabbar, если есть */
    }

    body.laba-assistant-auth .reg__block,
    body.laba-assistant-auth-embed .reg__block,
    .auth-layout:has(#assistant_auth) .reg__block {
        padding: 20px 16px 24px;
        border-radius: 16px;
        box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
    }

    body.laba-assistant-auth .reg__block .title,
    body.laba-assistant-auth-embed .reg__block .title,
    .auth-layout:has(#assistant_auth) .reg__block .title {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    body.laba-assistant-auth .reg__block-inner,
    body.laba-assistant-auth-embed .reg__block-inner,
    .auth-layout:has(#assistant_auth) .reg__block-inner {
        margin-top: 12px;
    }

    body.laba-assistant-auth .reg__block-btn,
    body.laba-assistant-auth-embed .reg__block-btn,
    .auth-layout:has(#assistant_auth) .reg__block-btn {
        margin-top: 20px;
    }

    body.laba-assistant-auth .flash-verification-stages,
    body.laba-assistant-auth-embed .flash-verification-stages,
    .auth-layout:has(#assistant_auth) .flash-verification-stages {
        min-height: 0;
    }

    body.laba-assistant-auth .btn__reg,
    body.laba-assistant-auth-embed .btn__reg,
    .auth-layout:has(#assistant_auth) .btn__reg {
        width: 100%;
        max-width: none;
    }

    body.laba-assistant-auth .reg__container .bx-breadcrumb,
    body.laba-assistant-auth-embed .reg__container .bx-breadcrumb,
    .auth-layout:has(#assistant_auth) .bx-breadcrumb {
        margin-bottom: 8px;
        font-size: 13px;
    }
}

/* CTA «Подобрать сиделку» в шапке — не нужна на анкете сиделки (все ширины) */
body.laba-assistant-auth .header__search--legacy,
body.laba-assistant-auth-embed .header__search--legacy,
body:has(#assistant_auth) .header__search--legacy,
body.laba-assistant-auth .header__pill--sidelki,
body.laba-assistant-auth-embed .header__pill--sidelki,
body:has(#assistant_auth) .header__pill--sidelki {
    display: none !important;
}