/* ======================== RESET & TOKENS ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --c-bg-deep: #050d1f;
    --c-bg-card: rgba(255, 255, 255, 0.06);
    --c-bg-card-hover: rgba(255, 255, 255, 0.10);
    --c-border: rgba(255, 255, 255, 0.10);

    --c-brand:   #1e7efb;
    --c-brand-2: #4e9bff;
    --c-tg:      #29a9eb;
    --c-tg-2:    #0088cc;

    --c-text:    #ffffff;
    --c-text-muted: rgba(255, 255, 255, 0.65);
    --c-text-dim:   rgba(255, 255, 255, 0.45);

    --c-success: #22c55e;

    --s-1: .25rem;
    --s-2: .5rem;
    --s-3: .75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-pill: 999px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--c-bg-deep);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(30, 126, 251, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(78, 155, 255, 0.18) 0%, transparent 50%),
        url('assets/фон_темный.jpg.jpg');
    background-size: cover, cover, cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--c-text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,13,31,.55) 0%, rgba(5,13,31,.85) 100%);
    z-index: -1;
    pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ======================== LAYOUT ======================== */
.page {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--s-5) var(--s-4) calc(var(--s-7) + 80px);
    display: flex;
    flex-direction: column;
    gap: var(--s-7);
}

/* ======================== HERO ======================== */
.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--s-5);
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--s-2);
}
.brand__logo {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 4px 16px rgba(30, 126, 251, .45));
    animation: float 4s ease-in-out infinite;
}

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

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-4);
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .3);
    border-radius: var(--r-pill);
    font-size: 13px;
    color: #b6f5c8;
    font-weight: 500;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-success);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
    animation: pulse-dot 1.8s ease-out infinite;
}
@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
    70%  { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero__title {
    font-size: clamp(22px, 6.2vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.hero__title .accent {
    background: linear-gradient(135deg, var(--c-brand-2) 0%, #80c1ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.flags { display: inline-block; margin-left: 4px; white-space: nowrap; }
.nowrap { white-space: nowrap; }

.hero__subtitle {
    font-size: clamp(15px, 4vw, 17px);
    color: var(--c-text-muted);
    max-width: 460px;
}

/* ======================== LIVE RATE ======================== */
.rate {
    width: 100%;
    max-width: 460px;
    padding: 14px 16px 12px;
    background: linear-gradient(180deg, rgba(126, 217, 87, .10) 0%, rgba(30, 126, 251, .10) 100%);
    border: 1px solid rgba(126, 217, 87, .35);
    border-radius: var(--r-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px -14px rgba(126, 217, 87, .35);
}
.rate__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--c-text-muted);
    margin-bottom: 8px;
}
.rate__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7ed957;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.rate__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7ed957;
    box-shadow: 0 0 0 0 rgba(126, 217, 87, .6);
    animation: pulse-dot 1.8s infinite;
}
.rate__updated { font-variant-numeric: tabular-nums; }
.rate__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.rate__pair {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 700;
    color: var(--c-text);
}
.rate__from { font-size: 16px; opacity: .9; }
.rate__eq { color: var(--c-text-muted); font-weight: 400; }
.rate__to { font-size: 22px; }
.rate__to b {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #7ed957 0%, #4dd2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}

/* Loading state — спиннер вместо числа пока курс грузится */
.rate.is-loading .rate__to b {
    display: inline-block;
    width: 60px;
    height: 18px;
    vertical-align: -2px;
    color: transparent;
    background: linear-gradient(
        90deg,
        rgba(126, 217, 87, .12) 0%,
        rgba(126, 217, 87, .35) 50%,
        rgba(126, 217, 87, .12) 100%
    );
    background-size: 200% 100%;
    border-radius: 6px;
    animation: rate-shimmer 1.2s ease-in-out infinite;
    -webkit-text-fill-color: transparent;
}
.rate.is-loading .rate__updated { opacity: 0; }

@keyframes rate-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.rate__lock {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-brand);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(30, 126, 251, .35);
    background: rgba(30, 126, 251, .08);
    transition: background .2s, transform .2s;
    white-space: nowrap;
}
.rate__lock:hover { background: rgba(30, 126, 251, .18); transform: translateY(-1px); }
.rate__hint {
    margin-top: 8px;
    font-size: 11.5px;
    color: var(--c-text-muted);
    text-align: center;
}

.benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    width: 100%;
    max-width: 420px;
}
.benefits__item {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .2s ease, transform .2s ease;
}
.benefits__item:hover { background: var(--c-bg-card-hover); transform: translateX(2px); }
.benefits__icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.benefits__text { font-size: 15px; color: var(--c-text-muted); text-align: left; }
.benefits__text b { color: var(--c-text); font-weight: 700; }

/* CTA */
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    padding: 18px var(--s-5);
    border-radius: var(--r-md);
    font-size: 17px;
    font-weight: 700;
    width: 100%;
    max-width: 420px;
    transition: transform .2s ease, box-shadow .2s ease;
    text-align: center;
}
.cta--main {
    background: linear-gradient(135deg, var(--c-tg) 0%, var(--c-tg-2) 100%);
    color: #fff;
    box-shadow:
        0 10px 30px rgba(41, 169, 235, .35),
        0 0 0 0 rgba(41, 169, 235, .55);
    animation: pulse-cta 2.4s ease-out infinite;
}
.cta--main:hover { transform: translateY(-2px); }
.cta--main:active { transform: translateY(0); }

@keyframes pulse-cta {
    0%   { box-shadow: 0 10px 30px rgba(41,169,235,.35), 0 0 0 0 rgba(41,169,235,.55); }
    70%  { box-shadow: 0 10px 30px rgba(41,169,235,.35), 0 0 0 18px rgba(41,169,235,0); }
    100% { box-shadow: 0 10px 30px rgba(41,169,235,.35), 0 0 0 0 rgba(41,169,235,0); }
}

.cta__icon { width: 22px; height: 22px; flex-shrink: 0; }
.cta__hint {
    font-size: 13px;
    color: var(--c-text-dim);
    margin-top: -4px;
}

/* Trust */
.trust {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--s-3);
    padding: var(--s-4);
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.trust__num {
    font-weight: 800;
    font-size: 16px;
    color: var(--c-text);
    white-space: nowrap;
}
.trust__label {
    font-size: 12px;
    color: var(--c-text-muted);
    white-space: nowrap;
}
.trust__sep {
    width: 1px;
    background: var(--c-border);
}

/* ======================== SERVICES ======================== */
.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-4);
    text-align: center;
}
.services__title {
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--c-text);
    margin: 0;
    white-space: nowrap;
}
.services__title .flags { font-size: .9em; }
.services__sub {
    font-size: 14px;
    color: var(--c-text-muted);
    margin: 0;
    max-width: 360px;
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--s-3);
    width: 100%;
}
/* Mobile order: row1 наличные + снятие; row2 перевод + оплата + qr */
.services__grid .service:nth-child(1) { grid-column: 1 / 4; grid-row: 1; }
.services__grid .service:nth-child(3) { grid-column: 4 / 7; grid-row: 1; }
.services__grid .service:nth-child(2) { grid-column: 1 / 3; grid-row: 2; }
.services__grid .service:nth-child(4) { grid-column: 3 / 5; grid-row: 2; }
.services__grid .service:nth-child(5) {
    grid-column: 5 / 7;
    grid-row: 2;
}
.service {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-4) var(--s-2);
    background: linear-gradient(180deg, rgba(15, 30, 60, .85) 0%, rgba(10, 23, 51, .65) 100%);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service:hover {
    transform: translateY(-3px);
    border-color: rgba(30, 126, 251, .5);
    box-shadow: 0 10px 30px -10px rgba(30, 126, 251, .35);
}
.service__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-brand);
}
.service__icon svg { width: 44px; height: 44px; stroke-width: 1.6; }

/* per-service icon colors — все в зелёном */
.services__grid .service:nth-child(1) .service__icon { color: #22c55e; }
.services__grid .service:nth-child(2) .service__icon { color: #22c55e; }
.services__grid .service:nth-child(3) .service__icon { color: #22c55e; }
.services__grid .service:nth-child(4) .service__icon { color: #22c55e; }
.services__grid .service:nth-child(5) .service__icon { color: #22c55e; }
.service__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--c-brand);
}
.service__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--c-text-muted);
}

/* features pills */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-2);
    width: 100%;
    margin-top: var(--s-2);
}
.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm, 10px);
    font-size: 13px;
    color: var(--c-text);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.feature__ico { font-size: 16px; }

.cta--inline { margin-top: var(--s-2); }

/* ======================== RESERVES ======================== */
.reserves {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-4);
}
.reserves__title {
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 700;
    text-align: center;
    color: var(--c-text);
}
.reserves__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
    width: 100%;
}
.reserve {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-1);
    padding: var(--s-4) var(--s-2);
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .2s ease, border-color .2s ease;
}
.reserve:hover { transform: translateY(-2px); border-color: rgba(30, 126, 251, .4); }
.reserve__icon { font-size: 26px; }
.reserve__amount {
    font-weight: 800;
    font-size: 18px;
    color: var(--c-text);
}
.reserve__currency {
    font-size: 12px;
    color: var(--c-text-muted);
    font-weight: 600;
    letter-spacing: .03em;
}

/* ======================== FINAL CTA ======================== */
.final {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-4);
    text-align: center;
    padding: var(--s-6) var(--s-4);
    background: linear-gradient(135deg, rgba(30, 126, 251, .12) 0%, rgba(78, 155, 255, .06) 100%);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.final__title {
    font-size: clamp(22px, 5.5vw, 28px);
    font-weight: 800;
}
.final__text {
    font-size: 15px;
    color: var(--c-text-muted);
    max-width: 360px;
}

/* ======================== FOOTER ======================== */
.footer {
    text-align: center;
    padding-top: var(--s-4);
    border-top: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}
.footer__copy { font-size: 13px; color: var(--c-text-dim); }
.footer__link {
    font-size: 13px;
    color: var(--c-brand-2);
    font-weight: 600;
    transition: color .2s ease;
}
.footer__link:hover { color: var(--c-text); }

/* ======================== STICKY CTA (mobile) ======================== */
.sticky-cta {
    position: fixed;
    left: var(--s-4);
    right: var(--s-4);
    bottom: var(--s-4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    padding: 14px var(--s-4);
    background: linear-gradient(135deg, var(--c-tg) 0%, var(--c-tg-2) 100%);
    color: #fff;
    border-radius: var(--r-md);
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .4), 0 4px 12px rgba(41, 169, 235, .35);
    transform: translateY(150%);
    transition: transform .35s cubic-bezier(.25, 1, .35, 1);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta:active { transform: translateY(2px) !important; }

/* ======================== REVIEWS / MONITORINGS ======================== */
.reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-4);
    text-align: center;
}
.reviews__title {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 800;
    color: var(--c-text);
    margin: 0;
}
.reviews__sub {
    font-size: 14px;
    color: var(--c-text-muted);
    max-width: 460px;
    margin: 0;
}
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
    width: 100%;
}
.monitoring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    background: linear-gradient(180deg, rgba(15, 30, 60, .85) 0%, rgba(10, 23, 51, .65) 100%);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--c-text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.monitoring:hover {
    transform: translateY(-3px);
    border-color: rgba(30, 126, 251, .5);
    box-shadow: 0 10px 30px -10px rgba(30, 126, 251, .35);
}
.monitoring img {
    width: 100%;
    max-width: 120px;
    height: 40px;
    object-fit: contain;
    filter: brightness(1.05);
}
.monitoring__name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

/* На десктопе sticky-cta скрыт */
@media (min-width: 768px) {
    .sticky-cta { display: none; }
    .page { padding-bottom: var(--s-7); max-width: 880px; }
    .brand__logo { height: 64px; }
    .services__grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .services__grid .service:nth-child(1),
    .services__grid .service:nth-child(2),
    .services__grid .service:nth-child(3),
    .services__grid .service:nth-child(4),
    .services__grid .service:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
    }
    .features { grid-template-columns: repeat(4, 1fr); }
    .reviews__grid { grid-template-columns: repeat(4, 1fr); }
}

/* Очень узкие экраны */
@media (max-width: 360px) {
    .reserve__amount { font-size: 16px; }
    .trust__num { font-size: 14px; }
    .cta { font-size: 16px; padding: 16px var(--s-4); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .brand__logo, .dot, .cta--main { animation: none !important; }
    * { transition: none !important; }
}
