/* Выдвижная акция внутренних страниц. Блок фиксированный и не влияет на раскладку страницы. */
.akciya-float {
    position: fixed;
    z-index: 850;
    top: 50%;
    right: 0;
    width: min(500px, calc(100vw - 20px));
    transform: translate3d(calc(100% - 72px),-50%,0);
    transition: transform .5s cubic-bezier(.22,.72,.2,1) .1s;
    will-change: transform;
    isolation: isolate;
}

.akciya-float:hover,
.akciya-float:focus-within,
.akciya-float.is-open {
    transform: translate3d(0,-50%,0);
    transition-delay: 0s;
}

.akciya-float__tab {
    position: absolute;
    z-index: 2;
    top: 38px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 3px solid rgba(255,255,255,.24);
    border-radius: 50%;
    background: #d49500;
    box-shadow: 0 10px 28px rgba(30,18,49,.25);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.akciya-float__tab:hover,
.akciya-float__tab:focus-visible {
    background: #e3a000;
    box-shadow: 0 12px 30px rgba(30,18,49,.34);
    transform: scale(1.04);
    outline: none;
}

.akciya-float__tab svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
}

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

.akciya-float__panel {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-height: calc(100vh - 150px);
    margin-left: 32px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 14px 0 0 14px;
    box-shadow: -20px 22px 58px rgba(28,16,47,.22);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.34) transparent;
}

.akciya-float .akciya-index {
    min-height: 0;
    padding: 34px 34px 35px 38px;
    border: 1px solid rgba(255,255,255,.08);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: #40305b;
    box-shadow: none;
    backdrop-filter: none;
}

.akciya-float .akciya-index__caption,
.akciya-float .akciya-index__title {
    font-size: 31px;
    line-height: 1.04;
}

.akciya-float .akciya-index__text {
    max-width: 390px;
    margin: 20px 0 23px;
    font-size: 17px;
    line-height: 1.38;
}

.akciya-float .akciya-index__footer {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
}

.akciya-float .akciya-index__button {
    width: auto;
    min-width: 164px;
    min-height: 50px;
    padding: 12px 17px;
}

.akciya-float .akciya-index__price {
    align-items: flex-end;
    min-width: 160px;
    margin-top: 0;
    text-align: right;
}

.akciya-float .akciya-index__price strong {
    font-size: 38px;
}

@media (max-width: 767px) {
    .akciya-float {
        top: 52%;
        width: calc(100vw - 8px);
        transform: translate3d(calc(100% - 58px),-50%,0);
    }

    .akciya-float__tab {
        top: 26px;
        width: 54px;
        height: 54px;
    }

    .akciya-float__tab svg {
        width: 25px;
        height: 25px;
    }

    .akciya-float__panel {
        width: calc(100% - 26px);
        max-height: calc(100vh - 100px);
        margin-left: 26px;
        border-radius: 10px 0 0 10px;
    }

    .akciya-float .akciya-index {
        padding: 27px 22px 28px 31px;
        border-radius: 10px 0 0 10px;
    }

    .akciya-float .akciya-index__caption,
    .akciya-float .akciya-index__title {
        font-size: clamp(24px,7vw,29px);
    }

    .akciya-float .akciya-index__text {
        margin: 17px 0 20px;
        font-size: 16px;
    }

    .akciya-float .akciya-index__footer {
        display: block;
    }

    .akciya-float .akciya-index__button {
        width: 100%;
    }

    .akciya-float .akciya-index__price {
        align-items: flex-start;
        margin-top: 17px;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .akciya-float,
    .akciya-float__tab {
        transition-duration: .01ms;
    }
}

@media print {
    .akciya-float {
        display: none !important;
    }
}
