/* Metarea_exchange — Deep Graphite + Cyber Cyan + Glassmorphism */
:root {
    --graphite: #0a0a0c;
    --cobalt-tech: #15151a;
    --cyan: #00e5ff;
    --cyan-dim: #00cce6;
    --platinum: #e5e7eb;
    --font-display: "Clash Display", system-ui, sans-serif;
    --font-sans: "Inter", system-ui, sans-serif;
    --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.app-body {
    margin: 0;
    min-height: 100dvh;
    background: var(--graphite);
    color: var(--platinum);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan); color: var(--graphite); }
.text-cyan { color: var(--cyan); }

#spaceCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--graphite);
}

.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ========== GLASS CARD (СТРОГО ЗА ТЗ) ========== */
.glass-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    font-family: "Inter", var(--font-sans);
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(40px) saturate(1.5);
    -webkit-backdrop-filter: blur(40px) saturate(1.5);
    border: 1px solid rgba(0, 229, 255, 0.08);
    z-index: 0;
    border-radius: inherit;
}

.glass-orb {
    position: absolute;
    top: -40px;
    right: -30px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.15);
    filter: blur(32px);
    z-index: 0;
    pointer-events: none;
}

.glass-orb-2 {
    position: absolute;
    bottom: -20px;
    left: -15px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    filter: blur(32px);
    z-index: 0;
    pointer-events: none;
}

.glass-topline {
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), transparent);
    z-index: 4;
    pointer-events: none;
}

.glass-card__body {
    position: relative;
    z-index: 2;
}

/* ========== HEADER ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem 1rem;
    min-height: var(--header-h);
    padding: 0.65rem clamp(1rem, 3vw, 2.5rem);
    background: rgba(21, 21, 26, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}

.site-header__start,
.site-header__end {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}

.site-header__start { justify-self: start; }
.site-header__end { justify-self: end; justify-content: flex-end; }

.brand-logo--center { justify-self: center; }

.btn-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.15rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--graphite);
    background: linear-gradient(105deg, #00b8d4, var(--cyan) 45%, #7df9ff);
    border-radius: 999px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
    transition: transform 0.2s, box-shadow 0.25s;
}

.btn-header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.55);
}

.site-nav--mini { gap: 1rem; }

.site-header__pill {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--platinum);
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 999px;
    transition: border-color 0.2s, color 0.2s;
}

.site-header__pill:hover,
.site-header__pill.is-active {
    color: var(--cyan);
    border-color: rgba(0, 229, 255, 0.45);
}

/* Раздел контактов тоже участвует в подсветке, но подчёркивание к
   кнопке-пилюле не идёт — выделяем свечением. */
.site-header__pill.is-active {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.22);
}

.site-header__auth {
    display: flex;
    align-items: center;
}

.btn-auth {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--platinum);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.25s;
}

.btn-auth:hover {
    border-color: rgba(0, 229, 255, 0.55);
    background: rgba(0, 229, 255, 0.14);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.btn-auth--block {
    width: 100%;
    margin-top: 0.5rem;
}

.btn-auth--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: #9ca3af;
}

.btn-auth--ghost:hover {
    color: var(--platinum);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.auth-user__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    transition: box-shadow 0.25s, border-color 0.2s;
}

.auth-user__badge:hover {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
    border-color: rgba(0, 229, 255, 0.6);
}

.auth-user__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.brand-logo { text-decoration: none; line-height: 1; }

.brand-logo__word {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-logo__area {
    background: linear-gradient(92deg, #f3f4f6, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-logo__us {
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

.brand-logo__transfer {
    background: linear-gradient(92deg, #e5e7eb, #00e5ff, #e5e7eb);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.site-nav__link {
    position: relative;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: #6b7280;
    transition: color 0.2s, text-shadow 0.2s;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--cyan);
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.45);
}

/* Подчёркивание у раздела, который сейчас на экране: цветом одним
   активный пункт от наведённого не отличить. */
.site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.4rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.45, 1);
}

.site-nav__link.is-active::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
    .site-nav__link::after { transition: none; }
}

/* ========== MAIN PAGE ========== */
.main-page {
    flex: 1;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 4vw, 2.5rem) 5rem;
}

.section { margin-bottom: clamp(4rem, 10vh, 6rem); scroll-margin-top: calc(var(--header-h) + 1rem); }
.section-head { text-align: center; margin-bottom: 2rem; }

.section-head--row {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.section-head__text {
    flex: 1;
    min-width: min(100%, 16rem);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 48px rgba(0, 229, 255, 0.12);
}

.section-lead { margin: 0; font-size: 0.88rem; color: #6b7280; }

/* Hero */
.section--hero { text-align: center; }
.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 3.75rem);
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 2.5rem;
    letter-spacing: -0.03em;
}

.glass-card--calc {
    max-width: none;
    margin: 0;
    text-align: left;
}

.calc-stage {
    position: relative;
    max-width: 28rem;
    margin: 0 auto;
    min-height: 22rem;
}

.calc-panel {
    width: 100%;
    transition: opacity 0.48s ease, transform 0.48s cubic-bezier(0.34, 1.1, 0.64, 1);
}

.calc-panel.is-leaving {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.calc-panel.is-entering {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
}

.calc-panel.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    position: relative;
    z-index: 2;
}

.calc-stage:has(#orderCard:not([hidden])) {
    min-height: 38rem;
}

.glass-card--order .glass-card__body {
    padding: 1.75rem 1.65rem 1.65rem;
}

.order-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1.25rem;
}

.order-head__label {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ca3af;
}

.order-head__id {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

.order-timer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.35rem;
    width: 8.5rem;
    height: 8.5rem;
}

.order-timer__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, 0.12);
    box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.08);
    animation: order-timer-pulse 2.4s ease-in-out infinite;
}

.order-timer__ring::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--cyan);
    border-right-color: rgba(255, 120, 40, 0.7);
    animation: spin 3s linear infinite;
}

.order-timer__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.order-timer__label {
    display: block;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.order-timer__value {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--platinum);
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.order-timer.is-urgent .order-timer__value {
    color: #ff8a4c;
    text-shadow: 0 0 18px rgba(255, 120, 40, 0.45);
}

@keyframes order-timer-pulse {
    0%, 100% { box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.08); }
    50% { box-shadow: inset 0 0 32px rgba(255, 100, 0, 0.12); }
}

.order-summary {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(10, 10, 12, 0.4);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 12px;
}

.order-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.order-summary__key {
    font-size: 0.72rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.order-summary__val {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--platinum);
}

.order-summary__val--cyan {
    color: var(--cyan);
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

.order-payment {
    margin-bottom: 1.35rem;
}

.order-payment__label {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
}

.order-payment__box {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    background: rgba(10, 10, 12, 0.55);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 12px;
    overflow: hidden;
}

.order-payment__value {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
    font-family: ui-monospace, monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--platinum);
    word-break: break-all;
}

.order-payment__copy {
    flex-shrink: 0;
    width: 2.75rem;
    border: none;
    border-left: 1px solid rgba(0, 229, 255, 0.12);
    background: rgba(0, 229, 255, 0.06);
    color: var(--cyan);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.order-payment__copy:hover {
    background: rgba(0, 229, 255, 0.14);
}

.order-payment__hint {
    margin: 0.55rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #9ca3af;
}

.order-stepper {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.order-stepper::before {
    content: "";
    position: absolute;
    left: 0.72rem;
    top: 0.85rem;
    bottom: 0.85rem;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan), rgba(0, 229, 255, 0.15) 60%, rgba(255, 255, 255, 0.06));
    border-radius: 2px;
}

.order-step {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem 0;
    position: relative;
    z-index: 1;
}

.order-step__dot {
    flex-shrink: 0;
    width: 1.45rem;
    height: 1.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(10, 10, 14, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-step.is-done .order-step__dot {
    border-color: rgba(0, 229, 255, 0.45);
    background: rgba(0, 229, 255, 0.12);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.order-step.is-active .order-step__dot {
    border-color: rgba(0, 229, 255, 0.65);
    background: rgba(0, 229, 255, 0.18);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}

.order-step.is-active .order-step__dot .live-dot {
    display: block;
}

.order-step__dot .live-dot {
    display: none;
}

.order-step__text {
    font-size: 0.82rem;
    color: #6b7280;
    transition: color 0.25s;
}

.order-step.is-done .order-step__text,
.order-step.is-active .order-step__text {
    color: var(--platinum);
    font-weight: 500;
}

.order-step.is-active .order-step__text {
    color: var(--cyan);
}

.btn-order-cancel {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-order-cancel:hover {
    color: var(--platinum);
    border-color: rgba(255, 120, 80, 0.45);
    background: rgba(255, 80, 40, 0.06);
}

.glass-card--calc .glass-card__body {
    padding: 2rem 1.75rem 1.75rem;
}

/* Calculator */
.calc-label {
    display: block;
    margin-bottom: 0.45rem;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(229, 231, 235, 0.45);
}

.calc-field {
    display: flex;
    align-items: stretch;
    background: rgba(10, 10, 12, 0.45);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.calc-field:focus-within {
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.1);
}

.calc-input {
    flex: 1;
    min-width: 0;
    padding: 1rem;
    font-family: var(--font-sans);
    font-size: clamp(1.45rem, 4vw, 1.75rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--platinum);
    background: transparent;
    border: none;
    outline: none;
}

.calc-input--accent {
    color: var(--cyan);
    text-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
}

.calc-input.is-counting {
    text-shadow: 0 0 36px rgba(0, 229, 255, 0.65);
}

.calc-select {
    flex-shrink: 0;
    min-width: 5.25rem;
    padding: 0 2rem 0 0.85rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--platinum);
    background: rgba(21, 21, 26, 0.6);
    border: none;
    border-left: 1px solid rgba(0, 229, 255, 0.1);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath stroke='%2300E5FF' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.calc-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0.75rem auto;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.35s, box-shadow 0.3s;
}

.calc-swap:hover {
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.35);
    transform: scale(1.06);
}

.calc-swap.is-spinning { transform: rotate(180deg) scale(1.06); }

.calc-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
    margin: 1.25rem 0 0.5rem;
    padding: 0.75rem 0.85rem;
    background: rgba(10, 10, 12, 0.35);
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 10px;
}

.calc-rate {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(229, 231, 235, 0.55);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calc-reserve {
    margin: 0;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    color: var(--cyan);
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.calc-trust {
    margin: 0 0 1.25rem;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: #6b7280;
    text-align: center;
}

.btn-exchange {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1.15rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--graphite);
    background: var(--cyan);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.35s, transform 0.15s;
}

.btn-exchange:hover:not(:disabled) {
    background: var(--cyan-dim);
    box-shadow:
        0 0 24px rgba(0, 229, 255, 0.95),
        0 0 56px rgba(0, 229, 255, 0.55),
        0 0 100px rgba(0, 229, 255, 0.25);
}

.btn-exchange:disabled { cursor: wait; opacity: 0.9; }

.btn-exchange__spinner {
    display: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(10, 10, 12, 0.25);
    border-top-color: var(--graphite);
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
}

.btn-exchange.is-loading .btn-exchange__spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Live dot */
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.9);
    animation: livePulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

.live-dot--sm { width: 6px; height: 6px; }

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Analytics — 3 columns */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .analytics-grid { grid-template-columns: repeat(3, 1fr); }
}

.analytics-card .glass-card__body {
    padding: 1.5rem 1.35rem 1.35rem;
    min-height: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.analytics-card__pair {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(229, 231, 235, 0.5);
}

.analytics-card__amount {
    margin: 0.75rem 0;
    font-family: var(--font-sans);
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--platinum);
    line-height: 1.2;
}

.analytics-card__live {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(229, 231, 235, 0.4);
}

/* Reserves — 4 columns */
.reserves-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 540px) { .reserves-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reserves-grid { grid-template-columns: repeat(4, 1fr); } }

.reserve-card__inner {
    padding: 1.35rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 7.5rem;
}

.reserve-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.45), rgba(21, 21, 26, 0.9));
    border: 1px solid rgba(0, 229, 255, 0.25);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
}

.reserve-icon--usdt {
    background: linear-gradient(135deg, #26a17b, #15151a);
}

.reserve-icon--btc {
    background: linear-gradient(135deg, #f7931a, #15151a);
}

.reserve-icon--bank {
    background: linear-gradient(135deg, #21a038, #15151a);
}

.reserve-card__name {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(229, 231, 235, 0.45);
}

.reserve-card__sum {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--platinum);
}

/* Operations */
.ops-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 22rem;
    overflow: hidden;
    mask-image: linear-gradient(180deg, transparent, #000 5%, #000 90%, transparent);
}

.glass-card--ops { border-radius: 16px; }

.glass-card--ops .glass-card__body {
    padding: 1rem 1.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.82rem;
    color: #9ca3af;
}

.glass-card--ops.is-enter {
    animation: opsEnter 0.65s cubic-bezier(0.25, 1, 0.45, 1) forwards;
}

.glass-card--ops.is-leave {
    animation: opsLeave 0.55s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes opsEnter {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(0.96);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes opsLeave {
    to {
        opacity: 0;
        transform: translateY(28px) scale(0.94);
        filter: blur(8px);
    }
}

.ops-time {
    font-variant-numeric: tabular-nums;
    font-size: 0.72rem;
    color: #6b7280;
}

.ops-wallet {
    font-family: ui-monospace, monospace;
    color: var(--cyan);
    font-size: 0.78rem;
}

.ops-text {
    flex: 1;
    min-width: 12rem;
    color: var(--platinum);
}

.ops-text strong { color: var(--cyan); font-weight: 600; }

/* Scroll reveal */
.reveal-up {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.85s cubic-bezier(0.25, 1, 0.45, 1), transform 0.85s cubic-bezier(0.25, 1, 0.45, 1);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up--d1 { transition-delay: 0.08s; }
.reveal-up--d2 { transition-delay: 0.16s; }
.reveal-up--d3 { transition-delay: 0.24s; }
.reveal-up--d4 { transition-delay: 0.32s; }

/* Locations · globe + tabs */
.locations-block__inner {
    padding: clamp(1.5rem, 4vw, 2.25rem);
}

.locations-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 900px) {
    .locations-layout {
        grid-template-columns: minmax(260px, 340px) 1fr;
        gap: 2.5rem;
    }
}

.locations-globe-wrap {
    position: relative;
    width: min(100%, 340px);
    margin: 0 auto;
}

.globe-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    cursor: grab;
    touch-action: none;
    background: radial-gradient(circle at 35% 30%, rgba(0, 229, 255, 0.06), transparent 55%);
}

.globe-canvas.is-dragging {
    cursor: grabbing;
}

.locations-globe__label {
    margin: 1rem 0 0;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.locations-empty {
    margin: 0;
    padding: 1.25rem 1.35rem;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #9ca3af;
    background: rgba(10, 10, 12, 0.45);
    border: 1px dashed rgba(0, 229, 255, 0.2);
    border-radius: 14px;
}

.locations-empty code {
    font-size: 0.78rem;
    color: var(--cyan);
}

.locations-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.locations-side:has(.location-picker.is-expanded) {
    z-index: 10;
}

.locations-block:has(.location-country.is-open) {
    position: relative;
    z-index: 8;
    overflow: visible;
}

.locations-block.glass-card:has(.location-country.is-open) {
    overflow: visible;
}

/* Floating orbit — поверх ВСЬОГО, не обрізається overflow */
.location-orbit-root {
    position: fixed;
    inset: 0;
    z-index: 200000;
    pointer-events: none;
    overflow: visible;
}

.location-country__orbit.is-floating {
    position: fixed;
    inset: 0;
    overflow: visible;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

.location-country__orbit.is-floating .location-city-btn {
    position: fixed;
    left: var(--tx);
    top: var(--ty);
    pointer-events: auto;
    z-index: 2;
}

.location-country__orbit.is-floating .location-country__ring,
.location-country__orbit.is-floating .location-country__glow {
    position: fixed;
    z-index: 1;
}

.location-country__orbit.is-floating .location-city-btn {
    opacity: 1;
    font-size: 0.72rem;
    padding: 0.45rem 0.78rem;
    transform: translate(var(--anchor, -50%), -50%) scale(1.05);
    transition-delay: var(--delay);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 229, 255, 0.18);
}

.location-country__orbit.is-floating .location-country__ring {
    opacity: 1;
    animation: orbit-ring-spin 28s linear infinite;
}

.location-country__orbit.is-floating .location-country__glow {
    opacity: 1;
    animation: orbit-glow-pulse 3.2s ease-in-out infinite;
}

/* Country blocks + contour city orbit */
.location-picker {
    position: relative;
    max-height: min(32rem, 58vh);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.35rem 0.85rem 0.35rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 120, 40, 0.95) transparent;
}

/* Ember scrollbar — тільки оранжева лінія, без доріжки */
.location-picker--ember::-webkit-scrollbar {
    width: 4px;
}

.location-picker--ember::-webkit-scrollbar-track {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
}

.location-picker--ember::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.location-picker--ember::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: none;
    background: linear-gradient(
        180deg,
        rgba(255, 180, 80, 0.95) 0%,
        #ff6a1a 45%,
        #ff4500 100%
    );
    box-shadow:
        0 0 12px rgba(255, 100, 0, 0.75),
        0 0 6px rgba(255, 140, 0, 0.45);
    min-height: 48px;
}

.location-picker--ember::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #ffc56b 0%,
        #ff8020 50%,
        #ff5510 100%
    );
    box-shadow:
        0 0 18px rgba(255, 120, 0, 0.9),
        0 0 10px rgba(255, 160, 0, 0.55);
}

.location-picker--ember::-webkit-scrollbar-thumb:active {
    box-shadow:
        0 0 24px rgba(255, 140, 0, 1),
        0 0 14px rgba(255, 180, 0, 0.65);
}

.location-picker__embers {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    pointer-events: none;
    z-index: 200010;
    opacity: 0.95;
}

.location-picker__stage {
    position: relative;
}

.location-picker__overlay {
    display: none;
}

.location-picker.is-expanded {
    overflow-y: auto;
}

.location-picker__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 1100px) {
    .location-picker__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.location-picker__backdrop {
    position: absolute;
    inset: 0;
    z-index: 15;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.12);
}

/* Затемнённые страны должны лежать НИЖЕ подложки (z-index 15), иначе клик
   сквозь блюр попадает по стране и выбирает её вместо сброса выбора.
   pointer-events отключены, чтобы клик гарантированно ушёл в подложку. */
.location-picker__grid.has-open .location-country:not(.is-open) {
    position: relative;
    z-index: 10;
    pointer-events: none;
    opacity: 0.35;
    filter: blur(1.5px);
    transform: scale(0.94) translateY(4px);
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.1, 0.64, 1);
}

.location-picker__grid.has-open .location-country:not(.is-open) .location-country__btn {
    pointer-events: auto;
    cursor: pointer;
}

.location-country {
    position: relative;
    transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.location-picker__grid.has-open {
    overflow: visible;
}

.location-country.is-open {
    position: relative;
    z-index: 45;
    overflow: visible;
}

.location-country.is-open .location-country__btn {
    position: relative;
    z-index: 46;
}

.location-country__btn {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 4.25rem;
    padding: 0.65rem 0.85rem;
    text-align: left;
    font-family: inherit;
    color: var(--platinum);
    background: rgba(10, 10, 12, 0.55);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.35s;
}

.location-country__btn:hover {
    border-color: rgba(0, 229, 255, 0.28);
    background: rgba(0, 229, 255, 0.06);
}

.location-country.is-open .location-country__btn {
    border-color: rgba(0, 229, 255, 0.55);
    background: rgba(10, 10, 14, 0.97);
    box-shadow: 0 0 36px rgba(0, 229, 255, 0.22);
}

.location-country.is-open .location-country__orbit:not(.is-floating) {
    opacity: 0;
    pointer-events: none;
}

.location-country__flag {
    flex-shrink: 0;
    font-size: 1.35rem;
    line-height: 1;
}

.location-country__name {
    flex: 1;
    min-width: 0;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.25;
}

.location-country__count {
    flex-shrink: 0;
    min-width: 1.35rem;
    padding: 0.15rem 0.4rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 999px;
}

.location-country__orbit {
    position: absolute;
    inset: 0;
    overflow: visible;
    pointer-events: none;
    opacity: 0;
    z-index: 6;
    transition: opacity 0.35s ease;
}

.location-country.is-open .location-country__orbit {
    opacity: 1;
    pointer-events: auto;
}

.location-country__ring {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(0, 229, 255, 0.16);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease 0.08s;
}

.location-country.is-open .location-country__ring,
.location-country__orbit.is-floating .location-country__ring {
    opacity: 1;
    animation: orbit-ring-spin 28s linear infinite;
}

.location-country__glow {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.location-country.is-open .location-country__glow,
.location-country__orbit.is-floating .location-country__glow {
    opacity: 1;
    animation: orbit-glow-pulse 3.2s ease-in-out infinite;
}

@keyframes orbit-ring-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbit-glow-pulse {
    0%, 100% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.97); }
    50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.03); }
}

.location-city-btn {
    position: absolute;
    left: var(--ix, 50%);
    top: var(--iy, 50%);
    z-index: 7;
    padding: 0.38rem 0.65rem;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    color: var(--platinum);
    background: rgba(10, 10, 14, 0.94);
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: 999px;
    cursor: pointer;
    opacity: 0;
    transform: translate(var(--anchor, -50%), -50%) scale(0.15);
    transition:
        left 0.55s cubic-bezier(0.34, 1.35, 0.64, 1),
        top 0.55s cubic-bezier(0.34, 1.35, 0.64, 1),
        opacity 0.35s ease,
        transform 0.45s cubic-bezier(0.34, 1.35, 0.64, 1),
        border-color 0.25s,
        background 0.25s,
        box-shadow 0.25s;
    transition-delay: 0s;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.location-country.is-open .location-city-btn,
.location-country__orbit.is-floating .location-city-btn {
    left: var(--tx);
    top: var(--ty);
    opacity: 1;
    font-size: 0.72rem;
    padding: 0.45rem 0.78rem;
    transform: translate(var(--anchor, -50%), -50%) scale(1.05);
    transition-delay: var(--delay);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 229, 255, 0.12);
}

.location-city-btn:hover {
    border-color: rgba(0, 229, 255, 0.6);
    background: rgba(0, 229, 255, 0.14);
    transform: translate(var(--anchor, -50%), -50%) scale(1.07);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.location-city-btn.is-active {
    color: #fff;
    border-color: rgba(0, 229, 255, 0.8);
    background: rgba(0, 229, 255, 0.24);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.4);
}

.locations-globe-wrap.is-zoomed .globe-canvas {
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.18);
}

@media (max-width: 899px) {
    .location-picker {
        max-height: min(24rem, 42vh);
    }
}

@media (prefers-reduced-motion: reduce) {
    .location-country__ring,
    .location-country__glow {
        animation: none;
    }

    .location-city-btn,
    .location-country.is-open .location-city-btn {
        transition-duration: 0.01ms;
    }

    .location-picker__embers {
        display: none;
    }

    .location-picker--ember::-webkit-scrollbar-thumb {
        box-shadow: none;
    }
}

/* Content grid (news, reviews) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .content-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card .glass-card__body,
.news-card .glass-card__body {
    padding: 1.35rem 1.25rem 1.25rem;
    min-height: 11rem;
    display: flex;
    flex-direction: column;
}

.review-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.review-stars {
    color: var(--cyan);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.review-date,
.news-date {
    font-size: 0.68rem;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}

.review-author {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--platinum);
}

.review-text {
    margin: 0;
    flex: 1;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #9ca3af;
}

.news-card__title {
    margin: 0.5rem 0 0.65rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--platinum);
}

.news-card__text {
    margin: 0;
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #9ca3af;
}

.news-card__link {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--cyan);
    transition: text-shadow 0.2s;
}

.news-card__link:hover {
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.6);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 40rem;
    margin: 0 auto;
}

.faq-item { border-radius: 16px; }

.faq-item__q {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.25rem;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--platinum);
    position: relative;
    padding-right: 2.5rem;
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__q::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyan);
    font-size: 1.1rem;
    font-weight: 400;
    transition: transform 0.25s;
}

.faq-item[open] .faq-item__q::after {
    content: "−";
}

.faq-item__a {
    padding: 0 1.25rem 1.15rem;
}

.faq-item__a p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #9ca3af;
}

.faq-item[open] .faq-item__q {
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.btn-review {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--graphite);
    background: linear-gradient(105deg, #00b8d4, var(--cyan) 45%, #7df9ff);
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.25s;
}

.btn-review:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.5);
}

.review-order {
    margin: 0 0 0.65rem;
    font-size: 0.68rem;
    color: #6b7280;
}

.review-order code {
    color: var(--cyan);
}

.faq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.faq-filter {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    background: rgba(10, 10, 14, 0.55);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.25s;
}

.faq-filter:hover {
    color: var(--platinum);
    border-color: rgba(0, 229, 255, 0.35);
}

.faq-filter.is-active {
    color: var(--graphite);
    background: linear-gradient(105deg, #00b8d4, var(--cyan));
    border-color: transparent;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}

.faq-item__cat {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    opacity: 0.75;
}

.faq-empty {
    margin: 0;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.84rem;
    color: #6b7280;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 300000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.modal[hidden] { display: none; }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    border-radius: 20px;
    animation: modal-in 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.modal__dialog--account { width: min(100%, 46rem); }

@keyframes modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__body { padding: 1.35rem 1.35rem 1.5rem; }

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.modal__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--platinum);
}

.modal__close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
}

.modal__close:hover {
    color: var(--platinum);
    border-color: rgba(0, 229, 255, 0.35);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-field__label {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
}

.form-field__input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--platinum);
    background: rgba(10, 10, 14, 0.65);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 12px;
    outline: none;
}

.form-field__input:focus {
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}

.form-field__textarea {
    resize: vertical;
    min-height: 5.5rem;
}

.btn-exchange--sm {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    font-size: 0.72rem;
}

.account-view__lead {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--platinum);
}

.account-view__text {
    margin: 0 0 1rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #9ca3af;
}

.account-view__meta {
    margin: 0 0 1rem;
    font-size: 0.84rem;
    color: #9ca3af;
}

.account-view__meta strong {
    color: var(--cyan);
    font-family: var(--font-display);
}

.account-stats {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.account-stats li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
    color: #9ca3af;
    background: rgba(10, 10, 14, 0.45);
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 12px;
}

.account-stats strong {
    color: var(--platinum);
    font-family: var(--font-display);
}

/* Footer */
.site-footer {
    padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    border-top: 1px solid rgba(0, 229, 255, 0.08);
    background: rgba(10, 10, 12, 0.5);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto 2rem;
}

@media (min-width: 640px) {
    .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

.site-footer__heading {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
}

.site-footer__link {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__link:hover { color: var(--platinum); }

.site-footer__link--accent { color: var(--cyan); }

.site-footer__hours {
    margin: 0.75rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    max-width: 72rem;
    margin: 0 auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 229, 255, 0.06);
    font-size: 0.68rem;
    color: #4b5563;
}

.site-footer__brand {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--platinum);
}

.site-footer__copy {
    letter-spacing: 0.06em;
}

/* Back to top */
.back-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--graphite);
    background: linear-gradient(145deg, var(--cyan), #00b8d4);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.4);
    transition: opacity 0.3s, transform 0.2s, box-shadow 0.25s;
}

.back-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 32px rgba(0, 229, 255, 0.55);
}

.back-top[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .brand-logo--center {
        grid-column: 1 / -1;
        justify-self: center;
        order: -1;
    }

    .site-nav--mini { display: none; }

    .site-header__end .site-nav a:nth-child(n+3) { display: none; }
}

@media (max-width: 520px) {
    .site-header__end .site-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-up.is-visible { opacity: 1; transform: none; transition: none; }
    .live-dot { animation: none; }
    .brand-logo__transfer { animation: none; }
    .globe-canvas { cursor: default; }
    .location-panel { animation: none; }
    .glass-card--ops.is-enter,
    .glass-card--ops.is-leave { animation: none; }
}

/* Поля заявки в калькуляторе */
.calc-details {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 0.25rem;
}

.calc-details .form-field { margin: 0; }

.calc-error,
.order-error,
.account-error {
    margin: 0.75rem 0 0;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fca5a5;
    font-size: 0.82rem;
}

/* История заявок в кабинете */
.account-orders {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    max-height: 15rem;
    overflow-y: auto;
}

.account-order {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.8rem;
}

.account-order code { color: var(--cyan); font-family: ui-monospace, monospace; }

.account-order__status {
    margin-left: auto;
    color: #9ca3af;
    font-size: 0.74rem;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .account-order__status { margin-left: 0; }
}

/* Курсор-палец, когда под мышью город на глобусе */
.globe-canvas.is-hovering-marker { cursor: pointer; }

/* Орбита городов скрывается, когда её страна ушла за пределы видимой
   части списка: иначе fixed-позиционирование выносит её поверх шапки. */
.location-country__orbit.is-floating.is-out-of-view {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

/* ========== ЗНАЧКИ ВАЛЮТ ========== */
/* Символ и цвет приходят с сервера, поэтому новая валюта получает значок
   автоматически. Рисуем средствами CSS: внешние картинки запрещены CSP. */
.currency-badge {
    --badge-color: var(--cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 60%),
        var(--badge-color);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.22),
        0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Код из трёх-четырёх букв вместо символа — уменьшаем, чтобы влез. */
.currency-badge--text { font-size: 0.66rem; letter-spacing: 0.02em; }
.currency-badge--sm { width: 1.6rem; height: 1.6rem; font-size: 0.8rem; }
.currency-badge--sm.currency-badge--text { font-size: 0.46rem; }

/* ========== ПОДСВЕТКА КАРТОЧЕК ПРИ НАВЕДЕНИИ ========== */
.glass-card--hoverable {
    transition:
        transform 0.28s cubic-bezier(0.25, 1, 0.45, 1),
        box-shadow 0.28s ease;
}

.glass-card--hoverable::before { transition: border-color 0.28s ease, background 0.28s ease; }

.glass-card--hoverable:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 22px rgba(0, 229, 255, 0.12);
}

.glass-card--hoverable:hover::before {
    border-color: rgba(0, 229, 255, 0.28);
    background: rgba(30, 41, 59, 0.42);
}

/* Блик усиливается вместе с подъёмом карточки. */
.glass-card--hoverable:hover .glass-orb { background: rgba(0, 229, 255, 0.24); }
.glass-card--hoverable:hover .glass-topline {
    left: 8%;
    right: 8%;
    transition: left 0.35s ease, right 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
    .glass-card--hoverable,
    .glass-card--hoverable:hover { transform: none; transition: box-shadow 0.2s ease; }
}

/* ========== ОБМЕН: ВЫБОР ВАЛЮТЫ И СУММА ========== */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0); clip-path: inset(50%);
    overflow: hidden; white-space: nowrap;
}

/* Одна колонка: выбор валюты, под ним сумма, затем то же для второй
   стороны. В две колонки длинные названия валют не помещались и
   обрезались многоточием. */
.exchange-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.exchange-side { min-width: 0; }

.exchange-side__label {
    margin: 0 0 0.55rem;
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b7280;
}

/* --- Кнопка выбора валюты --- */
.currency-picker { position: relative; }

.currency-picker__trigger {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: rgba(10, 10, 14, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    color: var(--platinum);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.25s;
}

.currency-picker__trigger:hover,
.currency-picker__trigger:focus-visible {
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.06);
    outline: none;
}

.currency-picker.is-open .currency-picker__trigger {
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.currency-picker__text { min-width: 0; flex: 1; }

.currency-picker__name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.currency-picker__code {
    display: block;
    font-size: 0.7rem;
    color: #6b7280;
    letter-spacing: 0.08em;
}

.currency-picker__chevron {
    flex: 0 0 auto;
    color: #6b7280;
    transition: transform 0.25s ease, color 0.2s;
}

.currency-picker.is-open .currency-picker__chevron {
    transform: rotate(180deg);
    color: var(--cyan);
}

/* --- Выпадающий список --- */
.currency-picker__menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    z-index: 60;
    padding: 0.4rem;
    background: rgba(16, 17, 22, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6);
    max-height: 17rem;
    overflow-y: auto;
    transform-origin: top center;
    animation: pickerIn 0.2s cubic-bezier(0.25, 1, 0.45, 1);
}

@keyframes pickerIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.currency-picker__option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.6rem;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--platinum);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.currency-picker__option:hover,
.currency-picker__option:focus-visible {
    background: rgba(0, 229, 255, 0.1);
    transform: translateX(2px);
    outline: none;
}

.currency-picker__option.is-selected { background: rgba(0, 229, 255, 0.16); }
.currency-picker__option[disabled] { opacity: 0.35; cursor: not-allowed; }

/* --- Поле суммы --- */
.exchange-amount {
    width: 100%;
    margin-top: 0.55rem;
    padding: 0.75rem 0.9rem;
    background: rgba(10, 10, 14, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    color: var(--platinum);
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.exchange-amount:focus {
    outline: none;
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.exchange-amount--accent { color: var(--cyan); }

/* Подсветка суммы в момент пересчёта */
.exchange-amount.is-updating {
    animation: amountPulse 0.45s ease;
}

@keyframes amountPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.35); }
    100% { box-shadow: 0 0 0 12px rgba(0, 229, 255, 0); }
}

/* --- Кнопка смены направления --- */
/* Кнопка стоит между двумя блоками, стрелки развёрнуты вертикально. */
.exchange-swap {
    justify-self: center;
    margin: 0.15rem 0;
    width: 2.6rem;
    height: 2.6rem;
    transform: rotate(90deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50%;
    color: var(--cyan);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.45, 1), background 0.2s, box-shadow 0.25s;
}

.exchange-swap:hover {
    background: rgba(0, 229, 255, 0.16);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.exchange-swap.is-spinning { transform: rotate(270deg); }

/* Картинка валюты вместо символа-заглушки */
.currency-badge__img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.currency-badge--image {
    background: rgba(255, 255, 255, 0.06);
    padding: 0;
    overflow: hidden;
}

/* ========== ШАПКА БЕЗ СЕРОЙ ПЛАШКИ ========== */
/* Вверху страницы шапка прозрачная и сливается с фоном; подложка
   появляется только при прокрутке, когда под ней проезжает контент. */
.site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-stuck {
    background: rgba(10, 10, 14, 0.72);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: rgba(0, 229, 255, 0.12);
}

/* ========== КОНТАКТЫ ========== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.contact-card__label {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7280;
}

.contact-card__value {
    margin: 0;
    font-size: 0.95rem;
    color: var(--platinum);
    word-break: break-word;
}

.contact-card__value a { color: var(--cyan); text-decoration: none; }
.contact-card__value a:hover { text-decoration: underline; }

.contact-card .glass-card__body { padding: 1.1rem 1.25rem; }

/* ========== ЛИЧНЫЙ КАБИНЕТ ========== */
.cabinet {
    display: grid;
    grid-template-columns: 12rem 1fr;
    gap: 1.25rem;
    align-items: start;
}

.cabinet__nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.cabinet__id {
    margin: 0 0 0.6rem;
    font-size: 0.72rem;
    color: #6b7280;
    word-break: break-all;
}

.cabinet__id strong { color: var(--cyan); font-family: ui-monospace, monospace; }

.cabinet__tab {
    padding: 0.5rem 0.7rem;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #9ca3af;
    font: inherit;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cabinet__tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--platinum);
    transform: translateX(2px);
}

.cabinet__tab.is-active {
    background: rgba(0, 229, 255, 0.12);
    color: var(--cyan);
}

.cabinet__tab--exit { margin-top: 0.5rem; color: #6b7280; }
.cabinet__tab--exit:hover { color: #f87171; background: rgba(248, 113, 113, 0.1); }

.cabinet__panel { display: none; }
.cabinet__panel.is-active { display: block; animation: cabinetIn 0.25s ease; }

@keyframes cabinetIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.cabinet__hint {
    margin: 0 0 0.9rem;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
}

.cabinet__form { margin-top: 1rem; }
.cabinet__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

/* Сохранённые реквизиты */
.saved-account {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.45rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.82rem;
}

.saved-account.is-default { border-color: rgba(0, 229, 255, 0.35); }

.saved-account__value {
    font-family: ui-monospace, monospace;
    color: var(--platinum);
}

.saved-account__label { color: #9ca3af; }

.saved-account__actions { margin-left: auto; display: flex; gap: 0.35rem; }

.saved-account__btn {
    padding: 0.25rem 0.55rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    color: #9ca3af;
    font: inherit;
    font-size: 0.72rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.saved-account__btn:hover { color: var(--cyan); border-color: rgba(0, 229, 255, 0.45); }
.saved-account__btn--danger:hover { color: #f87171; border-color: rgba(248, 113, 113, 0.5); }

.saved-account__star { color: var(--cyan); font-size: 0.7rem; }

/* Кнопка повтора обмена в истории */
.account-order__repeat {
    padding: 0.22rem 0.55rem;
    background: transparent;
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 7px;
    color: var(--cyan);
    font: inherit;
    font-size: 0.72rem;
    cursor: pointer;
}

.account-order__repeat:hover { background: rgba(0, 229, 255, 0.1); }

/* Выбор сохранённых реквизитов в калькуляторе */
.saved-picker {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.saved-picker__chip {
    padding: 0.3rem 0.6rem;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 999px;
    color: var(--platinum);
    font: inherit;
    font-size: 0.74rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.saved-picker__chip:hover { background: rgba(0, 229, 255, 0.16); border-color: rgba(0, 229, 255, 0.5); }

@media (max-width: 640px) {
    .cabinet { grid-template-columns: 1fr; }
    .cabinet__nav {
        flex-direction: row;
        flex-wrap: wrap;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: 0 0 0.7rem;
    }
    .cabinet__id { width: 100%; }
    .cabinet__row { grid-template-columns: 1fr; }
}

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */
/* На узких экранах обычная навигация не помещалась и пряталась целиком —
   разделы сайта становились недостижимы с телефона. */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: 12px;
    cursor: pointer;
}

.burger__line {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--cyan);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Раскрытое меню — крестик из тех же трёх полосок. */
.burger.is-open .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open .burger__line:nth-child(2) { opacity: 0; }
.burger.is-open .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0.5rem -0.4rem -0.2rem;
    padding: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: mobileMenuIn 0.22s cubic-bezier(0.25, 1, 0.45, 1);
}

@keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    /* Не меньше 44px: попасть пальцем в 30px строку почти невозможно. */
    min-height: 46px;
    padding: 0 0.9rem;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--platinum);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}

.mobile-menu__link:active { background: rgba(255, 255, 255, 0.06); }

.mobile-menu__link.is-active {
    background: rgba(0, 229, 255, 0.12);
    color: var(--cyan);
}

.mobile-menu__link--action {
    margin-top: 0.3rem;
    justify-content: center;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--cyan);
}

@media (max-width: 900px) {
    /* Шапка в одну строку: два ряда съедали 129px из 812 на телефоне,
       и это при том, что она липкая. */
    .site-header {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto;
        gap: 0.5rem;
        padding: 0.5rem 0.9rem;
    }

    .brand-logo--center {
        grid-column: auto;
        justify-self: start;
        order: 0;
    }

    .brand-logo__word { font-size: 1.15rem; letter-spacing: 0.06em; }

    .site-header__start { display: none; }
    .site-header__end { gap: 0.5rem; }
    .site-header__pill { display: none; }

    .burger { display: flex; }
    .mobile-menu:not([hidden]) { display: flex; }

    /* Кнопка входа в шапке дублируется в меню — на узком экране лишняя. */
    .site-header__auth .auth-guest { display: none; }
}

@media (max-width: 520px) {
    /* Отступы карточек: 28px с каждой стороны на экране 375px — это
       56px, потерянных впустую. */
    .glass-card--calc .glass-card__body { padding: 1.35rem 1.1rem 1.2rem; }
    .locations-block__inner { padding: 1.1rem; }
    .section-title { font-size: 1.5rem; }

    /* Диалоги не должны вылезать за экран вместе с содержимым. */
    .modal__dialog {
        max-height: calc(100dvh - 2rem);
        overflow-y: auto;
    }
}

/* Кольцевая направляющая осталась от раскладки по кругу. Города теперь
   выкладываются дугой сбоку, и замкнутый эллипс вокруг кнопки только мешает. */
.location-country__orbit.is-floating .location-country__ring { display: none; }
