/* Пульсирующая точка для .cta-badge */
.cta-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
    animation: ctaDotPulse 1.5s infinite cubic-bezier(.4,0,.6,1);
}
@keyframes ctaDotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255,255,255,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0);
    }
}
html[data-theme='dark'] .cta-dot {
    background: #3d6dff;
    box-shadow: 0 0 0 0 rgba(61,109,255,0.7);
}
@media (max-width: 900px) {
    .cta-dot {
        width: 11px;
        height: 11px;
        margin-right: 6px;
    }
}
/* =========================
     CTA Trading & Community Block
     ========================= */
.cta-trading-community {
    margin: 30px auto 60px auto;
    padding: 0 16px;
    max-width: 1400px;
}
.cta-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    background: linear-gradient(90deg, #2ec6ff 0%, #8b78ff 100%);
    border-radius: 32px;
    box-shadow: 0 8px 40px rgba(26,51,255,0.10);
    padding: 48px 40px;
    gap: 32px;
}
.cta-left {
    flex: 1 1 380px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cta-badge {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cta-title {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.1;
}
.cta-desc {
    color: #eaf6ff;
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 520px;
}
.cta-actions {
    display: flex;
    gap: 22px;
    margin-bottom: 10px;
}
.cta-launch {
    background: #fff;
    color: #1a33ff;
    font-weight: 700;
    border-radius: 32px;
    padding: 16px 32px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 12px rgba(26,51,255,0.10);
    transition: background .2s, color .2s;
}
.cta-launch:hover {
    background: #eaf0ff;
}
.cta-docs {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 700;
    border-radius: 32px;
    padding: 16px 32px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .2s, color .2s;
}
.cta-docs:hover {
    background: rgba(255,255,255,0.10);
}
.cta-right {
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cta-community-box {
    background: rgba(255,255,255,0.13);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 2px 16px rgba(26,51,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
    max-width: 420px;
}
.cta-community-title {
    color: #fff;
    font-size: 26px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 8px;
}
.cta-community-desc {
    color: #eaf6ff;
    font-size: 16px;
    margin-bottom: 28px;
    text-align: center;
}
.cta-comm-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    border-radius: 16px;
    padding: 12px 18px;
    text-decoration: none;
    transition: background .2s, color .2s;
    justify-content: center;
}
.cta-comm-link:hover {
    transition: all .2s ease-in-out;
    background: #fff;
    color: #1a33ff;
}
@media (max-width: 900px) {
    .cta-left, .cta-right {
        min-width: 0;
        width: 100%;
    }
    .cta-community-box {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* Dark theme for CTA block */
html[data-theme='dark'] .cta-inner {
    background: linear-gradient(90deg, #1a33ff 0%, #8b78ff 100%);
    box-shadow: 0 8px 40px rgba(61,109,255,0.13);
}
html[data-theme='dark'] .cta-community-box {
    background: rgba(18,24,37,0.85);
    box-shadow: 0 2px 16px rgba(61,109,255,0.10);
}
html[data-theme='dark'] .cta-title,
html[data-theme='dark'] .cta-badge {
    color: #fff;
}
html[data-theme='dark'] .cta-desc,
html[data-theme='dark'] .cta-community-desc {
    color: #bfcfff;
}
html[data-theme='dark'] .cta-comm-link {
    background: rgba(61,109,255,0.18);
    color: #fff;
}
html[data-theme='dark'] .cta-comm-link:hover {
    background: #fff;
    color: rgb(18,24,37,0.85);
}
html[data-theme='dark'] .metrics-inner {
    border: 2px solid #3d6dff;
    animation: borderPulseMetrics 2s infinite cubic-bezier(.4,0,.6,1);
}
@keyframes borderPulseWidget {
    0% {
        box-shadow: 0 0 0 0 rgba(61,109,255,0.7), 0 0 0 0 rgba(61,109,255,0.3) inset;
        border-color: #3d6dff;
    }
    50% {
        box-shadow: 0 0 0 8px rgba(61,109,255,0.15), 0 0 0 4px rgba(61,109,255,0.10) inset;
        border-color: #6b8cff;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(61,109,255,0.7), 0 0 0 0 rgba(61,109,255,0.3) inset;
        border-color: #3d6dff;
    }
}

html[data-theme='dark'] .exchange-widget {
    border: 2px solid #3d6dff;
    animation: borderPulseWidget 2s infinite cubic-bezier(.4,0,.6,1);
}
@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(61,109,255,0.7), 0 0 0 0 rgba(61,109,255,0.3) inset;
        border-color: #3d6dff;
    }
    50% {
        box-shadow: 0 0 0 4px rgba(61,109,255,0.15), 0 0 0 2px rgba(61,109,255,0.10) inset;
        border-color: #6b8cff;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(61,109,255,0.7), 0 0 0 0 rgba(61,109,255,0.3) inset;
        border-color: #3d6dff;
    }
}

html[data-theme='dark'] .rates-inner {
    border: 2px solid #3d6dff;
    animation: borderPulse 2s infinite cubic-bezier(.4,0,.6,1);
}
html, body {
    font-family: 'Nunito', 'Roboto Condensed', Arial, sans-serif;
}
/* =========================
     Testimonials — Dark Mode
     ========================= */
html[data-theme='dark'] .testimonials {
    position: relative;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(61, 109, 255, .16), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(139, 120, 255, .12), transparent 60%),
        linear-gradient(180deg, #060a18 0%, #0a1126 100%);
}

/* Header */
html[data-theme='dark'] .testi-head .eyebrow {
    color: #ffffff;
}

html[data-theme='dark'] .testi-head .eyebrow::after {
    content: "";
    display: block;
    width: 44px;
    height: 1px;
    background: var(--primary);
    border-radius: 9999px;
    margin: 8px auto 0;
    background-color: #fff;
}

html[data-theme='dark'] .testi-head .lead {
    color: rgba(235, 238, 255, .8);
}

/* Cards */
html[data-theme='dark'] .t-card {
    position: relative;
    z-index: 0;
    background: rgba(8, 14, 32, .85);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 10px 26px rgba(10, 17, 38, .35), inset 0 1px 0 rgba(255, 255, 255, .03);
    backdrop-filter: saturate(120%) blur(6px);
}

html[data-theme='dark'] .t-quote {
    color: rgba(248, 250, 255, .95);
}

html[data-theme='dark'] .t-stars {
    font-weight: 700;
    background: linear-gradient(90deg, #ffd86b, #fff0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme='dark'] .t-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .0), rgba(255, 255, 255, .18), rgba(255, 255, 255, .0));
}

html[data-theme='dark'] .t-name {
    color: #ffffff;
}

html[data-theme='dark'] .t-role {
    color: rgba(223, 228, 255, .75);
}

html[data-theme='dark'] .t-company {
    color: rgba(223, 228, 255, .6);
}

/* Avatar subtle white ring */
html[data-theme='dark'] .t-user .avatar {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .15), 0 0 0 4px rgba(61, 109, 255, .12);
}

/* Blue avatar: stronger pure white border */
html[data-theme='dark'] .t-user .avatar {
    box-shadow: 0 0 0 2px #ffffff, 0 0 10px rgba(255, 255, 255, .35), 0 0 0 4px rgba(255, 255, 255, .18);
}

/* Animated gradient ring for testimonial cards */
html[data-theme='dark'] .t-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(120deg, #1a33ff, #3d6dff, #8b78ff, #3d6dff, #1a33ff);
    background-size: 300% 300%;
    animation: borderFlow 18s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(61, 109, 255, .18)) drop-shadow(0 0 14px rgba(61, 109, 255, .1));
    mix-blend-mode: screen;
    opacity: .65;
    z-index: 0;
    transition: background 1s linear, filter 1s ease, opacity 1s ease;
}

html[data-theme='dark'] .t-card:not(.t-featured):hover::after {
    background: linear-gradient(120deg, #ffffff, #ffffff);
    background-size: 100% 100%;
    animation: none;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, .35)) drop-shadow(0 0 20px rgba(255, 255, 255, .2));
    opacity: .95;
}

/* Featured testimonial — thicker, faster ring */
html[data-theme='dark'] .t-card.t-featured::after {
    padding: 3px;
    background-size: 350% 350%;
    animation: borderFlow 7s linear infinite;
    filter: drop-shadow(0 0 9px rgba(61, 109, 255, .24)) drop-shadow(0 0 22px rgba(61, 109, 255, .16));
}

/* Badge styled like our gradient pill */
html[data-theme='dark'] .t-card .t-badge {
    position: absolute;
    top: -12px;
    /* sit on the border */
    left: 50%;
    /* center horizontally */
    transform: translateX(-50%);
    z-index: 3;
    /* above the animated ring and content */
}

html[data-theme='dark'] .t-card .t-badge span {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1a33ff 0%, #3d6dff 45%, #8b78ff 100%);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 2px 12px rgba(61, 109, 255, .35), inset 0 0 12px rgba(139, 120, 255, .35);
    overflow: hidden;
}

html[data-theme='dark'] .t-card .t-badge span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, .0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, .0) 100%);
    transform: translateX(-120%) skewX(-20deg);
    animation: badgeSweep 4.2s linear infinite;
}

/* Ensure ring sits under content */
html[data-theme='dark'] .t-card>* {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {

    html[data-theme='dark'] .t-card::after,
    html[data-theme='dark'] .t-card.t-featured::after,
    html[data-theme='dark'] .t-card .t-badge span::before {
        animation: none !important;
    }
}

:root {
    --bg: #f7f8fc;
    --panel: #ffffff;
    --text: #343a55;
    --muted: #6b7280;
    --primary: #1a33ff;
    --ring: rgba(26, 51, 255, .2);
    --shadow: 0 16px 40px rgba(16, 24, 40, .08);
    --glow: 0 0 0 2px rgba(26, 51, 255, .6), 0 0 24px -2px rgba(26, 51, 255, .55), 0 0 48px -4px rgba(26, 51, 255, .4);
}

/* Dark theme variables */
html[data-theme='dark'] {
    --bg: #060910;
    --panel: #121825;
    --text: #e6e9f5;
    --muted: #9aa0b3;
    --primary: #3d6dff;
    --ring: rgba(61, 109, 255, .35);
    --shadow: 0 16px 40px rgba(0, 0, 0, .6);
    --glow: 0 0 0 2px rgba(99, 130, 255, .6), 0 0 30px -4px rgba(61, 109, 255, .7), 0 0 60px -6px rgba(61, 109, 255, .55);
}

body,
.nav-shell,
.t-card,
.service-card,
.service-feature,
.faq-item,
.stat-card,
.metrics-inner {
    transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

html[data-theme='dark'] body {
    background: radial-gradient(circle at 20% 20%, #0d1422 0%, #060910 60%);
}

html[data-theme='dark'] .nav-shell {
    background: #101625;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}

html[data-theme='dark'] .nav-shell .brand {
    color: #ffffff;
}

html[data-theme='dark'] .nav-shell .nav-links a {
    color: #d3d8e6;
}

html[data-theme='dark'] .nav-shell .nav-links a:hover {
    color: #ffffff;
}

html[data-theme='dark'] .nav-shell .nav-links a.active {
    color: #ffffff;
}

html[data-theme='dark'] .nav-shell .theme-toggle {
    background: #121825;
    border-color: #2a3345;
    color: var(--primary);
}

/* Dark theme dropdown menu */
html[data-theme='dark'] .dropdown .drop-menu {
    background: #121825;
    border: 1px solid #1f2737;
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08);
}

html[data-theme='dark'] .dropdown .drop-menu a {
    color: #d3d8e6;
}

html[data-theme='dark'] .dropdown .drop-menu a:hover {
    background: rgba(61, 109, 255, .18);
    color: #fff;
}

html[data-theme='dark'] .metric-value {
    color: var(--primary);
}

/* Dark theme metrics panel */

html[data-theme='dark'] .metrics-inner {
    background: #121825;
    border-color: transparent;
    /* remove static border to reveal animated ring */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 46px -18px rgba(0, 0, 0, .8), 0 0 60px -8px rgba(61, 109, 255, .25);
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

html[data-theme='dark'] .metrics-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(61, 109, 255, .28) 0%, transparent 60%);
    pointer-events: none;
}

html[data-theme='dark'] .metric-item:not(:last-child) {
    position: relative;
}

html[data-theme='dark'] .metric-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 12px;
    right: -20px;
    width: 1px;
    height: calc(100% - 24px);
    background: linear-gradient(to bottom, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
}

@media (max-width: 900px) {
    html[data-theme='dark'] .metric-item:not(:last-child)::after {
        display: none;
    }
}

html[data-theme='dark'] .metric-label {
    color: #9aa0b3;
}

/* Metrics panel white text request */
html[data-theme='dark'] .metrics-inner .metric-value,
html[data-theme='dark'] .metrics-inner .metric-label {
    color: #ffffff;
}

/* Animated gradient border for metrics panel (dark) */
html[data-theme='dark'] .metrics-inner {
    position: relative;
    z-index: 0;
}

html[data-theme='dark'] .metrics-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    /* border thickness */
    background: linear-gradient(120deg, #1a33ff, #3d6dff, #8b78ff, #3d6dff, #1a33ff);
    background-size: 400% 400%;
    animation: borderFlow 7s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    /* Safari/WebKit */
    mask-composite: exclude;
    /* Standard */
    pointer-events: none;
    filter: drop-shadow(0 0 14px rgba(61, 109, 255, .45)) drop-shadow(0 0 32px rgba(61, 109, 255, .25));
    mix-blend-mode: screen;
    opacity: .95;
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme='dark'] .metrics-inner::after {
        animation: none;
    }
}

html[data-theme='dark'] .stat-card,
html[data-theme='dark'] .service-card,
html[data-theme='dark'] .service-feature,
html[data-theme='dark'] .t-card,
html[data-theme='dark'] .faq-item {
    border-color: #1f2737;
}

html[data-theme='dark'] .hero-title {
    color: #f2f5ff;
}

html[data-theme='dark'] .hero-text,
html[data-theme='dark'] p,
html[data-theme='dark'] .about-text {
    color: var(--muted);
}

html[data-theme='dark'] .eyebrow::after {
    background: var(--primary);
}

html[data-theme='dark'] .sf-icon {
    background: var(--primary);
}

html[data-theme='dark'] .t-featured {
    border-color: var(--primary);
}

html[data-theme='dark'] .faq-item summary::after {
    color: var(--primary);
}

html[data-theme='dark'] .avatar {
    border-color: var(--primary);
}

/* Services section — dark theme */
html[data-theme='dark'] .services {
    background: radial-gradient(circle at 70% 10%, #0e1628 0%, #060910 65%);
}

html[data-theme='dark'] .services-head .lead {
    color: var(--muted);
}

html[data-theme='dark'] .service-feature,
html[data-theme='dark'] .service-card {
    background: #121825;
    border-color: #1f2737;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 16px 40px rgba(0, 0, 0, .5);
}

html[data-theme='dark'] .sf-title,
html[data-theme='dark'] .sc-title {
    color: #ffffff;
}

html[data-theme='dark'] .sf-desc,
html[data-theme='dark'] .sc-text {
    color: var(--muted);
}

html[data-theme='dark'] .sf-list li {
    color: #d3d8e6;
}

html[data-theme='dark'] .sc-icon {
    background: rgba(61, 109, 255, .18);
    color: var(--primary);
}

/* sf-icon stays brand colored on dark */
html[data-theme='dark'] .sf-icon {
    background: var(--primary);
    color: #fff;
}

/* Services eyebrow and links (dark) */
html[data-theme='dark'] .services-head .eyebrow {
    color: #ffffff;
}

html[data-theme='dark'] .services-head .eyebrow::after {
    background: #ffffff;
    width: 32px;
}

html[data-theme='dark'] .learn {
    color: #ffffff;
}

html[data-theme='dark'] .learn:hover {
    text-decoration: none;
}

html[data-theme='dark'] .service-feature .chip {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 10px 26px rgba(61, 109, 255, .35);
}

/* Make the chip look like the badge and sit on the border (above it) */
html[data-theme='dark'] .service-feature .chip {
    background: linear-gradient(90deg, #1a33ff 0%, #3d6dff 50%, #8b78ff 100%);
    color: #fff;
    overflow: hidden;
    position: absolute;
    z-index: 2;
    /* above animated ring */
}

html[data-theme='dark'] .service-feature .chip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .5) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: badgeShine 3.8s ease-in-out infinite;
    pointer-events: none;
}

/* Animated border ring for featured service card (dark) */
html[data-theme='dark'] .service-feature {
    position: relative;
    z-index: 0;
    /* establish stacking context below chip */
    border-color: transparent;
    /* reveal animated ring */
    background-clip: padding-box;
}

html[data-theme='dark'] .service-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 3px;
    /* ring thickness */
    background: linear-gradient(120deg, #1a33ff, #3d6dff, #8b78ff, #3d6dff, #1a33ff);
    background-size: 350% 350%;
    animation: borderFlow 6s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(61, 109, 255, .22)) drop-shadow(0 0 18px rgba(61, 109, 255, .14));
    mix-blend-mode: screen;
    transition: background 1s linear, filter 1s ease, opacity 1s ease;
    opacity: .75;
    z-index: 0;
    /* keep ring beneath chip */
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme='dark'] .service-feature::after {
        animation: none;
    }
}

/* Animated border for all service cards in dark mode */
html[data-theme='dark'] .service-card {
    position: relative;
    border-color: transparent;
    /* let the animated ring show */
    background-clip: padding-box;
}

html[data-theme='dark'] .service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(120deg, #1a33ff, #3d6dff, #8b78ff, #3d6dff, #1a33ff);
    background-size: 350% 350%;
    animation: borderFlow 11s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    filter: drop-shadow(0 0 7px rgba(61, 109, 255, .2)) drop-shadow(0 0 16px rgba(61, 109, 255, .12));
    mix-blend-mode: screen;
    opacity: .7;
}

html[data-theme='dark'] .service-card:hover {
    border-color: transparent;
    /* avoid clashing with animated ring */
}

/* On hover in dark mode, show a white ring (border) */
html[data-theme='dark'] .service-card:hover::after {
    background: linear-gradient(120deg, #ffffff, #ffffff);
    background-size: 100% 100%;
    animation: none;
    /* keep the white ring steady */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, .35)) drop-shadow(0 0 20px rgba(255, 255, 255, .2));
    opacity: .95;
}

/* Dark mode: service card icon hover -> white icon, subtle white bg */
html[data-theme='dark'] .service-card .sc-icon {
    transition: background 1s ease, color 1s ease, box-shadow 1s ease;
}

html[data-theme='dark'] .service-card:hover .sc-icon {
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 0 16px rgba(255, 255, 255, .12);
}

/* Also apply when hovering the icon itself */
html[data-theme='dark'] .service-card .sc-icon:hover {
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 0 16px rgba(255, 255, 255, .12);
}

/* Turn the animated ring to a steady white ring when the icon is hovered */
html[data-theme='dark'] .service-card:has(.sc-icon:hover)::after {
    background: linear-gradient(120deg, #ffffff, #ffffff);
    background-size: 100% 100%;
    animation: none;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, .35)) drop-shadow(0 0 20px rgba(255, 255, 255, .2));
    opacity: .95;
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme='dark'] .service-card::after {
        animation: none;
    }
}

/* White luminous shadow for stat cards in dark mode */
html[data-theme='dark'] .stat-card {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 28px -6px rgba(255, 255, 255, .28), 0 0 42px -4px rgba(255, 255, 255, .45);
}

/* Dark theme hero badge override */
html[data-theme='dark'] .hero-badge {
    background: #04070d;
    color: #fff;
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 6px 18px -4px rgba(255, 255, 255, .35), 0 0 36px -4px rgba(255, 255, 255, .4);
}

/* Dark theme hero primary button enhanced */
html[data-theme='dark'] .hero-primary {
    position: relative;
    background: linear-gradient(90deg, #1a33ff 0%, #3d6dff 50%, #8b78ff 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 8px 26px -6px rgba(61, 109, 255, .55), 0 0 42px -4px rgba(61, 109, 255, .55);
    overflow: hidden;
}

html[data-theme='dark'] .hero-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
    transform: translateX(-120%);
    animation: badgeShine 4.2s ease-in-out infinite;
}

html[data-theme='dark'] .hero-primary:hover {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 10px 32px -6px rgba(61, 109, 255, .65), 0 0 52px -4px rgba(61, 109, 255, .65);
}

/* Dark theme overrides for About block */
html[data-theme='dark'] .about-content,
html[data-theme='dark'] .about-content .about-title,
html[data-theme='dark'] .about-content .about-text,
html[data-theme='dark'] .about-content .f-title,
html[data-theme='dark'] .about-content .f-text {
    color: #ffffff;
}

html[data-theme='dark'] .about-content .badge {
    background: linear-gradient(90deg, #1a33ff 0%, #3d6dff 50%, #8b78ff 100%);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 8px 26px -6px rgba(61, 109, 255, .55), 0 0 42px -4px rgba(61, 109, 255, .55);
    position: relative;
    overflow: hidden;
}

html[data-theme='dark'] .about-content .badge::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .45) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: badgeShine 3.8s ease-in-out infinite;
}

@keyframes badgeShine {
    to {
        transform: translateX(100%);
    }
}

/* Continuous sweep for centered testimonial badge */
@keyframes badgeSweep {
    0% {
        transform: translateX(-120%) skewX(-20deg);
    }

    100% {
        transform: translateX(140%) skewX(-20deg);
    }
}

html[data-theme='dark'] .about-feature .f-icon {
    color: var(--primary);
}

/* Glow utility */
.glow {
    box-shadow: var(--glow);
    position: relative;
}

.glow:hover {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .08), var(--glow);
}

/* Theme toggle button */
.theme-toggle {
    background: var(--panel);
    color: var(--primary);
    border: 1px solid #d0d5dd;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .3s, box-shadow .3s, color .3s;
    margin-left: 8px;
}

.theme-toggle:hover {
    box-shadow: 0 0 0 4px var(--ring);
}

html[data-theme='dark'] .theme-toggle {
    border-color: #2a3345;
    background: #121825;
    color: var(--primary);
}

.theme-icon {
    font-size: 18px;
}

html[data-theme='dark'] .theme-icon {
    content: "☀";
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--bg);
    color: var(--text);
}

/* Hero Section */
.hero {
    padding: 120px 100px;
    display: flex;
    justify-content: center;
}

.hero-inner {
    max-width: 1150px;
    width: 100%;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 6px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .06);
    border: 1px solid #eceef4;
    margin-bottom: 32px;
}

.hero-badge-icon {
    font-size: 16px;
    color: #f4b400;
}

.hero-title {
    font-size: 56px;
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -.5px;
    margin: 0 0 28px;
    color: #141b34;
}

.hero-title span {
    color: #141b34;
}

.hero-title .highlight {
    position: relative;
    color: var(--primary);
    text-shadow: 0 0 6px rgba(26, 51, 255, .6), 0 0 18px rgba(200, 200, 200, 0.45), 0 0 38px rgba(26, 51, 255, .35);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        text-shadow: 0 0 6px rgba(202, 202, 202, 0.55), 0 0 18px rgba(200, 200, 200, 0.45), 0 0 38px rgba(200, 200, 200, 0.45);
    }

    50% {
        text-shadow: 0 0 10px rgba(200, 200, 200, 0.45), 0 0 26px rgba(200, 200, 200, 0.45), 0 0 54px rgba(200, 200, 200, 0.45);
    }
}

html[data-theme='dark'] .hero-title .highlight {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, .85), 0 0 28px rgba(61, 109, 255, .7), 0 0 60px rgba(61, 109, 255, .55);
}

.hero-text {
    max-width: 820px;
    margin: 0 auto 42px;
    font-size: 16px;
    line-height: 1.6;
    color: #5b6275;
}

.hero-actions {
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 70px;
}



@keyframes flareAnimation {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}



.btn.outline {
    background: #fff;
    color: #141b34;
    border: 1px solid #d0d5dd;
}

.btn.outline:hover {
    background: #f5f7fb;
}

/* stats row */
.hero-stats {
    display: flex;
    gap: 42px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-card {
    background: #fff;
    width: 250px;
    padding: 26px 22px 22px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 20px 50px -22px rgba(16, 24, 40, .16);
    position: relative;
    transition: transform .5s ease, box-shadow .5s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px -24px rgba(16, 24, 40, .18);
}

.stat-icon {
    width: 46px;
    height: 46px;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #1a33ff;
    font-size: 22px;
}

.stat-value {
    font-size: 20px;
    text-align: left;
    font-weight: 600;
    color: #141b34;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #5b6275;
    text-align: left;
}

@media (max-width:900px) {
    .hero {
        padding: 120px 18px 70px;
    }

    .hero-title {

        /* Remove native number input spinners (up/down arrows) */
        input[type=number]::-webkit-outer-spin-button,
        input[type=number]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        input[type=number] {
            -moz-appearance: textfield;
        }

        input[type=number]::-ms-clear,
        input[type=number]::-ms-expand {
            display: none;
            /* IE/Edge */
        }

        font-size: 42px;
    }



    .stat-card {
        width: 160px;
        padding: 22px 18px 18px;
    }

    .stat-value {
        font-size: 18px;
    }
}

@media (max-width:550px) {
    .hero-title {
        font-size: 34px;
    }

    .hero-badge {
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .stat-card {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .stat-card .stat-label {
        width: 100%;
    }
}

.site-header {
    padding: 20px 16px;
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

/* About Section with colored tiles */
.about {
    padding: 60px 24px 90px;
    display: flex;
    justify-content: center;
}
.about-kyc{
      padding: 30px 24px 90px;
    display: flex;
    justify-content: center;
}
.about-inner {
    max-width: 1150px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: start;
}
.about-inner-kyc {
    max-width: 1150px;
    width: 100%;
    display: grid;
    gap: 48px;
    align-items: start;
}
.about-media {
    display: grid;
    gap: 24px;
}

.tile {
    border-radius: 18px;
    box-shadow: 0 20px 50px -22px rgba(16, 24, 40, .16);
    background: #eee;
}

.tile-lg {
    height: 360px;
}

.tile-sm {
    height: 180px;
}

.tile-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tile-red {
    background: url('/assets/img/msk.jpg'), no-repeat ;
    object-fit: cover;
}

.tile-blue {
   background: url("/assets/img/msk2.jpg"), no-repeat ;
   object-fit: cover;
}

.tile-green {
    background: radial-gradient(900px 500px at 10% -20%, #d3f8df 0%, transparent 35%), linear-gradient(135deg, #22c55e, #16a34a);
}

.tile-badge {
    padding: 22px;
    position: absolute;
}

.pill {
    position: relative;
    background: #fff;
    border-radius: 50px 50% 30% 15px / 50%;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .08);
}

.pill-num {
    font-size: 24px;
    font-weight: 700;
    color: #1f2a44;
}

.pill-sub {
    font-size: 12px;
    font-weight: 600;
    color: #5b6275;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.about-content .badge {
    display: inline-block;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1a33ff;
    background: #eef3ff;
    border-radius: 10px;
    padding: 10px 10px;
    margin-bottom: 16px;
}

.about-title {
    font-size: 36px;
    line-height: 1.2;
    color: #141b34;
    margin: 0 0 14px;
}

.about-text {
    color: #5b6275;
    line-height: 1.7;
    margin: 0 0 24px;
}


.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 18px 0;
}

.about-feature .f-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: #1a33ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.about-feature .f-title {
    font-weight: 600;
    color: #141b34;
    margin-bottom: 4px;
}

.about-feature .f-text {
    color: #5b6275;
}

.about-cta {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.about-phone small {
    color: #5b6275;
    display: block;
}

.about-phone strong {
    color: #141b34;
    font-size: 18px;
}

@media (max-width: 1000px) {
    .about-inner {
        grid-template-columns: 1fr;
    }
}

.nav-shell {
    max-width: 1120px;
    margin: 0 auto;
    background: var(--panel);
    border-radius: 9999px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 50px;
}

.brand {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
    text-decoration: none;
}

.brand {
    color: #272b3d;
}

/* Desktop nav */
.nav-links {
    list-style: none;
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: .2s color ease;
}

.nav-links a:hover {
    color: var(--text)
}

.nav-links a.active {
    color: var(--primary)
}

/* Dropdown */
.dropdown {
    position: relative;
}

.drop-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    cursor: pointer;
}

.drop-link:hover {
    color: var(--text)
}

.chevron {
    transition: transform .2s ease
}

.drop-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 10px;
    min-width: 180px;
    display: none;
}

.dropdown.open .drop-menu {
    display: block
}

.dropdown.open .chevron {
    transform: rotate(180deg)
}

.dropdown.open .drop-link {
    color: var(--text)
}

.drop-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.drop-menu a:hover {
    background: #f3f5ff;
    color: var(--primary)
}

/* CTA */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 9999px;
    transition: box-shadow .15s ease, transform .05s ease;
    white-space: nowrap;
}

.btn.primary {
    background: var(--primary);
    color: #fff
}

.btn.primary:hover {
    box-shadow: 0 0 0 6px var(--ring)
}

.btn:active {
    transform: translateY(1px)
}

.btn.full {
    width: 100%
}

.hamburger {
    display: none;
    flex-direction: column;
    width: auto;
    height: auto;
    border: 0;
    padding: 10px;
    border-radius: 9999px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


/* Modal menu */
.modal-overlay[hidden] {
    display: none
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 1200;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-panel {
    width: min(250px, 100vh);
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(2, 6, 23, 0.08);
    margin-top: 50%;
    margin: auto;
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 8px;
}

.modal-body {
    display: grid;
    gap: 6px;
    text-align: center;
    padding: 8px 4px 12px;
}
.modal-body li {
    list-style: none;
}

.modal-body a {
    display: block;
    padding: 12px 12px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}

.modal-body a:hover {
    background: #f6f8ff;
    color: var(--text);
}

.close {
    border: 0;
    background: none;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    cursor: pointer;
}

.center-btn {
    justify-self: center;
}

/* Mobile panel */
.mobile-panel {
    display: none;
    max-width: 1120px;
    margin: 10px auto 0;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 12px;
}

.mobile-panel a {
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
}

.mobile-panel a:hover {
    background: #f6f8ff;
    color: var(--text);
}

.mobile-panel a.active {
    color: var(--primary);
}

.mobile-dropdown summary {
    cursor: pointer;
    padding: 12px 10px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 500;
    list-style: none;
}

.mobile-dropdown[open] summary {
    background: #f6f8ff;
    color: var(--text);
}

.mobile-drop-items {
    padding: 6px 6px 10px 16px;
}

.mobile-drop-items a {
    padding: 10px 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: inline-flex;
        background: none;
    }

    .btn.primary {
        margin-left: auto;
    }
    .modal-footer .btn {
        margin:0px;
    }
}


/* Utility: focus */
button:focus,
.btn:focus,
a:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--ring)
}

/* Wide Metrics Panel */
.metrics-panel {
    padding: 20px 24px;
    display: flex;
    justify-content: center;
}

.metrics-inner {
    max-width: 1150px;
    width: 100%;
    border: 0.75px solid #e4e7ec;
    border-radius: 18px;
    padding: 60px 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.metric-item {
    text-align: center;
}

.metric-value {
    font-size: 40px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -.5px;
    margin: 0 0 12px;
    color: var(--primary);
}

.metric-label {
    font-size: 14px;
    font-weight: 500;
    color: #5b6275;
}

@media (max-width: 1000px) {
    .metrics-inner {
        padding: 50px 50px;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .metrics-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-value {
        font-size: 34px;
    }
}

@media (max-width: 520px) {
    .metrics-inner {
        grid-template-columns: 1fr;
        padding: 40px 38px;
    }

    .metric-item:not(:last-child) {
        border-bottom: 1px solid #eceef4;
        padding-bottom: 32px;
        margin-bottom: 0;
    }

    .metric-item:not(:first-child) {
        padding-top: 32px;
    }

    .metric-value {
        font-size: 32px;
    }
}

/* Services */
.services {
    padding: 20px 24px 100px;
    display: flex;
    justify-content: center;
}

.services-inner {
    max-width: 1150px;
    width: 100%;
}

.services-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 32px;
}

.services-head .eyebrow {
    display: inline-block;
    font-weight: 300;
    font-size: 24px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--primary);
    background: transparent;
    padding: 0;
}

.services-head .eyebrow::after {
    content: "";
    display: block;
    width: 44px;
    height: 1px;
    background: var(--primary);
    border-radius: 9999px;
    margin: 8px auto 0;
}

.services-head h2 {
    font-size: 28px;
    margin: 8px 0 12px;
    color: #141b34;
}

.services-head .lead {
    color: #5b6275;
    margin: 16px auto 0;
}

.services-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.service-feature {
    position: relative;
    background: #fff;
    border: 0.75px solid #e4e7ec;
    border-radius: 18px;
    box-shadow: 0 20px 50px -22px rgba(16, 24, 40, .12);
    padding: 36px 34px;
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: space-around;
}

.service-feature .chip {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .04em;
    border-radius: 9999px;
    padding: 8px 14px;
    box-shadow: 0 10px 26px rgba(26, 51, 255, .25);
}

.sf-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    font-size: 50px;
    padding-top: 8px;
    margin: 0 auto;
    color: #fff;
}

.sf-title {
    margin: 0 0 6px;
    font-size: 28px;
    color: #141b34;
}

.sf-desc {
    color: #5b6275;
    line-height: 2em;
    margin: 0 0 18px;
}

.sf-list {
    list-style: none;
    padding: 0;
    text-align: center;
    margin: 0 auto;
    display: grid;
    gap: 25px;
}

.sf-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #343a55;
    font-weight: 500;
}

.sf-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 9999px;
    background: #1a33ff;
    font-size: 15px;
    color: #fff
}

.sf-cta {
    align-self: center;
    padding-left: 18px;
    padding-right: 18px;
}

.services-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.service-card {
    background: #fff;
    border: 0.75px solid #e4e7ec;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .06);
    transition: transform .25s ease, box-shadow .25s ease, border 1s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border: 1px solid var(--primary);
    box-shadow: 0 22px 54px rgba(16, 24, 40, .10);
}

.sc-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f3f5ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 12px;
}

.sc-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 400;
    color: #141b34;
}

.sc-text {
    color: #5b6275;
    margin: 0 0 12px;
}

.learn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 400;
}

.learn:hover {
    text-decoration: underline;
}

@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .services-tiles {
        grid-template-columns: 1fr;
    }
}

/* Стили для изображений в плитках */
.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px; /* Добавляем скругление углов */
}

.tile-red {
    background: url('/assets/img/msk.jpg'), no-repeat ;
    object-fit: cover;
}

.tile-blue {
   background: url("/assets/img/msk2.jpg"), no-repeat ;
   object-fit: cover;
}

.tile-green {
    background: radial-gradient(900px 500px at 10% -20%, #d3f8df 0%, transparent 35%), linear-gradient(135deg, #22c55e, #16a34a);
}

/* A11y helper */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Testimonials */
.testimonials {
    padding: 20px 24px 110px;
    display: flex;
    justify-content: center;
}

.testi-inner {
    max-width: 1150px;
    width: 100%;
}

.testi-head {
    text-align: center;
    margin: 0 auto 36px;
}

.testi-head .eyebrow {
    display: inline-block;
    font-weight: 300;
    font-size: 24px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--primary);
    background: transparent;
    padding: 0;
}

.testi-head .eyebrow::after {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    border-radius: 9999px;
    background: var(--primary);
    margin: 8px auto 0;
}

.testi-head .lead {
    color: #5b6275;
    margin-top: 16px;
    margin-bottom: 60px;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.t-card {
    position: relative;
    background: #fff;
    border: 0.75px solid #e4e7ec;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .06);
    padding: 28px 26px 24px;
    transition: transform .25s ease, box-shadow .25s ease, border 1s ease;
}

.t-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 54px rgba(16, 24, 40, .10);
    border: 1px solid var(--primary);
}

.t-featured {
    box-shadow: 0 24px 60px rgba(26, 51, 255, .16);
    border-color: var(--primary);
    transform: translateY(-25px);
}

.t-featured:hover {
    transform: translateY(-25px);
}

.t-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
}

.t-badge span {
    display: inline-flex;
    /* align-items: center; */
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 9999px;
    box-shadow: 0 14px 30px rgba(26, 51, 255, .3);
}

.t-stars {
    color: #f4b400;
    letter-spacing: 4px;
    font-size: 18px;
    margin-bottom: 10px;
}

.t-quote {
    color: #3f4560;
    line-height: 1.9;
    font-style: italic;
    margin: 0;
    font-size: 20px;
}



.t-divider {
    height: 1px;
    background: #eceef4;
    margin: 20px 0 14px;
}

.t-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 9999px;
    box-shadow: inset 0 0 0 3px #fff, 0 8px 22px rgba(16, 24, 40, .18);
    border: 1px solid var(--primary);
}

.avatar.lebedev {
    background: url('img/lebedev.jpg') no-repeat center center;
    background-size: cover;
}
.avatar.orlov {
    background: url('img/orlov.jpg') no-repeat center center;
    background-size: cover;
}
.avatar.volkov {
    background: url('img/volkov.jpg') no-repeat center center;
    background-size: cover;
}
.avatar.strel{
    background: url('img/strel.jpg') no-repeat center center;
    background-size: cover;
}
.avatar.koles{
    background: url('img/koles.jpg') no-repeat center center;
    background-size: cover;
}
.avatar.danilova{
    background: url('img/danilova.jpg') no-repeat center center;
    background-size: cover;
}

.t-user-meta .t-name {
    font-weight: 400;
    color: var(--text);
    font-size: 20px;
    padding-bottom: 7.5px;
}

.t-user-meta .t-role {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    padding-bottom: 5px;
}

.t-user-meta .t-company {
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 1000px) {
    .testi-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ */
.faq {
    padding: 20px 24px 110px;
    display: flex;
    justify-content: center;
}

.faq-inner {
    max-width: 1150px;
    width: 100%;
}

.faq-head {
    text-align: center;
    margin: 0 auto 28px;
}

.faq-head .eyebrow {
    display: inline-block;
    font-weight: 300;
    font-size: 24px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--primary);
}

.faq-head .eyebrow::after {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    background: var(--primary);
    border-radius: 9999px;
    margin: 8px auto 0;
}

.faq-head .lead {
    color: #5b6275;
    margin-top: 16px;
}

.faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.faq-item {
    background: #fff;
    border: 0.75px solid #e4e7ec;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(16, 24, 40, .06);
    padding: 6px 14px;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 10px;
    font-weight: 600;
    color: #141b34;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 14px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 800;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item .answer {
    color: #5b6275;
    padding: 0 10px;
    line-height: 1.7;
    border-top: 1px solid #eceef4;
    margin-top: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height .35s ease, opacity .35s ease, padding .35s ease, margin .35s ease;
}

.faq-item[open] .answer {
    opacity: 1;
    margin-top: 8px;
    padding-bottom: 16px;
}

@media (max-width: 900px) {
    .faq-list {
        grid-template-columns: 1fr;
    }
}

/* === Dark Mode Overrides: FAQ Section === */
html[data-theme='dark'] .faq {
    position: relative;
    background:
        radial-gradient(1100px 600px at 85% -5%, rgba(61, 109, 255, .15), transparent 65%),
        radial-gradient(900px 520px at -10% 120%, rgba(139, 120, 255, .13), transparent 65%),
        linear-gradient(180deg, #060a18 0%, #0a1126 100%);
}

html[data-theme='dark'] .faq-head .eyebrow {
    color: #ffffff;
}

html[data-theme='dark'] .faq-head .eyebrow::after {
    background: #ffffff;
}

html[data-theme='dark'] .faq-head .lead {
    color: rgba(235, 238, 255, .78);
}

html[data-theme='dark'] .faq-item {
    background: rgba(8, 14, 32, .80);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 24px rgba(10, 17, 38, .38), inset 0 1px 0 rgba(255, 255, 255, .04);
    backdrop-filter: saturate(120%) blur(6px);
    border-radius: 14px;
    overflow: hidden;
}

html[data-theme='dark'] .faq-item>summary {
    color: #ffffff;
}

html[data-theme='dark'] .faq-item>summary::before {
    background: #ffffff;
}

html[data-theme='dark'] .faq-item:not([open])>summary::before {
    box-shadow: 0 -4px 0 0 #fff, 0 4px 0 0 #fff;
}

html[data-theme='dark'] .faq-item .answer {
    color: rgba(228, 232, 255, .82);
}

/* Open state accent (adds gradient border look) */
html[data-theme='dark'] .faq-item[open] {
    border-color: rgba(255, 255, 255, .22);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 28px rgba(10, 17, 38, .55), inset 0 0 0 2px rgba(61, 109, 255, .32);
    background: linear-gradient(135deg, rgba(14, 24, 50, .88), rgba(10, 20, 46, .86)) padding-box,
        linear-gradient(120deg, #1a33ff, #3d6dff, #8b78ff, #3d6dff, #1a33ff) border-box;
}

html[data-theme='dark'] .faq-item[open]::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(120deg, #1a33ff, #3d6dff, #8b78ff, #3d6dff, #1a33ff);
    background-size: 320% 320%;
    animation: borderFlow 9s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: .55;
}

html[data-theme='dark'] .faq-item[open]:hover::after {
    opacity: .75;
}

/* Highlight first FAQ item even when closed */
html[data-theme='dark'] .faq-list .faq-item:first-of-type {
    border-color: rgba(255, 255, 255, .18);
    background: linear-gradient(135deg, rgba(14, 24, 50, .90), rgba(10, 20, 46, .88)) padding-box,
        linear-gradient(120deg, #1a33ff, #3d6dff, #8b78ff, #3d6dff, #1a33ff) border-box;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 8px 26px rgba(10, 17, 38, .55), inset 0 0 0 2px rgba(61, 109, 255, .34);
}

html[data-theme='dark'] .faq-list .faq-item:first-of-type::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(120deg, #1a33ff, #3d6dff, #8b78ff, #3d6dff, #1a33ff);
    background-size: 340% 340%;
    animation: borderFlow 6s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: .50;
}

html[data-theme='dark'] .faq-list .faq-item:first-of-type:hover::before {
    opacity: .72;
}

html[data-theme='dark'] .faq-list .faq-item:first-of-type[open]::before {
    opacity: .60;
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme='dark'] .faq-item[open]::after {
        animation: none;
    }

    html[data-theme='dark'] .faq-list .faq-item:first-of-type::before {
        animation: none;
    }
}

/* Dark theme — modal close button highlight */
html[data-theme='dark'] .modal-panel .close {
    color: #000;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.10) inset,
        0 0 20px rgba(26, 51, 255, 0.35);
    transition: color .2s, background .3s, box-shadow .35s, transform .2s;
    padding: 3px 0 0 0;
}

html[data-theme='dark'] .modal-panel .close i {
    color: inherit;
    color:#fff;
}

html[data-theme='dark'] .modal-panel .close:hover,
html[data-theme='dark'] .modal-panel .close:focus-visible {
    background: rgba(255, 255, 255, 0.10);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.22) inset,
        0 0 40px rgba(255, 255, 255, 0.65),
        0 0 0 3px rgba(255, 255, 255, 0.25);
    outline: none;
}

html[data-theme='dark'] .modal-panel .close:active {
    transform: translateY(0) scale(.98);
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme='dark'] .modal-panel .close {
        transition: none;
        
    }
}

/* Dark theme — hamburger button white with white glow */
html[data-theme='dark'] .hamburger {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.10) inset,
        0 0 20px rgba(255, 255, 255, 0.35);
    transition: color .2s, background .3s, box-shadow .35s, transform .2s;
}

html[data-theme='dark'] .hamburger i {
    color: inherit;
    padding-top: 3px;
    border-radius: 9999px;
}

/* Ensure burger icon is pure white in dark theme */
html[data-theme='dark'] .hamburger i.fi-ss-menu-burger {
       color: #fff;
}

html[data-theme='dark'] .hamburger:hover,
html[data-theme='dark'] .hamburger:focus-visible {
    background: rgba(255, 255, 255, 0.10);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.22) inset,
        0 0 40px rgba(255, 255, 255, 0.65),
        0 0 0 3px rgba(255, 255, 255, 0.25);
    outline: none;
}

html[data-theme='dark'] .hamburger:active {
    transform: translateY(0) scale(.98);
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme='dark'] .hamburger {
        transition: none;
    }
}

/* Rates & Calculator Panel */
.rates-panel {
    padding: 40px 24px 80px;
    display: flex;
    justify-content: center;
}

.rates-inner {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    background: var(--panel);
    border: 0.75px solid #000000;
    border-radius: 18px;
    padding: 32px;
}

.rates-head h3 {
    margin: 0 0 6px;
    font-size: 28px;
    color: var(--text);
}

.rates-head .rates-date {
    color: var(--muted);
    margin-bottom: 18px;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
}

.rates-table thead th {
    text-align: left;
    color: var(--muted);
    padding: 12px 8px;
    font-weight: 600;
}

.rates-table tbody tr {
    border-top: 1px solid #eceef4;
}

.rate-row td {
    padding: 18px 8px;
    color: var(--text);
}

.rate-row:hover {
    background: rgba(26, 51, 255, 0.04);
    cursor: pointer;
}

.rates-cta {
    margin-top: 18px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.rates-cta .muted {
    color: var(--muted);
}

.exchange-widget {
    padding: 18px;
    border-radius: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
    border: 0.75px solid #e4e7ec;
    position: relative;
    /* ensure absolute children are positioned relative to this panel */
}

.exchange-widget h3 {
    margin-top: 0;
    color: var(--text);
}

.exchange-widget .muted {
    color: var(--muted);
    margin-bottom: 12px;
}

.calc-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 12px 0;
}

/* Flush row: remove vertical spacing when used (e.g., phone full-width) */
.calc-row.flush {
    margin: 0;
}

.calc-row label {
    width: 60px;
    color: var(--muted);
    font-weight: 600;
    padding: 0 8px;
}

/* Unified panel field used for selects and inputs to match design */
.calc-field {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f1f4f8;
    border: 1px solid rgba(16, 24, 40, 0.06);
}

/* Full-width variant: remove internal padding so inner input can span edge-to-edge */
.calc-field.full {
    padding: 0;
    margin-left: 0;
    align-self: flex-start;
    width: 100%;
}

.calc-field.full input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 0;
    background: inherit;
    text-align: left;
}

.calc-field select,
.calc-field input {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    color: var(--text);
    font-size: 16px;
    outline: none;
}

.calc-field input[type="number"] {
    text-align: right;
}

.calc-field input[readonly] {
    color: var(--muted);
}

/* Field left/right layout for labels + values */
.calc-field .field-left,
.calc-field .field-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-field .field-left {
    align-items: flex-start;
}

.calc-field .field-right {
    align-items: flex-end;
}

.calc-field .field-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    text-transform: none;
}

.calc-field select {
    min-width: 120px;
    padding: 8px 36px 8px 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    border: 1px solid rgba(16, 24, 40, 0.06);
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.04);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("");
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: var(--text);
    font-weight: 600;
}

.calc-field input {
    min-width: 80px;
    text-align: right;
}

/* Dark theme adjustments for the field layout */
html[data-theme='dark'] .calc-field {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

html[data-theme='dark'] .calc-field .field-label {
    color: #9aa0b3;
}

/* Dark theme select appearance */
html[data-theme='dark'] .calc-field select {
    background: rgba(226, 224, 224, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
    color: #e6e9f5;
    /* white triangle arrow for dark theme */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath fill='%23ffffff' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
}

/* Focus state for selects */
.calc-field select:focus {
    box-shadow: 0 6px 18px rgba(26, 51, 255, 0.12), 0 0 0 4px var(--ring);
    outline: none;
}

@media (max-width:520px) {
    .calc-field {
        flex-direction: column;
        align-items: stretch;
    }

    .calc-field .field-right {
        align-items: stretch;
    }

    .calc-field .field-left {
        align-items: stretch;
    }

    .calc-field input,
    .calc-field select {
        width: 100%;
    }
}

.swap-row {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    background-color: #fff;
    border: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: 9999px;
}


.swap-row .btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 9999px;
}

.calc-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.rate-note {
    color: var(--muted);
}

@media (max-width: 1000px) {
    .rates-inner {
        grid-template-columns: 1fr;
    }

    .exchange-widget {
        order: 2;
    }
}

/* Dark theme adjustments for rates panel */
html[data-theme='dark'] .rates-inner {
    background: #121825;
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .6);
}

html[data-theme='dark'] .rate-note {
    color: #fff;
}

html[data-theme='dark'] .rate-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

html[data-theme='dark'] .rates-table thead th {
    color: #9aa0b3;
}

html[data-theme='dark'] .rate-row td {
    color: #e6e9f5;
}

html[data-theme='dark'] .exchange-widget {
    background: #121825;
    border-color: #1f2737;
}

html[data-theme='dark'] .calc-row select {
    background: #0c1118;
    border: 1px solid #1f2737;
    color: #e6e9f5;
}

/* Exchange-widget specific dark adjustments */
html[data-theme='dark'] .exchange-widget .calc-field {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

html[data-theme='dark'] .exchange-widget .calc-field select,
html[data-theme='dark'] .exchange-widget .calc-field input {
    color: #e6e9f5;
}

/* Primary action button in widget: yellow pill only when NOT using hero-primary */
.exchange-widget .btn.primary:not(.hero-y) {
    background: var(--primary);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    border: none;
}

/* Outline button in widget */
.exchange-widget .btn.outline {
    background: transparent;
    padding: 10px 14px;
    border-radius: 9999px;
}

/* Swap circular button style */
.exchange-widget #swap-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    color: var(--primary);
    align-items: center;
    font-size: 30px;
    padding-top: 7px;
    justify-content: center;
    transition: transform .2s;
}

.fi-sr-swap {
    padding-top: 8px;
}

.exchange-widget #swap-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Light mode overrides for widget */
html:not([data-theme='dark']) .exchange-widget .calc-field {
    background: #ffffff;
    border: 1px solid #eceef4;
}

html:not([data-theme='dark']) .exchange-widget .calc-field select,
html:not([data-theme='dark']) .exchange-widget .calc-field input {
    color: var(--text);
}

/* Focus states */
.calc-field:focus-within {
    box-shadow: 0 6px 24px rgba(26, 51, 255, 0.08);
    border-color: rgba(26, 51, 255, 0.12);
}

.exchange-widget .calc-field:focus-within {
    box-shadow: 0 8px 30px rgba(61, 109, 255, 0.06);
}

/* Contacts + Map block (Москва) */
.contacts-map {
    padding: 40px 24px 80px;
    display: flex;
    justify-content: center;
    background: transparent;
}

.contacts-inner {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 28px;
    align-items: start;
    background: transparent;
}

.contacts-info h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--text);
}

.contacts-info .city {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--muted);
}

.contacts-info p {
    margin: 8px 0;
    color: var(--muted);
}

.contacts-info .contact-lines p {
    margin: 6px 0;
}

.contacts-info .social-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.contacts-info .social-icons a {
    color: var(--muted);
    text-decoration: none;
    font-size: 18px;
}

.contacts-info .social-icons a:hover {
    color: var(--primary);
}

/* Global floating rate widget */
.global-rate {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: var(--panel);
    border: 1px solid rgba(16,24,40,0.06);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(16,24,40,0.08);
    font-weight: 700;
    color: var(--text);
    z-index: 1500;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}

.global-rate .muted { font-weight: 400; color: var(--muted); font-size: 13px; }

@media (max-width: 700px){
    .global-rate{ right: 12px; left: 12px; bottom: 12px; justify-content: center; }
}

.map-block {
    width: 100%;
}

.map-iframe {
    width: 100%;
    height: 340px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(16, 24, 40, 0.18);
}

@media (max-width: 1000px) {
    .contacts-inner {
        grid-template-columns: 1fr;
    }

    .map-iframe {
        height: 260px;
    }
}

@media (max-width: 520px) {
    .map-iframe {
        height: 220px;
    }
}

/* Designer footer adjusted to site styles (uses theme variables) */
.designer-footer {
    background: var(--panel);
    color: var(--text);
    padding: 56px 16px 32px;
    box-shadow: var(--shadow);
    border-top: 1px solid rgba(16, 24, 40, 0.04);
    position: relative;
    overflow: hidden;
}

.designer-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 300px at 85% 0%, rgba(26, 51, 255, 0.06), transparent 20%), linear-gradient(180deg, rgba(26, 51, 255, 0.02), transparent 30%);
    pointer-events: none;
}

.designer-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.designer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

.designer-brand .brand-title {
    font-weight: 700;
    font-size: 26px;
    color: #000;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

html[data-theme='dark'] .brand-title {
    color: #fff;
}

.designer-brand .brand-copy {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 8px 0;
}

.designer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.designer-links h4 {
    color: var(--primary);
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.designer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.designer-links li {
    margin: 6px 0;
}

.designer-links a {
    color: var(--text);
    text-decoration: none;
    transition: color .18s ease;
}


.designer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid rgba(16, 24, 40, 0.04);
}

.designer-copyright {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.designer-copyright a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.designer-copyright a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.designer-social a {
    color: var(--text);
    margin-left: 12px;
    text-decoration: none;
    font-size: 25px;
}

@media (prefers-color-scheme: dark) {
    html[data-theme='dark'] .designer-footer {
        background: #0b1220;
        color: #e6e9f5;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
    }

    html[data-theme='dark'] .designer-footer::before {
        background: radial-gradient(800px 300px at 85% 0%, rgba(61, 109, 255, 0.06), transparent 20%), linear-gradient(180deg, rgba(61, 109, 255, 0.02), transparent 30%);
    }

    html[data-theme='dark'] .designer-brand .brand-copy {
        color: rgba(230, 233, 245, 0.85);
    }

    html[data-theme='dark'] .designer-links a {
        color: #e6e9f5;
    }
}

@media (max-width:1000px) {
    .designer-grid {
        grid-template-columns: 1fr;
    }

    .designer-links {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 18px;
    }
}

@media (max-width:520px) {
    .designer-links {
        grid-template-columns: 1fr;
    }

    .designer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Rotating ticker (инфинити-маркировка) */
.rotator {
    background: var(--panel);
    overflow: hidden;
    padding: 12px 0;
    margin-bottom: 60px;
    border-top: 1px solid rgba(16, 24, 40, 0.04);
    border-bottom: 1px solid rgba(16, 24, 40, 0.04);
}

.rotator-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 24px;
    overflow: hidden;
}

.rotator-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    /* longer duration for readable speed, duplicated group makes loop seamless */
    animation: scroll-left 20s linear infinite;
    transform: translate3d(0,0,0);
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

.rotator-track > .rotator-group {
    display: flex;
    flex: 0 0 auto;
}

.rotator-group { display: flex; }

.rotator-item {
    font-size: 20px;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
    /* use margin-right instead of track gap so duplicate groups align exactly */
    margin-right: 48px;
}
.rotator-item:last-child { margin-right: 0; }

.rotator:hover .rotator-track {
    animation-play-state: paused;
    cursor: default;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rotator-track {
        animation: none !important;
    }
}

/* Dark theme tweaks */
html[data-theme='dark'] .rotator {
    background: #0b1220;
    border-top-color: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

html[data-theme='dark'] .rotator-item {
    color: #e6e9f5;
}

/* Smooth scrolling for in-page anchors (respect user preference) */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Exchange Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-panel {
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 90%;
  max-width: 400px;
  padding: 16px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-body {
  margin-bottom: 16px;
}

.modal-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.modal-footer .btn{
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    border: none;
} 

.error-message {
  color: red;
  font-size: 0.875rem;
  margin-top: 8px;
}

/* Dark theme styles for the modal menu */
html[data-theme='dark']  .modal-header .brand {
  color: #fff;
  transition: color 0.3s ease;
}

/* Remove white background on hover for menu links in dark theme */
html[data-theme='dark'] .modal-body li a:hover {
  background-color: transparent;
  color: #fff; /* Highlight color for hover */
  transition: color 0.3s ease;
}

