/* =============================================================
   Home — «Orion Finance» v3: ночной hero с карточкой скоринга,
   стат-полоса, направления, шаги с линией, «сейф», отзывы, офисы.
   Ночные поверхности зафиксированы (#0B0B0E) в обеих темах.
   ============================================================= */

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #0B0B0E;
  color: #F7F7F9;
}
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #26262E 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .5;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(900px 600px at 65% 40%, black, transparent);
  mask-image: radial-gradient(900px 600px at 65% 40%, black, transparent);
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
/* орбы статичны: 22-секундный дрейф двух огромных градиентных слоёв
   не читался глазом, но постоянно занимал компоузер */
.hero__orb--1 {
  top: -180px;
  left: 8%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(239,159,39,.16), transparent 66%);
}
.hero__orb--2 {
  bottom: -220px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(239,159,39,.1), transparent 66%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  position: relative;
  gap: 24px;
}
.hero__intro {
  padding: 76px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-pill);
  padding: 7px 15px;
  margin: 0 0 26px;
  width: fit-content;
  font-size: 11.5px;
  color: #9A9AA6;
  letter-spacing: .015em;
  animation: rise .6s var(--ease-out) both;
}
.hero__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ECF8E;
  animation: pulse-ok 2.6s infinite;
  flex-shrink: 0;
}

.hero__h1 {
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 800;
  color: #F7F7F9;
  line-height: 1.03;
  letter-spacing: -.04em;
  margin: 0 0 18px;
  animation: rise .7s var(--ease-out) .05s both;
}
.hero__lead {
  font-size: 16px;
  color: #9A9AA6;
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 47ch;
  animation: rise .7s var(--ease-out) .1s both;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 32px;
  animation: rise .7s var(--ease-out) .15s both;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: rise .7s var(--ease-out) .2s both;
}
.hero__ghost {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
  color: #F7F7F9;
}
.hero__ghost:hover:not(:disabled) {
  border-color: #EF9F27;
  color: #EF9F27;
  background: rgba(255,255,255,.04);
}

/* right: orbit + floating scoring card */
.hero__visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  perspective: 1300px;
}
.hero__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -260px 0 0 -260px;
  opacity: .6;
  animation: spin-slow 70s linear infinite;
  pointer-events: none;
  max-width: none;
}
.hero__float {
  width: 100%;
  max-width: 352px;
  animation: floaty 8s ease-in-out infinite;
}

.score-card {
  width: 100%;
  background: rgba(30,30,36,.82);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1);
  transition: transform .28s var(--ease-out), box-shadow .28s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.score-card__shine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44%;
  background: linear-gradient(105deg, transparent, var(--ac-dim), transparent);
  animation: shine 7s ease-in-out infinite;
  pointer-events: none;
}
.score-card > * { position: relative; }

.score-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.score-card__id {
  font-size: 11px;
  color: #8B8B96;
}
.score-card__ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(62,207,142,.12);
  border-radius: var(--r-pill);
  padding: 4px 11px;
  font-size: 11px;
  color: #3ECF8E;
  font-weight: 600;
}
.score-card__ok-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ECF8E;
  animation: pulse-ok 2.6s infinite;
}

.score-card__ring-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.score-card__ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: conic-gradient(#EF9F27 331deg, rgba(255,255,255,.1) 331deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.score-card__ring-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #141419;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #F7F7F9;
}
.score-card__cap { font-size: 11px; color: #8B8B96; margin: 0 0 3px; }
.score-card__val { font-size: 14px; color: #F7F7F9; font-weight: 600; margin: 0 0 3px; }

.score-card__cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}
.score-card__cell {
  background: rgba(255,255,255,.05);
  border-radius: 11px;
  padding: 12px 10px;
  text-align: center;
}
.score-card__cell span {
  display: block;
  font-size: 9.5px;
  color: #8B8B96;
  margin-bottom: 4px;
}
.score-card__cell strong {
  font-size: 12.5px;
  font-weight: 600;
  color: #F7F7F9;
}
.score-card__cell--gold { color: #FFC46B !important; }

.score-card__steps {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.score-card__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1;
  font-size: 9.5px;
  color: #8B8B96;
}
.score-card__step i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF9F27;
  box-shadow: 0 0 0 4px rgba(239,159,39,.18);
}
/* точки шагов загораются каскадом при загрузке */
.score-card__step:nth-child(1) i { animation: step-light .4s ease .7s both; }
.score-card__step:nth-child(2) i { animation: step-light .4s ease 1.12s both; }
.score-card__step:nth-child(3) i { animation: step-light .4s ease 1.54s both; }
.score-card__step:nth-child(4) i { animation: step-light .4s ease 1.96s both; }
@keyframes step-light {
  from { background: rgba(255,255,255,.14); box-shadow: none; }
  to   { background: #EF9F27; box-shadow: 0 0 0 4px rgba(239,159,39,.18); }
}

/* ---------------- STATS STRIP ---------------- */
.stat-strip {
  background: var(--s1);
  border-bottom: 1px solid var(--bd);
  padding: 24px 0;
}
.stat-strip__row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.stat-strip__item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.stat-strip__value {
  font-size: 22px;
  font-weight: 600;
  color: var(--t1);
  line-height: 1;
  letter-spacing: -.035em;
}
.stat-strip__value--gold { color: var(--ac); }
.stat-strip__label { font-size: 11.5px; color: var(--t3); }

/* ---------------- DIRECTIONS (silo) ---------------- */
.silo__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: var(--s-10);
}
.silo__head h2 { margin-bottom: 0; font-size: var(--fs-3xl); }
.silo__all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--t1);
  padding: 12px 20px;
  border: 1px solid var(--bd2);
  border-radius: 12px;
  transition: all .25s var(--ease);
}
.silo__all:hover {
  border-color: var(--ac);
  background: var(--ac-dim);
  color: var(--ac);
  transform: translateY(-2px);
}

.silo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.silo__card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
  transition: all .28s var(--ease-out);
}
.silo__card:hover {
  transform: translateY(-6px);
  border-color: var(--ac);
  box-shadow: var(--shadow-pop);
}
.silo__card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  margin: 0;
}
.silo__card p {
  font-size: 12.5px;
  color: var(--t2);
  line-height: 1.55;
  margin: 0;
}
.silo__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}
.silo__rate {
  font-size: 12px;
  color: var(--ac);
  font-weight: 600;
}
.silo__arrow { color: var(--ac); font-size: 15px; }
.silo__card--cta {
  background: linear-gradient(145deg, var(--ac-dim), var(--s1) 55%);
  border-color: var(--ac);
}

/* ---------------- STEPS ---------------- */
/* шаги — узкий центрированный блок: заголовок по центру над сеткой */
.steps__head { text-align: center; margin-bottom: 52px; }
.steps__head h2 { margin-bottom: 0; font-size: var(--fs-3xl); }

.steps__wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}
.steps__line {
  position: absolute;
  top: 26px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: var(--bd2);
  overflow: hidden;
}
.steps__line i {
  position: absolute;
  inset: 0;
  background: var(--line-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease-out);
  box-shadow: 0 0 10px var(--ac-glow);
}
.steps__wrap.is-lit .steps__line i { transform: scaleX(1); }

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
}
.step {
  text-align: center;
  padding: 0 10px;
}
.step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ac);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ac);
}
.step h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 9px;
}
.step p {
  font-size: 12.5px;
  color: var(--t2);
  line-height: 1.6;
  margin: 0;
}

/* ---------------- VAULT ---------------- */
.vault { position: relative; overflow: hidden; }
.vault::after {
  content: "";
  position: absolute;
  bottom: -160px;
  right: 4%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ac-dim), transparent 68%);
  pointer-events: none;
}
.vault__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.vault__lead {
  font-size: var(--fs-base);
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: var(--s-8);
  max-width: 48ch;
}
.vault__items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.vault-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.vault-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--s2);
  border: 1px solid var(--bd);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ac);
}
.vault-item h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}
.vault-item p {
  font-size: 12.5px;
  color: var(--t2);
  margin: 0;
}

.vault__panel {
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 22px;
  padding: 28px;
}
.vault__panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--bd);
}
.vault__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse-ok 2.6s infinite;
  flex-shrink: 0;
}
.vault__panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
  margin: 0;
}
.vault__panel-sub {
  font-size: 10.5px;
  color: var(--t3);
  margin: 3px 0 0;
}
.vault__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.vault__stat {
  background: var(--s2);
  border-radius: 12px;
  padding: 14px 16px;
}
.vault__stat span {
  display: block;
  font-size: 10.5px;
  color: var(--t3);
  margin-bottom: 5px;
}
.vault__stat strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t1);
}
.vault__stat--ok { color: var(--ok) !important; }

/* ---------------- REVIEWS ---------------- */
.reviews-home { background: var(--s1); border-block: 1px solid var(--bd); }
.reviews-home__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: var(--s-10);
}
.reviews-home__head h2 { margin-bottom: 0; font-size: var(--fs-3xl); }
.reviews-home__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.reviews-home .review { background: var(--bg); }
.reviews-home__more {
  margin: var(--s-6) 0 0;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* ---------------- OFFICES ---------------- */
.offices__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: var(--s-8);
}

/* ---------------- FAQ ---------------- */
.faq-section { background: var(--s1); border-top: 1px solid var(--bd); }
/* заголовок и аккордеон центрируются общими правилами faq.css */

/* night CTA row */
.night-panel__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------- breakpoints ---------------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 420px; }
}
@media (max-width: 900px) {
  .silo__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .steps__line { display: none; }
  .vault__grid { grid-template-columns: 1fr; gap: 40px; }
  .reviews-home__grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hero__intro { padding: 44px 0 48px; }
  .hero__h1 { font-size: 31px; letter-spacing: -.035em; }
  .hero__visual { display: none; }
  .hero__stats { gap: 7px; }
  .hero-stat { padding: 12px 8px; }
  .hero-stat__value { font-size: 18px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  /* стат-полоса на телефоне не показывается: цифры уже есть в hero,
     а пять позиций в две колонки читались шумно */
  .stat-strip { display: none; }
  .silo__grid { grid-template-columns: 1fr; }
  .silo__all { width: 100%; justify-content: center; }
  .steps__grid { grid-template-columns: 1fr; }
  .offices__grid { grid-template-columns: 1fr; }
}

/* --- мобильный порядок секций: главный инструмент (калькулятор) сразу под
   hero, дальше услуги и остальное в прежнем порядке. Одинаковый order = 5
   сохраняет DOM-порядок остальных секций. home.css грузится только на
   главной, так что display:flex у main никого больше не трогает. --- */
@media (max-width: 768px) {
  main { display: flex; flex-direction: column; }
  main > * { order: 5; }
  main > .hero { order: 1; }
  main > .section--calc { order: 2; }
  main > .silo { order: 3; }
}

/* ============ Сценарий «Что у вас в залог» ============ */
.scenario__head { text-align: center; margin-bottom: 26px; }
.scenario__title { font-size: clamp(1.4rem, 3vw, 2rem); margin: 6px 0 0; }
.scenario__grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .scenario__grid { grid-template-columns: 1fr; } }
.scenario__card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: clamp(20px, 2.6vw, 30px); border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.scenario__card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
}
.scenario__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--gold-ink);
}
.scenario__icon svg { width: 26px; height: 26px; }
.scenario__label { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.scenario__hint { color: var(--gold-ink); font-weight: 600; font-size: .95rem; }
