/* ==========================================================================
   BASE — типографика и общий каркас (светлая тема)
   ========================================================================== */

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.011em;
}

/* Мягкий цветной свет на фоне — статичный (без анимации размытия,
   чтобы не грузить слабые устройства). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(42% 44% at 84% 2%,  rgba(91,69,245,0.20),  transparent 62%),
    radial-gradient(44% 46% at 6% 2%,   rgba(255,79,151,0.16), transparent 64%),
    radial-gradient(50% 48% at 62% 104%, rgba(147,51,255,0.13), transparent 62%);
  pointer-events: none;
}

/* Очень тонкая зернистость — премиальная фактура */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.025 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--sp-6);
}

section {
  position: relative;
  padding-block: var(--sp-24);
}

/* --- Заголовки секций --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--iris-ink);
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-top: var(--sp-4);
  max-width: 20ch;
}

.section-lead {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  margin-top: var(--sp-6);
  max-width: 56ch;
}

.section-head { margin-bottom: var(--sp-16); }

/* Градиентный текст (для акцентных слов) */
.grad-text {
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: grad-flow 9s ease infinite;
}
@keyframes grad-flow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.text-accent { color: var(--iris-ink); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

@media (max-width: 768px) {
  body { font-size: 16px; }
  section { padding-block: var(--sp-16); }
  .section-head { margin-bottom: var(--sp-12); }
}
