/*
 * Живой первый экран: CRM и приложение клуба работают сами.
 * Цвета берём из темы сайта (светлая и тёмная), Kaspi — фирменный красный.
 */
.live-stage {
    --lv-card: var(--card-bg, #fff);
    --lv-soft: var(--bg-soft, #f7faf8);
    --lv-line: var(--border, #e6eee8);
    --lv-ink: var(--text, #171717);
    --lv-muted: var(--text-muted, #52525b);
    --lv-green: var(--green, #1f7a3a);
    --lv-green-50: var(--green-light, #eaf6ee);
    --lv-kaspi: #f14635;
    --lv-amber: #d97706;
    --lv-violet: #7c3aed;
    --lv-blue: #2a71e7;
    --lv-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --lv-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --lv-shadow: 0 1px 2px rgba(15, 15, 15, 0.04), 0 14px 34px -14px rgba(15, 15, 15, 0.22);
    --lv-shadow-lg: 0 2px 4px rgba(15, 15, 15, 0.04), 0 30px 60px -22px rgba(15, 15, 15, 0.32);
    position: relative;
    width: 100%;
    color: var(--lv-ink);
    text-align: left;
}

.live-pick {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.live-pick a {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--lv-line);
    background: var(--lv-card);
    color: var(--lv-ink);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.live-pick a.is-on {
    background: var(--lv-green);
    border-color: var(--lv-green);
    color: #fff;
}

/* ---------- общие кусочки ---------- */
.lv-win {
    background: var(--lv-card);
    border: 1px solid var(--lv-line);
    border-radius: 18px;
    box-shadow: var(--lv-shadow-lg);
    overflow: hidden;
}

.lv-win__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--lv-line);
    background: var(--lv-soft);
}

.lv-win__bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lv-line);
}

.lv-win__bar b {
    margin-left: 8px;
    font-size: 0.78rem;
    font-weight: 700;
}

.lv-online {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--lv-green);
}

.lv-online::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: lv-ping 1.6s infinite;
}

@keyframes lv-ping {
    0% { box-shadow: 0 0 0 0 rgba(31, 122, 58, 0.45); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(31, 122, 58, 0); }
}

.lv-stats,
.lv-c__nums {
    display: flex;
    gap: 22px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--lv-line);
    flex-wrap: wrap;
}

.lv-stat small {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--lv-muted);
}

.lv-stat b {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.lv-stat b.is-bump {
    animation: lv-bump 0.5s var(--lv-spring);
}

@keyframes lv-bump {
    40% { transform: scale(1.12); color: var(--lv-green); }
}

.lv-toast {
    position: absolute;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px 9px 9px;
    border-radius: 14px;
    background: var(--lv-card);
    border: 1px solid var(--lv-line);
    box-shadow: var(--lv-shadow);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    transition: opacity 0.4s var(--lv-ease), transform 0.45s var(--lv-ease);
    pointer-events: none;
}

.lv-toast.is-show {
    opacity: 1;
    transform: none;
}

.lv-toast__ic {
    width: 32px;
    height: 32px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--lv-kaspi);
    color: #fff;
    font-weight: 800;
}

.lv-toast b {
    display: block;
    font-size: 0.8rem;
}

.lv-toast small {
    color: var(--lv-muted);
    font-size: 0.74rem;
}

/* телефон клиента */
.lv-phone {
    position: absolute;
    width: 200px;
    height: 410px;
    padding: 8px;
    border-radius: 36px;
    background: #111;
    box-shadow: var(--lv-shadow-lg);
    z-index: 4;
}

.lv-phone__screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 29px;
    background: #fff;
    color: #171717;
}

.lv-phone__notch {
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: 5;
    width: 74px;
    height: 21px;
    border-radius: 12px;
    background: #111;
    transform: translateX(-50%);
}

.lv-lock {
    position: absolute;
    inset: 0;
    padding: 44px 9px 9px;
    background: linear-gradient(165deg, #145a2a 0%, #1f7a3a 45%, #6fbf86 100%);
    color: #fff;
}

.lv-lock__time {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.lv-lock__date {
    margin: 4px 0 14px;
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.85;
}

.lv-pushes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lv-push {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    padding: 8px 9px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.86);
    color: #171717;
    font-size: 0.66rem;
    line-height: 1.32;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.lv-push__ic {
    width: 24px;
    height: 24px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #1f7a3a;
    color: #fff;
    font-size: 0.75rem;
}

.lv-push b {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    font-size: 0.66rem;
}

.lv-push b em {
    font-style: normal;
    font-weight: 500;
    color: #8a8f98;
}

.lv-push.is-enter {
    animation: lv-push-in 0.6s var(--lv-spring);
}

@keyframes lv-push-in {
    from { opacity: 0; transform: translateY(-16px) scale(0.94); }
}

/* ============ A: живая CRM ============ */
.lv-a {
    position: relative;
    padding: 0 104px 26px 0;
}

.lv-a__body {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    height: 318px;
    background: var(--lv-soft);
}

.lv-a__h {
    margin: 0 2px 8px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--lv-muted);
}

.lv-group {
    margin-bottom: 8px;
    padding: 9px 10px;
    border: 1px solid var(--lv-line);
    border-radius: 12px;
    background: var(--lv-card);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.lv-group.is-hit {
    border-color: var(--lv-green);
    box-shadow: 0 0 0 3px var(--lv-green-50);
}

.lv-group__top {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.lv-group__time {
    font-weight: 800;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.lv-group__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lv-group__seats {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--lv-muted);
    font-variant-numeric: tabular-nums;
}

.lv-group__who {
    margin: 2px 0 7px;
    font-size: 0.68rem;
    color: var(--lv-muted);
}

.lv-group__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lv-avatars {
    display: flex;
    flex: none;
}

.lv-av {
    width: 20px;
    height: 20px;
    margin-left: -6px;
    display: grid;
    place-items: center;
    border: 2px solid var(--lv-card);
    border-radius: 50%;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
}

.lv-av:first-child {
    margin-left: 0;
}

.lv-av.is-new {
    animation: lv-av-in 0.55s var(--lv-spring);
}

@keyframes lv-av-in {
    from { transform: scale(0); }
}

.lv-bar {
    flex: 1;
    height: 5px;
    overflow: hidden;
    border-radius: 5px;
    background: var(--lv-green-50);
}

.lv-bar i {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: var(--lv-green);
    transition: width 0.6s var(--lv-ease);
}

.lv-feed {
    display: flex;
    flex-direction: column;
    gap: 7px;
    height: 280px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 78%, transparent);
    mask-image: linear-gradient(#000 78%, transparent);
}

.lv-ev {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 8px 9px;
    border: 1px solid var(--lv-line);
    border-radius: 12px;
    background: var(--lv-card);
    font-size: 0.72rem;
    line-height: 1.35;
}

.lv-ev.is-enter {
    animation: lv-ev-in 0.55s var(--lv-ease);
}

@keyframes lv-ev-in {
    from { opacity: 0; transform: translateY(-12px); }
}

.lv-ev__ic {
    width: 24px;
    height: 24px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 0.75rem;
    background: var(--c, var(--lv-green-50));
}

.lv-ev b {
    display: block;
    font-weight: 700;
}

.lv-ev small {
    color: var(--lv-muted);
}

.lv-a .lv-phone {
    right: 0;
    top: 74px;
    transform: rotate(3deg);
}

.lv-a .lv-toast--kaspi {
    left: -26px;
    bottom: 0;
}

/* ============ B: путь клиента ============ */
.lv-b {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 236px;
    gap: 22px;
    align-items: center;
}

.lv-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lv-step {
    position: relative;
    overflow: hidden;
    padding: 11px 14px 13px 50px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: var(--lv-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.lv-step:not(.is-on):hover {
    background: var(--lv-soft);
}

.lv-step__n {
    position: absolute;
    left: 13px;
    top: 11px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--lv-soft);
    color: var(--lv-muted);
    font-size: 0.78rem;
    font-weight: 700;
    transition: 0.3s;
}

.lv-step__t {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
}

.lv-step__d {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    color: var(--lv-muted);
    font-size: 0.8rem;
    line-height: 1.45;
    transition: max-height 0.45s var(--lv-ease), opacity 0.3s, margin 0.3s;
}

.lv-step.is-on {
    border-color: var(--lv-line);
    background: var(--lv-card);
    box-shadow: var(--lv-shadow);
}

.lv-step.is-on .lv-step__n {
    background: var(--lv-green);
    color: #fff;
}

.lv-step.is-done .lv-step__n {
    background: var(--lv-green-50);
    color: var(--lv-green);
}

.lv-step.is-on .lv-step__d {
    max-height: 64px;
    margin-top: 3px;
    opacity: 1;
}

.lv-step__bar {
    position: absolute;
    left: 50px;
    right: 14px;
    bottom: 6px;
    height: 3px;
    border-radius: 3px;
    background: var(--lv-green-50);
    opacity: 0;
}

.lv-step.is-on .lv-step__bar {
    opacity: 1;
}

.lv-step__bar i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--lv-green);
    transform: scaleX(0);
    transform-origin: left;
}

.lv-step.is-on .lv-step__bar i {
    animation: lv-bar var(--lv-dur, 3800ms) linear forwards;
}

@keyframes lv-bar {
    to { transform: scaleX(1); }
}

.lv-b__dev {
    position: relative;
    height: 430px;
}

.lv-b .lv-phone {
    left: 18px;
    top: 4px;
}

.lv-scr {
    position: absolute;
    inset: 0;
    padding: 40px 11px 11px;
    font-size: 0.72rem;
    opacity: 0;
    transform: translateX(22px) scale(0.98);
    transition: opacity 0.45s var(--lv-ease), transform 0.55s var(--lv-ease);
}

.lv-scr.is-on {
    opacity: 1;
    transform: none;
}

.lv-scr.is-out {
    opacity: 0;
    transform: translateX(-22px) scale(0.98);
}

.lv-app__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.lv-app__bar b {
    font-size: 0.92rem;
}

.lv-app__bar span {
    font-size: 0.64rem;
    color: #6b7280;
}

.lv-kids {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.lv-kids span {
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f2;
    font-size: 0.64rem;
    font-weight: 600;
}

.lv-kids span:first-child {
    background: #1f7a3a;
    color: #fff;
}

.lv-days {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.lv-days span {
    flex: 1;
    padding: 4px 0;
    border-radius: 9px;
    background: #f1f5f2;
    text-align: center;
    font-size: 0.6rem;
    font-weight: 600;
    color: #52525b;
}

.lv-days span.is-on {
    background: #1f7a3a;
    color: #fff;
}

.lv-cls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 8px;
    border: 1px solid #e6eee8;
    border-radius: 13px;
    background: #fff;
}

.lv-cls__time {
    width: 30px;
    flex: none;
    font-weight: 800;
    font-size: 0.72rem;
}

.lv-cls__t {
    flex: 1;
    min-width: 0;
}

.lv-cls__t b {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.68rem;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.lv-cls__t small {
    color: #6b7280;
    font-size: 0.6rem;
}

.lv-cls__btn {
    flex: none;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf6ee;
    color: #1f7a3a;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}

.lv-price {
    flex: none;
    padding: 4px 8px;
    border-radius: 9px;
    background: #eaf6ee;
    color: #1f7a3a;
    font-size: 0.62rem;
    font-weight: 700;
    white-space: nowrap;
}

.lv-cls__btn.is-done {
    background: #1f7a3a;
    color: #fff;
    animation: lv-tap 0.5s var(--lv-spring);
}

@keyframes lv-tap {
    40% { transform: scale(0.85); }
}

.lv-dim {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.35);
    opacity: 0;
    transition: opacity 0.4s;
}

.lv-scr.is-on .lv-dim {
    opacity: 1;
}

.lv-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px 13px 16px;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.55s var(--lv-ease);
}

.lv-scr.is-on .lv-sheet {
    transform: none;
    transition-delay: 0.2s;
}

.lv-kaspi {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #f14635;
    font-weight: 800;
    font-size: 0.86rem;
}

.lv-kaspi i {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f14635;
    color: #fff;
    font-style: normal;
}

.lv-sum {
    margin: 12px 0 2px;
    font-size: 1.6rem;
    font-weight: 800;
}

.lv-paybtn {
    position: relative;
    height: 40px;
    margin-top: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f14635;
    color: #fff;
    font-weight: 700;
}

.lv-paybtn span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: #1f7a3a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--lv-ease);
}

.lv-paybtn.is-paid span {
    transform: none;
}

.lv-qr {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 8px auto 10px;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e6eee8;
    overflow: hidden;
}

.lv-qr__grid {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 2px;
    width: 100%;
    height: 100%;
}

.lv-qr__grid i {
    border-radius: 1px;
    background: #171717;
}

.lv-qr__grid i.o {
    background: transparent;
}

.lv-qr__scan {
    position: absolute;
    left: 6px;
    right: 6px;
    top: 8px;
    height: 3px;
    border-radius: 3px;
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e;
}

.lv-scr.is-on .lv-qr__scan {
    animation: lv-scan 1.3s ease-in-out 2;
}

@keyframes lv-scan {
    50% { top: calc(100% - 11px); }
}

.lv-ok {
    padding: 10px;
    border-radius: 14px;
    background: #eaf6ee;
    color: #145a2a;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.45s var(--lv-spring);
}

.lv-ok.is-show {
    opacity: 1;
    transform: none;
}

.lv-ok b {
    display: block;
    font-size: 0.8rem;
}

.lv-scr--lock {
    padding: 0;
}

.lv-pkg {
    padding: 11px;
    border: 1px solid #e6eee8;
    border-radius: 15px;
    background: #fff;
}

.lv-pkg__left {
    margin: 6px 0;
    font-size: 1.6rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.lv-pkg__left small {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
}

.lv-pkg .lv-bar {
    background: #eaf6ee;
}

.lv-pkg .lv-bar i {
    background: #1f7a3a;
}

.lv-renew {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
    background: #1f7a3a;
    color: #fff;
    text-align: center;
    font-weight: 700;
    transition: 0.4s;
}

.lv-renew.is-done {
    background: #eaf6ee;
    color: #145a2a;
    animation: lv-tap 0.5s var(--lv-spring);
}

.lv-crm-card {
    position: absolute;
    left: -168px;
    bottom: 22px;
    z-index: 5;
    width: 196px;
    padding: 11px 12px;
    border: 1px solid var(--lv-line);
    border-radius: 14px;
    background: var(--lv-card);
    box-shadow: var(--lv-shadow-lg);
    font-size: 0.74rem;
    transform: rotate(-3deg);
}

.lv-crm-card.is-swap {
    animation: lv-card-swap 0.55s var(--lv-spring);
}

@keyframes lv-card-swap {
    from { opacity: 0; transform: rotate(-3deg) translateY(12px) scale(0.95); }
}

.lv-crm-card__h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lv-muted);
}

.lv-crm-card__h em {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--lv-green-50);
    color: var(--lv-green);
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
}

.lv-crm-card b {
    display: block;
    font-size: 0.84rem;
}

.lv-crm-card small {
    color: var(--lv-muted);
}

/* ============ C: всё в одно окно ============ */
.lv-c {
    position: relative;
    height: 450px;
}

.lv-c__wires {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.lv-c__wires path {
    fill: none;
    stroke: var(--lv-line);
    stroke-width: 1.5;
    transition: stroke 0.3s;
}

.lv-c__wires path.is-hot {
    stroke: var(--lv-green);
    stroke-opacity: 0.35;
}

.lv-c__col {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
}

.lv-c__col--in {
    left: 0;
}

.lv-c__col--out {
    right: 0;
}

.lv-node {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px 6px 7px;
    border: 1px solid var(--lv-line);
    border-radius: 999px;
    background: var(--lv-card);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--lv-spring);
}

.lv-node i {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--c);
    color: #fff;
    font-style: normal;
    font-size: 0.7rem;
}

.lv-c__col--out .lv-node {
    border-radius: 12px;
}

.lv-node.is-ping {
    border-color: var(--c);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent);
    transform: scale(1.05);
}

.lv-c__hub {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: min(290px, 44%);
    transform: translate(-50%, -50%);
}

.lv-c__list {
    position: relative;
    height: 230px;
    overflow: hidden;
    padding: 4px 0;
    -webkit-mask-image: linear-gradient(#000 75%, transparent);
    mask-image: linear-gradient(#000 75%, transparent);
}

.lv-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 7px 12px;
    font-size: 0.72rem;
}

.lv-row__ic {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--c, var(--lv-green-50));
}

.lv-row b {
    display: block;
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lv-row small {
    color: var(--lv-muted);
    font-size: 0.66rem;
}

.lv-row__s {
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lv-row.is-enter {
    animation: lv-row-in 0.55s var(--lv-ease);
}

@keyframes lv-row-in {
    from { opacity: 0; transform: translateY(-12px); background: var(--lv-green-50); }
}

.lv-packet {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    display: grid;
    place-items: center;
    border: 2px solid var(--c);
    border-radius: 50%;
    background: var(--lv-card);
    font-size: 0.8rem;
    box-shadow: 0 6px 14px -6px rgba(15, 15, 15, 0.35);
    pointer-events: none;
}

/* ---------- темная тема: экран телефона остаётся «светлым» как в приложении ---------- */
html[data-theme="dark"] .lv-a__body {
    background: rgba(255, 255, 255, 0.02);
}

/* ---------- адаптив ---------- */
@media (max-width: 1180px) and (min-width: 960px) {
    .lv-a {
        padding-right: 84px;
    }

    .lv-a .lv-phone {
        transform: rotate(3deg) scale(0.86);
        transform-origin: top right;
    }
}

@media (max-width: 959px) {
    .live-pick {
        justify-content: center;
    }

    .lv-crm-card {
        left: auto;
        right: -8px;
        bottom: 6px;
        width: 168px;
    }
}

@media (max-width: 640px) {
    /* Телефон: CRM-лента слева, телефон с уведомлениями справа — как на компьютере, только компактно. */
    .lv-a {
        padding: 0 70px 34px 0;
    }

    .lv-win__bar {
        padding: 8px 12px;
    }

    .lv-a .lv-stats {
        display: grid;
        grid-template-columns: 1fr 1.25fr 0.8fr;
        gap: 8px;
        padding: 9px 12px;
    }

    .lv-a .lv-stat small {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    .lv-a .lv-stat b {
        font-size: 0.98rem;
    }

    .lv-a__body {
        grid-template-columns: 1fr;
        height: 236px;
        padding: 10px 76px 0 10px;
    }

    .lv-a__sched {
        display: none;
    }

    .lv-a__h {
        margin-bottom: 6px;
        font-size: 0.68rem;
    }

    .lv-feed {
        height: 208px;
        gap: 6px;
    }

    .lv-ev {
        gap: 7px;
        padding: 7px 8px;
        font-size: 0.68rem;
        border-radius: 11px;
    }

    .lv-ev__ic {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .lv-ev.is-enter {
        animation: lv-ev-in-m 0.6s var(--lv-spring);
    }

    .lv-a .lv-phone {
        top: 96px;
        right: 0;
        width: 146px;
        height: 296px;
        padding: 6px;
        border-radius: 28px;
        transform: rotate(3deg);
        animation: lv-float 5s ease-in-out infinite;
    }

    .lv-a .lv-phone__screen {
        border-radius: 23px;
    }

    .lv-a .lv-phone__notch {
        top: 6px;
        width: 52px;
        height: 15px;
    }

    .lv-a .lv-lock {
        padding: 32px 6px 6px;
    }

    .lv-a .lv-lock__time {
        font-size: 1.75rem;
    }

    .lv-a .lv-lock__date {
        margin: 3px 0 10px;
        font-size: 0.56rem;
    }

    .lv-a .lv-pushes {
        gap: 5px;
    }

    .lv-a .lv-push {
        gap: 5px;
        padding: 6px 7px;
        border-radius: 12px;
        font-size: 0.6rem;
        line-height: 1.28;
    }

    .lv-a .lv-push b {
        min-width: 0;
        overflow: hidden;
        font-size: 0.58rem;
        white-space: nowrap;
    }

    .lv-a .lv-push b em {
        display: none;
    }

    .lv-a .lv-push > div {
        min-width: 0;
    }

    .lv-a .lv-push__ic {
        width: 19px;
        height: 19px;
        border-radius: 6px;
        font-size: 0.62rem;
    }

    .lv-a .lv-push.is-enter {
        animation: lv-push-in-m 0.7s var(--lv-spring);
    }

    .lv-a .lv-phone.is-buzz {
        animation: lv-buzz 0.45s ease, lv-float 5s ease-in-out infinite;
    }

    .lv-a .lv-toast--kaspi {
        left: 6px;
        bottom: 0;
        max-width: calc(100% - 96px);
        padding: 7px 12px 7px 7px;
        font-size: 0.74rem;
    }

    .lv-a .lv-toast__ic {
        width: 28px;
        height: 28px;
        border-radius: 9px;
    }

    .lv-a .lv-toast.is-show {
        animation: lv-toast-pop 0.55s var(--lv-spring);
    }

    .live-stage--a .product-stage__caps {
        display: none;
    }

    .lv-b {
        grid-template-columns: 1fr;
    }

    .lv-b__dev {
        width: 236px;
        margin: 0 auto;
    }

    .lv-b .lv-phone {
        left: 0;
    }

    .lv-crm-card {
        right: -40px;
        width: 150px;
    }

    .lv-c {
        height: auto;
    }

    .lv-c__col {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .lv-node {
        padding: 5px 10px 5px 6px;
        font-size: 0.72rem;
    }

    .lv-c__hub {
        position: relative;
        left: auto;
        top: auto;
        width: min(330px, 100%);
        margin: 48px auto;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-stage *,
    .live-stage *::before,
    .live-stage *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* В варианте A телефон сам по себе подпись — правую подпись не показываем, она уходила под него. */
.live-stage--a .product-stage__caps span:last-child {
    display: none;
}

/* Анимации мобильного первого экрана */
@keyframes lv-ev-in-m {
    0% { opacity: 0; transform: translateY(-14px) scale(0.96); background: var(--lv-green-50); }
    60% { background: var(--lv-green-50); }
}

@keyframes lv-push-in-m {
    0% { opacity: 0; transform: translateY(-22px) scale(0.9); }
    60% { opacity: 1; }
}

@keyframes lv-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -5px; }
}

@keyframes lv-buzz {
    0%, 100% { transform: rotate(3deg); }
    20% { transform: rotate(5deg); }
    40% { transform: rotate(1deg); }
    60% { transform: rotate(4.5deg); }
    80% { transform: rotate(2deg); }
}

@keyframes lv-toast-pop {
    0% { opacity: 0; transform: translateY(14px) scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
    .lv-a .lv-phone,
    .lv-a .lv-phone.is-buzz {
        animation: none !important;
    }
}

/* Телефон: живая CRM сразу под заголовком, на первом экране; сферы и кнопки — ниже. */
@media (max-width: 640px) {
    .hero__grid {
        gap: 0;
    }

    .hero__copy {
        display: contents;
    }

    .hero__copy > h1 { order: 1; }
    .hero__copy > .hero__lead { order: 2; margin-bottom: 18px; }
    .hero__visual { order: 3; margin-bottom: 22px; }
    .hero__copy > .seg { order: 4; }
    .hero__copy > .hero__actions { order: 5; }
    .hero__copy > .hero__centers-link { order: 6; justify-self: center; }
    .hero__copy > :not(h1):not(.hero__lead):not(.seg):not(.hero__actions):not(.hero__centers-link) { order: 2; }
}
