/* ===== Главная страница Business Doctor — светлая версия (23.09.2026) =====
   Опирается на токены css/main.css (система внутренних страниц): синий #1D4ED8,
   фон #F6F7F9, текст #0F172A, приглушённое золото #7F6137.
   Задача: короткая страница, много воздуха, ничего лишнего. */

.home {
  --pad: clamp(48px, 6.5vw, 80px);
  background: #FFFFFF;
  padding-top: 80px;            /* шапка зафиксирована, иначе контент уезжает под неё */
}
@media (max-width: 768px) { .home { padding-top: 64px; } }

.home section { padding: var(--pad) 0; }
.home .wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ---------- типографика: плотнее, чем на внутренних страницах ---------- */
.home h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 20px; }
.home h2 { font-size: clamp(32px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 16px; }
.home p  { font-size: 16px; line-height: 1.6; color: #475569; margin: 0 0 16px; }
.home .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #7F6137; margin-bottom: 20px;
}

/* ---------- первый экран ---------- */
.hero { padding-top: clamp(20px, 3vw, 40px) !important; background: var(--hero-bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-lead { font-size: 18px; color: #475569; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 16px; }
.hero-note { font-size: 14px; color: #64748B; }
.hero-photo { border-radius: 24px; overflow: hidden; box-shadow: 0 18px 50px rgba(15,23,42,0.12); }
.hero-photo img { display: block; width: 100%; height: auto; }

.btn-line {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px; border-radius: 12px; border: 1.5px solid rgba(15,23,42,0.2);
  color: #0F172A; font-weight: 600; font-size: 16px; background: transparent;
}
.btn-line:hover { border-color: #1D4ED8; color: #1D4ED8; }

/* ---------- шаги: прихожу / делаю / передаю ---------- */
.steps { background: #F8FAFC; }
.steps-head { max-width: 640px; margin-bottom: clamp(24px, 4vw, 48px); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps-note { max-width: 860px; margin: clamp(28px, 4vw, 44px) 0 0; font-size: 18px; line-height: 1.55; color: #334155; }
.step { background: #fff; border: 1px solid rgba(15,23,42,0.07); border-radius: 16px; padding: 32px; }
.step__num { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: #7F6137; margin-bottom: 16px; }
.step h3 { font-size: 20px; margin: 0 0 12px; letter-spacing: -0.02em; }
.step p { margin: 0; font-size: 16px; }

/* ---------- плитки-направления ---------- */
.tiles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tiles-grid--two { grid-template-columns: repeat(2, 1fr); }  /* investor: 2 колонки, на телефоне — одна (см. адаптив) */
.tile {
  display: flex; flex-direction: column; gap: 12px; padding: 32px 32px 32px;
  background: #fff; border: 1px solid rgba(15,23,42,0.08); border-radius: 16px;
  color: inherit; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tile:hover { transform: translateY(-3px); border-color: rgba(29,78,216,0.35); box-shadow: 0 16px 36px rgba(15,23,42,0.09); }
.tile__icon { width: 30px; height: 30px; color: #1D4ED8; }
.tile h3 { font-size: 20px; margin: 0; letter-spacing: -0.02em; }
.tile p { margin: 0; font-size: 16px; color: #64748B; }
.tile__go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: #1D4ED8; }

/* ---------- плитки направлений на главной: единый строгий стиль ---------- */
.tiles-grid--accent { gap: 20px; }
.tiles-grid--accent .tile {
  padding: 28px; border-color: rgba(15,23,42,0.10); box-shadow: none;
}
.tiles-grid--accent .tile__ic {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: #EEF2F7;
}
.tiles-grid--accent .tile__icon { width: 22px; height: 22px; color: #1D4ED8; }
.tiles-grid--accent .tile:hover {
  transform: translateY(-2px); border-color: rgba(15,23,42,0.18);
  box-shadow: 0 12px 28px rgba(15,23,42,0.07);
}
.tiles-grid--accent .tile:hover .tile__go { text-decoration: underline; }
.home-extra { margin-top: 24px; font-size: 16px; color: #64748B; }
.home-extra a { font-weight: 600; }

/* ---------- полоса доказательств ---------- */
.proof { background: #F8FAFC; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: clamp(24px, 4vw, 48px); }
.proof-item__num { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.03em; color: #1D4ED8; }
.proof-item__label { font-size: 14px; color: #64748B; margin-top: 4px; }
.proof-case { background: #fff; border-left: 4px solid #7F6137; border-radius: 16px; padding: 24px 32px; }
.proof-case p { margin: 0 0 12px; font-size: 16px; color: #475569; }
.proof-case a { font-weight: 600; }
/* если кейса в секции нет (главная) — числа стоят последними и лишнего отступа не нужно */
.proof-grid:last-child { margin-bottom: 0; }

/* ---------- призыв ---------- */
.call { background: #0F172A; color: #E2E8F0; }
.call h2 { color: #fff; }
.call p { color: #A8B3C4; max-width: 34em; }
.call-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.call .btn-primary { background: #1D4ED8; box-shadow: 0 8px 24px rgba(29,78,216,0.35); }
.call .btn-primary:hover { background: #2563EB; }
.call .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.call .btn-line:hover { border-color: #fff; color: #fff; }

/* ---------- подвал ---------- */
.home-footer { padding: 32px 0 48px; background: #0F172A; border-top: 1px solid rgba(255,255,255,0.08); }
.home-footer__row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; color: #94A3B8; font-size: 14px; }
.home-footer__links a { color: #CBD5E1; margin-right: 20px; }
.home-footer__links a:hover { color: #fff; }
/* общий подвал на главной и investor: правило .home p не должно перекрашивать его в тёмно-серый */
.home .footer__copy { color: #CBD5E1; font-size: 14px; margin: 0 0 12px; }
.home .footer__links { color: #94A3B8; font-size: 14px; margin: 0; }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; }
  .tiles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero { padding-top: 24px !important; }
}
@media (max-width: 520px) {
  .tiles-grid { grid-template-columns: 1fr; }
  .hero-cta a, .call-cta a { width: 100%; justify-content: center; }
}

/* совместимые якоря — не занимают места */
.home span[id] { display: block; height: 0; overflow: hidden; }

/* ---------- телефон: лицо целиком в первом экране ---------- */
.hero-avatar { display: none; }
@media (max-width: 768px) {
  .hero-photo { display: none; }              /* большое фото на телефоне убираем */
  .hero-avatar {
    display: block; width: 104px; height: 104px; border-radius: 50%; overflow: hidden;
    margin-bottom: 20px; box-shadow: 0 10px 26px rgba(15,23,42,0.14);
  }
  .hero-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
  .hero-cta { margin: 24px 0 12px; }
  .hero-lead { font-size: 16px; }
  .home .eyebrow { margin-bottom: 12px; }
  .step, .tile { padding: 24px; }
  .tiles-grid--accent .tile { padding-top: 32px; }
}

/* ---------- агент в деле: вход на живую демонстрацию ---------- */
.agent { background: #FFFFFF; }
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.agent-grid .btn-primary { margin-top: 8px; }
.term-card {
  background: #0A0F16; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
  box-shadow: 0 20px 44px rgba(15,23,42,0.18); overflow: hidden;
}
.term-card__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: #131C28; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 12px; color: #93A5B8;
}
.term-card__bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.term-card__bar i:nth-child(1) { background: #F87171; }
.term-card__bar i:nth-child(2) { background: #FBBF24; }
.term-card__bar i:nth-child(3) { background: #4ADE80; }
.term-card__bar span { margin-left: 8px; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.term-card__body { padding: 20px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; line-height: 1.6; }
.term-card__body div { color: #E6EDF5; margin-bottom: 4px; }
.term-card__body .ok { color: #4ADE80; }
.term-card__body .act { color: #38BDF8; font-weight: 500; }
.term-card__body .dim { color: #8B98A9; }
@media (max-width: 900px) { .agent-grid { grid-template-columns: 1fr; } }

/* ===== Блок агента-оркестратора (главная) ===== */
.agent--orch { background: #FFFFFF; }
.steps-grid--five { grid-template-columns: repeat(5, 1fr); }
.agent--orch .step { padding: 24px; }
.agent--orch .step h3 { font-size: 18px; }
.agent--orch .step p { font-size: 14px; line-height: 1.4; }
.orch-scheme { margin: clamp(24px, 4vw, 40px) 0 0; padding: 0; }
.orch-scheme img { display: block; width: 100%; height: auto; border-radius: 16px; }
.orch-note { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(24px, 4vw, 40px); }
.orch-note h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.orch-note p { margin: 0; font-size: 16px; line-height: 1.4; }
.orch-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: clamp(20px, 3vw, 32px); }
.orch-caveat { margin: 12px 0 0; font-size: 14px; color: #64748B; }
.tiles-grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .steps-grid--five { grid-template-columns: repeat(3, 1fr); } .tiles-grid--three { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .orch-note { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .steps-grid--five { grid-template-columns: 1fr 1fr; } .tiles-grid--three { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .steps-grid--five { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .orch-scheme img { max-width: 380px; margin: 0 auto; aspect-ratio: 350 / 680; } }
