/* =========================================================
   Кнопки, шапка и Hero
   ========================================================= */

/* ---------- Кнопки ---------- */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 16px;
  font: 600 var(--fs-btn)/1 "Inter", system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s ease, color .3s ease;
}
.btn-primary {
  background: var(--grad-red);       /* контраст текста ≥ 5.3:1 */
  color: var(--btn-fg);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(var(--accent-rgb), .45); }
.btn-primary:active,
.btn-ghost:active { transform: translateY(1px); }
.btn-primary .icon-arrow,
.btn-ghost .icon-arrow { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.btn-primary:hover .icon-arrow { transform: translate(2px, -2px); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-ghost:hover .icon-arrow { transform: translateY(2px); }
.btn-primary--sm { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: var(--fs-sm); }
.btn-primary:focus-visible,
.btn-ghost:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: #fff; color: #04030c; font-weight: 600; text-decoration: none;
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 12px var(--pad);
  transition: transform .4s var(--ease-out), background-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { background: var(--c-header); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header__logo { color: #fff; font-size: 18px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.header__nav { display: flex; gap: 4px; margin-left: auto; }
.header__nav a,
.header__lang,
.header__cv {
  padding: 10px 14px;
  border-radius: 10px;
  color: #d9d8e4;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.header__nav a:hover,
.header__lang:hover,
.header__cv:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.header__nav a.is-active { color: #fff; }
.header__actions { display: flex; align-items: center; gap: 4px; }
.header__cv { display: inline-flex; align-items: center; gap: 6px; }
.header__cv .icon-arrow { width: 16px; height: 16px; }
.header a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 960px) {
  .header__nav { display: none; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 420px) {
  .header__cv { display: none; }
  .header__logo { font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(100svh, 1000px);
  padding: clamp(110px, 10vw, 150px) 0 clamp(64px, 6vw, 110px);
  background: var(--c-bg-hero);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
/* Мягкое красно-фиолетовое свечение за знаком + лёгкая сетка точек */
.hero__bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask: radial-gradient(70% 70% at 70% 50%, #000 20%, transparent 75%);
          mask: radial-gradient(70% 70% at 70% 50%, #000 20%, transparent 75%);
}
.hero__aura {
  position: absolute;
  right: -10%; top: 50%;
  width: min(80vw, 1000px); aspect-ratio: 1;
  translate: 0 -50%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(var(--accent-rgb), .35), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(var(--accent2-rgb), .25), transparent 70%);
  animation: aura 12s ease-in-out infinite alternate;
}
@keyframes aura {
  from { transform: scale(1) rotate(0deg); }
  to   { transform: scale(1.12) rotate(25deg); }
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 72px);
}
.hero__content { display: flex; flex-direction: column; align-items: flex-start; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 clamp(20px, 2vw, 28px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  color: #d9d8e4;
  font-size: var(--fs-sm);
}
.hero__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2fd16b; }
.hero__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2fd16b;
  animation: status-ping 2s ease-out infinite;
}
.hero__title {
  margin: 0;
  max-width: 15em;
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero__lead { margin: clamp(16px, 1.6vw, 24px) 0 0; color: #d9d8e4; font-size: var(--fs-lead); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 2.6vw, 40px); }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  margin-top: clamp(28px, 2.6vw, 40px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: var(--c-body);
  font-size: var(--fs-sm);
}
.hero__proof strong { color: #fff; font-weight: 600; margin-right: 4px; }

/* Фирменный знак из частиц */
.hero__visual {
  position: relative;
  aspect-ratio: 1;
  width: 115%;
  max-width: 760px;
  justify-self: end;
  margin-right: -6%;
}
.mark { position: absolute; inset: 0; cursor: crosshair; }
/* Холст на весь Hero: шлейфы и разлёт точек не обрезаются рамкой */
.mark-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; }
.hero__content { position: relative; z-index: 2; }
.mark__hint {
  position: absolute; left: 50%; bottom: 2%;
  margin: 0;
  translate: -50% 0;
  color: var(--c-muted);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: opacity .6s ease;
  pointer-events: none;
}
.hero__visual.is-touched .mark__hint { opacity: 0; }
@media (hover: none) { .mark__hint { display: none; } }

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 260px; justify-self: center; margin-bottom: -16px; }
  .hero__aura { right: auto; left: 50%; top: 22%; translate: -50% -50%; width: 120vw; }
}
@media (max-width: 520px) {
  .hero__actions { width: 100%; }
  .hero__actions > * { flex: 1 1 100%; }
}

/* Акцентные слова в заголовке — цветом, без курсива */
.hero__title em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hero__title .nowrap { white-space: nowrap; }
