/* #yakastsi 2026-09-28: баннер бота AutocomCarsBot, полоска и карточка */

.ac-bot {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    color: #fff;
}

.ac-bot a {
    color: #fff;
    text-decoration: none;
}

html.ac-bot-bar-hidden .ac-bot--bar {
    display: none;
}

/* #yakastsi 2026-09-28: закрытая карточка и пометка теста не показываются 7 дней */
html.ac-bot-card-hidden .ac-bot--card,
html.ac-bot-card-hidden .ac-bot-test-note {
    display: none;
}

/* Полоска под шапкой */
.ac-bot--bar {
    background: #2c2b3c;
    border-bottom: 2px solid #ffd300;
}

.ac-bot__bar-inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
}

.ac-bot__bar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.5rem 2.25rem 0.5rem 0;
    color: #fff;
}

.ac-bot__bar-link:hover,
.ac-bot__bar-link:focus-visible {
    color: #fff;
}

.ac-bot__bar-link:focus-visible {
    outline: 2px solid #ffd300;
    outline-offset: 2px;
}

.ac-bot__mark {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.ac-bot__name {
    display: none;
}

.ac-bot__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffd300;
    box-shadow: 0 0 0 0 rgba(255, 211, 0, 0.7);
    flex-shrink: 0;
}

.ac-bot__rotator {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 1.35em;
}

.ac-bot__phrase {
    grid-area: 1 / 1;
    opacity: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffd300;
}

.ac-bot__phrase:first-child {
    opacity: 1;
}

.ac-bot__wide {
    display: none;
}

.ac-bot__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #d22e28;
    background: #d22e28;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(210, 46, 40, 0.35);
}

.ac-bot__btn-wide {
    display: none;
}

.ac-bot__close {
    position: absolute;
    top: 50%;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transform: translateY(-50%);
}

.ac-bot__close:hover,
.ac-bot__close:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.ac-bot__close svg {
    display: block;
    width: 14px;
    height: 14px;
}

/* #yakastsi 2026-09-28: трейлер бота — 4 кадра */
.ac-bot--card {
    padding-top: 1.5rem;
}

.ac-bot--compact {
    margin: 0 0 1rem;
}

.ac-bot-test-note {
    padding-top: 1.25rem;
    margin-bottom: -0.25rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #393083;
}

.ac-bot__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border-radius: 1rem;
    /* #yakastsi 2026-09-28: жёлтая обводка карточки убрана
    border: 1px solid rgba(255, 211, 0, 0.45);
    */
    border: 0;
    background: #0c0c14;
    box-shadow: 0 18px 40px rgba(20, 16, 40, 0.35);
    overflow: hidden;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ac-bot__card:hover,
.ac-bot__card:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(20, 16, 40, 0.45);
}

.ac-bot__card:focus-visible {
    outline: 2px solid #ffd300;
    outline-offset: 3px;
}

.ac-bot__stage {
    position: relative;
    display: block;
    flex: 0 0 auto;
    height: 232px;
    overflow: hidden;
    /* #yakastsi 2026-09-28: ровный фон без цветных пятен, текст читается чётче
    background:
        radial-gradient(ellipse at 15% 80%, rgba(57, 48, 131, 0.85) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 10%, rgba(255, 211, 0, 0.16) 0%, transparent 42%),
        radial-gradient(ellipse at 50% 120%, rgba(210, 46, 40, 0.28) 0%, transparent 46%),
        linear-gradient(180deg, #1c1733 0%, #0b0b12 100%);
    */
    /* #yakastsi 2026-09-28: верх фона одним цветом, без полосы и градиента
    background: linear-gradient(180deg, #3a3488 0%, #221c4a 46%, #12121a 100%);
    */
    background: #393083;
}

/* #yakastsi 2026-09-28: полоски по краям кадра на переходе убраны
.ac-bot__stage::before,
.ac-bot__stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    background: #393083;
    z-index: 5;
}

.ac-bot__stage::before { top: 0; }
.ac-bot__stage::after { bottom: 0; }
*/

.ac-bot__bokeh,
.ac-bot__streaks,
.ac-bot__flash,
.ac-bot__scan {
    position: absolute;
    pointer-events: none;
}

/* #yakastsi 2026-09-28: боке и полосы света замыливали кадр */
.ac-bot__bokeh,
.ac-bot__streaks { display: none; }

.ac-bot__bokeh { inset: 0; }

.ac-bot__bokeh i {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
}

.ac-bot__bokeh i:nth-child(1) {
    width: 140px;
    height: 140px;
    left: 8%;
    top: 18%;
    background: rgba(255, 211, 0, 0.28);
}

.ac-bot__bokeh i:nth-child(2) {
    width: 180px;
    height: 180px;
    right: 6%;
    bottom: -20px;
    background: rgba(80, 120, 255, 0.28);
}

.ac-bot__bokeh i:nth-child(3) {
    width: 90px;
    height: 90px;
    left: 46%;
    top: 8%;
    background: rgba(255, 255, 255, 0.16);
}

.ac-bot__streaks {
    left: 0;
    right: 0;
    top: 42%;
    height: 40px;
}

.ac-bot__streaks::before,
.ac-bot__streaks::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 38%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
}

.ac-bot__streaks::before { top: 8px; }
.ac-bot__streaks::after { top: 22px; width: 22%; opacity: 0.6; }

.ac-bot__ticks {
    position: absolute;
    z-index: 6;
    top: 16px;
    left: 16px;
    /* #yakastsi 2026-09-28: справа место под крестик закрытия */
    right: 52px;
    display: flex;
    gap: 6px;
}

.ac-bot__frame {
    position: relative;
}

.ac-bot--card .ac-bot__close {
    top: 0.55rem;
    right: 0.55rem;
    z-index: 8;
    transform: none;
    border-radius: 999px;
    background: rgba(12, 10, 28, 0.45);
}

.ac-bot__ticks i {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
}

.ac-bot__ticks i::after {
    content: "";
    display: block;
    height: 100%;
    background: #ffd300;
    transform: scaleX(0);
    transform-origin: left center;
}

.ac-bot__scene {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1.25rem 1.15rem;
    opacity: 0;
}

.ac-bot__kicker {
    margin-bottom: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.ac-bot__hero {
    font-size: clamp(1.28rem, 3.1vw, 2.15rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0.045em;
}

.ac-bot__hero--sm {
    font-size: clamp(1.35rem, 3.4vw, 2.15rem);
}

.ac-bot__gold {
    display: inline-block;
    margin-top: 0.45rem;
    color: #ffd300;
    font-size: clamp(1rem, 2.4vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ac-bot__gold::after {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    margin: 0.45rem auto 0;
    background: #ffd300;
}

.ac-bot__gold--hit {
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    letter-spacing: 0.04em;
}

.ac-bot__gold--hit::after {
    width: 100%;
    height: 3px;
}

.ac-bot__gold--cta {
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: clamp(1.2rem, 2.8vw, 1.7rem);
}

.ac-bot__gold--cta::after {
    /* width: 100%; */
    /* #yakastsi 2026-09-28: черта под призывом убрана
    width: 4.5rem;
    */
    content: none;
}

.ac-bot__nudge {
    display: inline-block;
}

.ac-bot__scene--lot { align-items: center; }

.ac-bot__phone {
    width: min(100%, 440px);
    padding: 0.7rem 0.85rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 12, 20, 0.72);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.ac-bot__phone-top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.15rem;
    /* font-size: 0.75rem; font-weight: 700; color: rgba(255, 255, 255, 0.8); */
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.ac-bot__phone .ac-bot__dot {
    width: 9px;
    height: 9px;
    background: #3dd68c;
    box-shadow: none;
}

.ac-bot__car {
    display: block;
    width: min(100%, 280px);
    height: auto;
    /* margin: 0.85rem auto 0; */
    margin: 1.45rem auto 0;
}

.ac-bot__perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: stretch;
    gap: 0.65rem;
    width: min(100%, 920px);
    text-align: center;
}

.ac-bot__perks > span {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    width: auto;
    min-height: 9.2rem;
    height: 100%;
    padding: 0.75rem 0.7rem 0.85rem;
    border-radius: 0.9rem;
    border: 1px solid #ffd300;
    background: rgba(12, 10, 28, 0.88);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.ac-bot__perks > span::before { content: none; }

.ac-bot__perk-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 211, 0, 0.16);
    color: #ffd300;
    flex: 0 0 auto;
    overflow: hidden;
}

.ac-bot__perk-ico svg {
    width: 20px;
    height: 20px;
}

.ac-bot__perks > span {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 2.7rem 1fr;
    justify-items: stretch;
    align-content: start;
    gap: 0.4rem;
    text-align: center;
}

.ac-bot__perk-note {
    display: block;
    width: 100%;
    text-align: center;
}

.ac-bot__perks b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 2.5rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    /* background: #ffd300; color: #2c2b3c; font-size: 0.78rem; */
    background: #ffd300;
    color: #2c2b3c;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.ac-bot__perks > span:nth-child(2) .ac-bot__perk-ico { background: rgba(255, 255, 255, 0.14); color: #fff; }
.ac-bot__perks > span:nth-child(2) b { background: #fff; color: #2c2b3c; }
.ac-bot__perks > span:nth-child(3) .ac-bot__perk-ico { background: rgba(124, 116, 214, 0.28); color: #d9d4ff; }
.ac-bot__perks > span:nth-child(3) b { background: #6d66c9; color: #fff; }
.ac-bot__perks > span:nth-child(4) .ac-bot__perk-ico { background: rgba(210, 46, 40, 0.22); color: #ff8a84; }
.ac-bot__perks > span:nth-child(4) b { background: #d22e28; color: #fff; }
/* #yakastsi 2026-09-28: обводка карточки в цвет акцента */
.ac-bot__perks > span:nth-child(2) { border-color: #fff; }
.ac-bot__perks > span:nth-child(3) { border-color: #6d66c9; }
.ac-bot__perks > span:nth-child(4) { border-color: #d22e28; }

.ac-bot__specs {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
}

.ac-bot__price {
    display: block;
    margin-top: 0.15rem;
    color: #ffd300;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.ac-bot__key {
    display: inline-block;
    margin-top: 0.35rem;
    /* padding: 0.2rem 0.55rem; font-size: 0.75rem; */
    padding: 0.48rem 0.95rem;
    border-radius: 999px;
    /* background: #ffd300; color: #2c2b3c; */
    background: #d22e28;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.ac-bot__markets {
    display: flex;
    gap: 0.75rem;
    width: min(100%, 520px);
}

.ac-bot__market {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.85rem 0.9rem;
    border-radius: 0.85rem;
    /* border: 1px solid rgba(255, 211, 0, 0.35); background: rgba(255, 255, 255, 0.06); */
    border: 1px solid #ffd300;
    background: rgba(12, 10, 28, 0.88);
}

.ac-bot__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    /* background: #ffd300; color: #2c2b3c; */
    background: #fff;
    flex-shrink: 0;
}

.ac-bot__flag svg {
    display: block;
    width: 118%;
    height: 118%;
    margin: -9%;
}

.ac-bot__market-name {
    display: flex;
    flex-direction: column;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
}

.ac-bot__market-name small {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.ac-bot__scan {
    left: 10%;
    right: 10%;
    top: 30%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd300, transparent);
    box-shadow: 0 0 12px #ffd300;
    opacity: 0;
    z-index: 3;
}

.ac-bot__every {
    /* margin-top: 0.85rem; color: #ffe566; */
    margin-top: 1.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.ac-bot__chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    width: min(100%, 280px);
    margin: 0 auto 0.85rem;
}

.ac-bot__chips span {
    box-sizing: border-box;
    width: 100%;
    padding: 0.42rem 0.5rem;
    border-radius: 999px;
    /* border: 1px solid #ffd300; background: rgba(255, 211, 0, 0.22); color: #ffd300; font-size: 0.75rem; */
    border: none;
    background: #ffd300;
    color: #2c2b3c;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
    box-shadow: 0 4px 0 #c9a400;
}

.ac-bot__flash {
    inset: 0;
    z-index: 4;
    background: #fff;
    opacity: 0;
}

.ac-bot__dock {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: #14141f;
}

.ac-bot__dock .ac-bot__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #ffd300;
    color: #2c2b3c;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ac-bot__dock .ac-bot__dot {
    width: 7px;
    height: 7px;
    background: #2c2b3c;
    box-shadow: none;
}

.ac-bot__dock-note {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.ac-bot__card .ac-bot__btn {
    min-height: 42px;
    padding: 0.55rem 1.05rem;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
}

.ac-bot__card .ac-bot__btn::after {
    content: "→";
    margin-left: 0.35rem;
}

@media (max-width: 639px) {
    .ac-bot__dock-note { display: none; }
    .ac-bot__dock { justify-content: space-between; }
    .ac-bot__card .ac-bot__btn { flex: 1; }
    .ac-bot__stage { height: 372px; touch-action: pan-y; }
    .ac-bot__hero { letter-spacing: 0.03em; }
    .ac-bot__scene { padding: 1.65rem 0.55rem 0.75rem; }
    /* #yakastsi 2026-09-28: на узком экране площадки одна под другой */
    /* #yakastsi 2026-09-28: площадки по центру, не на всю ширину */
    .ac-bot__markets { flex-direction: column; width: max-content; max-width: 92%; gap: 0.55rem; align-self: center; }
    .ac-bot__market {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.7rem;
        padding: 0.7rem 1rem;
        text-align: left;
    }
    .ac-bot__flag { width: 52px; height: 52px; }
    .ac-bot__perks { width: 100%; gap: 0.4rem; }
    .ac-bot__perks > span { width: auto; min-height: 9.4rem; padding: 0.55rem 0.45rem 0.65rem; font-size: 0.75rem; }
    .ac-bot__perk-ico { width: 34px; height: 34px; }
    .ac-bot__perk-ico svg { width: 18px; height: 18px; }
    .ac-bot__perks b { font-size: 0.8rem; min-height: 2.35rem; }
    .ac-bot__market-name {
        width: auto;
        align-items: flex-start;
        font-size: 1.2rem;
        text-align: left;
    }
    .ac-bot__market-name small { font-size: 0.85rem; }
    .ac-bot__every {
        font-size: 0.72rem;
        letter-spacing: 0;
        line-height: 1.25;
        margin-top: 1rem;
        max-width: 100%;
    }
}

@media (min-width: 640px) {
    .ac-bot__chips { grid-template-columns: repeat(4, 1fr); width: min(100%, 560px); }
    .ac-bot__perks { grid-template-columns: repeat(4, 1fr); }
    .ac-bot__name { display: inline; }

    .ac-bot__mark::after {
        content: "";
        width: 1px;
        height: 16px;
        margin-left: 0.35rem;
        background: rgba(255, 255, 255, 0.28);
    }

    .ac-bot__narrow { display: none; }
    .ac-bot__wide,
    .ac-bot__btn-wide { display: inline; }
    .ac-bot__btn-narrow { display: none; }
    .ac-bot__phrase { font-size: 0.875rem; }
    .ac-bot--card { padding-top: 2rem; }
    .ac-bot__stage { height: 380px; }
    .ac-bot__hero { letter-spacing: 0.08em; }
    .ac-bot--compact { margin-bottom: 1.5rem; }
}

@media (min-width: 992px) {
    .ac-bot--card { padding-top: 3rem; }
}

@media (min-width: 1200px) {
    .ac-bot--card { padding-top: 4rem; }
}

.ac-tg-slot .ac-tg,
.ac-tg-slot .ac-tg--compact {
    padding-top: 0;
    padding-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .ac-bot__phrase { animation: ac-bot-cycle 12s infinite; }
    .ac-bot__phrase:nth-child(1) { animation-delay: 0s; }
    .ac-bot__phrase:nth-child(2) { animation-delay: 4s; }
    .ac-bot__phrase:nth-child(3) { animation-delay: 8s; }

    .ac-bot__dot { animation: ac-bot-dot 2.2s ease-out infinite; }
    .ac-bot__label .ac-bot__dot { animation: none; }
    /* #yakastsi 2026-09-28: зелёный кружок у «Новый лот» мигает */
    .ac-bot__phone .ac-bot__dot { animation: ac-bot-status 1.4s ease-in-out infinite; }
    /* #yakastsi 2026-09-28: кружок на жёлтой плашке бота мигает
    .ac-bot__dock .ac-bot__dot { animation: none; }
    */
    .ac-bot__dock .ac-bot__dot { animation: ac-bot-live 1.3s ease-in-out infinite; }

    .ac-bot__card .ac-bot__btn { animation: ac-bot-btn 1.4s ease-in-out infinite; }
    .ac-bot__card:hover .ac-bot__btn,
    .ac-bot__card:focus-visible .ac-bot__btn { animation: none; }

    /* #yakastsi 2026-09-28: акцент кадра мигает, авто выезжает, чипы нажимаются, плашки по очереди, стрелка едет */
    .ac-bot__gold--hit { animation: ac-hit-glow 1.15s ease-in-out infinite; }
    .ac-bot__nudge { animation: ac-nudge 0.9s ease-in-out infinite; }
    .ac-bot__car { animation: ac-car-in 48s linear infinite both; animation-delay: 8s; }
    .ac-bot__chips span { animation: ac-chip-press 48s linear infinite; }
    .ac-bot__chips span:nth-child(2) { animation-delay: 0.55s; }
    .ac-bot__chips span:nth-child(3) { animation-delay: 1.1s; }
    .ac-bot__chips span:nth-child(4) { animation-delay: 1.65s; }
    .ac-bot__perks > span { animation: ac-perk-in 48s linear infinite both; animation-delay: 32s; }
    .ac-bot__perks > span:nth-child(2) { animation-delay: 32.28s; }
    .ac-bot__perks > span:nth-child(3) { animation-delay: 32.56s; }
    .ac-bot__perks > span:nth-child(4) { animation-delay: 32.84s; }

    /* #yakastsi 2026-09-28: кадр держится ~8 с, чтобы текст успевали прочитать */
    .ac-bot__scene { animation: ac-scene 48s infinite; }
    .ac-bot__scene--sting { animation-delay: 0s; }
    .ac-bot__scene--lot { animation-delay: 8s; }
    .ac-bot__scene--markets { animation-delay: 16s; }
    .ac-bot__scene--you { animation-delay: 24s; }
    .ac-bot__scene--perks { animation-delay: 32s; }
    .ac-bot__scene--wish { animation-delay: 40s; }

    .ac-bot__ticks i::after { animation: ac-tick 48s linear infinite; }
    .ac-bot__ticks i:nth-child(1)::after { animation-delay: 0s; }
    .ac-bot__ticks i:nth-child(2)::after { animation-delay: 8s; }
    .ac-bot__ticks i:nth-child(3)::after { animation-delay: 16s; }
    .ac-bot__ticks i:nth-child(4)::after { animation-delay: 24s; }
    .ac-bot__ticks i:nth-child(5)::after { animation-delay: 32s; }
    .ac-bot__ticks i:nth-child(6)::after { animation-delay: 40s; }

    .ac-bot__flash { animation: ac-flash 48s infinite; }
    .ac-bot__scan { animation: ac-scan 48s linear infinite; }
    .ac-bot__streaks::before { animation: ac-streak 2.8s linear infinite; }
    .ac-bot__streaks::after { animation: ac-streak 3.6s linear infinite; }
    .ac-bot__bokeh i { animation: ac-bokeh 7s ease-in-out infinite; }
    .ac-bot__bokeh i:nth-child(2) { animation-delay: -2s; }
    .ac-bot__bokeh i:nth-child(3) { animation-delay: -4s; }

    .ac-bot__card:hover .ac-bot__scene,
    .ac-bot__card:hover .ac-bot__ticks i::after,
    .ac-bot__card:hover .ac-bot__flash,
    .ac-bot__card:focus-visible .ac-bot__scene,
    .ac-bot__card:focus-visible .ac-bot__ticks i::after,
    .ac-bot__card:focus-visible .ac-bot__flash {
        animation-play-state: paused;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ac-bot__phrase { animation: none; opacity: 0; }
    .ac-bot__phrase:first-child { opacity: 1; }
    .ac-bot__scene { opacity: 0; }
    .ac-bot__scene--lot { opacity: 1; }
    .ac-bot__flash,
    .ac-bot__streaks { display: none; }
    .ac-bot__card:hover,
    .ac-bot__card:focus-visible { transform: none; }
}

/* #yakastsi 2026-09-28: после свайпа кадры переключает скрипт, автопрокрутка css останавливается */
.ac-bot--manual .ac-bot__scene,
.ac-bot--manual .ac-bot__ticks i::after,
.ac-bot--manual .ac-bot__flash,
.ac-bot--manual .ac-bot__car,
.ac-bot--manual .ac-bot__chips span,
.ac-bot--manual .ac-bot__perks > span {
    animation: none;
}

.ac-bot--manual .ac-bot__scene { opacity: 0; }
.ac-bot--manual .ac-bot__scene.is-on { opacity: 1; }
.ac-bot--manual .ac-bot__ticks i::after { transform: scaleX(0); }
.ac-bot--manual .ac-bot__ticks i.is-done::after,
.ac-bot--manual .ac-bot__ticks i.is-on::after { transform: scaleX(1); }
.ac-bot--manual .ac-bot__flash { opacity: 0; }
.ac-bot--manual .ac-bot__perks > span { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
    .ac-bot--manual .ac-bot__scene--lot.is-on .ac-bot__car { animation: ac-car-slide 0.95s ease-out both; }
    .ac-bot--manual .ac-bot__scene--you.is-on .ac-bot__chips span { animation: ac-chip-tap 0.7s ease both; }
    .ac-bot--manual .ac-bot__scene--you.is-on .ac-bot__chips span:nth-child(2) { animation-delay: 0.55s; }
    .ac-bot--manual .ac-bot__scene--you.is-on .ac-bot__chips span:nth-child(3) { animation-delay: 1.1s; }
    .ac-bot--manual .ac-bot__scene--you.is-on .ac-bot__chips span:nth-child(4) { animation-delay: 1.65s; }
    .ac-bot--manual .ac-bot__scene--perks.is-on .ac-bot__perks > span { animation: ac-perk-pop 0.45s ease both; opacity: 0; }
    .ac-bot--manual .ac-bot__scene--perks.is-on .ac-bot__perks > span:nth-child(2) { animation-delay: 0.16s; }
    .ac-bot--manual .ac-bot__scene--perks.is-on .ac-bot__perks > span:nth-child(3) { animation-delay: 0.32s; }
    .ac-bot--manual .ac-bot__scene--perks.is-on .ac-bot__perks > span:nth-child(4) { animation-delay: 0.48s; }
}

@keyframes ac-bot-cycle {
    0%, 32.8% { opacity: 1; }
    33.2%, 100% { opacity: 0; }
}

@keyframes ac-bot-status {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.65); }
    50% { opacity: 0.35; transform: scale(0.75); box-shadow: 0 0 0 6px rgba(61, 214, 140, 0); }
}

@keyframes ac-bot-live {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(44, 43, 60, 0.55); }
    50% { opacity: 0.2; transform: scale(0.65); box-shadow: 0 0 0 6px rgba(44, 43, 60, 0); }
}

@keyframes ac-bot-dot {
    0% { box-shadow: 0 0 0 0 rgba(255, 211, 0, 0.65); }
    70% { box-shadow: 0 0 0 7px rgba(255, 211, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 211, 0, 0); }
}

@keyframes ac-bot-btn {
    /* 0%, 100% { box-shadow: 0 4px 12px rgba(210, 46, 40, 0.35); }
    50% { box-shadow: 0 6px 18px rgba(210, 46, 40, 0.55), 0 0 0 4px rgba(210, 46, 40, 0.14); } */
    /* #yakastsi 2026-09-28: вспышка была слишком светлой
    0%, 100% { background: #d22e28; box-shadow: 0 4px 12px rgba(210, 46, 40, 0.35); }
    50% { background: #ff5c54; box-shadow: 0 6px 16px rgba(255, 92, 84, 0.55); }
    */
    0%, 100% { background: #d22e28; box-shadow: 0 4px 12px rgba(210, 46, 40, 0.35); }
    50% { background: #9e1b16; box-shadow: 0 6px 16px rgba(158, 27, 22, 0.5); }
}

@keyframes ac-scene {
    /* 0%, 15.4% { opacity: 1; }
    16.6%, 100% { opacity: 0; } */
    /* #yakastsi 2026-09-28: кадр не гаснет раньше следующего, без пустой полосы */
    0%, 16.75% { opacity: 1; }
    16.85%, 100% { opacity: 0; }
}

@keyframes ac-hit-glow {
    0%, 100% { text-shadow: 0 0 0 rgba(255, 211, 0, 0); filter: brightness(1); }
    50% { text-shadow: 0 0 18px rgba(255, 211, 0, 0.95); filter: brightness(1.35); }
}

@keyframes ac-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

@keyframes ac-car-in {
    0% { transform: translateX(-130%); }
    2.4%, 100% { transform: translateX(0); }
}

@keyframes ac-car-slide {
    from { transform: translateX(-130%); }
    to { transform: translateX(0); }
}

@keyframes ac-chip-press {
    0%, 50.6% { transform: translateY(0); box-shadow: 0 4px 0 #c9a400; }
    51.3% { transform: translateY(3px); box-shadow: 0 1px 0 #c9a400; }
    52.2%, 100% { transform: translateY(0); box-shadow: 0 4px 0 #c9a400; }
}

@keyframes ac-chip-tap {
    0%, 35% { transform: translateY(0); box-shadow: 0 4px 0 #c9a400; }
    55% { transform: translateY(3px); box-shadow: 0 1px 0 #c9a400; }
    100% { transform: translateY(0); box-shadow: 0 4px 0 #c9a400; }
}

@keyframes ac-perk-in {
    0% { opacity: 0; transform: translateY(14px); }
    2.2%, 100% { opacity: 1; transform: none; }
}

@keyframes ac-perk-pop {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes ac-tick {
    0% { transform: scaleX(0); }
    16.6% { transform: scaleX(1); }
    16.7%, 100% { transform: scaleX(0); }
}

@keyframes ac-flash {
    0%, 15% { opacity: 0; }
    16% { opacity: 0.35; }
    17.2%, 31.5% { opacity: 0; }
    32.5% { opacity: 0.35; }
    33.7%, 48% { opacity: 0; }
    49% { opacity: 0.35; }
    50.2%, 64.5% { opacity: 0; }
    65.5% { opacity: 0.35; }
    66.7%, 81% { opacity: 0; }
    82% { opacity: 0.35; }
    83.2%, 97.5% { opacity: 0; }
    98.5% { opacity: 0.28; }
    100% { opacity: 0; }
}

@keyframes ac-scan {
    0%, 33% { top: 28%; opacity: 0; }
    37% { opacity: 1; }
    46% { top: 72%; opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes ac-streak {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

@keyframes ac-bokeh {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(12px, -10px, 0); }
}

@media print {
    .ac-bot,
    .ac-bot-test-note { display: none !important; }
}
