/* Оверлей тура «Как это работает» — общий для кабинета и страниц регистрации. */
body.rk-tour-open {
    overflow: hidden;
}

.rk-tour {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.rk-tour.is-open {
    display: block;
}

.rk-tour__mask {
    position: fixed;
    background: rgba(10, 24, 42, .62);
    display: none;
}

.rk-tour__ring {
    position: fixed;
    border-radius: 14px;
    border: 2px solid #35a7ea;
    box-shadow: 0 0 0 2px rgba(53, 167, 234, .35);
    pointer-events: none;
    transition: top .18s ease, left .18s ease, width .18s ease, height .18s ease;
}

.rk-tour__box {
    position: fixed;
    width: 360px;
    max-width: calc(100vw - 32px);
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(7, 22, 40, .35);
}

.rk-tour.is-centered .rk-tour__box {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.rk-tour__counter {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7c8a9c;
}

.rk-tour__title {
    margin: 6px 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #17202e;
}

.rk-tour__text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #4b5a6d;
}

.rk-tour__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rk-tour__nav {
    display: flex;
    gap: 8px;
}

.rk-tour__skip,
.rk-tour__prev,
.rk-tour__next {
    height: 36px;
    padding: 0 16px;
    border-radius: 9px;
    border: 1px solid #d7e0ea;
    background: #fff;
    color: #4b5a6d;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.rk-tour__skip {
    border-color: transparent;
    padding: 0 6px;
    color: #7c8a9c;
}

.rk-tour__next {
    background: #0b7ad1;
    border-color: #0b7ad1;
    color: #fff;
}

.rk-tour__next:hover {
    background: #0a67b1;
}

.rk-tour__prev:disabled {
    opacity: .45;
    cursor: default;
}

@media (max-width: 640px) {
    .rk-tour__box {
        left: 16px !important;
        right: 16px;
        width: auto !important;
    }
}

/* Плавающая кнопка тура на витрине сайта. */
.rk-tour-btn--floating {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #d7e0ea;
    border-radius: 999px;
    background: #fff;
    color: #17202e;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 12px 30px -14px rgba(16, 32, 58, .55);
}

.rk-tour-btn--floating:hover {
    border-color: #0b7ad1;
    color: #0b7ad1;
}

.rk-tour-btn--floating .rk-tour-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0b7ad1;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

body.rk-tour-open .rk-tour-btn--floating {
    display: none;
}

@media (max-width: 640px) {
    .rk-tour-btn--floating {
        left: 12px;
        bottom: 74px;
        height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }
}
