/* ============================================================
   RIMfinance — refined fintech UI (Apple-keynote inspired)
   Font: Manrope (self-hosted). Light theme, aurora, soft depth.
   ============================================================ */

:root {
    --bg: #fbfbfd;
    --surface: #ffffff;
    --surface-2: #f5f5f7;
    --ink: #1d1d1f;
    --ink-2: #424245;
    --muted: #6e6e73;
    --line: rgba(0, 0, 0, 0.08);
    --line-strong: rgba(0, 0, 0, 0.14);

    --accent: #2a9dce;
    --accent-deep: #1f7fb0;
    --accent-sky: #5ac8fa;
    --accent-indigo: #5e5ce6;
    --warm: #ff9f0a;
    --green: #34c759;

    --grad-accent: linear-gradient(135deg, #5ac8fa 0%, #2a9dce 48%, #5e5ce6 100%);
    --grad-text: linear-gradient(120deg, #2a9dce 0%, #5e5ce6 100%);

    --radius-lg: 22px;
    --radius: 18px;
    --radius-sm: 12px;
    --pill: 980px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.05), 0 14px 36px rgba(20, 30, 60, 0.09);
    --shadow-lg: 0 10px 30px rgba(20, 30, 60, 0.12), 0 34px 70px rgba(20, 30, 60, 0.16);
    --shadow-accent: 0 10px 30px rgba(42, 157, 206, 0.32);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

a { color: inherit; }

::selection {
    background: rgba(42, 157, 206, 0.22);
}

/* ===================== Header ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 251, 253, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 36px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo-accent {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    margin-left: auto;
}

.burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s var(--ease), opacity 0.25s;
}

.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 4px 0;
    transition: color 0.2s;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-accent);
    transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile menu */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(251, 251, 253, 0.96);
    backdrop-filter: blur(20px);
    padding: 8px 24px 18px;
    gap: 2px;
    border-bottom: 1px solid var(--line);
}

.mobile-nav.open { display: flex; }

.mobile-nav-link {
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover,
.mobile-nav-link.active { color: var(--accent); }

@media (max-width: 768px) {
    .burger-btn { display: flex; }
    .main-nav { display: none; }
}

/* ===================== Hero ===================== */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-aurora {
    position: absolute;
    inset: -20% -10% 0;
    z-index: -1;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    will-change: transform;
}

.aurora-blob-1 {
    width: 52vw; height: 52vw;
    top: -14vw; left: -6vw;
    background: radial-gradient(circle at 30% 30%, #8fe3ff, rgba(143, 227, 255, 0) 70%);
    animation: drift1 18s var(--ease) infinite alternate;
}

.aurora-blob-2 {
    width: 46vw; height: 46vw;
    top: -6vw; right: -8vw;
    background: radial-gradient(circle at 50% 50%, #b7b3ff, rgba(183, 179, 255, 0) 70%);
    animation: drift2 22s var(--ease) infinite alternate;
}

.aurora-blob-3 {
    width: 40vw; height: 40vw;
    top: 16vw; left: 34vw;
    background: radial-gradient(circle at 50% 50%, #a9f0e0, rgba(169, 240, 224, 0) 70%);
    animation: drift3 26s var(--ease) infinite alternate;
}

.aurora-grain {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(4vw, 3vw) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-3vw, 4vw) scale(1.1); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(2vw, -3vw) scale(1.15); } }

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 48px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.hero-copy { max-width: 560px; }

.hero-eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep);
    background: rgba(42, 157, 206, 0.1);
    border: 1px solid rgba(42, 157, 206, 0.2);
    padding: 6px 14px;
    border-radius: var(--pill);
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 16px;
}

.hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 26px;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.hero-stats {
    list-style: none;
    display: flex;
    gap: 40px;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stats strong {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats span {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Hero carousel (coverflow) */
.hero-stage {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-carousel {
    width: 100%;
    max-width: 460px;
}

.hero-carousel-viewport {
    position: relative;
    height: 340px;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 50%;
    width: 286px;
    margin-left: -143px;
    opacity: 0;
    transform: translateX(0) scale(0.66);
    transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
    pointer-events: none;
    will-change: transform, opacity;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1) rotateY(0deg);
    z-index: 3;
    pointer-events: auto;
    cursor: pointer;
}

.hero-slide.is-next {
    opacity: 0.42;
    transform: translateX(68%) scale(0.8) rotateY(-18deg);
    filter: blur(1.5px);
    z-index: 2;
}

.hero-slide.is-prev {
    opacity: 0.42;
    transform: translateX(-68%) scale(0.8) rotateY(18deg);
    filter: blur(1.5px);
    z-index: 2;
}

.hero-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px 24px 22px;
    overflow: hidden;
}

.hero-slide.is-active .hero-card {
    box-shadow: 0 18px 50px rgba(20, 30, 60, 0.2), 0 40px 80px rgba(20, 30, 60, 0.16);
}

.hero-card-strip {
    height: 5px;
    border-radius: var(--pill);
    background: var(--grad-accent);
    margin: -24px -24px 18px;
}

.hero-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-card-logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    overflow: hidden;
    background: var(--grad-accent);
    box-shadow: var(--shadow-sm);
}

.hero-card-logo img { width: 100%; height: 100%; object-fit: contain; }

.hero-card-name { font-weight: 700; font-size: 1rem; color: var(--ink); }
.hero-card-type { font-size: 0.78rem; color: var(--muted); }

.hero-card-amount {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 4px;
    white-space: nowrap;
}

.hero-card-amount-label { font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; }

.hero-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--ink-2);
}

.hero-card-chip {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-deep);
    background: rgba(42, 157, 206, 0.12);
    padding: 4px 10px;
    border-radius: var(--pill);
}

.hero-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.16);
    cursor: pointer;
    padding: 0;
    transition: width 0.3s var(--ease), background 0.3s;
}

.hero-dot.is-active {
    width: 24px;
    border-radius: var(--pill);
    background: var(--grad-accent);
}

@media (max-width: 880px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 24px 56px;
        text-align: center;
    }
    .hero-copy { max-width: none; margin: 0 auto; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-stats { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-stats { gap: 24px; }
    .hero-stats strong { font-size: 1.4rem; }
}

/* ===================== Buttons ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border: none;
    border-radius: var(--pill);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--grad-accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(42, 157, 206, 0.42);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--surface);
    color: var(--ink-2);
    border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.6);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-hero {
    padding: 15px 32px;
    font-size: 1.02rem;
}

/* ===================== Main / sections ===================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 40px;
}

/* On a type landing page (/loans, /deposits, …) the hero is hidden, so let
   offers start near the top. */
body[data-active-type]:not([data-active-type=""]) .hero {
    display: none;
}
body[data-active-type]:not([data-active-type=""]) .main-content {
    padding-top: 28px;
}

.section { margin-bottom: 44px; }

.section-title {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-align: center;
    margin-bottom: 24px;
}

/* ===================== Filters ===================== */
.filter-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 44px;
    box-shadow: var(--shadow-md);
}

.filter-box-inline { padding: 18px 24px; }

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 24px;
}

.filter-row-inline {
    margin-bottom: 0;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
}

@media (max-width: 900px) { .filter-row-inline { flex-wrap: wrap; } }

@media (max-width: 768px) {
    .filter-row-inline { flex-direction: column; align-items: stretch; gap: 20px; }
    .filter-item-compact { width: 100%; }
}

.filter-item { flex: 1; min-width: 200px; }
.filter-item-compact { min-width: 0; flex: 0 0 auto; }

@media (min-width: 769px) { .filter-item-compact { width: 210px; } }

.filter-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.88rem;
}

.range-value-inline,
.range-value,
.range-value-above {
    font-weight: 800;
    color: var(--accent-deep);
    font-size: 0.98rem;
    white-space: nowrap;
}

.range-value-above { display: block; font-size: 1.05rem; margin-bottom: 8px; }

.filter-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.range-min, .range-max { font-size: 0.74rem; color: var(--muted); }

/* Range sliders */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--pill);
    background: linear-gradient(90deg, var(--accent-sky), var(--accent));
    outline: none;
}

.range-slider-compact { width: 100%; min-width: 80px; }

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s var(--ease);
}

.range-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }

.range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.filter-checkbox { display: flex; align-items: center; min-width: auto; }
.filter-checkbox-inline { flex: 0 0 auto; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--ink-2);
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.filter-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-actions-inline { flex: 0 0 auto; margin-left: auto; }

/* ===================== Products grid ===================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.product-card:hover::before { transform: scaleX(1); }

.company-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.company-logo {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 11px;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--grad-accent);
    box-shadow: var(--shadow-sm);
}

.company-logo .company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ink);
}

.approval-badge {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.approval-text {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-card .amount {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 14px;
}

.product-details { margin-bottom: 16px; }

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 5px 0;
}

.detail-label { color: var(--muted); }
.detail-value { font-weight: 600; color: var(--ink); }
.detail-value.highlight { color: #ff453a; }
.detail-value.success { color: var(--green); }

.product-license {
    margin-top: auto;
    padding-top: 12px;
    font-size: 0.7rem;
    color: #b0b0b6;
    line-height: 1.3;
}

.advantages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.advantage-badge {
    display: inline-block;
    padding: 5px 11px;
    border-radius: var(--pill);
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--accent);
    color: white;
}

.advantage-badge[data-code="top-product"] { background: var(--warm); }
.advantage-badge[data-code="first-loan-0"] { background: var(--green); }
.advantage-badge[data-code="get-0"] { background: var(--green); }
.advantage-badge[data-code="3-minutes"] { background: #af52de; }
.advantage-badge[data-code="top-speed"] { background: #ff453a; }
.advantage-badge[data-code="card-money"] { background: var(--accent); }
.advantage-badge[data-code="interest-free"] { background: var(--green); }
.advantage-badge[data-code="free-subscription"] { background: #14a085; }

.action-btn {
    width: 100%;
    padding: 13px;
    background: var(--grad-accent);
    color: white;
    border: none;
    border-radius: var(--pill);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.25s;
}

.action-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); }

/* ===================== Loading / empty ===================== */
.loading,
.no-results {
    text-align: center;
    padding: 56px 20px;
    color: var(--muted);
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid var(--surface-2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== Footer ===================== */
.site-footer {
    background: var(--surface-2);
    border-top: 1px solid var(--line);
    padding: 48px 24px 40px;
    margin-top: 56px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 56px;
    flex-wrap: wrap;
}

.logo-footer { color: var(--ink); }

.footer-nav {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    margin-left: auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-title {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-legal {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.footer-legal p {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Logo color variants for cards (kept; only used when no logo image) */
.logo-webbankir { background: #ff9f0a !important; }
.logo-moneyman { background: #34c759 !important; }
.logo-oneclick { background: #ff6b35 !important; }
.logo-cashtoyou { background: #2a9dce !important; }
.logo-zaimer { background: #34c759 !important; }
.logo-bystrodengi { background: #2a9dce !important; }
.logo-boostra { background: #3a4a63 !important; }
.logo-lime { background: #34c759 !important; }
.logo-yukki { background: #ff453a !important; }
.logo-payps { background: #2a9dce !important; }

/* ===================== Lead modal ===================== */
.lead-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(20, 24, 36, 0.55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lead-modal.show { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lead-modal-content {
    background: var(--surface);
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s var(--ease);
}

@keyframes slideUp {
    from { transform: translateY(30px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.lead-modal-close {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 28px;
    color: #b0b0b6;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.lead-modal-close:hover { color: var(--ink); }

.lead-modal-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 12px;
    text-align: center;
}

.lead-modal-text {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
}

.lead-modal-content .form-group { margin-bottom: 16px; }

.lead-modal-content label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--ink-2);
    font-size: 0.88rem;
}

.lead-modal-content input[type="text"] {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-modal-content input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(42, 157, 206, 0.15);
}

.lead-modal-content .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    color: var(--ink-2);
}

.lead-modal-content .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.lead-submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--grad-accent);
    color: white;
    border: none;
    border-radius: var(--pill);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: var(--shadow-accent);
    transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.2s;
}

.lead-submit-btn:hover:not(:disabled) { transform: translateY(-2px); }

.lead-submit-btn:disabled {
    background: #c7c7cc;
    box-shadow: none;
    cursor: not-allowed;
}

/* ===================== Scroll reveal ===================== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
