/* ==========================================================================
   Основа сайта: сброс, корень .st, типографика, градиенты ALAB, движение
   ========================================================================== */

[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: #FFFFFF; text-rendering: optimizeLegibility; font-feature-settings: 'kern' 1; }
picture { display: contents; }
img, svg, video { max-width: 100%; }
img { height: auto; }
::selection { background: rgba(0, 96, 179, 0.18); }

.st {
  position: relative;
  min-height: 100vh;
  background: #FFFFFF;
  color: var(--ds-text);
  font-family: var(--ds-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:where(.st) *, :where(.st) *::before, :where(.st) *::after { box-sizing: border-box; }
:where(.st) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; }
:where(.st) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.st) :where(a) { color: var(--ds-link); text-decoration: none; }
@media (hover: hover) { :where(.st) :where(a:hover) { color: var(--ds-accent-hover); } }

.st-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: var(--ds-w-heavy);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ds-link);
}
.st-h1 {
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: var(--ds-w-heavy);
  line-height: 1.03;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.st-h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: var(--ds-w-heavy);
  line-height: 1.07;
  letter-spacing: -0.036em;
  text-wrap: balance;
}
.st-h3 {
  font-size: 21px;
  font-weight: var(--ds-w-heavy);
  line-height: 1.24;
  letter-spacing: -0.02em;
}
.st-lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ds-text-2);
  text-wrap: pretty;
}
.st-text { color: var(--ds-text-2); }
.st-muted { color: var(--ds-text-3); }
.st-accent { color: var(--ds-accent); }
.st-nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Фирменный градиентный акцент ALAB с мягким свечением копией текста позади букв */
.st-grad, .st-mark {
  position: relative;
  display: inline-block;
  background: linear-gradient(106deg, #0060B3 0%, #17BFD3 54%, #E2217A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.st-grad::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(106deg, rgba(0, 96, 179, 0.42), rgba(23, 191, 211, 0.5), rgba(226, 33, 122, 0.32));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(18px);
  pointer-events: none;
  user-select: none;
}

.st-h1--article { font-size: clamp(34px, 3.8vw, 52px); }

@media (max-width: 760px) {
  .st { font-size: 15px; }
  .st-h1 { font-size: 35px; letter-spacing: -0.035em; }
  .st-h2 { font-size: 29px; }
  .st-h3 { font-size: 19px; }
  .st-lead { font-size: 16.5px; }
  .st-h1--article { font-size: 32px; }
}

/* Хореография появления страницы и секций по стандарту ALAB */
@keyframes st-blur-in {
  from { opacity: 0; filter: blur(16px); }
  to { opacity: 1; filter: none; }
}
@keyframes st-stage-in {
  from { opacity: 0; filter: blur(18px); transform: translateY(16px) scale(1.015); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes st-glow-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, -18px, 0) scale(1.06); }
}

@media (prefers-reduced-motion: no-preference) {
  .st-hero .st-badge { animation: st-blur-in 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s backwards; }
  .st-hero .st-h1 { animation: st-blur-in 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) 0.14s backwards; }
  .st-hero .st-lead { animation: st-blur-in 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) 0.26s backwards; }
  .st-hero .st-hero__cta { animation: st-blur-in 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) 0.36s backwards; }
  .st-hero .st-stage { animation: st-stage-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.44s backwards; }
  .st-hero__glow span:nth-child(1) { animation: st-glow-drift 16s ease-in-out infinite; }
  .st-hero__glow span:nth-child(2) { animation: st-glow-drift 20s ease-in-out -6s infinite reverse; }
  .st-hero__glow span:nth-child(3) { animation: st-glow-drift 18s ease-in-out -11s infinite; }

  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.st) *, :where(.st) *::before, :where(.st) *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

.st :focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
