/* =========================================================
   TJ LENDING — fixed:
   - wider container + right-side blobs (no “empty right space”)
   - modal scroll lock with position:fixed (no background drift)
   - FAQ colors corrected inside dark theme
   ========================================================= */

:root{
  --mint:#00E6C4;
  --mint2:#00cdb2;

  --ink:#0b1220;
  --muted:rgba(11,18,32,.72);

  --bg:#f6f8fb;
  --card:#ffffff;

  --line:rgba(18,24,32,.10);
  --line2:rgba(18,24,32,.14);

  --dark:#07090c;
  --dark2:#0b0f15;

  --wtext:#eef4fb;
  --wmuted:rgba(238,244,251,.72);

  --shadow: 0 26px 80px rgba(0,0,0,.14);
  --shadow2: 0 14px 40px rgba(0,0,0,.10);

  --r12:12px;
  --r16:16px;
  --r20:20px;
  --r28:28px;

  /* было 1180 — делаем шире */
  --max: 1320px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; height:100%; }
body{
  margin:0;
  height:100%;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  color: var(--ink);
  background: var(--bg);
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(var(--max), calc(100% - 44px)); margin:0 auto; }

::selection{ background: rgba(0,230,196,.25); }

.skip{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px; width:auto; height:auto; padding:10px 12px;
  background:#fff; border:1px solid var(--line); border-radius:12px; z-index:9999;
}

/* =========================
   Buttons / pills
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); }
.btn:active{ transform: translateY(0); }

.btn-mint{
  border-color: rgba(0,230,196,.55);
  background: linear-gradient(180deg, var(--mint) 0%, var(--mint2) 100%);
  color: #051012;
}
.btn-ghost{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: rgba(238,244,251,.92);
}
.btn-ghost:hover{ background: rgba(255,255,255,.10); }

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(18,24,32,.10);
  background: rgba(18,24,32,.02);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

/* =========================
   Header
   ========================= */
.header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0 10px;
}

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight: 980; letter-spacing:.2px;
  white-space: nowrap;
}

.logo{
  width:34px; height:34px;
  border-radius: 11px;
  background:
    radial-gradient(12px 12px at 30% 30%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(135deg, rgba(0,230,196,.95), rgba(0,230,196,.25));
  border: 1px solid rgba(0,230,196,.45);
  box-shadow: 0 14px 34px rgba(0,230,196,.18);
}

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 1;
  justify-content:center;
  min-width:0;
}
.nav a{
  font-size: 14px;
  color: rgba(11,18,32,.78);
  padding: 10px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover{ background: rgba(11,18,32,.04); }

.actions{ display:flex; align-items:center; gap:10px; white-space:nowrap; }

.header-meta{
  border-top: 1px solid rgba(18,24,32,.06);
  padding: 8px 0 12px;
}
.metabar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  color: rgba(11,18,32,.62);
  font-size: 12px;
  line-height: 1.35;
}
.metabar .left,.metabar .right{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  align-items:center;
}
.metabar a{ color: rgba(11,18,32,.74); font-weight: 800; }
.metabar a:hover{ text-decoration: underline; }

/* =========================
   Sections / themes
   ========================= */
.section{ padding: 62px 0; position: relative; overflow: hidden; }

.theme-dark{
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(0,230,196,.14) 0%, transparent 60%),
    radial-gradient(700px 420px at 85% 0%, rgba(0,230,196,.10) 0%, transparent 55%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
  color: var(--wtext);
}
.theme-dark .p{ color: var(--wmuted); }

/* добавляем “правые blobs”, чтобы не было пустоты справа на широких экранах */
.theme-dark::before{
  content:"";
  position:absolute;
  right:-220px;
  top:120px;
  width:520px;
  height:520px;
  border-radius:999px;
  background: radial-gradient(circle at 40% 35%, rgba(0,230,196,.22), rgba(0,230,196,0) 62%);
  filter: blur(2px);
  pointer-events:none;
}
.theme-dark::after{
  content:"";
  position:absolute;
  right:-140px;
  bottom:-220px;
  width:560px;
  height:560px;
  border-radius:999px;
  background: radial-gradient(circle at 40% 35%, rgba(0,230,196,.14), rgba(0,230,196,0) 66%);
  pointer-events:none;
}

.theme-light{
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.theme-mint{
  background:
    radial-gradient(860px 380px at 18% 0%, rgba(255,255,255,.92) 0%, transparent 55%),
    linear-gradient(135deg, rgba(0,230,196,.22) 0%, rgba(0,230,196,.06) 55%, rgba(255,255,255,.78) 100%);
}

.wave{ height:42px; }
.wave svg{ display:block; width:100%; height:42px; }

/* =========================
   Typography
   ========================= */
.kicker{
  font-size: 12px;
  letter-spacing: .24em;
  font-weight: 950;
  opacity: .92;
}
.h1{
  margin: 10px 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -1px;
  font-weight: 990;
}
.h2{
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.6px;
  font-weight: 990;
}
.p{
  margin:0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}
.small{
  font-size: 12px;
  line-height: 1.6;
  color: rgba(11,18,32,.62);
}

/* =========================
   Hero
   ========================= */
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
}
.hero-card{
  border-radius: var(--r28);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: 0 26px 80px rgba(0,0,0,.32);
  padding: 26px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 14px;
}
.hero-right{
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.hero-mini{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  padding: 14px;
}
.stat b{ display:block; font-size: 14px; margin-bottom: 6px; }
.stat span{ color: var(--wmuted); font-size: 12px; line-height:1.45; }
.chiprow{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(238,244,251,.78);
  font-size: 13px;
  font-weight: 900;
}

.art{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  overflow:hidden;
}
.art svg{ display:block; width:100%; height:auto; }

/* =========================
   Cards / grids
   ========================= */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.card{
  grid-column: span 4;
  border-radius: var(--r20);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
  padding: 16px;
}
.card b{ display:block; margin-bottom: 8px; font-weight: 980; }
.card p{ margin:0; color: var(--muted); font-size: 13px; line-height:1.65; }

.feature-row{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  margin-top: 18px;
}
.feature{
  border-radius: var(--r28);
  border: 1px solid rgba(11,18,32,.10);
  background:
    radial-gradient(420px 220px at 18% 18%, rgba(0,230,196,.18) 0%, transparent 55%),
    radial-gradient(520px 260px at 85% 25%, rgba(11,18,32,.05) 0%, transparent 60%),
    linear-gradient(135deg, #ffffff 0%, #f2f6fb 100%);
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
  padding: 22px;
  min-height: 260px;
  color: var(--ink);
}
.feature.secondary{
  background:
    radial-gradient(520px 260px at 20% 20%, rgba(0,230,196,.12) 0%, transparent 60%),
    radial-gradient(520px 260px at 85% 35%, rgba(0,0,0,.04) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.82);
  font-weight: 980;
  font-size: 13px;
}
.feature .big{
  margin-top: 14px;
  font-size: 30px;
  letter-spacing: -0.6px;
  font-weight: 990;
}
.feature .small{
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  max-width: 64ch;
}

/* =========================
   FAQ — FIXED COLORS
   ========================= */
.faq{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.faq details{
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.07);
  padding: 12px 14px;
}
.faq summary{
  cursor:pointer;
  font-weight: 980;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary .q{ font-size: 14px; color: var(--ink); }
.faq summary .chev{
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(11,18,32,.02);
  display:grid;
  place-items:center;
  font-weight: 900;
  color: rgba(11,18,32,.78);
}
.faq details[open] summary .chev{ transform: rotate(180deg); }
.faq .a{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ensure FAQ readable even in dark theme */
.theme-dark .faq details{
  background: #fff;
  border-color: rgba(11,18,32,.10);
}
.theme-dark .faq summary,
.theme-dark .faq summary .q{
  color: var(--ink);
}
.theme-dark .faq .a{
  color: var(--muted);
}

/* =========================
   Reviews
   ========================= */
.stars{ display:flex; gap:4px; margin: 8px 0 10px; }
.star{
  width: 14px; height: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.30) 70%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity:.9;
}

/* =========================
   Support
   ========================= */
.support{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.box{
  border-radius: var(--r20);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
  padding: 18px;
}
.field{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin-top: 12px;
}
.field label{
  font-size: 12px;
  font-weight: 980;
  letter-spacing: .04em;
  color: rgba(11,18,32,.70);
}
.field input, .field textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(11,18,32,.02);
  padding: 12px 12px;
  font-size: 14px;
  outline:none;
}
.field textarea{ min-height: 120px; resize: vertical; }

/* =========================
   Footer
   ========================= */
.footer{
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 28px 0;
}
.footer-top{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 14px;
  align-items:start;
}
.company-card{
  border-radius: 22px;
  border: 1px solid rgba(0,230,196,.35);
  background:
    radial-gradient(520px 260px at 15% 25%, rgba(0,230,196,.20) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0,230,196,.05) 0%, #ffffff 55%);
  box-shadow: 0 16px 46px rgba(0,0,0,.08);
  padding: 16px 18px;
}
.company-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.company-title b{ font-size: 14px; font-weight: 990; }
.duns-pill{
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,230,196,.14);
  border: 1px solid rgba(0,230,196,.35);
  font-size: 12px;
  font-weight: 980;
  white-space: nowrap;
}
.company-lines{
  margin-top: 10px;
  color: rgba(11,18,32,.72);
  font-size: 13px;
  line-height: 1.6;
}
.company-lines a{ color: rgba(11,18,32,.78); text-decoration:none; font-weight: 900; }
.company-lines a:hover{ text-decoration: underline; }

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content:flex-end;
}
.footer-links a{
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(11,18,32,.02);
}
.footer-links a:hover{ background: rgba(11,18,32,.05); }

.disclaimer{
  margin: 14px 0 0;
  color: rgba(11,18,32,.62);
  line-height: 1.65;
  font-size: 12px;
}
.copy{
  margin: 10px 0 0;
  color: rgba(11,18,32,.60);
  font-size: 12px;
}

/* =========================
   MODAL — FIXED + no background drift
   ========================= */

/* hard lock scroll */
body.scroll-locked{
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

/* when locked, body becomes fixed (JS sets top) */
body.scroll-locked.fixed{
  position: fixed;
  width: 100%;
  left: 0;
}

.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.modal.open{ display:block; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(11,18,32,.55);
}

.modal-dialog{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1160px, calc(100vw - 24px));
  height: min(92vh, 920px);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,.18);
  overflow: hidden;
  display:flex;
  flex-direction: column;
}

.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(18,24,32,.10);
  background: #fff;
  flex: 0 0 auto;
}
.modal-title{ display:flex; flex-direction:column; gap:4px; }
.modal-title b{ font-size: 14px; font-weight: 990; color: var(--ink); }
.modal-title span{ font-size: 12px; color: rgba(11,18,32,.68); line-height: 1.35; max-width: 92ch; }

.modal-close{
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(11,18,32,.02);
  cursor:pointer;
  font-weight: 990;
}
.modal-close:hover{ background: rgba(11,18,32,.06); }

/* IMPORTANT: no modal scroll; center content */
.modal-body{
  padding: 14px;
  background: #fff;
  flex: 1 1 auto;
  overflow: hidden;
  display:flex;
  align-items: center;
  justify-content: center;
  overscroll-behavior: none;
}

.form-wrap{
  width: 100%;
  height: 100%;
  max-width: 1060px;
  border-radius: 22px;
  border: 1px solid rgba(11,18,32,.10);
  background: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.08);
  padding: 18px;
  overflow: hidden;
}

#_lg_form_{
  width: 100%;
  height: 100%;
  min-height: 0;
}

#_lg_form_ iframe{
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  border: 0 !important;
  display:block !important;
}

#_lg_form_ *{
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px){
  .nav{ display:none; }
  .metabar{ flex-direction:column; align-items:flex-start; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-mini{ grid-template-columns: 1fr; }
  .grid .card{ grid-column: span 6; }
  .feature-row{ grid-template-columns: 1fr; }
  .faq{ grid-template-columns: 1fr; }
  .support{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; }
  .footer-links{ justify-content:flex-start; }
}

@media (max-width: 640px){
  .grid .card{ grid-column: span 12; }
  .modal-dialog{
    width: calc(100vw - 18px);
    height: min(92vh, 940px);
  }
  .form-wrap{ padding: 12px; }
}
