/* ============================================================
   Home.css — лендинг Tearin Bot.
   Файл подключён глобально в App.razor, поэтому АБСОЛЮТНО все
   правила вложены в .tb-landing (или .tb-landing-body) и ничего
   не задевают на остальных страницах приложения.
   ============================================================ */

/* Фон страницы: :has() красит ещё до старта JS, класс — надёжный дубль */
body:has(.tb-landing),
body.tb-landing-body {
    background: #0a0512;
    overflow-x: hidden;
}

.tb-landing {
    /* Палитра лендинга. Не зависит от .light-theme/.dark-theme на body —
       лендинг всегда тёмный, даже если у пользователя выбрана светлая тема. */
    --tb-bg-deep: #0a0512;
    --tb-violet: #7c3aed;
    --tb-violet-hi: #a855f7;
    --tb-magenta: #d946ef;
    --tb-twitch: #9146ff;
    --tb-glow: rgba(168, 85, 247, .35);
    --tb-surface: rgba(255, 255, 255, .045);
    --tb-surface-hi: rgba(255, 255, 255, .075);
    --tb-border: rgba(168, 85, 247, .18);
    --tb-border-hi: rgba(168, 85, 247, .45);
    --tb-text: #ede9fe;
    --tb-text-dim: #a99fc4;
    --tb-text-mute: #7d7396;
    --tb-success: #34d399;
    --tb-danger: #f87171;
    --tb-gold: #fbbf24;

    --tb-ease: var(--tearinbot-transition-easing-ease-out, cubic-bezier(0, 0, .2, 1));
    --tb-shell: var(--tearinbot-sizes-container-xl, 80rem);
    --tb-header-h: 76px;
    --tb-yt-red: #ff0033;

    position: relative;
    isolation: isolate;
    min-height: 100vh;
    color: var(--tb-text);
    font-family: var(--tearinbot-fonts-heading, 'Lexend', sans-serif);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Слои фона: плавная смена цвета при скролле ---------- */

.tb-landing .tb-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--tb-bg-deep);
}

.tb-landing .tb-bg-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1200ms ease;
}

.tb-landing .tb-bg-layer.is-active {
    opacity: 1;
}

.tb-landing .tb-bg-layer[data-tb-bg-zone="1"] {
    background:
            radial-gradient(120% 80% at 50% -10%, #2a1259 0%, rgba(42, 18, 89, 0) 62%),
            radial-gradient(90% 60% at 85% 15%, rgba(217, 70, 239, .16) 0%, rgba(217, 70, 239, 0) 70%),
            linear-gradient(180deg, #14082b 0%, #0a0512 100%);
}

.tb-landing .tb-bg-layer[data-tb-bg-zone="2"] {
    background:
            radial-gradient(100% 70% at 15% 20%, rgba(124, 58, 237, .3) 0%, rgba(124, 58, 237, 0) 65%),
            radial-gradient(100% 70% at 85% 80%, rgba(217, 70, 239, .18) 0%, rgba(217, 70, 239, 0) 65%),
            linear-gradient(180deg, #1a0d38 0%, #120826 100%);
}

.tb-landing .tb-bg-layer[data-tb-bg-zone="3"] {
    background:
            radial-gradient(110% 70% at 50% 110%, rgba(168, 85, 247, .26) 0%, rgba(168, 85, 247, 0) 60%),
            linear-gradient(180deg, #0d0620 0%, #08040f 100%);
}

/* ---------- Общая раскладка ---------- */

.tb-landing .tb-shell {
    width: 100%;
    max-width: var(--tb-shell);
    margin: 0 auto;
    padding: 0 24px;
}

.tb-landing .tb-section {
    position: relative;
    padding: 104px 0;
}

.tb-landing .tb-section__head {
    max-width: 720px;
    margin: 0 auto 72px;
    text-align: center;
}

.tb-landing .tb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 18px;
    border: 1px solid var(--tb-border);
    border-radius: 999px;
    background: var(--tb-surface);
    color: var(--tb-violet-hi);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tb-landing .tb-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tb-success);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
    animation: tb-ping 2.4s ease-out infinite;
}

.tb-landing .tb-eyebrow--soon::before {
    background: var(--tb-gold);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, .6);
}

.tb-landing .tb-section__title {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.tb-landing .tb-section__text {
    margin: 0;
    color: var(--tb-text-dim);
    font-size: 17px;
}

.tb-landing .tb-gradient-text {
    background: linear-gradient(100deg, #f5f3ff 0%, var(--tb-violet-hi) 45%, var(--tb-magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Reveal при скролле ---------- */

/* Прячем только когда landing.js подтвердил, что он жив (data-tb-js="on").
   Иначе — например, при закешированном старом бандле — контент виден сразу. */
.tb-landing[data-tb-js="on"] [data-tb-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms var(--tb-ease), transform 700ms var(--tb-ease);
}

.tb-landing [data-tb-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.tb-landing [data-tb-reveal][data-tb-delay="1"] { transition-delay: 90ms; }
.tb-landing [data-tb-reveal][data-tb-delay="2"] { transition-delay: 180ms; }
.tb-landing [data-tb-reveal][data-tb-delay="3"] { transition-delay: 270ms; }
.tb-landing [data-tb-reveal][data-tb-delay="4"] { transition-delay: 360ms; }
.tb-landing [data-tb-reveal][data-tb-delay="5"] { transition-delay: 450ms; }

/* Демо-анимации крутятся только когда панель на экране */
.tb-landing [data-tb-reveal] .tb-demo * {
    animation-play-state: paused;
}

.tb-landing [data-tb-reveal].is-visible .tb-demo * {
    animation-play-state: running;
}

/* ---------- Кнопки ---------- */

.tb-landing .tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: transform 200ms var(--tb-ease), box-shadow 200ms var(--tb-ease),
    background-color 200ms var(--tb-ease), border-color 200ms var(--tb-ease);
}

.tb-landing .tb-btn:focus-visible {
    outline: 2px solid var(--tb-violet-hi);
    outline-offset: 3px;
}

.tb-landing .tb-btn--primary {
    background: linear-gradient(120deg, var(--tb-violet) 0%, var(--tb-magenta) 100%);
    color: #fff;
    box-shadow: 0 8px 26px -10px var(--tb-glow);
}

.tb-landing .tb-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -10px rgba(168, 85, 247, .6);
    color: #fff;
}

.tb-landing .tb-btn--twitch {
    background: var(--tb-twitch);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .06em;
    box-shadow: 0 8px 26px -10px rgba(145, 70, 255, .7);
}

.tb-landing .tb-btn--twitch:hover {
    transform: translateY(-2px);
    background: #a56bff;
    box-shadow: 0 14px 34px -10px rgba(145, 70, 255, .8);
    color: #fff;
}

.tb-landing .tb-btn--twitch .tb-btn__icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.tb-landing .tb-btn--ghost {
    border-color: var(--tb-border-hi);
    background: var(--tb-surface);
    color: var(--tb-text);
}

.tb-landing .tb-btn--ghost:hover {
    transform: translateY(-2px);
    background: var(--tb-surface-hi);
    border-color: var(--tb-violet-hi);
    color: var(--tb-text);
}

.tb-landing .tb-btn--lg {
    height: 52px;
    padding: 0 30px;
    font-size: 15px;
}

/* Форма входа через Twitch не должна ломать флекс шапки */
.tb-landing .tb-login-form {
    display: contents;
}

/* ---------- Шапка ---------- */

.tb-landing .tb-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid transparent;
    transition: background-color 300ms var(--tb-ease), border-color 300ms var(--tb-ease),
    backdrop-filter 300ms var(--tb-ease);
}

.tb-landing .tb-header.is-scrolled {
    background: rgba(10, 5, 18, .72);
    border-bottom-color: var(--tb-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.tb-landing .tb-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 76px;
}

.tb-landing .tb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tb-text);
    text-decoration: none;
}

.tb-landing .tb-brand__logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--tb-glow));
}

.tb-landing .tb-brand__name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.tb-landing .tb-brand__chip {
    padding: 3px 8px;
    border: 1px solid var(--tb-border);
    border-radius: 6px;
    background: var(--tb-surface);
    color: var(--tb-violet-hi);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ---------- Hero ---------- */

/* Первый экран целиком помещается в вьюпорт: и кнопки, и чипы должны быть
   видны без скролла — в т.ч. на Full HD. Отсюда vh-зависимые размеры. */
.tb-landing .tb-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: calc(100vh - var(--tb-header-h));
    min-height: calc(100svh - var(--tb-header-h));
    padding: clamp(8px, 1.5vh, 40px) 0 clamp(16px, 4vh, 72px);
    text-align: center;
}

.tb-landing .tb-hero__aurora {
    position: absolute;
    inset: -20% -10% auto;
    height: 130%;
    pointer-events: none;
    z-index: 0;
}

.tb-landing .tb-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    will-change: transform;
}

.tb-landing .tb-blob--a {
    top: 4%;
    left: 8%;
    width: 42vw;
    max-width: 560px;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(124, 58, 237, .85) 0%, rgba(124, 58, 237, 0) 70%);
    animation: tb-drift-a 26s ease-in-out infinite;
}

.tb-landing .tb-blob--b {
    top: 0;
    right: 6%;
    width: 38vw;
    max-width: 500px;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(217, 70, 239, .7) 0%, rgba(217, 70, 239, 0) 70%);
    animation: tb-drift-b 32s ease-in-out infinite;
}

.tb-landing .tb-blob--c {
    top: 38%;
    left: 40%;
    width: 34vw;
    max-width: 460px;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(99, 102, 241, .6) 0%, rgba(99, 102, 241, 0) 70%);
    animation: tb-drift-c 38s ease-in-out infinite;
}

.tb-landing .tb-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
            linear-gradient(to right, rgba(168, 85, 247, .07) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(168, 85, 247, .07) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
    mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
}

.tb-landing .tb-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.tb-landing .tb-hero__logo {
    display: block;
    width: auto;
    max-width: 74vw;
    height: clamp(110px, 25vh, 330px);
    margin: 0 auto clamp(4px, 1vh, 12px);
    filter: drop-shadow(0 24px 60px rgba(124, 58, 237, .55));
    animation: tb-float 7s ease-in-out infinite;
}

.tb-landing .tb-hero__title {
    margin: 0 auto clamp(6px, 1.4vh, 20px);
    max-width: 900px;
    /* min(6vw, 9vh): на низких экранах заголовок ужимается вместе с высотой,
       на Full HD и выше упирается в 68px и ничего не теряет */
    font-size: clamp(30px, min(6vw, 9vh), 68px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.03em;
}

.tb-landing .tb-hero__title span {
    display: block;
}

.tb-landing .tb-hero__text {
    max-width: 640px;
    margin: 0 auto clamp(10px, 2.4vh, 34px);
    color: var(--tb-text-dim);
    font-size: clamp(15px, 2vw, 19px);
}

.tb-landing .tb-hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: clamp(12px, 2.8vh, 44px);
}

.tb-landing .tb-hero__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tb-landing .tb-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--tb-border);
    border-radius: 999px;
    background: var(--tb-surface);
    color: var(--tb-text-dim);
    font-size: 13px;
    transition: color 200ms var(--tb-ease), border-color 200ms var(--tb-ease),
    background-color 200ms var(--tb-ease), transform 200ms var(--tb-ease);
}

.tb-landing .tb-chip:hover {
    transform: translateY(-2px);
    border-color: var(--tb-border-hi);
    background: var(--tb-surface-hi);
    color: var(--tb-text);
}

.tb-landing .tb-chip__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tb-violet-hi);
}

/* ---------- Панели с функциями ---------- */

.tb-landing .tb-panels {
    display: flex;
    flex-direction: column;
    gap: 110px;
}

.tb-landing .tb-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 56px;
    scroll-margin-top: 100px;
}

.tb-landing .tb-panel--flip .tb-panel__body {
    order: 2;
}

.tb-landing .tb-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border: 1px solid var(--tb-border);
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(124, 58, 237, .3), rgba(217, 70, 239, .12));
    box-shadow: 0 10px 30px -14px var(--tb-glow);
}

.tb-landing .tb-panel__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--tb-violet-hi);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tb-landing .tb-panel__title {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -.02em;
}

.tb-landing .tb-panel__text {
    margin: 0 0 22px;
    color: var(--tb-text-dim);
    font-size: 16px;
}

.tb-landing .tb-panel__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tb-landing .tb-panel__list li {
    padding: 6px 12px;
    border: 1px solid var(--tb-border);
    border-radius: 8px;
    background: var(--tb-surface);
    color: var(--tb-text-dim);
    font-size: 13px;
}

/* ---------- Каркас демо-окна ---------- */

.tb-landing .tb-demo {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--tb-border);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(30, 16, 58, .92) 0%, rgba(14, 8, 28, .92) 100%);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;
    transition: transform 400ms var(--tb-ease), box-shadow 400ms var(--tb-ease);
}

.tb-landing .tb-panel:hover .tb-demo {
    transform: translateY(-4px);
    box-shadow: 0 36px 80px -30px rgba(124, 58, 237, .55);
}

.tb-landing .tb-demo::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(120% 60% at 50% 0%, rgba(168, 85, 247, .12), transparent 70%);
}

.tb-landing .tb-demo__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .03);
}

.tb-landing .tb-demo__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}

.tb-landing .tb-demo__label {
    margin-left: 8px;
    color: var(--tb-text-mute);
    font-size: 12px;
    letter-spacing: .04em;
}

.tb-landing .tb-demo__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 264px;
    padding: 20px;
}

/* ---------- Демо 1: команды в чате ---------- */

.tb-landing .tb-msg {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    font-size: 14px;
    opacity: 0;
    animation: 11s ease-in-out infinite;
}

/* Разное время появления зашито в сами keyframes, а не в animation-delay:
   иначе сообщения гасли бы вразнобой и панель надолго оставалась пустой. */
.tb-landing .tb-msg:nth-child(1) { animation-name: tb-msg-1; }
.tb-landing .tb-msg:nth-child(2) { animation-name: tb-msg-2; }
.tb-landing .tb-msg:nth-child(3) { animation-name: tb-msg-3; }

.tb-landing .tb-msg--bot {
    border: 1px solid var(--tb-border);
    background: linear-gradient(120deg, rgba(124, 58, 237, .22), rgba(217, 70, 239, .1));
}

.tb-landing .tb-msg__user {
    font-weight: 600;
    white-space: nowrap;
}

.tb-landing .tb-msg__user--a { color: #67e8f9; }
.tb-landing .tb-msg__user--b { color: #fca5a5; }

.tb-landing .tb-msg__user--bot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tb-violet-hi);
}

.tb-landing .tb-msg__user--bot::after {
    content: 'BOT';
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--tb-violet);
    color: #fff;
    font-size: 9px;
    letter-spacing: .06em;
}

.tb-landing .tb-msg__text {
    color: var(--tb-text-dim);
}

.tb-landing .tb-cmd {
    display: inline-block;
    overflow: hidden;
    max-width: 0;
    color: var(--tb-violet-hi);
    font-weight: 600;
    white-space: nowrap;
    vertical-align: bottom;
    animation: tb-type 11s steps(9, end) infinite;
}

.tb-landing .tb-caret {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: var(--tb-violet-hi);
    vertical-align: middle;
    animation: tb-blink 1s steps(2, start) infinite;
}

/* ---------- Демо 2: очередь треков (под YouTube-плеер /song_requests) ---------- */

/* Аватарка канала — как .avatar-module / .avatar-module-circle на боевых страницах */
.tb-landing .tb-av {
    display: block;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 6px;
    background: linear-gradient(140deg, #3b2a63, #1d1436);
}

/* Модификаторы формы и размера независимы — их можно комбинировать */
.tb-landing .tb-av--round {
    border-radius: 50%;
}

.tb-landing .tb-av--sm {
    width: 28px;
    height: 28px;
}

.tb-landing .tb-av--xs {
    width: 20px;
    height: 20px;
}

.tb-landing .tb-yt {
    display: flex;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--tb-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}

.tb-landing .tb-yt__thumb {
    position: relative;
    overflow: hidden;
    width: 148px;
    aspect-ratio: 16 / 9;
    flex: none;
    border-radius: 8px;
    background:
            radial-gradient(90% 120% at 30% 20%, #4c2a7a 0%, rgba(76, 42, 122, 0) 70%),
            linear-gradient(140deg, #241041 0%, #120a24 100%);
}

/* Красная «плашка play» — самый узнаваемый элемент YouTube */
.tb-landing .tb-yt__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 30px;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    background: var(--tb-yt-red);
    box-shadow: 0 6px 18px -6px rgba(255, 0, 51, .8);
    animation: tb-yt-pulse 3.2s ease-in-out infinite;
}

.tb-landing .tb-yt__play svg {
    width: 13px;
    height: 13px;
    fill: #fff;
}

.tb-landing .tb-yt__len {
    position: absolute;
    right: 5px;
    bottom: 8px;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(0, 0, 0, .82);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Полоса просмотра по нижнему краю превью — как у YouTube */
.tb-landing .tb-yt__bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, .25);
}

.tb-landing .tb-yt__bar i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--tb-yt-red);
    animation: tb-progress 11s linear infinite;
}

.tb-landing .tb-yt__info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.tb-landing .tb-yt__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tb-landing .tb-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(52, 211, 153, .16);
    color: var(--tb-success);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tb-landing .tb-badge-live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: tb-blink 1.6s ease-in-out infinite;
}

.tb-landing .tb-yt__req {
    overflow: hidden;
    color: var(--tb-text-mute);
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tb-landing .tb-yt__channel {
    overflow: hidden;
    color: var(--tb-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tb-landing .tb-yt__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--tb-text-dim);
    font-size: 12px;
}

.tb-landing .tb-yt__meta span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Шапка таблицы очереди — повторяет "Next Song / Added By" со страницы */
.tb-landing .tb-qhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: var(--tb-text-mute);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
}

/* Окно очереди: высота жёстко задана тремя строками и не меняется за весь цикл,
   поэтому лента может двигаться, не дёргая раскладку страницы. */
.tb-landing .tb-queue-view {
    --tb-row-h: 46px;
    --tb-row-gap: 4px;
    --tb-row-pitch: calc(var(--tb-row-h) + var(--tb-row-gap));

    display: flex;
    gap: 10px;
    overflow: hidden;
    /* ровно три строки с зазорами: в покое список заполняет окно край в край,
       поэтому нижняя строка видна целиком и ничем не перекрыта */
    height: calc(var(--tb-row-h) * 3 + var(--tb-row-gap) * 2);
    padding: 0 12px;
}

/* Номера — у слотов, а не у строк: 1-2-3 остаются на месте, едут только треки */
.tb-landing .tb-queue-nums {
    display: flex;
    flex-direction: column;
    gap: var(--tb-row-gap);
    flex: none;
}

.tb-landing .tb-qnum {
    display: grid;
    place-items: center;
    width: 20px;
    height: var(--tb-row-h);
}

/* Роль та же, что у .track-position на боевой странице */
.tb-landing .tb-qnum b {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .12);
    color: var(--tb-text);
    font-size: 11px;
    font-weight: 700;
}

.tb-landing .tb-queue-track {
    min-width: 0;
    flex: 1;
}

/* Лента из 7 строк = 4 трека + 3 повтора: после четвёртого шага кадр совпадает
   с исходным, поэтому цикл замыкается без рывка. */
.tb-landing .tb-queue {
    display: flex;
    flex-direction: column;
    gap: var(--tb-row-gap);
    padding: 0;
    margin: 0;
    list-style: none;
    animation: tb-q-advance 11s cubic-bezier(.65, 0, .35, 1) infinite;
}

.tb-landing .tb-queue li {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--tb-row-h);
    flex: none;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
}

.tb-landing .tb-queue__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.tb-landing .tb-queue__title {
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tb-landing .tb-queue__sub {
    overflow: hidden;
    color: var(--tb-text-mute);
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tb-landing .tb-queue__title {
    line-height: 1.35;
}

.tb-landing .tb-queue__sub {
    line-height: 1.3;
}

.tb-landing .tb-queue__who {
    flex: none;
    color: var(--tb-text);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Демо 3: VIP (под страницу /vip) ---------- */

/* Полоса синхронизации списка VIP с Twitch — как .vip-sync-status */
.tb-landing .tb-sync {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid var(--tb-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    font-size: 12px;
}

.tb-landing .tb-sync__spin {
    width: 13px;
    height: 13px;
    flex: none;
    border: 2px solid rgba(168, 85, 247, .25);
    border-top-color: var(--tb-violet-hi);
    border-radius: 50%;
    animation: tb-spin 900ms linear infinite;
}

.tb-landing .tb-sync__text {
    flex: 1;
    color: var(--tb-text-dim);
}

.tb-landing .tb-sync__bar {
    display: block;
    overflow: hidden;
    width: 74px;
    height: 4px;
    flex: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
}

.tb-landing .tb-sync__bar i {
    display: block;
    width: 8%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tb-violet), var(--tb-magenta));
    animation: tb-sync 11s ease-in-out infinite;
}

/* Быстрый выбор срока — как .vip-duration-buttons */
.tb-landing .tb-durations {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tb-landing .tb-dur {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 6px;
    color: var(--tb-text-mute);
    font-size: 11px;
    font-weight: 600;
}

.tb-landing .tb-dur.is-active {
    border-color: var(--tb-border-hi);
    background: rgba(124, 58, 237, .28);
    color: var(--tb-text);
}

/* Шапка и строки таблицы VIP: User / Expires at / Issued by */
.tb-landing .tb-vhead {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: var(--tb-text-mute);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
}

/* Первый span — распорка под аватарку, чтобы колонки совпали со строками */
.tb-landing .tb-vhead span:nth-child(1) { width: 28px; flex: none; }
.tb-landing .tb-vhead span:nth-child(2) { flex: 1; }
.tb-landing .tb-vhead span:nth-child(3) { width: 76px; flex: none; }
.tb-landing .tb-vhead span:nth-child(4) { width: 64px; flex: none; text-align: center; }

.tb-landing .tb-vlist {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tb-landing .tb-vlist li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.tb-landing .tb-vlist li.is-revoked {
    animation: tb-row-revoke 11s ease-in-out infinite;
}

.tb-landing .tb-vuser {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.tb-landing .tb-vuser b {
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tb-landing .tb-vuser i {
    color: var(--tb-text-mute);
    font-size: 11px;
    font-style: normal;
}

.tb-landing .tb-vexp {
    width: 76px;
    flex: none;
    color: var(--tb-text-dim);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.tb-landing .tb-vexp--inf {
    color: var(--tb-violet-hi);
    font-size: 15px;
}

/* Бейдж «кем выдан» — те же цвета, что .bg-color-bot / .bg-color-streamer */
.tb-landing .tb-vby {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    flex: none;
    padding: 2px 0;
    border-radius: 6px;
    color: #1e2025;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tb-landing .tb-vby--bot {
    background: #a6fdd0;
}

.tb-landing .tb-vby--streamer {
    background: #fed7d7;
}

/* Бот сам выдал статус — бейдж появляется по ходу цикла */
.tb-landing .tb-vby--granted {
    opacity: 0;
    transform: scale(.4);
    animation: tb-badge-grant 11s ease-in-out infinite;
}

.tb-landing .tb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    font-size: 13px;
}

.tb-landing .tb-row__name {
    flex: 1;
    font-weight: 500;
}

/* Барабан цифр: строка прокручивается внутри окна высотой в одну строку */
.tb-landing .tb-roll {
    display: inline-block;
    overflow: hidden;
    height: 1.2em;
    line-height: 1.2em;
    vertical-align: bottom;
}

.tb-landing .tb-roll b {
    display: block;
    font-weight: 600;
    animation: tb-roll 11s cubic-bezier(.65, 0, .35, 1) infinite;
}

/* ---------- Демо 4: автомодерация ---------- */

.tb-landing .tb-msg--flag {
    position: relative;
    border: 1px solid rgba(248, 113, 113, .35);
    background: rgba(248, 113, 113, .1);
}

.tb-landing .tb-msg--flag .tb-msg__text {
    position: relative;
}

.tb-landing .tb-msg--flag .tb-msg__text::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--tb-danger);
    animation: tb-strike 11s ease-in-out infinite;
}

.tb-landing .tb-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tb-landing .tb-tag--ban {
    background: rgba(248, 113, 113, .18);
    color: var(--tb-danger);
    opacity: 0;
    transform: scale(.5);
    animation: tb-tag-pop 11s ease-in-out infinite;
}

.tb-landing .tb-tag--ok {
    background: rgba(52, 211, 153, .16);
    color: var(--tb-success);
}

/* ---------- Демо 5: алерты ---------- */

.tb-landing .tb-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--tb-border-hi);
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(124, 58, 237, .28), rgba(217, 70, 239, .12));
    box-shadow: 0 16px 40px -20px var(--tb-glow);
    animation: tb-alert-in 11s cubic-bezier(.34, 1.4, .64, 1) infinite;
}

.tb-landing .tb-alert__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    font-size: 19px;
}

.tb-landing .tb-alert__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.tb-landing .tb-alert__title {
    font-size: 14px;
    font-weight: 600;
}

.tb-landing .tb-alert__sub {
    color: var(--tb-text-dim);
    font-size: 12px;
}

.tb-landing .tb-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 26px;
}

.tb-landing .tb-wave i {
    display: block;
    width: 3px;
    height: 100%;
    border-radius: 2px;
    background: var(--tb-violet-hi);
    transform-origin: center;
    animation: tb-eq .9s ease-in-out infinite alternate;
}

.tb-landing .tb-wave i:nth-child(2) { animation-duration: 1.3s; }
.tb-landing .tb-wave i:nth-child(3) { animation-duration: .75s; }
.tb-landing .tb-wave i:nth-child(4) { animation-duration: 1.1s; }

/* ---------- Демо 6: аналитика ---------- */

.tb-landing .tb-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tb-landing .tb-kpi {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
}

.tb-landing .tb-kpi__label {
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    color: var(--tb-text-mute);
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tb-landing .tb-kpi__value {
    color: var(--tb-text);
    font-size: 19px;
    font-variant-numeric: tabular-nums;
}

.tb-landing .tb-chart {
    display: block;
    width: 100%;
    height: auto;
    flex: 1;
}

.tb-landing .tb-chart__line {
    fill: none;
    stroke: url(#tbChartStroke);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: tb-draw 11s ease-in-out infinite;
}

.tb-landing .tb-chart__area {
    fill: url(#tbChartFill);
    opacity: 0;
    animation: tb-area-in 11s ease-in-out infinite;
}

.tb-landing .tb-chart__grid {
    stroke: rgba(255, 255, 255, .06);
    stroke-width: 1;
}

/* ---------- Секция «скоро» ---------- */

.tb-landing .tb-soon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.tb-landing .tb-soon__card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px dashed rgba(168, 85, 247, .25);
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
    transition: transform 300ms var(--tb-ease), border-color 300ms var(--tb-ease),
    background-color 300ms var(--tb-ease);
}

.tb-landing .tb-soon__card:hover {
    transform: translateY(-4px);
    border-color: var(--tb-border-hi);
    background: var(--tb-surface-hi);
}

/* Медленный блик по карточке */
.tb-landing .tb-soon__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(168, 85, 247, .14), transparent);
    animation: tb-sheen 6s ease-in-out infinite;
}

.tb-landing .tb-soon__card:nth-child(2)::before { animation-delay: .8s; }
.tb-landing .tb-soon__card:nth-child(3)::before { animation-delay: 1.6s; }
.tb-landing .tb-soon__card:nth-child(4)::before { animation-delay: 2.4s; }
.tb-landing .tb-soon__card:nth-child(5)::before { animation-delay: 3.2s; }

.tb-landing .tb-soon__badge {
    display: inline-block;
    padding: 3px 9px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(251, 191, 36, .14);
    color: var(--tb-gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tb-landing .tb-soon__title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
}

.tb-landing .tb-soon__text {
    margin: 0;
    color: var(--tb-text-dim);
    font-size: 14px;
}

/* ---------- CTA-полоса ---------- */

.tb-landing .tb-cta {
    position: relative;
    overflow: hidden;
    padding: 64px 32px;
    border: 1px solid var(--tb-border);
    border-radius: 24px;
    background: linear-gradient(130deg, rgba(124, 58, 237, .3) 0%, rgba(217, 70, 239, .16) 100%);
    text-align: center;
}

.tb-landing .tb-cta::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(168, 85, 247, .16) 25%, transparent 50%);
    animation: tb-spin 18s linear infinite;
}

.tb-landing .tb-cta__inner {
    position: relative;
    z-index: 1;
}

.tb-landing .tb-cta__title {
    margin: 0 0 12px;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    letter-spacing: -.02em;
}

.tb-landing .tb-cta__text {
    max-width: 520px;
    margin: 0 auto 28px;
    color: var(--tb-text-dim);
}

/* ---------- Сетка ссылок ---------- */

.tb-landing .tb-links {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding: 72px 0 56px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.tb-landing .tb-links__about {
    max-width: 320px;
    color: var(--tb-text-dim);
    font-size: 14px;
}

.tb-landing .tb-links__about .tb-brand {
    margin-bottom: 14px;
}

.tb-landing .tb-links__title {
    margin: 0 0 16px;
    color: var(--tb-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tb-landing .tb-links__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tb-landing .tb-links__list a {
    color: var(--tb-text-dim);
    font-size: 14px;
    text-decoration: none;
    transition: color 200ms var(--tb-ease), transform 200ms var(--tb-ease);
}

.tb-landing .tb-links__list a:hover {
    display: inline-block;
    transform: translateX(3px);
    color: var(--tb-violet-hi);
}

.tb-landing .tb-links__list a:focus-visible {
    outline: 2px solid var(--tb-violet-hi);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Футер (классы из app.css, перекрашены под лендинг) ---------- */

.tb-landing .footer-container {
    border-top-color: rgba(255, 255, 255, .06);
    background-color: rgba(10, 5, 18, .6);
}

.tb-landing .footer-content {
    max-width: var(--tb-shell);
    padding: 20px 24px;
    /* в app.css строка становится горизонтальной только с 80em — здесь всегда */
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    color: var(--tb-text-mute);
}

.tb-landing .footer-copyright {
    color: var(--tb-text-mute);
    font-size: 13px;
}

.tb-landing .tb-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: none;
    border: 1px solid var(--tb-border);
    border-radius: 12px;
    background: var(--tb-surface);
    color: var(--tb-text-dim);
    transition: transform 200ms var(--tb-ease), background-color 200ms var(--tb-ease),
    border-color 200ms var(--tb-ease), color 200ms var(--tb-ease);
}

.tb-landing .tb-discord:hover {
    transform: translateY(-2px);
    border-color: var(--tearinbot-colors-brandDiscordBlurple, #5865F2);
    background: var(--tearinbot-colors-brandDiscordBlurple, #5865F2);
    color: #fff;
}

.tb-landing .tb-discord:focus-visible {
    outline: 2px solid var(--tb-violet-hi);
    outline-offset: 3px;
}

.tb-landing .tb-discord svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================================
   Keyframes
   ============================================================ */

@keyframes tb-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes tb-drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8%, 6%) scale(1.12); }
}

@keyframes tb-drift-b {
    0%, 100% { transform: translate(0, 0) scale(1.05); }
    50% { transform: translate(-9%, 8%) scale(.92); }
}

@keyframes tb-drift-c {
    0%, 100% { transform: translate(0, 0) scale(.95); }
    50% { transform: translate(-6%, -8%) scale(1.1); }
}

@keyframes tb-ping {
    0% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
    70%, 100% { box-shadow: 0 0 0 7px transparent; opacity: .75; }
}

@keyframes tb-spin {
    to { transform: rotate(360deg); }
}

@keyframes tb-sheen {
    0%, 55% { transform: translateX(0); }
    100% { transform: translateX(360%); }
}

@keyframes tb-blink {
    50% { opacity: 0; }
}

@keyframes tb-eq {
    from { transform: scaleY(.22); }
    to { transform: scaleY(1); }
}

/* --- цикл 11s, общий для всех демо --- */

@keyframes tb-msg-1 {
    0% { opacity: 0; transform: translateY(10px); }
    3%, 92% { opacity: 1; transform: translateY(0); }
    96%, 100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes tb-msg-2 {
    0%, 14% { opacity: 0; transform: translateY(10px); }
    20%, 92% { opacity: 1; transform: translateY(0); }
    96%, 100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes tb-msg-3 {
    0%, 36% { opacity: 0; transform: translateY(10px); }
    42%, 92% { opacity: 1; transform: translateY(0); }
    96%, 100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes tb-type {
    0%, 20% { max-width: 0; }
    34%, 92% { max-width: 9ch; }
    96%, 100% { max-width: 0; }
}

@keyframes tb-progress {
    0% { width: 0; }
    92% { width: 100%; }
    100% { width: 100%; }
}

/* Очередь продвигается на строку: верхний трек уходит в плеер, снизу
   въезжает новый заказ. Двигается только transform — размеры не трогаем. */
@keyframes tb-q-advance {
    0%, 18% { transform: translateY(0); }
    25%, 43% { transform: translateY(calc(var(--tb-row-pitch) * -1)); }
    50%, 68% { transform: translateY(calc(var(--tb-row-pitch) * -2)); }
    75%, 93% { transform: translateY(calc(var(--tb-row-pitch) * -3)); }
    100% { transform: translateY(calc(var(--tb-row-pitch) * -4)); }
}

@keyframes tb-yt-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.09); }
}

@keyframes tb-sync {
    0% { width: 8%; }
    70%, 100% { width: 100%; }
}

@keyframes tb-roll {
    0%, 18% { transform: translateY(0); }
    30%, 60% { transform: translateY(-1.2em); }
    72%, 100% { transform: translateY(-2.4em); }
}

@keyframes tb-badge-grant {
    0%, 34% { opacity: 0; transform: scale(.4); }
    41% { opacity: 1; transform: scale(1.18); }
    46%, 92% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(.4); }
}

/* Срок вышел — бот сам снял статус, строка гаснет */
@keyframes tb-row-revoke {
    0%, 58% { opacity: 1; }
    74%, 100% { opacity: .3; }
}

@keyframes tb-strike {
    0%, 38% { width: 0; }
    52%, 100% { width: 100%; }
}

@keyframes tb-tag-pop {
    0%, 48% { opacity: 0; transform: scale(.5); }
    56% { opacity: 1; transform: scale(1.15); }
    62%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes tb-alert-in {
    0%, 8% { opacity: 0; transform: translateX(-36px) scale(.94); }
    18%, 78% { opacity: 1; transform: translateX(0) scale(1); }
    90%, 100% { opacity: 0; transform: translateX(-36px) scale(.94); }
}

@keyframes tb-draw {
    0%, 6% { stroke-dashoffset: 400; }
    52%, 92% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 400; }
}

@keyframes tb-area-in {
    0%, 30% { opacity: 0; }
    62%, 92% { opacity: 1; }
    100% { opacity: 0; }
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 992px) {
    .tb-landing .tb-panel,
    .tb-landing .tb-panel--flip {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .tb-landing .tb-panel--flip .tb-panel__body {
        order: 0;
    }

    .tb-landing .tb-panels {
        gap: 72px;
    }

    .tb-landing .tb-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .tb-landing .tb-links__about {
        grid-column: 1 / -1;
        max-width: none;
    }
}

/* Низкие вьюпорты (ноутбук 768px минус хром браузера): дожимаем логотип и чипы,
   чтобы кнопки и чипы всё равно оставались над сгибом. Больших экранов не касается. */
@media (max-height: 700px) and (min-width: 641px) {
    .tb-landing .tb-hero__logo {
        height: clamp(96px, 21vh, 240px);
    }

    .tb-landing .tb-chip {
        padding: 5px 12px;
        font-size: 12px;
    }

    .tb-landing .tb-hero__chips {
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .tb-landing .tb-shell {
        padding: 0 16px;
    }

    .tb-landing .tb-section {
        padding: 72px 0;
    }

    .tb-landing {
        --tb-header-h: 64px;
    }

    .tb-landing .tb-header__inner {
        height: 64px;
    }

    .tb-landing .tb-brand__chip {
        display: none;
    }

    .tb-landing .tb-section__head {
        margin-bottom: 48px;
    }

    .tb-landing .tb-cta {
        padding: 44px 20px;
    }

    .tb-landing .tb-kpis {
        grid-template-columns: minmax(0, 1fr);
    }

    .tb-landing .tb-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .tb-landing .footer-content {
        gap: 16px;
    }
}

/* ============================================================
   Уважаем prefers-reduced-motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .tb-landing *,
    .tb-landing *::before,
    .tb-landing *::after {
        animation: none !important;
        transition: none !important;
    }

    .tb-landing [data-tb-reveal] {
        opacity: 1;
        transform: none;
    }

    /* Элементы, которые в анимации стартуют невидимыми, показываем сразу */
    .tb-landing .tb-msg,
    .tb-landing .tb-vby--granted,
    .tb-landing .tb-tag--ban,
    .tb-landing .tb-alert,
    .tb-landing .tb-chart__area {
        opacity: 1;
        transform: none;
    }

    .tb-landing .tb-cmd {
        max-width: none;
    }

    .tb-landing .tb-yt__bar i {
        width: 62%;
    }

    .tb-landing .tb-sync__bar i {
        width: 100%;
    }

    .tb-landing .tb-chart__line {
        stroke-dashoffset: 0;
    }

    .tb-landing .tb-msg--flag .tb-msg__text::after {
        width: 100%;
    }
}
