/* ==========================================================================
   AOE FINANCE — MAIN STYLESHEET
   Structure:
   1. Tokens (colors, type, spacing)
   2. Reset & base
   3. Typography utilities
   4. Layout / grid helpers
   5. Components (buttons, cards, form, nav)
   6. Sections 1–9
   7. Animations
   8. Responsive (tablet / mobile)
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Colors */
  --bg: #0B0F1A;
  --bg-alt: #131A2B;
  --bg-card: #151C2E;
  --stroke: rgba(201, 162, 75, 0.18);
  --stroke-soft: rgba(255, 255, 255, 0.08);
  --gold: #C9A24B;
  --gold-light: #E8D9AE;
  --gold-dim: rgba(201, 162, 75, 0.35);
  --text: #F2F3F5;
  --text-secondary: #8C93A6;
  --text-tertiary: #6E7690;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;
  --space-2xl: 140px;

  /* Radius */
  --radius: 14px;
  --radius-sm: 8px;

  /* Container */
  --container: 1200px;
}

/* ---------- 2. RESET & BASE ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Scroll progress bar */
.scroll-progress-track {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.1s linear;
}

/* Background: faint starfield, sits behind everything */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.5) 0, transparent 60%),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.4) 0, transparent 60%),
    radial-gradient(1px 1px at 45% 60%, rgba(255,255,255,0.35) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 65% 85%, rgba(255,255,255,0.3) 0, transparent 60%),
    radial-gradient(1px 1px at 25% 75%, rgba(255,255,255,0.4) 0, transparent 60%),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.3) 0, transparent 60%);
  background-repeat: repeat;
  background-size: 600px 600px;
  opacity: 0.6;
}

/* Ambient gradient orbs — slow-drifting glow, adds depth without noise */
.ambient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient-orbs::before,
.ambient-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  will-change: transform;
}
.ambient-orbs::before {
  width: 560px;
  height: 560px;
  top: -10%;
  left: 60%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  animation: drift-a 34s ease-in-out infinite;
}
.ambient-orbs::after {
  width: 480px;
  height: 480px;
  bottom: -8%;
  left: -8%;
  background: radial-gradient(circle, #3A5A8C 0%, transparent 70%);
  animation: drift-b 40s ease-in-out infinite;
}
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 40px) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -30px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-orbs::before, .ambient-orbs::after { animation: none; }
}

/* ---------- 3. TYPOGRAPHY ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.12;
}

h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; }

p { color: var(--text-secondary); }

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.65;
}

.text-gold { color: var(--gold-light); }

.stat-highlight {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  color: var(--gold-light);
  line-height: 1.3;
}

/* ---------- 4. LAYOUT ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-md);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

/* Orbit divider between sections — signature motif reused as a rule */
.orbit-divider {
  width: 100%;
  height: 1px;
  position: relative;
  overflow: visible;
  margin: 0 auto;
}
.orbit-divider svg { width: 100%; height: 80px; display: block; opacity: 0.35; }

/* ---------- 5. COMPONENTS ---------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #16110A;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 162, 75, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke-soft);
}
.btn-secondary:hover {
  border-color: var(--gold-dim);
  color: var(--gold-light);
}

.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Cards */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
  isolation: isolate;
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--gold), transparent 40%, transparent 60%, var(--gold));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,162,75,0.08);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; }

/* Pills / tags */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke-soft);
  color: var(--text-secondary);
  font-size: 14px;
}

/* Numbered list rows (used for 6-block accounting breakdown — real sequence) */
.numbered-row {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--stroke-soft);
}
.numbered-row:last-child { border-bottom: none; }
.numbered-row .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 14px;
  min-width: 28px;
}
.numbered-row .num-body h4 { font-size: 16px; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.numbered-row .num-body p { font-size: 14px; margin: 0; }

/* Progress arcs (replacing generic progress bars — orbital motif) */
.arc-stat { display: flex; align-items: center; gap: var(--space-sm); padding: 14px 0; }
.arc-stat svg { flex-shrink: 0; }
.arc-stat .arc-fill {
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16,1,0.3,1);
}
.arc-stat .arc-label { flex: 1; font-size: 15px; color: var(--text); }
.arc-stat .arc-value { font-family: var(--font-display); color: var(--gold-light); font-size: 18px; font-variant-numeric: tabular-nums; }

/* Comparison table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin-top: var(--space-md);
}
.compare-table th, .compare-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--stroke-soft);
  font-size: 15px;
}
.compare-table th {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}
.compare-table td:first-child { color: var(--text-secondary); position: relative; padding-left: 20px; }
.compare-table td:last-child { color: var(--gold-light); }
.compare-table td:last-child::before {
  content: '→';
  color: var(--gold);
  margin-right: 10px;
  font-family: var(--font-display);
}

@media (max-width: 768px) {
  .table-scroll { overflow-x: visible; }
  .compare-table { min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td { display: block; width: 100%; }
  .compare-table tr {
    background: var(--bg-card);
    border: 1px solid var(--stroke-soft);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 4px 16px;
  }
  .compare-table td { border-bottom: none; padding: 12px 0; font-size: 14px; }
  .compare-table td:first-child { border-bottom: 1px solid var(--stroke-soft); }
  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 4px;
  }
  .compare-table td:last-child::before { content: attr(data-label); }
}

/* Form */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  padding: var(--space-lg);
}
.form-row { margin-bottom: var(--space-sm); }
.form-row label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-row input {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s ease;
}
.form-row input::placeholder { color: var(--text-tertiary); }
.form-row input:focus { border-color: var(--gold); outline: none; }
.form-note {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: var(--space-sm);
  text-align: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-lg) 0;
}
.form-success.active { display: block; }
.form-success .card-icon { margin: 0 auto var(--space-sm); }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--space-md);
  background: rgba(11, 15, 26, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--stroke-soft); }
.nav-logo {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 14px;
  color: var(--text);
}
.nav-logo span { color: var(--gold); }
.nav-contact {
  font-size: 14px;
  color: var(--text-secondary);
}
.nav-contact:hover { color: var(--gold-light); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-cta {
  display: inline-flex;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #16110A;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(201,162,75,0.28); text-decoration: none; }

/* Floating mobile CTA */
.floating-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: -80px;
  z-index: 45;
  display: none;
  transition: bottom 0.35s cubic-bezier(0.16,1,0.3,1);
}
.floating-cta.visible { bottom: 16px; }
.floating-cta a {
  display: block;
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #16110A;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
@media (max-width: 768px) {
  .floating-cta { display: block; }
}

/* Footer */
.footer {
  padding: var(--space-lg) var(--space-md) var(--space-md);
  border-top: 1px solid var(--stroke-soft);
  text-align: center;
}
.footer p { font-size: 13px; color: var(--text-tertiary); max-width: 640px; margin: 0 auto; }
.footer .footer-logo { margin-bottom: var(--space-sm); font-family: var(--font-body); letter-spacing: 0.28em; font-size: 13px; color: var(--text-secondary); }

/* ---------- 6. SECTION-SPECIFIC ---------- */

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero-copy h1 { margin-bottom: var(--space-sm); }
.hero-copy .lead { margin-bottom: var(--space-md); }
.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-lg);
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.orbit-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
}
.orbit-ring {
  position: absolute;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.orbit-ring.r1 { width: 100%; height: 100%; animation: spin 60s linear infinite; }
.orbit-ring.r2 { width: 72%; height: 72%; animation: spin-reverse 44s linear infinite; }
.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44%; height: 44%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1A2338, var(--bg-alt));
  border: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.orbit-core .orbit-label { font-size: 11px; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 6px; }
.orbit-core .orbit-degree { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); color: var(--gold-light); }
.orbit-core .orbit-sub { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.orbit-dot {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.orbit-dot::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.orbit-label-tag {
  position: absolute;
  font-size: 12px;
  white-space: nowrap;
}
.orbit-label-tag strong { display: block; color: var(--text); font-size: 13px; font-weight: 600; }
.orbit-label-tag span { color: var(--text-tertiary); font-size: 11px; }

/* PROBLEM */
.problem-cards { margin-top: var(--space-lg); }
.problem-transition {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--stroke-soft);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--gold-light);
  max-width: 760px;
}

/* SOLUTION */
.solution-cards { margin-top: var(--space-lg); }

/* DETAIL TABS */
.detail-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.detail-tab {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--stroke-soft);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.25s ease;
}
.detail-tab.active, .detail-tab:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201,162,75,0.06);
}
.detail-panel { display: none; }
.detail-panel.active { display: block; }

/* INTERNATIONAL */
.intl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.intl-cards { display: grid; gap: var(--space-sm); }

/* WHY US */
.why-grid { margin-top: var(--space-lg); margin-bottom: var(--space-lg); }
.why-value {
  padding: var(--space-lg);
  border-top: 1px solid var(--stroke-soft);
  border-bottom: 1px solid var(--stroke-soft);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--gold-light);
}

/* TRUST */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: start; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.trust-badge p { font-size: 14px; margin: 0; }

/* EXPERT */
.expert-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-lg);
  align-items: center;
}
.expert-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: radial-gradient(circle at 30% 25%, #1B2540, var(--bg));
  border: 1px solid var(--stroke-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.expert-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201,162,75,0.14), transparent 60%);
}
.expert-monogram {
  position: relative;
  z-index: 1;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
}
.expert-monogram::before {
  content: '';
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  border: 1px solid var(--stroke-soft);
}
.expert-monogram span {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.expert-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--space-md) 0; }
.expert-contact { display: flex; flex-direction: column; gap: 6px; margin-top: var(--space-md); }
.expert-contact a { font-size: 15px; color: var(--gold-light); }
.expert-name { font-family: var(--font-display); font-size: 20px; color: var(--gold-light); }

/* FINAL CTA */
.final-cta { text-align: center; }
.final-cta .lead { margin: 0 auto var(--space-lg); text-align: center; }
.final-form { max-width: 560px; margin: 0 auto; text-align: left; }

/* PROCESS ("Как мы работаем") */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke), var(--stroke), transparent);
}
.process-step { position: relative; }
.process-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.process-step h3 { font-size: 16px; margin-bottom: 8px; }
.process-step p { font-size: 14px; }

@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .process-grid::before { display: none; }
}
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-reverse { from { transform: translate(-50%, -50%) rotate(360deg); } to { transform: translate(-50%, -50%) rotate(0deg); } }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }

/* ---------- 8. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-grid, .intl-grid, .expert-grid, .trust-grid { grid-template-columns: 1fr; }
  .expert-photo { max-width: 320px; }
}

@media (max-width: 768px) {
  :root { --space-2xl: 88px; --space-xl: 64px; --space-lg: 40px; }
  .section { padding: var(--space-2xl) 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav { padding: 16px 20px; }
  .hero { padding-top: 96px; min-height: auto; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .orbit-wrap { max-width: 280px; margin: var(--space-lg) auto 0; }
  /* Подписи на орбите используют смещения в %, которые на узких экранах могут
     выходить за пределы видимой области — на мобильном показываем только точки и
     ядро; сами услуги дублируются ниже в блоке "Три ключевых блока". */
  .orbit-label-tag { display: none; }
  .detail-tabs { gap: 8px; }
  .detail-tab { padding: 10px 16px; font-size: 13px; }
  .nav-cta { display: none; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
}

@media (max-width: 380px) {
  .orbit-wrap { max-width: 230px; }
}
