/* Averon — header + lead modal */

:root {
  --bg: #f7fafc;
  --blob: rgba(56, 178, 255, 0.12);
  --blob-2: rgba(99, 179, 237, 0.18);
  --text: #1a1a1f;
  --text-muted: #5c6370;
  --accent: #0ea5e9;
  --logo-aver: #5eb8e8;
  --cta-hover-bg: #33b5f7;
  --cta-hover-bg-active: #24a7ea;
  --logo-on: #0f1114;
  --white: #ffffff;
  --font-logo: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.06);
  --radius-pill: 999px;
  --radius-card: 18px;
  --shadow-card: 0 12px 40px rgba(15, 23, 42, 0.08);
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --map-sea: #b9d9eb;
  --container: min(1200px, calc(100% - 48px));
  /* левый край как у .container (логотип в шапке) */
  --page-align-left: calc((100vw - min(1200px, calc(100vw - 48px))) / 2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.is-nav-open {
  overflow: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 85% 15%, var(--blob-2), transparent 55%),
    radial-gradient(ellipse 60% 45% at 10% 70%, var(--blob), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, var(--blob), transparent 45%),
    var(--bg);
  pointer-events: none;
}

/* Мягкое «свечение» за курсором + перелив (два слоя с разной инерцией) */
.cursor-aura {
  --mx: 50vw;
  --my: 35vh;
  --mx2: 50vw;
  --my2: 35vh;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      420px circle at var(--mx2) var(--my2),
      rgba(255, 255, 255, 0.55) 0%,
      rgba(186, 230, 253, 0.22) 28%,
      transparent 58%
    ),
    radial-gradient(
      560px circle at var(--mx) var(--my),
      rgba(94, 184, 232, 0.32) 0%,
      rgba(51, 181, 247, 0.14) 38%,
      rgba(14, 165, 233, 0.06) 55%,
      transparent 72%
    );
  opacity: 0.95;
  animation: cursor-aura-hue 14s ease-in-out infinite alternate;
  transition: opacity 0.45s ease;
}

@keyframes cursor-aura-hue {
  0% {
    filter: hue-rotate(-6deg) saturate(1.05);
  }
  100% {
    filter: hue-rotate(10deg) saturate(1.12);
  }
}

.cursor-aura--static {
  animation: none;
  filter: none;
  opacity: 0.5;
}

body.modal-open .cursor-aura {
  opacity: 0;
  animation: none;
}

@media (hover: none) and (pointer: coarse) {
  .cursor-aura {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-aura {
    animation: none;
    filter: none;
  }
}

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

/* Главный экран */
.main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px) 0;
  box-sizing: border-box;
}

.hero__container {
  width: var(--container);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 40px;
  box-sizing: border-box;
}

.hero__left {
  display: flex;
  align-items: center;
  padding: clamp(24px, 4vw, 48px) 0;
  text-align: left;
}

.hero__inner {
  width: 100%;
  max-width: min(58rem, 100%);
  padding-right: clamp(12px, 2vw, 24px);
  box-sizing: border-box;
}

.hero__title {
  margin: 0 0 clamp(22px, 3vw, 32px);
  font-family: var(--font);
  font-size: clamp(2.35rem, 5.2vw, 3.55rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text);
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  color: var(--cta-hover-bg);
}

.hero__lead {
  margin: 0 0 clamp(28px, 4vw, 38px);
  font-family: var(--font);
  font-size: clamp(1.06rem, 1.45vw, 1.18rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: none;
}

.hero__lead strong {
  font-weight: 700;
  color: var(--text);
}

.hero__right {
  position: relative;
  z-index: 1;
  min-height: 0;
  min-width: 0;
  overflow: visible;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: clamp(0px, 1vw, 12px);
}

/* Три flex-элемента как раньше: Chart | Sales | слот — Sales ведёт себя как при Payouts в потоке */
.hero__cards {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(8px, 1.2vw, 14px);
  width: 100%;
  margin: clamp(-36px, -4vw, -20px) 0 0 clamp(-28px, -3vw, -12px);
  max-width: 100%;
  min-width: 0;
  padding-bottom: clamp(96px, 14vw, 180px);
  /* Единый наклон/поворот как у Transaction graphic — позиции (left/top/flex) не трогаем */
  --hero-card-3d: perspective(800px) rotateX(3deg) rotateY(-14deg) rotateZ(2.5deg) translate3d(0, 0, 0.5px);
}

/* Появление карточек при загрузке (дублирует углы --hero-card-3d — при смене 3D синхронизировать) */
@keyframes hero-card-enter {
  from {
    opacity: 0;
    transform: perspective(800px) rotateX(3deg) rotateY(-14deg) rotateZ(2.5deg) translate3d(0, 22px, 0.5px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: perspective(800px) rotateX(3deg) rotateY(-14deg) rotateZ(2.5deg) translate3d(0, 0, 0.5px) scale(1);
  }
}

/* Третья колонка: та же ширина, что у карточки в ряду; Payouts внутри — absolute, не влияет на flex-соседей */
.hero__payouts-slot {
  box-sizing: border-box;
  flex: 0 1 228px;
  width: 100%;
  max-width: min(248px, 100%);
  min-height: clamp(168px, 24vw, 220px);
  position: relative;
  align-self: flex-start;
  overflow: visible;
}

/* Внутренняя оболочка: 3D + hover-scale не двигают якоря и соседей по flex */
.hero-chart-card__motion,
.hero-sales-card__motion {
  border: 1px solid rgba(15, 23, 42, 0.065);
  text-rendering: optimizeLegibility;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 14px 32px rgba(15, 23, 42, 0.085);
  transform: var(--hero-card-3d);
  transform-origin: 12% 42%;
  transform-style: flat;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    transform 0.55s cubic-bezier(0.25, 0.85, 0.35, 1),
    box-shadow 0.55s cubic-bezier(0.25, 0.85, 0.35, 1),
    opacity 0.55s ease;
  box-sizing: border-box;
  width: 100%;
}

/* Карточка с графиком (первая); anchor-name — якорь для позиции .hero-partner-card */
.hero-chart-card {
  margin: 0;
  anchor-name: --hero-chart;
  flex: 0 1 auto;
  width: 100%;
  max-width: min(400px, 100%);
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: var(--font);
  position: relative;
  z-index: 1;
}

.hero-chart-card__motion {
  padding: clamp(21px, 3.3vw, 30px) clamp(23px, 2.9vw, 32px) clamp(19px, 2.5vw, 26px);
  background: var(--white);
  border-radius: 26px;
  animation: hero-card-enter 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.06s;
}

.hero-chart-card__caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 clamp(14px, 2.2vw, 20px);
  padding: 0;
  position: relative;
  z-index: 1;
}

.hero-chart-card__label {
  display: block;
  font-size: clamp(13px, 1.1vw, 14.5px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
  color: #5c6370;
  letter-spacing: 0.01em;
}

.hero-chart-card__value {
  display: block;
  font-size: clamp(1.88rem, 3.15vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #0f1114;
}

.hero-chart-card__plot {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero-chart-card__svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: min(352px, 100%);
  margin: 0 auto;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

/* =============================================================================
   HERO — карточка Sales: ПОЛОЖЕНИЕ ЗАФИКСИРОВАНО (не менять margin-top / left /
   margin-left / margin-right без явного запроса владельца макета).
   ============================================================================= */
.hero-sales-card {
  margin: 0;
  flex: 0 1 248px;
  width: 100%;
  max-width: min(264px, 100%);
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: var(--font);
  align-self: flex-start;
  margin-top: clamp(-500px, -9vw, -350px);
  margin-left: auto;
  margin-right: 0;
  position: relative;
  left: clamp(400px, 10vw, 200px);
  z-index: 2;
}

.hero-sales-card__motion {
  padding: clamp(16px, 2.2vw, 21px) clamp(18px, 2.4vw, 22px) clamp(16px, 2.2vw, 21px);
  background: var(--white);
  border-radius: 22px;
  animation: hero-card-enter 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.14s;
}

.hero-sales-card__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 13px;
}

.hero-sales-card__icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2b82ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(43, 130, 255, 0.38);
}

.hero-sales-card__icon {
  display: block;
  margin-top: 1px;
  width: 21px;
  height: 21px;
}

.hero-sales-card__label {
  font-size: 13.5px;
  font-weight: 600;
  font-style: italic;
  color: #5c6370;
  letter-spacing: 0.01em;
}

.hero-sales-card__value {
  margin: 0 0 11px;
  font-size: clamp(1.28rem, 2.15vw, 1.52rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #0f1114;
}

.hero-sales-card__foot {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
}

.hero-sales-card__count {
  font-weight: 700;
  color: #3ab87a;
  letter-spacing: 0.02em;
}

.hero-sales-card__foot-label {
  font-weight: 600;
  font-style: italic;
  color: #5c6370;
  margin-left: 6px;
}

/* Payouts: позиция в слоте; поворот как у карточки Transaction graphic (hero-chart-card) */
.hero-payouts-card {
  position: absolute;
  top: clamp(22px, 3.8vw, 52px);
  left: clamp(-500px, 20vw, -400px);
  right: auto;
  bottom: auto;
  margin: 0;
  width: 100%;
  max-width: min(248px, 100%);
  font-family: var(--font);
  z-index: 3;
}

.hero-payouts-card__surface {
  width: 100%;
  box-sizing: border-box;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.065);
  background: var(--white);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 14px 32px rgba(15, 23, 42, 0.085);
  text-rendering: optimizeLegibility;
  isolation: isolate;
  transform: var(--hero-card-3d);
  transform-origin: 12% 42%;
  transform-style: flat;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    transform 0.55s cubic-bezier(0.25, 0.85, 0.35, 1),
    box-shadow 0.55s cubic-bezier(0.25, 0.85, 0.35, 1),
    opacity 0.55s ease;
  animation: hero-card-enter 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.24s;
}

.hero-payouts-card__inner {
  padding: clamp(16px, 2.1vw, 21px) clamp(18px, 2.4vw, 22px) clamp(16px, 2.1vw, 21px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-payouts-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  width: 100%;
  justify-content: flex-start;
}

.hero-payouts-card__icon-wrap {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35);
}

.hero-payouts-card__icon {
  display: block;
  margin-top: 1px;
}

.hero-payouts-card__label {
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  color: #5c6370;
  letter-spacing: 0.01em;
}

.hero-payouts-card__value {
  margin: 0 0 12px;
  width: 100%;
  text-align: center;
  font-size: clamp(1.26rem, 2.1vw, 1.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #0f1114;
}

.hero-payouts-card__foot {
  margin: 0;
  width: 100%;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.45;
}

.hero-payouts-card__count {
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.02em;
}

.hero-payouts-card__foot-label {
  font-weight: 600;
  font-style: italic;
  color: #5c6370;
  margin-left: 6px;
}

/* Partner — внешний блок: якорь и координаты; 3D/тень/scale — внутри .hero-partner-card__motion */
.hero-partner-card {
  position: absolute;
  z-index: 0;
  anchor-name: --hero-partner;
  right: auto;
  bottom: auto;
  /* Fallback без anchor(): приблизительно под угол BR графика */
  left: calc(min(400px, 100%) - clamp(14px, 2vw, 26px));
  top: clamp(208px, 26.5vw, 286px);
  width: 100%;
  max-width: min(420px, calc(100% - 24px));
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font);
  background: transparent;
  border: none;
  border-radius: 0;
  pointer-events: auto;
}

.hero-partner-card__motion {
  padding: clamp(23px, 3.5vw, 32px) clamp(25px, 3vw, 34px) clamp(21px, 2.7vw, 28px);
  background: var(--white);
  border-radius: 26px;
  border: 1px solid rgba(15, 23, 42, 0.065);
  text-rendering: optimizeLegibility;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 14px 32px rgba(15, 23, 42, 0.085);
  transform: var(--hero-card-3d);
  transform-origin: 12% 42%;
  transform-style: flat;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    transform 0.55s cubic-bezier(0.25, 0.85, 0.35, 1),
    box-shadow 0.55s cubic-bezier(0.25, 0.85, 0.35, 1),
    opacity 0.55s ease;
  animation: hero-card-enter 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.34s;
  box-sizing: border-box;
  width: 100%;
}

.hero-partner-card__title {
  margin: 0 0 6px;
  font-size: clamp(1.42rem, 2.35vw, 1.72rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f1114;
}

.hero-partner-card__lead {
  margin: 0 0 clamp(15px, 2.1vw, 22px);
  font-size: clamp(13px, 1.05vw, 14px);
  font-weight: 500;
  font-style: italic;
  color: #6b7280;
  line-height: 1.4;
}

.hero-partner-card__logos {
  position: relative;
  height: clamp(82px, 12vw, 98px);
  max-width: min(20rem, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.hero-partner-card__logo {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.08),
    0 8px 18px rgba(15, 23, 42, 0.12);
}

/* Дуга: крайние ниже, центральные выше */
.hero-partner-card__logo:nth-child(1) {
  left: 9%;
  transform: translateX(-50%) translateY(4px);
}

.hero-partner-card__logo:nth-child(2) {
  left: 35%;
  transform: translateX(-50%) translateY(-16px);
}

.hero-partner-card__logo:nth-child(3) {
  left: 65%;
  transform: translateX(-50%) translateY(-16px);
}

.hero-partner-card__logo:nth-child(4) {
  left: 91%;
  transform: translateX(-50%) translateY(4px);
}

.hero-partner-card__brand-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.hero-partner-card__logo--shopify {
  color: #fff;
  background: linear-gradient(145deg, #ff8a3d, #e85d04);
  font-family: var(--font);
}

.hero-partner-card__logo--wallet {
  color: #fff;
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  background-image: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.38), transparent 42%), linear-gradient(145deg, #38bdf8, #0284c7);
}

.hero-partner-card__logo--momo {
  background: linear-gradient(145deg, #e879f9, #c026d3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.hero-partner-card__logo--mc {
  background: #1e3a5f;
  position: relative;
}

.hero-partner-card__logo--mc::before,
.hero-partner-card__logo--mc::after {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  top: 50%;
  margin-top: -9.5px;
}

.hero-partner-card__logo--mc::before {
  left: 9px;
  background: #eb001b;
  opacity: 0.95;
}

.hero-partner-card__logo--mc::after {
  right: 9px;
  background: #f79e1b;
  opacity: 0.95;
}

.hero-partner-card__visa {
  margin: clamp(10px, 1.6vw, 14px) auto 0;
  max-width: 148px;
  padding: 12px 26px 11px;
  border-radius: 999px;
  text-align: center;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(180deg, #1e2a6e 0%, #0f1748 55%, #0a102e 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 6px 20px rgba(13, 22, 66, 0.38);
}

.hero-partner-card__visa-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  letter-spacing: 0.14em;
}

.hero-partner-card__visa-v {
  margin-right: 0.02em;
  font-size: 1.08em;
  letter-spacing: 0.06em;
  background: linear-gradient(168deg, #fff9e6 0%, #ffd54f 38%, #ffb300 72%, #ff8f00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-partner-card__visa-isa {
  color: #fff;
  letter-spacing: 0.14em;
}

/* Мини-карточка: Success rate — перекрывает левый нижний угол Partner (z выше Partner) */
.hero-success-rate-card {
  position: absolute;
  z-index: 4;
  display: block;
  max-width: min(400px, calc(100% - 16px));
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font);
  background: transparent;
  border: none;
  border-radius: 0;
  pointer-events: auto;
  left: calc(min(400px, 100%) - clamp(18px, 2.5vw, 34px) - clamp(33px, 4.8vw, 78px));
  top: calc(clamp(208px, 26.5vw, 286px) + clamp(210px, 35vw, 272px) - clamp(104px, 15vw, 128px));
}

.hero-success-rate-card__motion {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 24px);
  padding: 20px 28px 20px 22px;
  box-sizing: border-box;
  background: var(--white);
  border-radius: 30px;
  border: 1px solid rgba(15, 23, 42, 0.065);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75) inset,
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 24px 56px rgba(15, 23, 42, 0.1);
  transform: var(--hero-card-3d);
  transform-origin: 12% 42%;
  transform-style: flat;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition:
    transform 0.55s cubic-bezier(0.25, 0.85, 0.35, 1),
    box-shadow 0.55s cubic-bezier(0.25, 0.85, 0.35, 1),
    opacity 0.55s ease;
  animation: hero-card-enter 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.46s;
  width: 100%;
}

.hero-success-rate-card__icon-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, #34d399, #16a34a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
}

.hero-success-rate-card__icon {
  display: block;
  margin-top: 2px;
}

.hero-success-rate-card__body {
  min-width: 0;
}

.hero-success-rate-card__value {
  margin: 0;
  font-size: clamp(2.1rem, 3.7vw, 2.44rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #0f1114;
}

.hero-success-rate-card__hint {
  margin: 6px 0 0;
  font-size: 23px;
  font-weight: 600;
  font-style: italic;
  color: #374151;
  line-height: 1.25;
}

/* Мини-карточка: Balance reports — перекрывает правый верхний угол Partner */
.hero-balance-reports-card {
  position: absolute;
  z-index: 5;
  display: block;
  max-width: min(440px, calc(100% - 16px));
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font);
  background: transparent;
  border: none;
  border-radius: 0;
  pointer-events: auto;
  left: calc(min(800px, 30%) - clamp(20px, 5vw, 26px) + clamp(300px, 54vw, 328px) - clamp(248px, 60vw, 332px) + clamp(32px, 4.2vw, 64px));
  top: calc(clamp(208px, 26.5vw, 300px) - clamp(64px, 8.5vw, 112px));
}

.hero-balance-reports-card__motion {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 24px);
  padding: 20px 28px 20px 22px;
  box-sizing: border-box;
  background: var(--white);
  border-radius: 30px;
  border: 1px solid rgba(15, 23, 42, 0.065);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75) inset,
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 24px 56px rgba(15, 23, 42, 0.1);
  transform: var(--hero-card-3d);
  transform-origin: 12% 42%;
  transform-style: flat;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition:
    transform 0.55s cubic-bezier(0.25, 0.85, 0.35, 1),
    box-shadow 0.55s cubic-bezier(0.25, 0.85, 0.35, 1),
    opacity 0.55s ease;
  animation: hero-card-enter 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.56s;
  width: 100%;
}

.hero-balance-reports-card__icon-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fcd34d, #f59e0b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.38);
}

.hero-balance-reports-card__icon {
  display: block;
}

.hero-balance-reports-card__label {
  margin: 0;
  font-size: clamp(25px, 2.1vw, 28px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #0f1114;
}

@supports (left: anchor(right)) {
  .hero-partner-card {
    position-anchor: --hero-chart;
    /* Левый верх Partner чуть заходит под правый низ графика (z-index Partner ниже) */
    left: calc(anchor(right) - clamp(14px, 1.9vw, 26px));
    top: calc(anchor(bottom) - clamp(13px, 1.7vw, 24px));
  }

  .hero-success-rate-card {
    position-anchor: --hero-partner;
    left: calc(anchor(left) - clamp(200px, 16vw, 250px));
    top: calc(anchor(bottom) - clamp(88px, 13vw, 116px));
  }

  .hero-balance-reports-card {
    position-anchor: --hero-partner;
    left: calc(anchor(right) - clamp(248px, 62vw, 336px) + clamp(32px, 4.2vw, 64px));
    top: calc(anchor(top) - clamp(72px, 8.5vw, 120px));
  }
}

@media (hover: hover) and (pointer: fine) {
  /* Scale на внутренней оболочке — якорь и flex-слоты не пересчитываются */
  .hero__cards .hero-chart-card:hover .hero-chart-card__motion,
  .hero__cards .hero-sales-card:hover .hero-sales-card__motion,
  .hero__cards .hero-partner-card:hover .hero-partner-card__motion {
    transform: var(--hero-card-3d) scale(1.07) !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.84) inset,
      0 5px 18px rgba(15, 23, 42, 0.08),
      0 26px 54px rgba(15, 23, 42, 0.13);
  }

  .hero__cards .hero-payouts-card:hover .hero-payouts-card__surface {
    transform: var(--hero-card-3d) scale(1.07) !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.84) inset,
      0 5px 18px rgba(15, 23, 42, 0.08),
      0 26px 54px rgba(15, 23, 42, 0.13);
  }

  .hero__cards .hero-success-rate-card:hover .hero-success-rate-card__motion,
  .hero__cards .hero-balance-reports-card:hover .hero-balance-reports-card__motion {
    transform: var(--hero-card-3d) scale(1.07) !important;
    box-shadow:
      0 2px 0 rgba(255, 255, 255, 0.84) inset,
      0 6px 20px rgba(15, 23, 42, 0.09),
      0 32px 72px rgba(15, 23, 42, 0.15);
  }

  .hero__cards .hero-partner-card:hover {
    z-index: 6;
  }

  /* Наводим на Partner — мини-карточки не реагируют и не «поднимаются» (ниже Partner, без hover) */
  .hero__cards:has(.hero-partner-card:hover) .hero-success-rate-card .hero-success-rate-card__motion,
  .hero__cards:has(.hero-partner-card:hover) .hero-balance-reports-card .hero-balance-reports-card__motion {
    transform: var(--hero-card-3d) scale(1) !important;
    box-shadow:
      0 2px 0 rgba(255, 255, 255, 0.75) inset,
      0 2px 4px rgba(15, 23, 42, 0.06),
      0 24px 56px rgba(15, 23, 42, 0.1) !important;
  }

  .hero__cards:has(.hero-partner-card:hover) .hero-success-rate-card,
  .hero__cards:has(.hero-partner-card:hover) .hero-balance-reports-card {
    pointer-events: none;
    z-index: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding: clamp(24px, 4vw, 40px) 0;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 40px);
  }

  .hero__cards {
    margin: 0 auto;
    justify-content: center;
    max-width: 100%;
    padding-bottom: clamp(24px, 5vw, 48px);
  }

  .hero-chart-card {
    max-width: min(400px, 100%);
  }

  .hero-chart-card__motion {
    transform: none;
    animation: none !important;
    opacity: 1 !important;
  }

  .hero-sales-card {
    max-width: min(288px, 100%);
    margin-top: clamp(20px, 6vw, 48px);
    margin-left: auto;
    margin-right: auto;
    left: 0;
    z-index: 3;
  }

  .hero-sales-card__motion {
    transform: none;
    animation: none !important;
    opacity: 1 !important;
  }

  .hero__payouts-slot {
    flex: 1 1 100%;
    max-width: 100%;
    min-height: 0;
    width: 100%;
  }

  .hero-payouts-card {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    max-width: min(280px, 100%);
    width: 100%;
    margin: clamp(12px, 2.5vw, 24px) auto 0;
  }

  .hero-payouts-card__surface {
    transform: none;
    animation: none !important;
    opacity: 1 !important;
  }

  .hero-partner-card {
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    width: 100%;
    max-width: min(420px, 100%);
    margin: clamp(20px, 4vw, 32px) auto 0;
  }

  .hero-partner-card__motion {
    transform: none;
    animation: none !important;
    opacity: 1 !important;
  }

  .hero-partner-card__logos {
    position: relative;
    height: auto;
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(8px, 2vw, 12px);
    padding: 4px 0 8px;
  }

  .hero-partner-card__logo {
    position: relative;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
  }

  .hero-success-rate-card,
  .hero-balance-reports-card {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-chart-card__motion,
  .hero-sales-card__motion,
  .hero-payouts-card__surface,
  .hero-partner-card__motion,
  .hero-success-rate-card__motion,
  .hero-balance-reports-card__motion {
    transform: none;
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Отдельная секция: карта + текст */

.section-global-map {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 10vw, 112px);
  background: transparent;
}

.section-global-map__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.section-global-map__title {
  margin: 0 0 clamp(14px, 2vw, 20px);
  font-family: var(--font);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

.section-global-map__title strong {
  color: var(--accent);
  font-weight: 800;
}

.section-global-map__text {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.section-global-map__text strong {
  color: var(--text);
  font-weight: 700;
}

.section-global-map__media {
  border-radius: clamp(18px, 2vw, 26px);
  padding: clamp(12px, 2vw, 18px);
  background: linear-gradient(145deg, #dbeafe 0%, var(--map-sea) 45%, #93c5fd 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 2px 8px rgba(15, 39, 68, 0.08),
    0 18px 48px rgba(56, 130, 160, 0.18);
}

.section-global-map__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: min(420px, 58vw);
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  background: var(--map-sea);
}

.section-global-map__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px) {
  .section-global-map {
    padding-left: max(var(--page-align-left), clamp(16px, 4vw, 24px));
    padding-right: max(var(--page-align-left), clamp(16px, 4vw, 24px));
  }

  .section-global-map .container {
    width: 100%;
    max-width: none;
  }

  .section-global-map__grid {
    grid-template-columns: 1fr;
    gap: clamp(24px, 5vw, 36px);
  }

  .section-global-map__frame {
    max-height: none;
  }

  .hero {
    min-height: 0;
  }

  .hero__left {
    padding-bottom: clamp(32px, 8vw, 56px);
  }

  .hero__inner {
    padding-left: max(var(--page-align-left), clamp(16px, 4vw, 24px));
    padding-right: max(var(--page-align-left), clamp(16px, 4vw, 24px));
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audience-card__surface {
    transform: none !important;
    will-change: auto;
  }
}

/* Секция «Для кого мы работаем» */
/* Фон как у всей страницы: сквозь секцию видны .page-bg и .cursor-aura */
.section-audience {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0 clamp(88px, 12vw, 140px);
  background: transparent;
}

.section-audience__head {
  max-width: 42rem;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.section-audience__title {
  margin: 0 0 clamp(14px, 2vw, 20px);
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.section-audience__lead {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.section-audience__lead strong {
  color: var(--text);
  font-weight: 700;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 2.5vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-card {
  margin: 0;
  display: block;
  height: 100%;
}

.audience-card__surface {
  box-sizing: border-box;
  height: 100%;
  min-height: 100%;
  padding: clamp(22px, 3vw, 28px) clamp(22px, 3vw, 28px);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, transparent 45%),
    linear-gradient(168deg, #cee8f4 0%, var(--map-sea) 44%, #a8cfe3 100%);
  box-shadow:
    0 2px 8px rgba(15, 39, 68, 0.07),
    0 14px 38px rgba(56, 130, 160, 0.14);
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(0deg) rotateY(0deg);
  will-change: transform;
}

.audience-card__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.audience-card__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--text-muted);
}

.audience-card:nth-child(6n + 1) .audience-card__surface {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, transparent 45%),
    linear-gradient(168deg, #dbeafe 0%, #bfdbfe 44%, #93c5fd 100%);
}

.audience-card:nth-child(6n + 2) .audience-card__surface {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, transparent 45%),
    linear-gradient(168deg, #e0f2fe 0%, var(--map-sea) 40%, #7dd3fc 100%);
}

.audience-card:nth-child(6n + 3) .audience-card__surface {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, transparent 45%),
    linear-gradient(168deg, #cffafe 0%, #a5f3fc 42%, #67e8f9 100%);
}

.audience-card:nth-child(6n + 4) .audience-card__surface {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, transparent 45%),
    linear-gradient(168deg, #e0f7fa 0%, #b2ebf2 44%, #5eead4 100%);
}

.audience-card:nth-child(6n + 5) .audience-card__surface {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, transparent 45%),
    linear-gradient(168deg, #eff6ff 0%, #c7d2fe 44%, #a5b4fc 100%);
}

.audience-card:nth-child(6n + 6) .audience-card__surface {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, transparent 45%),
    linear-gradient(168deg, #f0f9ff 0%, var(--map-sea) 44%, #7dd3fc 100%);
}

@media (max-width: 900px) {
  .section-audience {
    padding-left: max(var(--page-align-left), clamp(16px, 4vw, 24px));
    padding-right: max(var(--page-align-left), clamp(16px, 4vw, 24px));
  }

  .section-audience .container {
    width: 100%;
    max-width: none;
  }
}

/* Блок «Почему Averon»: панель слева + дорожка и столбец карточек */
.section-why {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0 clamp(88px, 12vw, 140px);
  background: transparent;
  overflow: visible;
}

.section-why__container {
  position: relative;
}

.section-why__split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.section-why__left {
  max-width: none;
  padding-right: 0;
}

.section-why__panel {
  position: relative;
  padding: clamp(26px, 4vw, 38px) clamp(24px, 3.5vw, 36px);
  border-radius: clamp(18px, 2vw, 26px);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(56, 189, 248, 0.16) 0%, transparent 52%),
    radial-gradient(90% 70% at 100% 95%, rgba(125, 211, 252, 0.18) 0%, transparent 48%),
    linear-gradient(152deg, rgba(255, 255, 255, 0.94) 0%, rgba(238, 248, 255, 0.88) 55%, rgba(224, 242, 254, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 10px 40px rgba(14, 116, 180, 0.09),
    var(--shadow-card);
  overflow: hidden;
}

.section-why__panel::before {
  content: "";
  position: absolute;
  top: -35%;
  left: -18%;
  width: clamp(140px, 22vw, 200px);
  height: clamp(140px, 22vw, 200px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 68%);
  pointer-events: none;
}

.section-why__panel::after {
  content: "";
  position: absolute;
  bottom: -32%;
  right: -24%;
  width: clamp(120px, 18vw, 170px);
  height: clamp(120px, 18vw, 170px);
  border-radius: 45% 55% 50% 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.section-why__title {
  margin: 0 0 clamp(16px, 2.2vw, 22px);
  padding-left: 14px;
  font-family: var(--font);
  font-size: clamp(1.85rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.section-why__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--cta-hover-bg) 0%, var(--accent) 100%);
  box-shadow: 0 0 16px rgba(51, 181, 247, 0.45);
}

.section-why__lead {
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: clamp(1.04rem, 1.32vw, 1.15rem);
  line-height: 1.72;
  color: var(--text-muted);
}

.section-why__lead strong {
  color: var(--text);
  font-weight: 700;
}

.section-why__detail {
  margin-top: clamp(20px, 3vw, 28px);
  padding-top: clamp(18px, 2.5vw, 24px);
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  position: relative;
  z-index: 1;
}

.section-why__detail-text {
  margin: 0;
  font-size: clamp(0.96rem, 1.15vw, 1.05rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.section-why__detail-text--tight {
  margin-top: 0.65em;
}

/* Why choose Averon — иконки вместо пунктира */
.section-why__icons-wrap {
  min-width: 0;
}

.why-icons__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(14px, 2.2vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-icons__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: clamp(16px, 2.2vw, 20px) clamp(16px, 2.4vw, 22px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 22px rgba(15, 39, 68, 0.08);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.88) 100%);
}

.why-icons__item--a {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(224, 242, 254, 0.92) 100%);
  border-color: rgba(125, 211, 252, 0.55);
}

.why-icons__item--b {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(204, 251, 241, 0.9) 100%);
  border-color: rgba(45, 212, 191, 0.45);
}

.why-icons__item--c {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(219, 234, 254, 0.92) 100%);
  border-color: rgba(129, 140, 248, 0.45);
}

.why-icons__item--d {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 243, 199, 0.88) 100%);
  border-color: rgba(251, 191, 36, 0.4);
}

.why-icons__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #0f172a;
  background: linear-gradient(145deg, #e0f2fe 0%, #38bdf8 100%);
  box-shadow: 0 4px 14px rgba(14, 116, 180, 0.22);
}

.why-icons__item--b .why-icons__icon {
  background: linear-gradient(145deg, #ccfbf1 0%, #14b8a6 100%);
  color: #042f2e;
}

.why-icons__item--c .why-icons__icon {
  background: linear-gradient(145deg, #e0e7ff 0%, #6366f1 100%);
  color: #1e1b4b;
}

.why-icons__item--d .why-icons__icon {
  background: linear-gradient(145deg, #fef3c7 0%, #f59e0b 100%);
  color: #422006;
}

.why-icons__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.why-icons__label {
  font-family: var(--font);
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #0f172a;
  padding-top: 2px;
}

@media (max-width: 600px) {
  .why-icons__list {
    grid-template-columns: 1fr;
  }
}

/* Вертикальная дорожка + узлы + отводы к карточкам в одном столбце */
.section-why__timeline {
  position: relative;
  min-width: 0;
  padding: clamp(8px, 1.2vw, 14px) 0;
}

.why-timeline__vein-wrap {
  position: absolute;
  left: 22px;
  top: clamp(12px, 2vw, 20px);
  bottom: clamp(12px, 2vw, 20px);
  width: 28px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.why-timeline__vein {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.92;
}

.why-timeline__vein-path {
  animation: why-timeline-dash 34s linear infinite;
}

@keyframes why-timeline-dash {
  to {
    stroke-dashoffset: -360;
  }
}

.why-timeline__list {
  margin: 0;
  padding: 0 0 0 56px;
  list-style: none;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.6vw, 28px);
}

.why-timeline__step {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
}

.why-timeline__hinge {
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: -56px;
  width: 56px;
  align-self: center;
}

.why-timeline__node {
  position: relative;
  z-index: 2;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0f9ff 0%, #38bdf8 50%, #0369a1 100%);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.98),
    0 0 0 1px rgba(14, 165, 233, 0.35),
    0 0 22px rgba(56, 189, 248, 0.65);
}

.why-timeline__spur {
  position: absolute;
  left: calc(50% + 7px);
  top: 50%;
  width: clamp(18px, 2.5vw, 28px);
  height: 3px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, rgba(56, 189, 248, 0.28) 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  z-index: 1;
}

.why-timeline__row {
  flex: 1;
  min-width: 0;
  margin-left: clamp(6px, 1vw, 12px);
}

.why-timeline__tilt {
  width: 100%;
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(0deg) rotateY(0deg);
  will-change: transform;
}

.why-scatter__card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: clamp(20px, 2.8vw, 26px) clamp(24px, 3.2vw, 32px);
  padding-left: clamp(26px, 3.5vw, 34px);
  max-width: none;
  min-width: 0;
  font-family: var(--font);
  font-size: clamp(1.04rem, 1.45vw, 1.16rem);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.025em;
  color: #0f172a;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  overflow: hidden;
  isolation: isolate;
  cursor: default;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(255, 255, 255, 0.75) 0%, transparent 52%),
    radial-gradient(90% 70% at 100% 100%, rgba(56, 189, 248, 0.22) 0%, transparent 48%),
    linear-gradient(168deg, #e0f3fb 0%, var(--map-sea) 38%, #7eb8d9 96%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 24px rgba(15, 39, 68, 0.12),
    0 20px 48px rgba(14, 116, 180, 0.14),
    0 0 0 1px rgba(14, 165, 233, 0.08);
  transition: box-shadow 0.35s ease, filter 0.35s ease;
}

.why-scatter__card::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 5px;
  height: 46%;
  max-height: 3.2rem;
  border-radius: 6px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #7dd3fc 0%, #0ea5e9 45%, #0369a1 100%);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.55);
  pointer-events: none;
  z-index: 1;
}

.why-scatter__card::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    118deg,
    transparent 42%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.2) 52%,
    transparent 58%
  );
  transform: translateX(-120%) skewX(-12deg);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.why-timeline__row:hover .why-scatter__card {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 14px 36px rgba(15, 39, 68, 0.14),
    0 28px 56px rgba(14, 116, 180, 0.2),
    0 0 0 1px rgba(56, 189, 248, 0.25),
    0 0 48px rgba(56, 189, 248, 0.22);
  filter: saturate(1.08) brightness(1.03);
}

.why-timeline__row:hover .why-scatter__card::after {
  transform: translateX(120%) skewX(-12deg);
}

@media (prefers-reduced-motion: reduce) {
  .why-scatter__card {
    transition: none;
  }

  .why-timeline__row:hover .why-scatter__card {
    filter: saturate(1.04);
  }

  .why-scatter__card::after {
    display: none;
  }

  .why-timeline__vein-path {
    animation: none;
  }

  .why-timeline__tilt {
    transform: none !important;
    will-change: auto;
  }
}

@media (max-width: 900px) {
  .section-why {
    padding-left: max(var(--page-align-left), clamp(16px, 4vw, 24px));
    padding-right: max(var(--page-align-left), clamp(16px, 4vw, 24px));
  }

  .section-why__container {
    width: 100%;
    max-width: none;
  }

  .section-why__split {
    grid-template-columns: 1fr;
    gap: clamp(24px, 5vw, 36px);
  }

  .section-why__icons-wrap {
    margin-top: 0;
  }
}

/* Мероприятия — тёмный блок + бесконечная карусель */
.section-events {
  position: relative;
  z-index: 2;
  background: #0a0b0e;
  color: #fff;
  padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 7vw, 88px);
  margin-top: clamp(32px, 5vw, 48px);
}

.section-events__head {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.section-events__head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.section-events__title {
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.section-events__lead {
  margin: 0;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.section-events__lead strong {
  color: #fff;
  font-weight: 600;
}

.section-events__controls {
  display: flex;
  gap: 12px;
}

.events-nav-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.events-nav-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
}

.events-nav-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.section-events__marquee-outer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.events-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.events-marquee__track {
  display: flex;
  width: max-content;
  animation: events-marquee-x 52s linear infinite;
}

.events-marquee__group {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 2.5vw, 28px);
  padding-right: clamp(20px, 2.5vw, 28px);
  flex-shrink: 0;
}

.events-card {
  flex: 0 0 auto;
  width: clamp(272px, 38vw, 400px);
  aspect-ratio: 4 / 3;
  border-radius: clamp(16px, 2vw, 20px);
  overflow: hidden;
  position: relative;
  background: #14161c;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.events-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.events-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(14px, 2.2vw, 22px) clamp(16px, 2.5vw, 24px);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.5) 52%,
    transparent 100%
  );
  pointer-events: none;
}

.events-card__title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(0.94rem, 1.2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

@keyframes events-marquee-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .events-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    mask-image: none;
    -webkit-mask-image: none;
    padding-bottom: 8px;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  }

  .events-marquee__track {
    animation: none;
    padding-inline: max(var(--page-align-left), clamp(16px, 4vw, 24px));
    padding-bottom: 4px;
  }
}

@media (max-width: 768px) {
  .section-events__head-grid {
    grid-template-columns: 1fr;
    gap: clamp(18px, 4vw, 28px);
  }
}

/* Header */
.site-header {
  padding-top: max(24px, env(safe-area-inset-top));
  padding-right: env(safe-area-inset-right);
  padding-bottom: 24px;
  padding-left: env(safe-area-inset-left);
  position: relative;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.nav__collapse {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: min(0, 100%);
  gap: clamp(20px, 3vw, 40px);
}

/* Десктоп: ссылки по центру полосы, Contact us — в правом углу контейнера */
@media (min-width: 901px) {
  .nav__collapse {
    display: contents;
    flex: unset;
    min-width: 0;
    gap: 0;
  }

  .nav__links {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  .nav__actions {
    flex-shrink: 0;
  }
}

.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.nav__burger:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 4px 16px rgba(14, 116, 180, 0.12);
}

.nav__burger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav__burger-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
}

.nav__burger-line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--logo-on);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav.is-nav-open .nav__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-nav-open .nav__burger-line:nth-child(2) {
  opacity: 0;
}

.site-nav.is-nav-open .nav__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-logo);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.logo__aver {
  color: var(--logo-aver);
}

.logo__on {
  color: var(--logo-on);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--accent);
}

.nav__item--dropdown {
  position: relative;
}

.nav__link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav__link--dropdown:hover,
.nav__item--dropdown.is-open .nav__link--dropdown {
  color: var(--accent);
}

.nav__link--dropdown:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav__chevron {
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
  opacity: 0.75;
}

.nav__item--dropdown.is-open .nav__chevron {
  transform: rotate(225deg) translateY(-1px);
}

.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: min(100vw - 48px, 280px);
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow:
    0 14px 40px rgba(15, 23, 42, 0.12),
    0 4px 12px rgba(15, 23, 42, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 120;
}

.nav__item--dropdown.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__menu-link {
  display: block;
  padding: 10px 18px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav__menu-link:hover {
  background: rgba(14, 165, 233, 0.08);
  color: var(--accent);
}

.nav__menu-link[aria-current="page"] {
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  font: inherit;
  font-family: inherit;
}

button.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--cta {
  padding: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  box-shadow:
    0 10px 28px rgba(15, 17, 20, 0.35),
    0 4px 12px rgba(15, 17, 20, 0.18);
  transition: box-shadow 0.35s ease;
}

.btn--cta:hover {
  box-shadow:
    0 14px 36px rgba(51, 181, 247, 0.42),
    0 6px 18px rgba(15, 23, 42, 0.12);
}

.btn--cta:active {
  box-shadow:
    0 8px 22px rgba(51, 181, 247, 0.3),
    0 2px 10px rgba(15, 23, 42, 0.1);
}

.btn--cta__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.35em;
  padding: 10px 26px;
  background: var(--logo-on);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-family: var(--font-logo);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(0.98rem, 1.9vw, 1.1rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.btn--cta:hover .btn--cta__inner {
  background-color: var(--cta-hover-bg);
}

.btn--cta:active .btn--cta__inner {
  background-color: var(--cta-hover-bg-active);
}

.btn--cta__aver,
.btn--cta__s,
.btn--cta__nami {
  color: inherit;
  font-weight: 700;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(max(16px, env(safe-area-inset-bottom)), 12px) max(16px, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: min(90vh, 720px);
  max-height: min(90dvh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: auto;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  background: var(--bg);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal__close:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.08);
}

.modal__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal__dialog {
    transition: none;
  }

  .modal__dialog {
    transform: none;
  }

  .modal.is-open .modal__dialog {
    transform: none;
  }
}

/* Lead form (modal) */
.lead-card {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  padding: 28px 32px 32px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.lead-card--modal {
  padding-top: 48px;
}

.lead-section__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead-section__hint {
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.lead-form__field {
  margin-bottom: 20px;
}

.lead-form__field:last-of-type {
  margin-bottom: 0;
}

.lead-form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.lead-form__req {
  margin-left: 2px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.lead-form__opt {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.lead-form__input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form__input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.lead-form__input:hover {
  border-color: rgba(15, 23, 42, 0.16);
}

.lead-form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.lead-form__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.lead-form__actions {
  margin-top: 24px;
}

.lead-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--logo-on);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 17, 20, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.lead-form__submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(15, 17, 20, 0.3);
}

.lead-form__submit:active {
  transform: translateY(0);
}

.lead-form__status {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.lead-form__status--error {
  color: #b91c1c;
}

.lead-form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  .site-nav.is-nav-open {
    z-index: 150;
  }

  .nav__burger,
  .nav__link--dropdown {
    touch-action: manipulation;
  }

  .nav__burger {
    display: inline-flex;
    flex-shrink: 0;
  }

  .nav__collapse {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 10;
    padding: 12px 14px 14px;
    gap: 10px;
    margin-top: 4px;
    max-height: min(78vh, 560px);
    max-height: min(78dvh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    box-shadow:
      0 16px 48px rgba(15, 23, 42, 0.12),
      0 4px 14px rgba(15, 23, 42, 0.06);
  }

  .site-nav.is-nav-open .nav__collapse {
    display: flex;
  }

  .nav__links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
  }

  .nav__links > li {
    width: 100%;
  }

  .nav__link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 4px;
    box-sizing: border-box;
  }

  .nav__item--dropdown {
    width: 100%;
    max-width: none;
    text-align: left;
  }

  .nav__link--dropdown {
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 10px 4px;
    box-sizing: border-box;
  }

  .nav__menu {
    position: static;
    width: 100%;
    margin: 0 0 8px;
    transform: none;
    box-shadow: none;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    padding: 4px 0;
    background: rgba(248, 250, 252, 0.95);
  }

  .nav__item--dropdown:not(.is-open) .nav__menu {
    display: none;
  }

  .nav__item--dropdown.is-open .nav__menu {
    display: block;
  }

  .nav__menu-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
  }

  .nav__actions {
    width: 100%;
    justify-content: stretch;
    padding-top: 4px;
  }

  .nav__actions .btn--cta {
    width: 100%;
    justify-content: center;
  }

  .nav__actions .btn--cta .btn--cta__inner {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .faq-summary {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 600px) {
  :root {
    --container: calc(100% - 32px);
  }

  .lead-card {
    padding: 22px 20px 26px;
  }

  .page-hero > .container {
    padding: clamp(20px, 5vw, 28px) clamp(16px, 4vw, 22px);
  }

  .page-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .page-cta-row .btn--cta {
    width: 100%;
    text-align: center;
  }

  .page-cta-row .btn--cta .btn--cta__inner {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  background: #060708;
  color: rgba(248, 250, 252, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: clamp(48px, 7vw, 88px);
  padding-right: max(0px, env(safe-area-inset-right));
  padding-bottom: max(clamp(28px, 4vw, 36px), env(safe-area-inset-bottom));
  padding-left: max(0px, env(safe-area-inset-left));
  font-family: var(--font);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 48px);
  align-items: start;
}

.site-footer .logo--footer {
  margin-bottom: 14px;
}

.site-footer .logo--footer .logo__on {
  color: #f1f5f9;
}

.site-footer__tagline {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.62);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #0f1114;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.site-footer__social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  background: #f8fafc;
}

.site-footer__social-link:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

.site-footer__social-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.site-footer__heading {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.45);
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__link {
  color: rgba(248, 250, 252, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.site-footer__link:hover {
  color: #7dd3fc;
}

.site-footer__link:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer__cta-text {
  margin: 0 0 16px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.62);
  max-width: 22rem;
}

.site-footer__cta {
  width: fit-content;
  max-width: 100%;
}

.site-footer__bottom {
  margin-top: clamp(40px, 6vw, 56px);
  padding-top: clamp(22px, 3vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.48);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__legal-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__legal-link:hover {
  color: #bae6fd;
}

.site-footer__legal-link:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__cta-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Внутренние страницы (о нас, решение, поддержка, контакты) */
.page-inner {
  position: relative;
  z-index: 1;
  padding-bottom: max(clamp(56px, 8vw, 96px), env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.page-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-hero__title {
  margin: 0 0 clamp(12px, 2vw, 18px);
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

.page-hero__lead {
  margin: 0;
  font-size: clamp(1.02rem, 1.25vw, 1.12rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.page-hero__lead strong {
  color: var(--text);
  font-weight: 700;
}

.page-block {
  padding-top: clamp(40px, 6vw, 64px);
}

.page-block__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(18px, 2.5vw, 24px);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-block__title::before {
  content: "";
  width: 5px;
  height: 1.15em;
  border-radius: 6px;
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 45%, #0369a1 100%);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  flex-shrink: 0;
}

.page-prose {
  max-width: 44rem;
}

.page-prose p {
  margin: 0 0 1em;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.page-prose p:last-child {
  margin-bottom: 0;
}

.page-prose ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.page-prose li {
  margin-bottom: 0.5em;
}

.page-prose strong {
  color: var(--text);
}

/* Сетка карточек на About / Solution — как «Who we work with» на главной */
.page-grid-2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1024px) {
  .page-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .page-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Ровно 4 карточки в 3 колонках: последняя по центру второго ряда */
@media (min-width: 1025px) {
  .page-grid-2 .page-card:nth-last-child(1):nth-child(4) {
    grid-column: 2;
  }
}

.page-card {
  margin: 0;
  display: block;
  height: 100%;
}

.page-card__surface {
  box-sizing: border-box;
  height: 100%;
  min-height: 100%;
  padding: clamp(26px, 3.5vw, 36px) clamp(22px, 3vw, 30px);
  border-radius: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, transparent 45%),
    linear-gradient(168deg, #cee8f4 0%, var(--map-sea) 44%, #a8cfe3 100%);
  box-shadow:
    0 2px 8px rgba(15, 39, 68, 0.07),
    0 14px 38px rgba(56, 130, 160, 0.14);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}

.page-card:nth-child(4n + 1) .page-card__surface {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, transparent 45%),
    linear-gradient(168deg, #dbeafe 0%, #bfdbfe 44%, #93c5fd 100%);
}

.page-card:nth-child(4n + 2) .page-card__surface {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, transparent 45%),
    linear-gradient(168deg, #e0f2fe 0%, var(--map-sea) 40%, #7dd3fc 100%);
}

.page-card:nth-child(4n + 3) .page-card__surface {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, transparent 45%),
    linear-gradient(168deg, #cffafe 0%, #a5f3fc 42%, #67e8f9 100%);
}

.page-card:nth-child(4n + 4) .page-card__surface {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, transparent 45%),
    linear-gradient(168deg, #e0f7fa 0%, #b2ebf2 44%, #5eead4 100%);
}

.page-card:nth-child(4n + 5) .page-card__surface {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, transparent 45%),
    linear-gradient(168deg, #eff6ff 0%, #c7d2fe 44%, #a5b4fc 100%);
}

.page-card:nth-child(4n + 6) .page-card__surface {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, transparent 45%),
    linear-gradient(168deg, #f0f9ff 0%, var(--map-sea) 44%, #7dd3fc 100%);
}

.page-card__surface::after {
  content: "";
  position: absolute;
  inset: -50% -80%;
  background: linear-gradient(
    118deg,
    transparent 40%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.15) 52%,
    transparent 60%
  );
  transform: translateX(-100%) skewX(-14deg);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.page-card__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.page-card__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .page-card:hover .page-card__surface,
  .page-card:focus-within .page-card__surface {
    transform: translateY(-4px);
    box-shadow:
      0 8px 28px rgba(15, 39, 68, 0.12),
      0 20px 48px rgba(56, 130, 160, 0.22),
      0 0 0 1px rgba(56, 189, 248, 0.2);
    border-color: rgba(125, 211, 252, 0.65);
  }

  .page-card:hover .page-card__surface::after,
  .page-card:focus-within .page-card__surface::after {
    transform: translateX(120%) skewX(-14deg);
  }
}

.page-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: clamp(24px, 3vw, 32px);
}

.page-cta-row .btn--cta {
  text-decoration: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(18px, 2.5vw, 24px);
}

.contact-card {
  padding: clamp(22px, 3vw, 28px);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-sm);
}

.contact-card__label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-card__value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-card__value a {
  color: var(--accent);
  text-decoration: none;
}

.contact-card__value a:hover {
  text-decoration: underline;
}

.contact-card__hint {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.faq-list {
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  scroll-margin-top: 96px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.faq-details {
  margin: 0;
}

.faq-summary {
  padding: clamp(16px, 2.2vw, 20px) clamp(18px, 2.5vw, 22px);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2.75rem;
  transition: background 0.15s ease;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-details[open] .faq-summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-summary:hover {
  background: rgba(14, 165, 233, 0.06);
}

.faq-answer {
  padding: 0 clamp(18px, 2.5vw, 22px) clamp(16px, 2.2vw, 20px);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.faq-answer p {
  margin: 0 0 0.75em;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Внутренние страницы: фон, hero-карточка, карточки, кнопки */
.page-inner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: min(560px, 78vh);
  background:
    radial-gradient(ellipse 85% 75% at 12% -8%, rgba(56, 189, 248, 0.22), transparent 58%),
    radial-gradient(ellipse 55% 60% at 92% 18%, rgba(147, 197, 253, 0.2), transparent 52%),
    radial-gradient(ellipse 50% 45% at 50% 100%, rgba(186, 230, 253, 0.35), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.page-inner > * {
  position: relative;
  z-index: 1;
}

.page-hero {
  padding-top: clamp(28px, 4.5vw, 48px);
  padding-bottom: clamp(8px, 2vw, 16px);
  border-bottom: none;
}

.page-hero > .container {
  background:
    linear-gradient(152deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.94) 42%, rgba(240, 249, 255, 0.88) 100%);
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: clamp(18px, 2vw, 24px);
  padding: clamp(26px, 4vw, 40px) clamp(22px, 3.5vw, 36px);
  box-shadow:
    0 4px 28px rgba(14, 116, 180, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.page-hero__inner {
  max-width: 52rem;
}

.page-prose {
  padding: clamp(18px, 2.5vw, 24px) clamp(20px, 2.8vw, 26px);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
}

.page-cta-row {
  gap: 16px;
}

.btn--ghost {
  box-shadow: none !important;
}

.btn--ghost:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

.btn--ghost .btn--cta__inner {
  background: rgba(255, 255, 255, 0.75);
  color: var(--logo-on);
  border: 2px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.btn--ghost:hover .btn--cta__inner {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(14, 165, 233, 0.45);
  color: var(--accent);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.15);
}

.contact-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.88) 100%);
  border: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow:
    0 4px 20px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9, #6366f1);
  opacity: 0.85;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow:
    0 12px 36px rgba(14, 116, 180, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.faq-item {
  transition:
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s ease;
  border-color: rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.75) 100%);
}

.faq-item:hover {
  border-color: rgba(14, 165, 233, 0.22);
  box-shadow: 0 12px 40px rgba(14, 116, 180, 0.1);
  transform: translateY(-2px);
}

.faq-item:has(.faq-details[open]) {
  border-color: rgba(14, 165, 233, 0.32);
  box-shadow: 0 14px 48px rgba(14, 116, 180, 0.12);
}

.faq-details[open] .faq-summary {
  background: rgba(14, 165, 233, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .nav__menu {
    transition: none;
  }

  .nav__chevron {
    transition: none;
  }

  .page-card__surface,
  .page-card__surface::after,
  .contact-card,
  .faq-item {
    transition: none;
  }

  .page-card:hover .page-card__surface,
  .page-card:focus-within .page-card__surface,
  .contact-card:hover,
  .faq-item:hover {
    transform: none;
  }

  .page-card:hover .page-card__surface::after,
  .page-card:focus-within .page-card__surface::after {
    transform: translateX(-100%);
  }
}
