/* «К тарифам» — мобильная полоса сверху и десктопная кнопка справа снизу */

.ttk-back-to-tariffs-bar,
.ttk-back-to-tariffs-fab {
    pointer-events: none;
    visibility: hidden;
}

.ttk-back-to-tariffs-bar.is-visible,
.ttk-back-to-tariffs-fab.is-visible {
    pointer-events: auto;
    visibility: visible;
}

@media screen and (max-width: 679px) {
    .ttk-back-to-tariffs-bar {
        background: #fff;
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
        box-sizing: border-box;
        left: 0;
        position: fixed;
        right: 0;
        top: 0;
        transform: translateY(-100%);
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 98;
    }

    .ttk-back-to-tariffs-bar.is-visible {
        transform: translateY(0);
    }

    .ttk-back-to-tariffs-bar__inner {
        align-items: center;
        box-sizing: border-box;
        display: flex;
        gap: 10px;
        justify-content: space-between;
        padding: 8.5px 17px;
        width: 100%;
    }

    .ttk-back-to-tariffs-bar__brand {
        display: block;
        flex: 0 0 auto;
        line-height: 0;
        max-width: 136px;
        width: 34vw;
    }

    .ttk-back-to-tariffs-bar__brand img {
        display: block;
        height: auto;
        width: 100%;
    }

    .ttk-back-to-tariffs-bar__btn {
        align-items: center;
        background: #e52713;
        border: 1px solid #e52713;
        border-radius: 10px;
        box-sizing: border-box;
        color: #fff;
        cursor: pointer;
        display: inline-flex;
        flex: 0 0 auto;
        font: inherit;
        font-size: 3.4vw;
        justify-content: center;
        line-height: 1.2;
        min-height: 11.3333vw;
        padding: 2.83333vw 4.53333vw;
        text-decoration: none;
        white-space: nowrap;
    }

    .ttk-back-to-tariffs-bar__btn:hover {
        background: #eb3822;
        border-color: #eb3822;
        color: #fff;
    }

    .ttk-back-to-tariffs-fab {
        display: none !important;
    }
}

@media screen and (min-width: 680px) {
    .ttk-back-to-tariffs-bar {
        display: none !important;
    }

    @keyframes ttk-fab-shimmer {
        0%,
        62%,
        100% {
            box-shadow: 0 8px 24px rgba(255, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        75% {
            box-shadow: 0 10px 30px rgba(255, 90, 90, 0.5), 0 0 18px rgba(255, 255, 255, 0.35);
        }
    }

    @keyframes ttk-fab-shine {
        0%,
        62% {
            transform: translateX(-160%);
        }

        90%,
        100% {
            transform: translateX(260%);
        }
    }

    .ttk-back-to-tariffs-fab {
        align-items: center;
        background: #e52713;
        border: 1px solid #e52713;
        border-radius: 999px;
        bottom: 28px;
        box-shadow: 0 8px 24px rgba(255, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.08);
        box-sizing: border-box;
        color: #fff;
        cursor: pointer;
        display: inline-flex;
        font: inherit;
        font-size: 24px;
        font-weight: 500;
        gap: 0.45em;
        justify-content: center;
        line-height: 1.2;
        opacity: 0;
        overflow: hidden;
        padding: 21px 33px;
        position: fixed;
        right: 28px;
        text-decoration: none;
        transform: translate3d(0, 120%, 0);
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
        z-index: 97;
    }

    .ttk-back-to-tariffs-fab__label,
    .ttk-back-to-tariffs-fab__icon {
        position: relative;
        z-index: 1;
    }

    .ttk-back-to-tariffs-fab__icon {
        flex-shrink: 0;
        font-size: 0.92em;
        line-height: 1;
    }

    .ttk-back-to-tariffs-fab::after {
        background: linear-gradient(
            105deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 35%,
            rgba(255, 255, 255, 0.42) 50%,
            rgba(255, 255, 255, 0.08) 65%,
            transparent 100%
        );
        content: "";
        height: 100%;
        left: 0;
        pointer-events: none;
        position: absolute;
        top: 0;
        transform: translateX(-160%);
        width: 60%;
    }

    .ttk-back-to-tariffs-fab:hover {
        background: #eb3822;
        border-color: #eb3822;
        color: #fff;
    }

    .ttk-back-to-tariffs-fab.is-visible {
        animation: ttk-fab-shimmer 6s linear infinite;
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .ttk-back-to-tariffs-fab.is-visible::after {
        animation: ttk-fab-shine 6s ease-in-out infinite;
    }
}
