/* ===== DESKTOP LAYER + АРТ-ДИРЕКШН =====
   Всё для ПК. Мобильная версия и её концепт не меняются.

   Уровни: ≥900 — широкий лейаут и сетки; ≥1024 — крупный hero на всю ширину;
   ≥1100 — двухколоночный финальный CTA. */

/* Ровнее разбивка многострочных заголовков (на всех ширинах). */
.hero-title, .final-title, .section-title { text-wrap: balance; }

/* ---------------- ≥900px: широкий лейаут ---------------- */
@media (min-width: 900px) {
  body { font-size: 15px; }
  .page { max-width: 1200px; padding: 32px 40px 72px; gap: 30px; }
  .section-title { font-size: 12px; margin-bottom: 32px; }

  /* Фон колонки переливается в чёрные поля, а не обрывается ступенькой.
     Тот же вертикальный градиент, что и на мобильной версии, лежит на
     подложке, а поверх него — чёрная вуаль с прозрачностью по краям:
     к границе колонки цвет уже равен фону body, стыка не видно.
     Обычные background-слои, без mask — работает везде одинаково. */
  .page { position: relative; background: none; }
  .page::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      linear-gradient(90deg, #080f0a 0%, rgba(8, 15, 10, 0) 14%, rgba(8, 15, 10, 0) 86%, #080f0a 100%),
      linear-gradient(180deg, rgba(8, 15, 10, 0) 80%, #080f0a 100%),
      linear-gradient(180deg, #0d1710 0%, #0b120c 55%, #0c130d 100%);
  }

  /* HERO — одна колонка, весь первый экран: от лого до метрик без прокрутки */
  .hero {
    padding: 32px 56px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
  }
  .hero::after { font-size: 12px; }
  .nav-bar { margin-bottom: 24px; align-items: center; flex: 0 0 auto; }
  .hero-copy { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
  .hero-eyebrow { font-size: 12px; }
  .hero-sub-info { font-size: 12px; margin-bottom: 20px; }
  .hero-title { font-size: 46px; font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; max-width: 820px; margin-bottom: 20px; }
  .hero-sub { font-size: 17px; line-height: 1.5; max-width: 600px; margin-bottom: 26px; }
  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; min-width: 210px; margin: 0; }
  .hero-note { font-size: 13px; margin-top: 18px; }
  .hero-metrics { max-width: 560px; gap: 24px; margin-top: 28px; }
  .hero-metrics .metric { border-left: 2px solid rgba(95, 214, 111, 0.4); padding-left: 14px; }
  .metric .value { font-size: 30px; margin-bottom: 8px; }
  .metric .label { font-size: 11px; }

  /* SITUATIONS — 2 колонки */
  .situations { padding: 46px 52px 48px; }
  .situations-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 44px; margin-bottom: 36px; }
  .sit-text { font-size: 15px; }
  .sit-footer { font-size: 13px; grid-column: 1 / -1; }

  /* PROCESS — 2×2 */
  .system { padding: 28px 10px; }
  .system-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 52px; }
  .sys-item { padding: 22px 0; }
  .sys-item:nth-last-child(2) { border-bottom: none; }
  .sys-desc { font-size: 14px; }

  /* CLIENTS — ниши в 2 колонки */
  .clients-section { padding: 28px 10px; }
  .clients-niches { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 44px; }

  /* CASES — двухколоночный слайд, чтобы правая половина не пустовала */
  .cases-section { padding: 28px 10px; }
  .case-slide > .case {
    min-height: 360px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
    align-content: center;
  }
  .case-slide > .case > * { grid-column: 1; min-width: 0; }
  .case-slide > .case .case-cols {
    grid-column: 2; grid-row: 1 / span 50; align-self: center; margin: 0;
  }
  .case-logo { max-width: 180px; }
  .case-metric .value { font-size: 34px; }
  .case-cols { max-width: none; }
  .case-compact, .case-niche { min-height: 340px; }
  .case-result-value { min-width: 190px; }
  .case-niche-grid { grid-template-columns: repeat(4, 1fr); }

  /* SERVICES */
  .services-card { padding: 44px 48px; }
  .grp-head { grid-template-columns: 44px 1fr auto 24px; padding: 20px 0; }
  .grp-title { font-size: 16px; }
  .grp-desc { font-size: 13px; }
  .grp-line { font-size: 13.5px; }

  /* WHY — 4 колонки */
  .why { padding: 28px 10px; }
  .why-list { grid-template-columns: repeat(4, 1fr); gap: 30px; }
  .why-text { font-size: 14px; }

  /* FINAL CTA (одноколоночный до 1100) */
  .final-cta { padding: 48px 52px; }
  .final-title { font-size: 34px; max-width: 620px; margin-bottom: 26px; }
  .final-sub-label { font-size: 13px; }
  .final-list li { font-size: 15px; }
  .final-cta .final-form { max-width: 480px; }
  .final-form .field input, .final-form .field textarea { font-size: 14px; }
  .btn-form { font-size: 13px; padding: 15px; }
}

/* ---------------- ≥1024px: крупный hero на всю ширину ---------------- */
@media (min-width: 1024px) {
  .hero { padding: 36px 64px; }
  .hero-title { font-size: 52px; max-width: 900px; }
  .hero-sub { font-size: 18px; max-width: 640px; }
  .hero-metrics { max-width: 620px; }
}

/* ---------------- ≥1100px: финальный CTA 2 колонки ---------------- */
@media (min-width: 1100px) {
  .final-cta { position: relative; min-height: 500px; }
  .final-cta > :not(.final-form) { max-width: 560px; }
  .final-title { max-width: 560px; }
  .final-cta .final-form {
    position: absolute; top: 52px; right: 56px; width: 384px; max-width: 384px;
    margin-top: 0; padding: 30px; background: rgba(8, 12, 9, 0.55);
    border: 1px solid var(--divider-dark); border-radius: 14px; backdrop-filter: blur(4px);
  }
  .final-cta .form-meta { max-width: 560px; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: 58px; max-width: 980px; }
  .hero-sub { font-size: 19px; }
}
