.phone-progress span {
    display: block; width: 65%; height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    animation: phoneLoad 2.2s ease-in-out infinite;
}
@keyframes phoneLoad {
    0%, 100% { width: 35%; }
    50% { width: 90%; }
}
.hero-orbit {
    position: absolute; inset: 8%;
    border-radius: 50%;
    border: 1px solid rgba(0, 230, 118, 0.25);
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 230, 118, 0.25), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(0, 188, 212, 0.18), transparent 50%);
    animation: pulseOrb 6s ease-in-out infinite;
}
@keyframes pulseOrb {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.03); opacity: 1; }
}

.phone-screen.hero-scene {
    position: relative;
    display: block;
    min-height: 340px;
    padding: 1.15rem 0.85rem;
    overflow: hidden;
}
.hero-scene [data-scene] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.15rem 0.85rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    pointer-events: none;
}
.hero-scene-panel.hero-scene-qr {
    gap: 0.45rem;
    justify-content: flex-start;
    padding-top: 1rem;
}
.hero-orbit-pill span:not(.hero-orbit-flag):not(.hero-orbit-body) {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
}
.hero-orbit-rub { top: 8%; left: -4%; animation-delay: 0s; }
.hero-orbit-rub .hero-orbit-flag { background: rgba(0, 191, 255, 0.2); color: #00bfff; }
.hero-orbit-usd { top: 18%; right: -6%; animation-delay: 0.8s; }
.hero-orbit-usd .hero-orbit-flag { background: rgba(0, 230, 118, 0.18); color: var(--accent); }
.hero-orbit-eur { bottom: 22%; left: -8%; animation-delay: 1.6s; }
.hero-orbit-eur .hero-orbit-flag { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.hero-orbit-uah { bottom: 10%; right: -4%; animation-delay: 2.4s; }
.hero-orbit-uah .hero-orbit-flag { background: rgba(255, 193, 7, 0.18); color: #ffc107; }
.hero-orbit-flag {
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
}
.hero-orbit-body {
    display: flex;
    flex-direction: column;
    gap: 0.02rem;
    line-height: 1.15;
}
.hero-orbit-body strong {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    color: var(--muted);
    font-weight: 700;
}
.hero-orbit-body em {
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text);
}
@keyframes heroOrbitFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.hero-visual-stage {
    position: relative;
    width: 100%;
    margin-inline: 0;
}
.hero-currency-orbit {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hero-orbit-pill {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    box-shadow: var(--shadow);
    white-space: normal;
    max-width: 118px;
    animation: heroOrbitFloat 4.5s ease-in-out infinite;
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.hero-orbit-pill.is-active {
    animation: heroOrbitActive 2s ease-in-out infinite;
    transform: scale(1.06);
    z-index: 3;
}
.hero-orbit-rub.is-active { border-color: rgba(0, 191, 255, 0.55); box-shadow: 0 0 20px rgba(0, 191, 255, 0.25); }
.hero-orbit-usd.is-active { border-color: rgba(0, 230, 118, 0.55); box-shadow: 0 0 20px rgba(0, 230, 118, 0.25); }
.hero-orbit-eur.is-active { border-color: rgba(99, 102, 241, 0.55); box-shadow: 0 0 20px rgba(99, 102, 241, 0.25); }
.hero-orbit-uah.is-active { border-color: rgba(255, 193, 7, 0.55); box-shadow: 0 0 20px rgba(255, 193, 7, 0.25); }
@keyframes heroOrbitActive {
    0%, 100% { transform: scale(1.06) translateY(0); }
    50% { transform: scale(1.08) translateY(-4px); }
}
.hero-phone[data-active-currency="rub"] .phone-frame {
    box-shadow: 0 16px 40px rgba(0, 114, 255, 0.22), var(--shadow);
}
.hero-phone[data-active-currency="usd"] .phone-frame {
    box-shadow: 0 16px 40px rgba(0, 230, 118, 0.2), var(--shadow);
}
.hero-phone[data-active-currency="eur"] .phone-frame {
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.22), var(--shadow);
}
.hero-phone[data-active-currency="uah"] .phone-frame {
    box-shadow: 0 16px 40px rgba(255, 193, 7, 0.2), var(--shadow);
}
.hero-currency-flow {
    justify-content: flex-start;
    padding-top: 0.85rem;
    gap: 0.4rem;
}
.hero-currency-head {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.hero-currency-badge {
    display: inline-grid;
    place-items: center;
    min-width: 2rem;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.hero-currency-country {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
}
.hero-currency-amount {
    margin: 0.15rem 0 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
}
.hero-pay-methods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
}
.hero-pay-methods li {
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}
.hero-pay-steps {
    position: relative;
    width: 100%;
    min-height: 168px;
    margin-top: 0.35rem;
}
.hero-pay-step {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}
.hero-pay-step.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.hero-pay-progress span {
    animation-duration: 2.6s;
}
.hero-success-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    animation: heroSuccessPop 0.5s ease;
}
.hero-success-icon::before {
    content: "✓";
}
.hero-success-amount {
    margin: 0;
    font-weight: 800;
    font-size: 1rem;
}
@keyframes heroSuccessPop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.12); }
    100% { transform: scale(1); opacity: 1; }
}
.hero-currency-rub .hero-currency-badge { background: rgba(0, 191, 255, 0.2); color: #00bfff; }
.hero-currency-rub .hero-currency-amount { color: #00bfff; }
.hero-currency-rub .hero-pay-methods li { border-color: rgba(0, 191, 255, 0.35); color: #7dd3fc; }
.hero-currency-rub .hero-pay-progress span { background: linear-gradient(90deg, #00bfff, #0072ff); }
.hero-currency-rub .hero-success-icon { background: rgba(0, 191, 255, 0.15); color: #00bfff; box-shadow: 0 0 16px rgba(0, 191, 255, 0.35); }
.hero-currency-rub .phone-done { color: #00bfff; }

.hero-currency-usd .hero-currency-badge { background: rgba(0, 230, 118, 0.18); color: var(--accent); }
.hero-currency-usd .hero-currency-amount { color: var(--accent); }
.hero-currency-usd .hero-pay-methods li { border-color: rgba(0, 230, 118, 0.35); color: #86efac; }
.hero-currency-usd .hero-pay-progress span { background: linear-gradient(90deg, #00e676, #00c853); }
.hero-currency-usd .hero-success-icon { background: rgba(0, 230, 118, 0.15); color: var(--accent); box-shadow: 0 0 16px rgba(0, 230, 118, 0.35); }

.hero-currency-eur .hero-currency-badge { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.hero-currency-eur .hero-currency-amount { color: #818cf8; }
.hero-currency-eur .hero-pay-methods li { border-color: rgba(99, 102, 241, 0.35); color: #a5b4fc; }
.hero-currency-eur .hero-pay-progress span { background: linear-gradient(90deg, #6366f1, #4338ca); }
.hero-currency-eur .hero-success-icon { background: rgba(99, 102, 241, 0.15); color: #818cf8; box-shadow: 0 0 16px rgba(99, 102, 241, 0.35); }
.hero-currency-eur .phone-done { color: #818cf8; }

.hero-currency-uah .hero-currency-badge { background: rgba(255, 193, 7, 0.18); color: #ffc107; }
.hero-currency-uah .hero-currency-amount { color: #ffc107; }
.hero-currency-uah .hero-pay-methods li { border-color: rgba(255, 193, 7, 0.35); color: #fde68a; }
.hero-currency-uah .hero-pay-progress span { background: linear-gradient(90deg, #ffc107, #005bbb); }
.hero-currency-uah .hero-success-icon { background: rgba(255, 193, 7, 0.15); color: #ffc107; box-shadow: 0 0 16px rgba(255, 193, 7, 0.35); }
.hero-currency-uah .phone-done { color: #ffc107; }

.hero-phone[data-active-currency="rub"] .phone-screen { background: linear-gradient(180deg, rgba(0, 114, 255, 0.08), var(--bg-soft)); }
.hero-phone[data-active-currency="usd"] .phone-screen { background: linear-gradient(180deg, rgba(0, 230, 118, 0.07), var(--bg-soft)); }
.hero-phone[data-active-currency="eur"] .phone-screen { background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), var(--bg-soft)); }
.hero-phone[data-active-currency="uah"] .phone-screen { background: linear-gradient(180deg, rgba(255, 193, 7, 0.07), var(--bg-soft)); }

.hero-qr-live {
    margin: 0;
    width: 96px;
}
.hero-qr-live .qr-canvas {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 10px;
}
.hero-scene [data-scene].is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-visual-wrap[data-active-currency] .hero-visual-stage {
    transition: filter 0.45s ease;
}

.hero-geo-media {
    position: relative;
    width: min(320px, 100%);
    height: 260px;
    margin: 0.5rem auto 0;
    overflow: hidden;
    border-radius: 18px;
}
.hero-lottie {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 0;
    transition: filter 0.8s ease, opacity 0.65s ease, transform 0.8s ease;
}
.hero-geo-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 0.55rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}
.hero-geo-overlay.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.hero-geo-glow {
    position: absolute;
    inset: 10% 15% 28%;
    border-radius: 50%;
    filter: blur(36px);
    opacity: 0.5;
    animation: heroGeoGlow 5s ease-in-out infinite;
}
.hero-geo-art {
    position: absolute;
    inset: 10% 22% 32%;
    display: grid;
    place-items: center;
}
.hero-geo-symbol {
    position: relative;
    z-index: 2;
    font-size: 2.4rem;
    font-weight: 800;
    text-shadow: 0 0 20px currentColor;
    animation: heroGeoSymbol 4.2s ease-in-out infinite;
}
.hero-geo-locale {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}
.hero-geo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0.35;
    pointer-events: none;
}
.hero-geo-ring-1 { animation: heroGeoRing 4.5s ease-out infinite; }
.hero-geo-ring-2 { animation: heroGeoRing 4.5s ease-out infinite 2.25s; }
.hero-geo-scan-beam {
    position: absolute;
    left: 12%;
    right: 12%;
    height: 2px;
    top: 30%;
    background: currentColor;
    opacity: 0;
    box-shadow: 0 0 10px currentColor;
    pointer-events: none;
}
.hero-geo-success-burst {
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
}
.hero-geo-caption {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    text-align: center;
    min-width: 72%;
}
.hero-geo-country-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.hero-geo-caption-flag {
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
}
.hero-geo-caption strong {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
}
.hero-geo-caption em {
    font-style: normal;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
}
.hero-geo-pay-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}
.hero-geo-pay-chips li {
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.hero-currency-code {
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    color: var(--muted);
}

.hero-geo-overlay-rub { color: #00bfff; }
.hero-geo-overlay-rub .hero-geo-glow { background: radial-gradient(circle, rgba(0, 191, 255, 0.55), transparent 70%); }
.hero-geo-overlay-rub .hero-geo-caption-flag { color: #00bfff; }
.hero-geo-overlay-usd { color: var(--accent); }
.hero-geo-overlay-usd .hero-geo-glow { background: radial-gradient(circle, rgba(0, 230, 118, 0.5), transparent 70%); }
.hero-geo-overlay-eur { color: #818cf8; }
.hero-geo-overlay-eur .hero-geo-glow { background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent 70%); }
.hero-geo-overlay-uah { color: #ffc107; }
.hero-geo-overlay-uah .hero-geo-glow { background: radial-gradient(circle, rgba(255, 193, 7, 0.45), transparent 70%); }

.hero-visual-wrap[data-active-currency="rub"] .hero-lottie,
#heroLottie[data-active-currency="rub"] {
    filter: drop-shadow(0 0 18px rgba(0, 191, 255, 0.3));
}
.hero-visual-wrap[data-active-currency="usd"] .hero-lottie,
#heroLottie[data-active-currency="usd"] {
    filter: drop-shadow(0 0 18px rgba(0, 230, 118, 0.28)) hue-rotate(-15deg);
}
.hero-visual-wrap[data-active-currency="eur"] .hero-lottie,
#heroLottie[data-active-currency="eur"] {
    filter: drop-shadow(0 0 18px rgba(99, 102, 241, 0.32)) hue-rotate(30deg);
}
.hero-visual-wrap[data-active-currency="uah"] .hero-lottie,
#heroLottie[data-active-currency="uah"] {
    filter: drop-shadow(0 0 18px rgba(255, 193, 7, 0.3)) hue-rotate(50deg);
}

.hero-visual-wrap[data-active-step="processing"] .hero-lottie { transform: scale(1); opacity: 0.95; }
.hero-visual-wrap[data-active-step="scan"] .hero-lottie { transform: scale(1.02); opacity: 1; }
.hero-visual-wrap[data-active-step="success"] .hero-lottie { transform: scale(0.99); opacity: 0.9; }

.hero-visual-wrap[data-active-step="processing"] .hero-geo-scan-beam,
.hero-visual-wrap[data-active-step="success"] .hero-geo-scan-beam { opacity: 0; animation: none; }
.hero-visual-wrap[data-active-step="scan"] .hero-geo-scan-beam {
    opacity: 0.85;
    animation: heroGeoScan 3.2s ease-in-out infinite;
}
.hero-visual-wrap[data-active-step="scan"] .hero-geo-symbol { animation: heroGeoSymbolScan 2.4s ease-in-out infinite; }
.hero-visual-wrap[data-active-step="success"] .hero-geo-ring { opacity: 0.15; animation: none; }
.hero-visual-wrap[data-active-step="success"] .hero-geo-success-burst {
    opacity: 0.65;
    animation: heroGeoSuccess 2.6s ease-out infinite;
}

@keyframes heroGeoSymbol {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@keyframes heroGeoSymbolScan {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.12); filter: brightness(1.15); }
}

@keyframes heroGeoGlow {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 0.7; transform: scale(1.05); }
}
@keyframes heroGeoRing {
    0% { transform: scale(0.75); opacity: 0.55; }
    100% { transform: scale(1.35); opacity: 0; }
}
@keyframes heroGeoScan {
    0%, 100% { top: 22%; }
    50% { top: 72%; }
}
@keyframes heroGeoSuccess {
    0% { transform: scale(0.7); opacity: 0.65; }
    100% { transform: scale(1.5); opacity: 0; }
}

.tx-marquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
    padding: 0.65rem 0;
}
.tx-marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: txScroll 72s linear infinite;
}
.tx-marquee-set {
    display: flex;
    gap: 2rem;
    flex-shrink: 0;
}
.tx-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap;
}
.tx-item strong { color: var(--text); }
.tx-item em { color: var(--accent); font-style: normal; font-weight: 600; }
@keyframes txScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.logo-strip {
    overflow: hidden;
    margin-top: 1.25rem;
    padding: 0.75rem 0;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-strip-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: txScroll 28s linear infinite;
}
.logo-strip img {
    height: 28px;
    width: auto;
    opacity: 0.75;
    filter: grayscale(1) brightness(1.4);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
    background: var(--header-bg);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.sticky-cta .btn { flex: 1; }

.fab-open {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 44;
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    min-height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--btn-accent-text);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 230, 118, 0.3);
}
.hero { position: relative; overflow: hidden; }
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.hero-glow-1 { width: 400px; height: 400px; top: -10%; left: -5%; background: var(--hero-glow-1); }
.hero-glow-2 { width: 350px; height: 350px; top: 20%; right: -8%; background: var(--hero-glow-2); }
.hero-grid { position: relative; z-index: 1; }
.hero-visual-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    overflow: visible;
}
.hero-intro-lines { display: grid; gap: 0.55rem; margin-top: 1.25rem; }
.intro-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
    padding: 0.65rem 0.85rem;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    font-size: 0.88rem;
}
.intro-line strong { color: var(--text); }
.intro-line span { color: var(--muted); }
.phone-qr-mini {
    width: 72px; height: 72px;
    background: #fff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.phone-qr-scan {
    position: absolute;
    left: 0; right: 0; height: 2px;
    background: var(--accent);
    animation: qrScan 1.8s ease-in-out infinite;
}
@keyframes qrScan {
    0%, 100% { top: 8px; }
    50% { top: calc(100% - 10px); }
}

.pay-card-3d {
    perspective: 900px;
    width: min(280px, 100%);
    margin: 0 auto 1rem;
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.15s ease;
    cursor: pointer;
}
.pay-card-stack {
    position: relative;
    width: 100%;
    height: 170px;
}
.pay-card-stack .pay-card-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96) translateY(8px);
    transform-style: preserve-3d;
    transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.pay-card-stack .pay-card-inner.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
    z-index: 2;
}
.pay-card-cycle-wrap.is-switching .pay-card-inner.is-active {
    animation: payCardRegionEnter 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes payCardRegionEnter {
    0% { opacity: 0.35; transform: scale(0.94) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.pay-card-inner {
    position: relative;
    width: 100%;
    height: 170px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}
.pay-card-3d.is-flipped .pay-card-inner.is-active,
.pay-card-3d.is-flipped .pay-card-inner[data-card-active] { transform: rotateY(180deg); }
.pay-card-face {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}
.pay-card-face.pay-card-front {
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
}
.pay-card-face.pay-card-back {
    padding: 1.15rem;
    background: linear-gradient(135deg, #1a2744, #0d1520);
    border: 1px solid var(--glass-border);
    color: #e8eef5;
}
.pay-card-back.pay-card-theme--usa {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 55%, #0f172a 100%);
}
.pay-card-back.pay-card-theme--eu {
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 42%, #312e81 100%);
}
.pay-card-back.pay-card-theme--au {
    background: linear-gradient(135deg, #065f46 0%, #047857 45%, #ca8a04 100%);
}
.pay-card-back.pay-card-theme--ru {
    background: linear-gradient(135deg, #008045 0%, #00a651 50%, #005a33 100%);
}
.pay-card-back.pay-card-theme--ua {
    background: linear-gradient(135deg, #0057b7 0%, #0057b7 48%, #ffd700 48%, #ffd700 100%);
    color: #0b1220;
}
.pay-card-regions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.28rem;
    width: 100%;
}
.pay-card-region-dot {
    font-size: 0.58rem;
    line-height: 1.2;
    padding: 0.14rem 0.42rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}
.pay-card-region-dot::after {
    content: '';
    font-weight: 600;
}
.pay-card-region-dot.is-active::after {
    content: ' · ' attr(data-card-network);
}
.pay-card-region-dot.is-active {
    font-weight: 600;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}
.pay-card-region-dot.is-active[data-card-region="usa"] {
    border-color: rgba(96, 165, 250, 0.55);
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.14);
}
.pay-card-region-dot.is-active[data-card-region="eu"] {
    border-color: rgba(251, 113, 133, 0.55);
    color: #fda4af;
    background: rgba(190, 24, 93, 0.14);
}
.pay-card-region-dot.is-active[data-card-region="au"] {
    border-color: rgba(52, 211, 153, 0.55);
    color: #6ee7b7;
    background: rgba(5, 150, 105, 0.14);
}
.pay-card-region-dot.is-active[data-card-region="ru"] {
    border-color: rgba(74, 222, 128, 0.55);
    color: #86efac;
    background: rgba(0, 166, 81, 0.14);
}
.pay-card-region-dot.is-active[data-card-region="ua"] {
    border-color: rgba(250, 204, 21, 0.55);
    color: #fde047;
    background: rgba(0, 87, 183, 0.18);
}
.pay-card-back { transform: rotateY(180deg); }
.pay-card-strip { height: 36px; background: #222; margin: 1rem 0; border-radius: 4px; }
.pay-card-cvv { background: #fff; color: #111; padding: 0.35rem 0.5rem; width: fit-content; margin-left: auto; border-radius: 4px; font-size: 0.82rem; }

/* pay-plastic-card — редизайн лицевой стороны (откат: CARD_REDESIGN_ROLLBACK.md) */
.pay-plastic-card,
.pay-plastic-card__chip {
    overflow: hidden;
    position: relative;
}
.pay-plastic-card {
    --pay-card-primary: hsl(223, 90%, 55%);
    --pay-card-digit-gradient: linear-gradient(
        180deg,
        #f4f8c4 0%,
        #dce775 38%,
        #c0ca33 62%,
        #e6ee9c 100%
    );
    width: 100%;
    height: 100%;
    font-size: clamp(0.72rem, 2.6vw, 1.05rem);
    border-radius: 0.5em;
    background-color: var(--pay-card-primary);
    background-image:
        radial-gradient(circle at 100% 0%, hsla(0, 0%, 100%, 0.08) 29.5%, hsla(0, 0%, 100%, 0) 30%),
        radial-gradient(circle at 100% 0%, hsla(0, 0%, 100%, 0.08) 39.5%, hsla(0, 0%, 100%, 0) 40%),
        radial-gradient(circle at 100% 0%, hsla(0, 0%, 100%, 0.08) 49.5%, hsla(0, 0%, 100%, 0) 50%);
    box-shadow:
        0 0 0 hsl(0, 0%, 80%),
        0 0 0 hsl(0, 0%, 100%),
        -0.2rem 0 0.75rem 0 hsla(0, 0%, 0%, 0.3);
    color: hsl(0, 0%, 100%);
    transform: translate3d(0, 0, 0);
    animation: payPlasticRotate 3s ease-in-out infinite;
}
.pay-card-theme--usa .pay-plastic-card {
    --pay-card-primary: hsl(220, 70%, 42%);
    --pay-card-digit-gradient: linear-gradient(180deg, #f5f8ff 0%, #c5d4f0 45%, #9eb4dc 70%, #e8eef8 100%);
}
.pay-card-theme--eu .pay-plastic-card {
    --pay-card-primary: hsl(350, 65%, 38%);
    --pay-card-digit-gradient: linear-gradient(180deg, #fff4d6 0%, #f0d080 42%, #d4a84b 68%, #ffe9a8 100%);
}
.pay-card-theme--au .pay-plastic-card {
    --pay-card-primary: hsl(158, 65%, 32%);
    --pay-card-digit-gradient: linear-gradient(180deg, #edf7e4 0%, #c5e1a5 42%, #9ccc65 68%, #e8f5d9 100%);
}
.pay-card-theme--ru .pay-plastic-card {
    --pay-card-primary: hsl(152, 100%, 28%);
    --pay-card-digit-gradient: linear-gradient(180deg, #f0fff6 0%, #c8ead4 42%, #9fd4b4 68%, #e6f7ee 100%);
}
.pay-card-theme--ua .pay-plastic-card {
    --pay-card-digit-gradient: linear-gradient(180deg, #fff9c4 0%, #ffd54f 42%, #ffb300 68%, #ffe082 100%);
    --pay-card-primary: #0057b7;
    background-image:
        linear-gradient(135deg, #0057b7 0%, #0057b7 52%, #ffd700 52%, #ffd700 100%),
        radial-gradient(circle at 100% 0%, hsla(0, 0%, 100%, 0.08) 29.5%, hsla(0, 0%, 100%, 0) 30%),
        radial-gradient(circle at 100% 0%, hsla(0, 0%, 100%, 0.08) 39.5%, hsla(0, 0%, 100%, 0) 40%),
        radial-gradient(circle at 100% 0%, hsla(0, 0%, 100%, 0.08) 49.5%, hsla(0, 0%, 100%, 0) 50%);
}
.pay-card-theme--ua .pay-plastic-card__logo {
    color: #0b1220;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.pay-card-theme--ua .pay-plastic-card__name,
.pay-card-theme--ua .pay-plastic-card__exp-date {
    background: linear-gradient(hsl(220, 30%, 18%), hsl(220, 20%, 32%) 55%, hsl(220, 15%, 22%) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pay-card-3d.is-flipped .pay-plastic-card,
.pay-card-3d:hover .pay-plastic-card {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .pay-plastic-card,
    .pay-plastic-card__chip-texture,
    .pay-plastic-card__texture {
        animation: none !important;
    }
    .pay-card-cycle-wrap.is-switching .pay-card-inner.is-active {
        animation: none;
    }
    .pay-card-stack .pay-card-inner {
        transition: opacity 0.2s ease;
        transform: none;
    }
}
.pay-plastic-card__info,
.pay-plastic-card__chip-texture,
.pay-plastic-card__texture {
    position: absolute;
}
.pay-plastic-card__chip-texture,
.pay-plastic-card__texture {
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    animation: payPlasticTexture 3s ease-in-out infinite;
}
.pay-plastic-card__info {
    font: 0.75em/1 "DM Sans", sans-serif;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.75rem;
    inset: 0;
    z-index: 1;
}
.pay-plastic-card__logo,
.pay-plastic-card__number {
    width: 100%;
}
.pay-plastic-card__logo {
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.pay-plastic-card__chip {
    background-image: linear-gradient(hsl(0, 0%, 70%), hsl(0, 0%, 80%));
    border-radius: 0.2rem;
    box-shadow: 0 0 0 0.05rem hsla(0, 0%, 0%, 0.5) inset;
    width: 1.25rem;
    height: 1.25rem;
    transform: translate3d(0, 0, 0);
}
.pay-plastic-card__chip-lines {
    width: 100%;
    height: auto;
    display: block;
}
.pay-plastic-card__chip-texture {
    background-image: linear-gradient(-80deg, hsla(0, 0%, 100%, 0), hsla(0, 0%, 100%, 0.6) 48% 52%, hsla(0, 0%, 100%, 0));
}
.pay-plastic-card__digit-group {
    font-family: "Share Tech Mono", "Courier Prime", monospace;
    font-weight: 400;
    font-size: 1em;
    letter-spacing: 0.08em;
    background: var(--pay-card-digit-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px hsla(0, 0%, 0%, 0.42));
    flex: 0 0 auto;
}
.pay-plastic-card__exp-date,
.pay-plastic-card__name {
    background: linear-gradient(hsl(0, 0%, 100%), hsl(0, 0%, 85%) 15% 55%, hsl(0, 0%, 70%) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Courier Prime", monospace;
    filter: drop-shadow(0 0.05rem hsla(0, 0%, 0%, 0.3));
}
.pay-plastic-card__number {
    font-size: clamp(1rem, 4.4vw, 1.32rem);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.8ch;
    margin-top: 0.35rem;
    padding: 0;
    box-sizing: border-box;
}
.pay-plastic-card__valid-thru,
.pay-plastic-card__name {
    text-transform: uppercase;
}
.pay-plastic-card__valid-thru,
.pay-plastic-card__exp-date {
    margin-bottom: 0.25rem;
    width: 50%;
}
.pay-plastic-card__valid-thru {
    font-size: 0.52em;
    padding-right: 0.25rem;
    text-align: right;
    line-height: 1.15;
    opacity: 0.92;
    letter-spacing: 0.02em;
}
.pay-plastic-card__exp-date {
    font-size: 0.85em;
    padding-left: 0.25rem;
}
.pay-plastic-card__name {
    font-size: 0.76em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 7rem;
}
.pay-plastic-card__vendor {
    position: absolute;
    right: 0.375rem;
    bottom: 0.375rem;
    width: 2.55rem;
    height: 1.5rem;
}
.pay-plastic-card__vendor--mastercard::before,
.pay-plastic-card__vendor--mastercard::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    display: block;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
}
.pay-plastic-card__vendor--mastercard::before {
    background-color: #e71d1a;
    left: 0;
}
.pay-plastic-card__vendor--mastercard::after {
    background-color: #fa5e03;
    box-shadow: -1.05rem 0 0 #f59d1a inset;
    right: 0;
}
.pay-plastic-card__vendor--visa::before {
    content: "VISA";
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 1.05rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.pay-plastic-card__vendor--mir::before {
    content: "МИР";
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    background: linear-gradient(135deg, #1d8f4e, #0d6b38);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.pay-plastic-card__vendor--generic::before {
    content: attr(aria-label);
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}
.pay-plastic-card__vendor-sr {
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
    position: absolute;
    width: 1px;
    height: 1px;
}
.pay-plastic-card__texture {
    background-image: linear-gradient(-80deg, hsla(0, 0%, 100%, 0.3) 25%, hsla(0, 0%, 100%, 0) 45%);
    z-index: 0;
}
.pay-columns-visual .pay-plastic-card__number {
    font-size: clamp(1.08rem, 5vw, 1.4rem);
    gap: 0.85ch;
}
.pay-columns-visual .pay-plastic-card__digit-group {
    letter-spacing: 0.08em;
}
.pay-columns-visual .pay-plastic-card__valid-thru {
    font-size: 0.58em;
}
.pay-columns-visual .pay-plastic-card__exp-date {
    font-size: 0.92em;
}
.pay-columns-visual .pay-plastic-card__name {
    font-size: 0.82em;
}
@keyframes payPlasticRotate {
    from,
    to {
        animation-timing-function: ease-in;
        box-shadow:
            0 0 0 hsl(0, 0%, 80%),
            0.1rem 0 0 hsl(0, 0%, 100%),
            -0.2rem 0 0.75rem 0 hsla(0, 0%, 0%, 0.3);
        transform: rotateY(-10deg);
    }
    25%,
    75% {
        animation-timing-function: ease-out;
        box-shadow:
            0 0 0 hsl(0, 0%, 80%),
            0 0 0 hsl(0, 0%, 100%),
            -0.25rem -0.05rem 1rem 0.15rem hsla(0, 0%, 0%, 0.3);
        transform: rotateY(0deg);
    }
    50% {
        animation-timing-function: ease-in;
        box-shadow:
            -0.1rem 0 0 hsl(0, 0%, 80%),
            0 0 0 hsl(0, 0%, 100%),
            -0.3rem -0.1rem 1.5rem 0.3rem hsla(0, 0%, 0%, 0.3);
        transform: rotateY(10deg);
    }
}
@keyframes payPlasticTexture {
    from,
    to { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-50%, 0, 0); }
}

.qr-live {
    position: relative;
    width: fit-content;
    margin: 0 auto 1rem;
    text-align: center;
}
.qr-canvas,
.qr-image {
    border-radius: 12px;
    border: 0;
    display: block;
}
.qr-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
}
.qr-scan-line {
    position: absolute;
    left: 0; right: 0; top: 0; height: 3px;
    background: var(--accent);
    opacity: 0;
    pointer-events: none;
}
.qr-live.is-scanning .qr-scan-line {
    opacity: 1;
    animation: qrScan 1.5s ease-in-out infinite;
}
.qr-live-amount { font-weight: 700; margin: 0.5rem 0 0.25rem; }
.qr-live-status { color: var(--muted); font-size: 0.82rem; margin: 0; }
.qr-live.is-success .qr-live-status { color: var(--accent); }

.banks-flow {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.banks-flow-scene {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.35rem;
    min-height: 150px;
    padding-top: 0.25rem;
}
.banks-flow-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
    min-width: 0;
}
.banks-flow-node-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(0, 230, 118, 0.12), rgba(0, 191, 255, 0.08));
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: var(--accent);
}
.banks-flow-node-icon svg {
    width: 28px;
    height: 28px;
}
.banks-flow-node-label {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.banks-flow-node-amount {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
}
.banks-flow-active-bank {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--accent);
    transition: color 0.35s ease, transform 0.35s ease;
}
.banks-flow-success-mark {
    display: grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid rgba(0, 230, 118, 0.45);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 800;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.banks-flow-paths {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.banks-flow-hub {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
}
.banks-flow-hub-core {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--btn-accent-text);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 28px rgba(0, 230, 118, 0.25);
}
.banks-flow-hub-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 230, 118, 0.45);
    animation: banksHubRing 2.4s ease-out infinite;
}
.banks-flow-hub-ring-2 {
    animation-delay: 1.2s;
}
.banks-flow-track {
    position: absolute;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.35), transparent);
    overflow: visible;
}
.banks-flow-track-in {
    left: 18%;
    width: calc(34% - 40px);
    transform: translateY(-50%);
}
.banks-flow-track-out {
    right: 18%;
    width: calc(34% - 40px);
    transform: translateY(-50%);
}
.banks-flow-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.65);
    animation: banksDotIn 2.2s ease-in-out infinite;
}
.banks-flow-dot-out {
    animation-name: banksDotOut;
}
.banks-flow-dot-delay {
    animation-delay: 1.1s;
    opacity: 0.55;
}
.banks-flow-status {
    margin: 0;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
    min-height: 1.25rem;
    transition: color 0.35s ease;
}
.banks-flow-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    max-height: 72px;
    overflow: hidden;
    mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.banks-flow-chip {
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.banks-flow-chip.is-active {
    color: var(--accent);
    border-color: rgba(0, 230, 118, 0.45);
    background: rgba(0, 230, 118, 0.1);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 230, 118, 0.12);
}

.banks-flow[data-phase="request"] .banks-flow-payer .banks-flow-node-icon {
    animation: banksNodePulse 1.2s ease-in-out infinite;
}
.banks-flow[data-phase="route"] .banks-flow-hub-core {
    animation: banksHubPulse 0.9s ease-in-out infinite;
}
.banks-flow[data-phase="process"] .banks-flow-bank .banks-flow-bank-icon {
    animation: banksNodePulse 1s ease-in-out infinite;
    border-color: rgba(0, 191, 255, 0.45);
    color: #00bfff;
}
.banks-flow[data-phase="success"] .banks-flow-status {
    color: var(--accent);
}
.banks-flow[data-phase="success"] .banks-flow-success-mark {
    opacity: 1;
    transform: scale(1);
}
.banks-flow[data-phase="success"] .banks-flow-active-bank {
    color: var(--accent);
}

@keyframes banksDotIn {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% - 8px); opacity: 0; }
}
@keyframes banksDotOut {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% - 8px); opacity: 0; }
}
@keyframes banksHubRing {
    0% { transform: scale(0.75); opacity: 0.65; }
    100% { transform: scale(1.45); opacity: 0; }
}
@keyframes banksHubPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
@keyframes banksNodePulse {
    0%, 100% { transform: scale(1); box-shadow: none; }
    50% { transform: scale(1.05); box-shadow: 0 0 18px rgba(0, 230, 118, 0.2); }
}

@media (max-width: 640px) {
    .banks-flow-scene {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .banks-flow-paths {
        order: 2;
        min-height: 88px;
    }
    .banks-flow-track {
        width: 2px;
        height: 36px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    .banks-flow-track-in { top: 0; }
    .banks-flow-track-out { bottom: 0; top: auto; }
    .banks-flow-dot,
    .banks-flow-dot-out {
        animation-name: banksDotDown;
        left: 50%;
        margin-left: -4px;
    }
    .banks-flow-dot-out { animation-name: banksDotDownOut; }
}
@keyframes banksDotDown {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% - 8px); opacity: 0; }
}
@keyframes banksDotDownOut {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% - 8px); opacity: 0; }
}

.payments-glass-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.payments-glass-item {
    border-radius: 20px;
    padding: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
    min-height: 140px;
}
.payments-glass-item h3 { margin: 0.65rem 0 0.25rem; font-size: 1rem; }
.payments-glass-item p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.payments-glass-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    flex-shrink: 0;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.payments-glass-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 1px solid currentColor;
    opacity: 0;
    pointer-events: none;
}
.payments-glass-item:hover .payments-glass-icon::after {
    animation: themedIconPulse 1.8s ease-out infinite;
}
.payments-glass-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}
.payments-glass-icon-sbp {
    color: #00e676;
    background: rgba(0, 230, 118, 0.14);
    border: 1px solid rgba(0, 230, 118, 0.3);
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.payments-glass-icon-card {
    color: #4da3ff;
    background: rgba(77, 163, 255, 0.12);
    border: 1px solid rgba(77, 163, 255, 0.28);
    box-shadow: 0 0 18px rgba(77, 163, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.payments-glass-icon-qr {
    color: #2ee6c8;
    background: rgba(46, 230, 200, 0.12);
    border: 1px solid rgba(46, 230, 200, 0.28);
    box-shadow: 0 0 18px rgba(46, 230, 200, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.payments-glass-icon-crypto {
    color: #f5a623;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.28);
    box-shadow: 0 0 18px rgba(245, 166, 35, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.payments-glass-item:hover .payments-glass-icon {
    transform: translateY(-2px) scale(1.05);
}
.payments-glass-item:hover .payments-glass-icon-sbp {
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 230, 118, 0.5);
}
.payments-glass-item:hover .payments-glass-icon-card {
    box-shadow: 0 0 24px rgba(77, 163, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(77, 163, 255, 0.45);
}
.payments-glass-item:hover .payments-glass-icon-qr {
    box-shadow: 0 0 24px rgba(46, 230, 200, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(46, 230, 200, 0.45);
}
.payments-glass-item:hover .payments-glass-icon-crypto {
    box-shadow: 0 0 24px rgba(245, 166, 35, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 166, 35, 0.45);
}
.payments-glass-icon-fallback {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
}
@keyframes themedIconPulse {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(1.45); opacity: 0; }
}

.integration-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: start;
}
.integration-list {
    columns: 2;
    gap: 0.5rem 1.5rem;
    margin: 1rem 0 1.25rem;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.9rem;
}
.code-panel {
    background: var(--code-bg);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 1rem;
}
.code-panel-head {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0.85rem;
    background: rgba(0,0,0,0.25);
    font-size: 0.78rem;
    color: var(--muted);
}
.code-panel-body {
    margin: 0;
    padding: 1rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #9dffc8;
    overflow-x: auto;
    min-height: 120px;
}
.code-cursor {
    width: 8px; height: 14px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.integration-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.integration-logo {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: calc(var(--i) * 40ms);
}
[data-reveal-stagger].is-visible .integration-logo {
    opacity: 1;
    transform: translateY(0);
}
.pay-columns-visual { margin-top: 1rem; }

@media (max-width: 1024px) {
    .payments-glass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .integration-layout { grid-template-columns: 1fr; }
    .hero-geo-media { display: none; }
}
@media (max-width: 768px) {
    .payments-glass-grid { grid-template-columns: 1fr; }
    .integration-list { columns: 1; }
    .integration-logos {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
        gap: 0.4rem;
    }
    .integration-logo {
        scroll-snap-align: unset;
        flex-shrink: 1;
    }
    .theme-switch { order: -1; width: 100%; justify-content: center; margin-bottom: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .tx-marquee-track, .logo-strip-track { animation: none; }
    .phone-progress span, .phone-qr-scan, .qr-scan-line, .pay-card-contactless { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .pay-card-3d.is-flipped .pay-card-inner { transform: none; }
    .product-card:hover .product-icon::after,
    .payments-glass-item:hover .payments-glass-icon::after {
        animation: none;
    }
}
body.modal-open { overflow: hidden; }
body.modal-open .fab-open { display: none; }

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none !important; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); }
.modal-panel {
    position: relative;
    width: min(440px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.modal-lead { color: var(--muted); margin: 0 0 1rem; font-size: 0.92rem; }

.product-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.showcase-media img { max-width: 100%; height: auto; border-radius: 12px; }
.product-visual { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.tariffs-wrap { overflow-x: auto; }

.tariffs-table { width: 100%; border-collapse: collapse; }
.tariffs-table th, .tariffs-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
.tariffs-table th { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.tariffs-table td:last-child { color: var(--muted); font-size: 0.88rem; }
.tariffs-rate { color: var(--accent); font-weight: 700; }

.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.help-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem;
    color: var(--text);
    transition: border-color 0.15s ease;
}
.help-card:hover { border-color: rgba(0, 230, 118, 0.35); color: var(--text); }
.help-card p { color: var(--muted); margin: 0.35rem 0 0; font-size: 0.92rem; }

@media (max-width: 1024px) {
    .product-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .help-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .product-grid-4 { grid-template-columns: 1fr; }
    .sticky-cta[hidden] { display: none !important; }
    .fab-open { bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
}

@keyframes brandLogoShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}
@keyframes brandLogoScan {
    0% { top: -50%; opacity: 0; }
    15% { opacity: 1; }
    100% { top: 120%; opacity: 0; }
}
@keyframes brandBrainPulse {
    0% { transform: scale(0.75); opacity: 0.75; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}
@keyframes brandBrainBeat {
    0%, 100% { transform: scale(1); }
    35% { transform: scale(1.06); }
    55% { transform: scale(0.98); }
}
@keyframes brandBrainGlow {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}
@keyframes brandLogoGlowHue {
    0%, 100% {
        filter:
            drop-shadow(0 0 6px rgba(0, 229, 255, 0.55))
            drop-shadow(0 0 14px rgba(0, 114, 255, 0.35));
    }
    33% {
        filter:
            drop-shadow(0 0 8px rgba(0, 217, 192, 0.65))
            drop-shadow(0 0 18px rgba(0, 217, 192, 0.4));
    }
    66% {
        filter:
            drop-shadow(0 0 8px rgba(99, 102, 241, 0.55))
            drop-shadow(0 0 16px rgba(0, 191, 255, 0.45));
    }
}
@keyframes brandLogoAlive {
    0%, 100% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.07) rotate(2.5deg); }
    45% { transform: scale(0.96) rotate(-2deg); }
    70% { transform: scale(1.05) rotate(1.5deg); }
}
@keyframes brandLogoHexWarp {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1, 0.92) rotate(5deg); }
    50% { transform: scale(0.94, 1.08) rotate(-4deg); }
    75% { transform: scale(1.06, 0.96) rotate(3deg); }
}
@keyframes brandLogoSparkSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.18); }
    100% { transform: rotate(360deg) scale(1); }
}
@keyframes brandLogoCorePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.22); opacity: 0.85; }
}
@keyframes brandLogoNodePulse {
    0%, 100% { transform: scale(1); opacity: 0.75; fill: #00D9C0; }
    50% { transform: scale(1.55); opacity: 1; fill: #00E5FF; }
}
@keyframes brandLogoLineFade {
    0%, 100% { opacity: 0.35; stroke: #00D9C0; }
    50% { opacity: 0.9; stroke: #00E5FF; }
}
@keyframes brandLogoHubGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}
@keyframes brandLogoMiniSpark {
    0%, 100% { opacity: 0.65; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.2); }
}
@media (max-width: 1024px) {
    .hero-orbit-pill { font-size: 0.72rem; padding: 0.3rem 0.55rem; }
    .hero-orbit-rub { left: 0; }
    .hero-orbit-usd { right: 0; }
    .hero-orbit-eur { left: 0; }
    .hero-orbit-uah { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-orbit-pill { animation: none; }
    .hero-orbit-pill.is-active { transform: none; }
    .hero-pay-step { transition: none; }
    .hero-success-icon { animation: none; }
    .hero-geo-ring,
    .hero-geo-glow,
    .hero-geo-symbol,
    .hero-geo-scan-beam,
    .hero-geo-success-burst { animation: none !important; }
    .hero-geo-overlay { transition: none; }
    .hero-lottie { transition: none; }
    .brand-logo-ai,
    .brand-logo-scan::after,
    .brand-logo-glyph,
    .brand-logo-glyph-inner,
    .brand-logo-hex,
    .brand-logo-spark,
    .brand-logo-core,
    .brand-logo-neural-lines,
    .brand-logo-node,
    .brand-logo-hub,
    .brand-logo-spark-mini,
    .brand-logo-pulse,
    .brand-logo-brain-glow {
        animation: none !important;
    }
    .banks-flow-dot,
    .banks-flow-hub-ring,
    .banks-flow-hub-core,
    .banks-flow-node-icon {
        animation: none !important;
    }
}
