/* ─────────────────────────────────────────────
   Премиум-лайн: Obsidian Black + Цифровое Золото
   Шрифты: Cormorant Garant (заголовки) + Manrope (текст)
   ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg:           #050a12;
  --bg-muted:     #07101d;
  --surface:      #0a1424;
  --surface-hover:#101e35;
  --line:         rgba(148, 163, 184, 0.16);
  --line-gold:    rgba(226, 196, 126, 0.22);

  --text:         #eaf1fb;
  --text-strong:  #ffffff;
  --muted:        #a0b2ca;

  --gold-primary: #e2c47e;
  --gold-shadow:  rgba(226, 196, 126, 0.14);

  --ok:    #5cb97a;
  --error: #e05353;

  --shadow-gold: 0 8px 32px rgba(226, 196, 126, 0.12);
  --radius-xl:   20px;
  --radius-lg:   14px;

  --font-display: 'Cormorant Garant', Georgia, serif;
  --font-body:    'Manrope', ui-sans-serif, -apple-system, sans-serif;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
a { text-decoration: none; }

body {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  background:
    radial-gradient(1000px 520px at 8% 0%, rgba(33, 57, 94, 0.28), transparent 58%),
    var(--bg);
  overflow-x: hidden;
}

/* Фоновая сетка */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,0.1), transparent 75%);
  opacity: 0.15;
  z-index: 0;
}

/* Хелперы */
.container   { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.section     { padding: clamp(48px, 6vw, 76px) 0; }
.text-center { text-align: center; }
.text-gold   { color: var(--gold-primary); }

/* Кикер */
.hero-kicker-lead {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  max-width: 68ch;
  margin-bottom: 16px;
  font-weight: 600;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-row {
  min-height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 0;
}
.brand-kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
  margin: 0;
}
.brand-title {
  margin: 3px 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
.header-contacts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

/* Чипы */
.link-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0 18px;
  font-size: 0.84rem; font-weight: 600;
  color: #dae6f4;
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.link-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.36);
  background: var(--surface-hover);
}
.link-chip--gold { border-color: var(--line-gold); color: var(--gold-primary); }
.link-chip--gold:hover {
  border-color: var(--gold-primary);
  background: rgba(226, 196, 126, 0.08);
}

/* Герой */
.hero { padding: clamp(52px, 5.2vw, 84px) 0 64px; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  text-wrap: balance;
  margin: 0;
}

.hero-lead {
  margin-top: 22px;
  max-width: 62ch;
  color: #d4e0ef;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.75;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px 16px;
  flex-wrap: wrap;
}

/* CTA */
.cta {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(226,232,240,0.93));
  color: #0b1220;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  white-space: nowrap;
  border: none;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0,0,0,0.28); }
.cta--gold {
  background: linear-gradient(180deg, #f7ebd0, #e2c47e);
  color: #0b1220;
}
.cta--gold:hover { box-shadow: 0 12px 28px rgba(226, 196, 126, 0.32); }

.sub-note {
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}
.hero-footnotes {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.micro-chip {
  display: inline-flex; align-items: center;
  min-height: 34px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(12, 21, 36, 0.54);
  color: #c8d8ec;
  font-size: 0.82rem; font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(0,0,0,0.22);
}
.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
}
.visual-grid::before {
  content: "";
  position: absolute;
  left: 21px; right: 21px; top: 21px;
  height: 1px;
  background: var(--line);
  z-index: 0;
}

.mini-card {
  position: relative; z-index: 1;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  background: rgba(11, 20, 35, 0.82);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

/* Step-num: flexbox центровка */
.hero-visual .mini-card .step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--bg);
}
.hero-visual .mini-card.active .step-num {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.mini-card .title {
  margin-top: 10px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-strong);
  line-height: 1.4;
  text-wrap: pretty;
}
.mini-card .title.kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem; font-weight: 700;
  margin-top: 8px;
}

.visual-caption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Секции */
.section-muted { background: var(--bg-muted); }
.section-head  { margin-bottom: 6px; }

h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
  color: var(--text-strong);
  margin: 0;
}
.section-intro {
  margin-top: 14px;
  max-width: 68ch;
  color: #c9d7e8;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Карточки */
.card-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px 20px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.panel:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}
.panel h3 {
  font-size: 1.04rem;
  line-height: 1.32;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
}
.panel p {
  margin-top: 10px;
  color: #c2d2e6;
  font-size: 0.95rem;
  line-height: 1.68;
  margin-bottom: 0;
}

/* Процесс */
.process {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px 20px;
  position: relative; overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.step::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--gold-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.step:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}
.step:hover::after { opacity: 1; }
.step h3 {
  font-size: 1.04rem;
  line-height: 1.32;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
}
.step p {
  margin-top: 10px;
  color: #c2d2e6;
  font-size: 0.95rem;
  line-height: 1.68;
  margin-bottom: 0;
}

/* Форма */
.form-wrap { padding: 56px 0 64px; }

.form-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(0,0,0,0.3);
}
.form-card::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(226, 196, 126, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 196, 126, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 55%);
  z-index: 0;
}
.form-card .section-head {
  text-align: center;
  position: relative; z-index: 1;
}
.form-card .section-intro {
  margin-left: auto; margin-right: auto;
}

#intake-form {
  position: relative; z-index: 1;
  margin-top: 24px;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.field-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #384c65;
  border-radius: 12px;
  background: rgba(5, 10, 18, 0.86);
  color: #f0f6ff;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
input::placeholder { color: #7a95b0; }
input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-shadow);
  background: var(--bg);
}

.helper {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}
.helper strong { color: #e4edf8; }

.submit-btn {
  width: 100%;
  margin-top: 16px;
  min-height: 54px;
  border: none; border-radius: 14px;
  background: linear-gradient(180deg, #f7ebd0, #e2c47e);
  color: #0b1220;
  font-family: var(--font-body);
  font-size: 0.98rem; font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(226, 196, 126, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(226, 196, 126, 0.32);
}
.submit-btn:active { transform: translateY(0); }

#form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}
.status-success { color: var(--ok); }
.status-error   { color: var(--error); }

/* Подвал */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  background: var(--bg-muted);
}
.footer-row {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.86rem; line-height: 1.5;
  align-items: center;
}
.footer-row p { margin: 0; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #c8d6e8; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold-primary); }

/* Адаптив */
@media (max-width: 1120px) {
  .hero-layout          { grid-template-columns: 1fr; }
  .card-grid, .process  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-group          { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  h2.section-title { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .section, .hero, .form-wrap { padding-top: 40px; padding-bottom: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta, .submit-btn { width: 100%; }
  .card-grid, .process { grid-template-columns: 1fr; }
  .visual-grid { grid-template-columns: 1fr; }
  .visual-grid::before { display: none; }
  .site-header .brand-title { display: none; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 28px); }
  .hero-footnotes { gap: 6px; }
  .micro-chip { font-size: 0.78rem; }
  .header-contacts .link-chip { font-size: 0.8rem; padding: 0 13px; min-height: 36px; }
}
