/* ============================================================
   КредитПомощь — Landing styles (light theme)
   Palette: deep navy ink + emerald "approved" green CTA + trust blue
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --bg: #ffffff;
  --bg-soft: #f4f8f6;
  --bg-mint: #eaf6ef;
  --ink: #0b1b2b;
  --ink-soft: #33485c;
  --muted: #6a7c8c;
  --brand: #16a34a;          /* emerald — approved / money */
  --brand-dark: #15803d;
  --brand-tint: #dcf2e4;
  --blue: #2563eb;           /* trust accent */
  --blue-tint: #e3edff;
  --gold: #f59e0b;
  --border: #e3eaef;
  --white: #ffffff;
  --danger: #dc2626;

  /* Effects */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 43, .06), 0 2px 8px rgba(11, 27, 43, .04);
  --shadow: 0 8px 30px rgba(11, 27, 43, .08);
  --shadow-lg: 0 24px 60px rgba(11, 27, 43, .14);
  --shadow-brand: 0 12px 30px rgba(22, 163, 74, .28);

  /* Layout */
  --container: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
h2.section-title { font-size: clamp(28px, 4vw, 44px); }
.section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-lead { font-size: clamp(16px, 2vw, 18px); color: var(--muted); max-width: 620px; }
.section-head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.section-head .section-lead { margin: 16px auto 0; }

section { padding: clamp(64px, 9vw, 112px) 0; }
.bg-soft { background: var(--bg-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
  min-height: 52px;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(22, 163, 74, .36); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-dark); }
.btn-lg { padding: 18px 36px; font-size: 17px; min-height: 60px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid; place-items: center; color: #fff; flex: 0 0 auto;
  box-shadow: var(--shadow-brand);
}
.logo-mark svg { width: 22px; height: 22px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; position: relative; transition: color .2s; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--brand); transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--brand-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 600; color: var(--ink); font-size: 15px; white-space: nowrap; }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 88px));
  padding-bottom: clamp(56px, 8vw, 104px);
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, var(--bg-mint) 0%, transparent 60%),
    radial-gradient(800px 400px at 8% 0%, var(--blue-tint) 0%, transparent 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); border: 1px solid var(--border);
  padding: 8px 16px 8px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft); box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.hero h1 { font-size: clamp(34px, 5.2vw, 62px); line-height: 1.05; }
.hero h1 .accent { color: var(--brand); position: relative; white-space: nowrap; }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); margin: 24px 0 34px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 22px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.hero-trust-item svg { width: 22px; height: 22px; color: var(--brand); flex: 0 0 auto; }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  position: relative;
  z-index: 2;
}
.hero-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.hero-card-top .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.hero-card-top .pill { font-size: 12px; font-weight: 700; color: var(--brand-dark); background: var(--brand-tint); padding: 5px 12px; border-radius: 999px; }
.hero-amount { font-size: 40px; font-weight: 700; letter-spacing: -.03em; }
.hero-amount span { font-size: 18px; color: var(--muted); font-weight: 500; }
.hero-meter { height: 10px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin: 20px 0 8px; }
.hero-meter i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); }
.hero-meter-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.hero-card-rows { margin-top: 24px; display: grid; gap: 14px; }
.hero-row { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14.5px; }
.hero-row .k { color: var(--muted); }
.hero-row .v { font-weight: 600; }
.hero-row .v.ok { color: var(--brand-dark); display: inline-flex; align-items: center; gap: 6px; }
.hero-float {
  position: absolute; z-index: 3;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); padding: 13px 16px;
  display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 14px;
}
.hero-float .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.hero-float small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.hero-float.one { top: -22px; right: -10px; }
.hero-float.two { bottom: -26px; left: -18px; }
.hero-float.one .ic { background: var(--blue-tint); color: var(--blue); }
.hero-float.two .ic { background: var(--brand-tint); color: var(--brand-dark); }

/* ---------- Logos / trust strip ---------- */
.partners { padding: 40px 0; border-bottom: 1px solid var(--border); }
.partners p { text-align: center; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; font-weight: 600; }
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; }
.partner { font-weight: 700; font-size: clamp(16px, 2.4vw, 22px); color: #aeb9c4; letter-spacing: -.02em; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat .num { font-size: clamp(32px, 4vw, 46px); font-weight: 700; color: var(--brand); letter-spacing: -.03em; line-height: 1; }
.stat .num .suffix { color: var(--ink); }
.stat .cap { margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }

/* ---------- Services ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.s-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.s-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.s-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.s-card:hover::before { transform: scaleX(1); }
.s-ic { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-dark); margin-bottom: 20px; }
.s-ic svg { width: 28px; height: 28px; }
.s-card:nth-child(3n+2) .s-ic { background: var(--blue-tint); color: var(--blue); }
.s-card:nth-child(3n) .s-ic { background: #fef3e2; color: var(--gold); }
.s-card h3 { font-size: 20px; margin-bottom: 10px; }
.s-card p { color: var(--muted); font-size: 15px; }
.s-card .s-rate { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--brand-dark); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 8px; }
.step .n {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 22px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: var(--shadow-brand); margin-bottom: 20px;
}
.step:nth-child(2) .n { background: linear-gradient(135deg, #3b82f6, var(--blue)); box-shadow: 0 12px 30px rgba(37,99,235,.28); }
.step:nth-child(3) .n { background: linear-gradient(135deg, #fbbf24, var(--gold)); box-shadow: 0 12px 30px rgba(245,158,11,.28); }
.step:nth-child(4) .n { background: linear-gradient(135deg, #34d399, var(--brand)); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 36px; left: 72px; right: -12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 16px);
}

/* ---------- Why us (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.why-list { display: grid; gap: 18px; margin-top: 30px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-dark); display: grid; place-items: center; flex: 0 0 auto; }
.why-item .ic svg { width: 22px; height: 22px; }
.why-item h4 { font-size: 16.5px; margin-bottom: 3px; }
.why-item p { font-size: 14.5px; color: var(--muted); }
.why-visual {
  background: linear-gradient(160deg, var(--ink) 0%, #14304a 100%);
  border-radius: var(--radius-lg); padding: 44px; color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why-visual::after {
  content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,163,74,.45), transparent 70%); top: -80px; right: -60px;
}
.why-visual .q { font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; line-height: 1.4; position: relative; }
.why-visual .author { margin-top: 26px; display: flex; align-items: center; gap: 14px; position: relative; }
.why-visual .avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--blue)); display: grid; place-items: center; font-weight: 700; }
.why-visual .author small { display: block; color: #a9bccd; font-weight: 400; }
.why-stats { display: flex; gap: 30px; margin-top: 34px; position: relative; }
.why-stats div b { font-size: 30px; display: block; color: #4ade80; }
.why-stats div span { font-size: 13px; color: #a9bccd; }

/* ---------- Testimonials ---------- */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.t-stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 14px; }
.t-stars svg { width: 18px; height: 18px; }
.t-card p { color: var(--ink-soft); font-size: 15px; }
.t-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.t-author .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.t-author b { font-size: 15px; }
.t-author small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item.open { box-shadow: var(--shadow); border-color: var(--brand-tint); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; text-align: left; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.faq-q .chev { flex: 0 0 auto; width: 24px; height: 24px; color: var(--brand); transition: transform .3s var(--ease); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 26px 24px; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; }
.cta-box {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); text-align: center; color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-box::before, .cta-box::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); }
.cta-box::before { width: 320px; height: 320px; top: -120px; left: -80px; }
.cta-box::after { width: 240px; height: 240px; bottom: -100px; right: -40px; }
.cta-box h2 { color: #fff; font-size: clamp(26px, 4vw, 42px); position: relative; }
.cta-box p { color: rgba(255,255,255,.9); margin: 16px auto 32px; max-width: 540px; position: relative; font-size: 17px; }
.cta-box .btn { position: relative; }
.cta-box .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.cta-box .btn-primary:hover { box-shadow: 0 18px 40px rgba(0,0,0,.24); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c2cfd9; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer-about { font-size: 14px; color: #92a4b3; max-width: 300px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: #a9bccd; font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: var(--brand); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-disclaimer { font-size: 12.5px; color: #7d909f; line-height: 1.6; max-width: 820px; margin-top: 14px; }
.footer-bottom small { font-size: 13px; color: #7d909f; }

/* ---------- Floating contact button ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-brand);
  transform: translateY(120px); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease), box-shadow .25s;
}
.fab.show { transform: translateY(0); opacity: 1; }
.fab:hover { box-shadow: 0 18px 44px rgba(22,163,74,.45); }
.fab svg { width: 20px; height: 20px; }
.fab .pulse { position: absolute; right: 16px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: #fde047; box-shadow: 0 0 0 0 rgba(253,224,71,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(253,224,71,.7); } 70% { box-shadow: 0 0 0 12px rgba(253,224,71,0); } 100% { box-shadow: 0 0 0 0 rgba(253,224,71,0); } }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(11, 27, 43, .55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 460px; padding: 32px; position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.96); opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px;
  border-radius: 10px; display: grid; place-items: center; color: var(--muted);
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.modal-close svg { width: 20px; height: 20px; }
.modal-head { text-align: center; margin-bottom: 26px; }
.modal-head .modal-ic { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 18px; display: grid; place-items: center; }
.modal-head .modal-ic.brand { background: var(--brand-tint); color: var(--brand-dark); }
.modal-head .modal-ic.warn { background: #fff4e0; color: var(--gold); }
.modal-head .modal-ic svg { width: 32px; height: 32px; }
.modal-head h3 { font-size: 22px; margin-bottom: 8px; }
.modal-head p { color: var(--muted); font-size: 15px; }

/* Messenger choice */
.msgr-list { display: grid; gap: 12px; }
.msgr-btn {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 16px 18px; border-radius: var(--radius); border: 1.5px solid var(--border);
  background: var(--white); text-align: left;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s, background .2s;
}
.msgr-btn:hover { transform: translateX(4px); border-color: var(--brand); box-shadow: var(--shadow-sm); background: var(--bg-soft); }
.msgr-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.msgr-btn .msgr-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; }
.msgr-btn .msgr-ic img { width: 100%; height: 100%; object-fit: cover; }
.msgr-btn .tg { background: #e7f4fc; }
.msgr-btn .tg img { width: 30px; height: 30px; }
.msgr-btn .wa { background: #e7f9ef; }
.msgr-btn .wa img { width: 32px; height: 32px; }
.msgr-btn .mx img { width: 48px; height: 48px; }
.msgr-btn .msgr-txt b { display: block; font-size: 16px; }
.msgr-btn .msgr-txt span { font-size: 13.5px; color: var(--muted); }
.msgr-btn .arrow { margin-left: auto; color: var(--muted); transition: transform .2s, color .2s; }
.msgr-btn:hover .arrow { transform: translateX(3px); color: var(--brand); }
.msgr-btn:disabled { opacity: .55; cursor: progress; }

/* Warning modal */
.warn-text { font-size: 16px; color: var(--ink-soft); text-align: center; line-height: 1.6; }
.warn-text b { color: var(--ink); }
.warn-figure { margin: 18px 0 0; }
.warn-figure[hidden] { display: none; }
.warn-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.warn-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-soft); text-align: center; }
.modal-actions { margin-top: 26px; display: grid; gap: 10px; }
.modal-error { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fdecec; color: var(--danger); font-size: 14px; text-align: center; }
.modal-error.show { display: block; }
.btn .spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite; display: none;
}
.btn.loading .spinner { display: block; }
.btn.loading .btn-label { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Reveal animation base ---------- */
.reveal { opacity: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 8px auto 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .t-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  /* Hide the brand text in the logo, keep just the mark */
  .logo-text { display: none; }

  .burger {
    display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 10px; border: 1px solid var(--border);
    color: var(--ink); background: var(--white);
  }
  .burger svg { width: 24px; height: 24px; }

  /* Burger opens the nav as a dropdown menu */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: calc(var(--nav-h) - 8px);
    left: 18px;
    right: 18px;
    margin: 0;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .header.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a {
    display: block;
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
  }
  .nav-links a:hover { color: var(--brand-dark); background: var(--bg-soft); }
  .nav-links a::after { display: none; }

  .hero h1 { font-size: clamp(30px, 8vw, 42px); }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .stats-grid, .cards-grid, .t-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-float { display: none; }
  .fab span.fab-label { display: none; }
  .fab { padding: 16px; }
  .modal { padding: 26px 22px; }
}

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