/* ============================================
   ЗАЙМПОДБОР — CPA Landing MFO
   Design System & All Styles
   ============================================ */

/* ── Fonts & Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:       #080b14;
  --bg-card:       #0f1321;
  --bg-card-hover: #141929;
  --bg-surface:    #111626;

  --primary:       #2563EB;
  --primary-glow:  rgba(37,99,235,0.25);
  --primary-dark:  #1D4ED8;
  --accent:        #2563EB;
  --accent-warm:   #FF6B35;
  --accent-gold:   #FFD166;
  --accent-green:  #00DFA2;

  --text-primary:  #F0F4FF;
  --text-secondary:#8A9BBF;
  --text-muted:    #4A5578;
  --border:        rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);

  --gradient-hero: linear-gradient(180deg, #080b14 0%, #0c1020 100%);
  --gradient-primary: #2563EB;
  --gradient-accent: linear-gradient(135deg, #00DFA2 0%, #00B8D9 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-card: 20px;

  --shadow-glow: 0 0 24px rgba(37,99,235,0.15);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.3);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(37,99,235,0.2);

  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);

  --container: 1200px;
  --section-gap: 100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Manrope', 'Inter', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-secondary); }

.gradient-text {
  color: var(--accent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(91,110,245,0.4);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(91,110,245,0.55); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--primary); background: rgba(91,110,245,0.08); }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }

.section { padding: var(--section-gap) 0; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0;
  backdrop-filter: blur(16px);
  background: rgba(8,11,20,0.85);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(8,11,20,0.97); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-top: 16px; padding-bottom: 16px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text-primary);
  font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo-text {
  background: linear-gradient(135deg, #ffffff 40%, #8A9BBF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-cta { flex-shrink: 0; padding: 10px 22px; font-size: 0.9rem; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 150px 0 100px;
  min-height: 100vh; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 50px;
  border: 1px solid rgba(0,223,162,0.3);
  background: rgba(0,223,162,0.08);
  color: var(--accent-green); font-size: 0.82rem; font-weight: 600;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title { margin-bottom: 20px; line-height: 1.15; }
.hero-subtitle { font-size: 1.1rem; max-width: 520px; margin-bottom: 36px; color: var(--text-secondary); }
.hero-stats {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.stat-item { padding: 18px 24px; flex: 1; text-align: center; }
.stat-num {
  display: block; font-size: 1.7rem; font-weight: 800;
  color: var(--text-primary); line-height: 1.1;
}
.stat-label {
  display: block; font-size: 0.75rem; color: var(--text-secondary);
  margin-top: 6px;
}
.stat-divider { width: 1px; background: var(--border); align-self: stretch; }
.hero-cta-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Cards Stack (Hero Visual) ── */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.cards-stack { position: relative; width: 340px; height: 340px; }

.card-3d {
  position: absolute;
  width: 280px; height: 170px;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  transform-style: preserve-3d;
}
.card-3d-front {
  width: 100%; height: 100%; border-radius: 18px;
  padding: 12px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-moneyman { top: 10px; left: 0; transform: rotate(-5deg) translateZ(0); z-index: 3; }
.card-alfamoney { top: 40px; left: 30px; transform: rotate(3deg) translateZ(0); z-index: 2; }
.card-fastmoney { top: 70px; left: 60px; transform: rotate(8deg) translateZ(0); z-index: 1; }

.cards-stack:hover .card-moneyman { transform: rotate(-8deg) translateY(-20px); }
.cards-stack:hover .card-alfamoney { transform: rotate(0deg) translateY(-10px); }
.cards-stack:hover .card-fastmoney { transform: rotate(6deg) translateY(0px); }

.card-moneyman .card-3d-front  { box-shadow: 0 10px 28px rgba(136,198,0,0.3); }
.card-alfamoney .card-3d-front { box-shadow: 0 10px 28px rgba(239,49,36,0.3); }
.card-fastmoney .card-3d-front { box-shadow: 0 10px 28px rgba(0,136,204,0.3); }

.card-3d-img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  pointer-events: none;
}

.float-badge {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 50px;
  background: rgba(15,19,33,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem; white-space: nowrap;
  box-shadow: var(--shadow-card);
  animation: floatBadge 4s ease-in-out infinite;
  z-index: 10;
}
.badge-zero-rate { top: 10px; right: -30px; animation-delay: 0s; }
.badge-fast-approval { bottom: 60px; right: -20px; animation-delay: 2s; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px; pointer-events: none;
}
.hero-wave svg { width: 100%; height: 100%; display: block; }

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header { text-align: center; margin-bottom: 56px; }
.section-title { margin-bottom: 12px; }
.section-sub { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ============================================
   MFO CARDS SECTION
   ============================================ */
.cards-section { background: var(--bg-surface); }

.bank-cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.bank-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex; flex-direction: column; gap: 0;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.bank-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-primary); opacity: 0;
  transition: opacity var(--transition);
}
.bank-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91,110,245,0.25);
  box-shadow: var(--shadow-hover);
}
.bank-card:hover::before { opacity: 1; }

.bank-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.bank-logo {
  padding: 6px 14px;
  border-radius: 8px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #ffffff;
  user-select: none;
}
.moneyman-logo  { background: linear-gradient(135deg, #1b2e16, #2d5a1e); }
.moneyman-logo .logo-green { color: #88c600; font-weight: 900; }
.moneyman-logo .logo-white { color: #ffffff; font-weight: 900; }
.alfamoney-logo { background: linear-gradient(135deg, #b01b10, #ef3124); font-size: 0.76rem; }
.fastmoney-logo { background: linear-gradient(135deg, #0267b2, #ff7900); font-size: 0.74rem; }
.finterra-logo  { background: linear-gradient(135deg, #590f48, #8c1970); font-size: 0.78rem; }
.smartmoney-logo{ background: linear-gradient(135deg, #094d4d, #00998a); font-size: 0.72rem; }

.bank-card-badge {
  font-size: 0.72rem; font-weight: 700; padding: 4px 10px;
  border-radius: 50px; letter-spacing: 0.04em;
}
.badge-popular { background: rgba(255,209,102,0.15); color: #FFD166; border: 1px solid rgba(255,209,102,0.3); }
.badge-new     { background: rgba(0,223,162,0.12); color: var(--accent-green); border: 1px solid rgba(0,223,162,0.25); }
.badge-hot     { background: rgba(255,107,53,0.12); color: #FF6B35; border: 1px solid rgba(255,107,53,0.25); }
.badge-rec     { background: rgba(91,110,245,0.12); color: var(--primary); border: 1px solid rgba(91,110,245,0.25); }

/* Mini card visual */
.card-visual-mini {
  width: 100%;
  aspect-ratio: 420 / 264;
  border-radius: 14px;
  margin-bottom: 18px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
#card-moneyman .card-visual-mini,
.card-moneyman .card-3d-front {
  background: #d7e1db;
}
.card-photo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.bank-card-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.bank-card-tagline { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; min-height: 38px; }

.bank-card-features { list-style: none; margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.bank-card-features li { font-size: 0.84rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 8px; }
.feat-icon { color: var(--accent-green); font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; }

.bank-card-params {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 14px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); margin-bottom: 18px;
}
.param { text-align: center; }
.param-label { display: block; font-size: 0.7rem; color: var(--text-muted); margin-bottom: 3px; }
.param-value { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.param-value.accent { color: var(--accent-green); }

.bank-card-note { font-size: 0.67rem; color: var(--text-muted); text-align: center; margin-top: 10px; line-height: 1.4; }

.comparison-hint {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 36px; color: var(--text-muted); font-size: 0.82rem;
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-inner { display: flex; flex-direction: column; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 40px; margin-bottom: 30px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-desc { font-size: 0.85rem; color: var(--text-muted); max-width: 320px; line-height: 1.6; }
.footer-nav-group h4 { font-size: 0.85rem; color: var(--text-primary); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.footer-nav-group a { display: block; color: var(--text-muted); text-decoration: none; font-size: 0.85rem; margin-bottom: 10px; transition: color var(--transition); }
.footer-nav-group a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.footer-legal-disclaimer {
  font-size: 0.72rem; color: var(--text-muted); line-height: 1.65;
  padding-top: 12px; border-top: 1px solid var(--border);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-stats { justify-content: center; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-badge { margin: 0 auto 24px; }
  .hero-cta-group { justify-content: center; }
  .bank-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-gap: 64px; }
  .nav-cta { display: inline-flex; padding: 8px 16px; font-size: 0.85rem; }
  .bank-cards-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; }
  .stat-divider { width: 80%; height: 1px; align-self: center; }
  .stat-item { padding: 14px 20px; }
}
