/* ==========================================================================
   Всероссийский тест 2026 — стили лендинга
   Брейкпоинты: узкий мобильный <480px, мобильный 480–767px,
   планшет 768–1119px, десктоп ≥1120px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Шрифты
   -------------------------------------------------------------------------- */

/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'BebasCyr';
  src: url("../fonts/bebas-cyrillic.woff2") format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Переменные и база
   -------------------------------------------------------------------------- */

:root {
  --color-bg: #050a14;
  --color-blue: #0268E1;
  --color-blue-light: #4DA3FF;
  --color-blue-pale: #7FB6FF;
  --color-orange: #FF6A13;
  --color-orange-light: #FF9A4D;
  --color-white: #fff;
  --color-text: #a9bcd6;
  --color-text-dim: #9db1cd;
  --color-text-muted: #8ea3c0;
  --color-label: #7E9CC4;

  --font-body: Manrope, system-ui, sans-serif;
  --font-display: BebasCyr, 'Bebas Neue', Impact, sans-serif;

  --container-width: 1240px;
  --side-pad: 0 40px;
  --header-pad: 26px 56px;
  --section-pad: 96px 0 120px;

  --card-radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
}

body {
  font-family: var(--font-body);
}

[id] { scroll-margin-top: 32px; }

a {
  color: var(--color-orange);
  text-decoration: none;
}
a:hover { color: #ff8845; }

img { display: block; }

.accent { color: var(--color-blue); }

/* --------------------------------------------------------------------------
   3. Анимации
   -------------------------------------------------------------------------- */

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: .9; box-shadow: 0 0 14px rgba(255,106,19,.55); }
  50% { transform: scale(1.14); opacity: 1; box-shadow: 0 0 26px rgba(255,106,19,.85); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,106,19,.45), 0 10px 30px rgba(255,106,19,.25); }
  50% { box-shadow: 0 0 0 14px rgba(255,106,19,0), 0 10px 34px rgba(255,106,19,.35); }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: .15; }
}
@keyframes driftA {
  0% { transform: translate(0,0) scale(1); }
  22% { transform: translate(7vw,5vh) scale(1.06); }
  44% { transform: translate(-2vw,9vh) scale(.97); }
  66% { transform: translate(5vw,-4vh) scale(1.08); }
  84% { transform: translate(-4vw,3vh) scale(1.02); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes driftB {
  0% { transform: translate(0,0) scale(1); }
  19% { transform: translate(-6vw,-6vh) scale(1.07); }
  41% { transform: translate(3vw,-9vh) scale(.96); }
  63% { transform: translate(-8vw,2vh) scale(1.05); }
  81% { transform: translate(2vw,5vh) scale(1.01); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes rimShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 62% 20%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 38% 80%; }
  100% { background-position: 0% 50%; }
}
@keyframes logoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes gridPan {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-120px,-120px,0); }
}
@keyframes auroraSweep {
  0% { transform: translate(-12%,0) rotate(-8deg) scaleY(1); opacity: .35; }
  50% { transform: translate(10%,4vh) rotate(-3deg) scaleY(1.25); opacity: .7; }
  100% { transform: translate(-12%,0) rotate(-8deg) scaleY(1); opacity: .35; }
}
@keyframes fanA {
  0%, 100% { transform: rotate(-5deg) translate(0,0); }
  33% { transform: rotate(-6.6deg) translate(-6px,-11px); }
  66% { transform: rotate(-3.4deg) translate(4px,7px); }
}
@keyframes fanB {
  0%, 100% { transform: rotate(3deg) translate(0,0); }
  30% { transform: rotate(4.6deg) translate(7px,8px); }
  64% { transform: rotate(1.6deg) translate(-5px,-9px); }
}
@keyframes fanC {
  0%, 100% { transform: rotate(-2deg) translate(0,0); }
  36% { transform: rotate(-.4deg) translate(6px,-8px); }
  70% { transform: rotate(-3.4deg) translate(-6px,6px); }
}
@keyframes sheenShift {
  0%, 100% { opacity: .55; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(6%); }
}
/* Блик по кнопке: одиночный пробег (hover) и петля с паузой (главная CTA) */
@keyframes btnShine {
  from { transform: translateX(-160%) skewX(-18deg); }
  to { transform: translateX(360%) skewX(-18deg); }
}
@keyframes stepNumPop {
  0% { transform: scale(.86); }
  55% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes btnShineLoop {
  0%, 74% { transform: translateX(-160%) skewX(-18deg); }
  100% { transform: translateX(360%) skewX(-18deg); }
}

/* --------------------------------------------------------------------------
   4. Фоновые слои страницы
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  background: var(--color-bg);
  clip-path: inset(0);
  overflow: clip;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.bg-orb--blue-left {
  left: -12%; top: 4%; width: 52vw; height: 52vw;
  background: radial-gradient(circle, rgba(30,90,200,.20) 0%, rgba(5,10,20,0) 62%);
  animation: driftA 64s ease-in-out infinite;
}
.bg-orb--orange-right {
  right: -10%; top: 34%; width: 46vw; height: 46vw;
  background: radial-gradient(circle, rgba(255,106,19,.13) 0%, rgba(5,10,20,0) 62%);
  animation: driftB 83s ease-in-out infinite;
}
.bg-orb--blue-bottom {
  left: 14%; bottom: -6%; width: 44vw; height: 36vw;
  background: radial-gradient(circle, rgba(30,90,200,.14) 0%, rgba(5,10,20,0) 64%);
  animation: driftB 71s ease-in-out infinite reverse;
}
.bg-orb--pale-top {
  right: 6%; top: 8%; width: 30vw; height: 30vw;
  background: radial-gradient(circle, rgba(120,180,255,.10) 0%, rgba(5,10,20,0) 60%);
  animation: driftA 91s ease-in-out infinite reverse;
}
.bg-orb--orange-left {
  left: -8%; bottom: 24%; width: 38vw; height: 34vw;
  background: radial-gradient(circle, rgba(255,106,19,.09) 0%, rgba(5,10,20,0) 62%);
  animation: driftA 77s ease-in-out infinite;
}

.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .5;
}
.bg-grid__mesh {
  position: absolute;
  inset: -140px;
  background-image:
    linear-gradient(rgba(120,170,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.07) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(120% 60% at 50% 0%, #000 0%, rgba(0,0,0,.55) 38%, transparent 78%);
  mask-image: radial-gradient(120% 60% at 50% 0%, #000 0%, rgba(0,0,0,.55) 38%, transparent 78%);
  animation: gridPan 80s linear infinite;
}

.bg-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-aurora__band {
  position: absolute;
  left: -20%;
  right: -20%;
  pointer-events: none;
}
.bg-aurora__band--top {
  top: 12%;
  height: 26vh;
  filter: blur(60px);
  background: linear-gradient(90deg, rgba(2,104,225,0) 0%, rgba(2,104,225,.16) 28%, rgba(120,180,255,.12) 52%, rgba(255,106,19,.10) 74%, rgba(255,106,19,0) 100%);
  animation: auroraSweep 46s ease-in-out infinite;
}
.bg-aurora__band--bottom {
  top: 62%;
  height: 22vh;
  filter: blur(70px);
  background: linear-gradient(90deg, rgba(255,106,19,0) 0%, rgba(255,106,19,.10) 30%, rgba(2,104,225,.14) 66%, rgba(2,104,225,0) 100%);
  animation: auroraSweep 61s ease-in-out infinite reverse;
}

/* Подсвеченная сетка между блоками «Как это работает» и «О нас» — позиция задаётся из JS */
.bg-grid-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.bg-grid-band__mesh {
  position: absolute;
  inset: -140px;
  background-image:
    linear-gradient(rgba(120,170,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.09) 1px, transparent 1px);
  background-size: 120px 120px;
  animation: gridPan 80s linear infinite;
}

.bg-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nLjg1JyBudW1PY3RhdmVzPSczJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzE2MCcgaGVpZ2h0PScxNjAnIGZpbHRlcj0ndXJsKCNuKScvPjwvc3ZnPg==");
}

/* --------------------------------------------------------------------------
   5. Общие элементы
   -------------------------------------------------------------------------- */

.container {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--side-pad);
}

/* Градиентная рамка карточек */
.card-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  mask-composite: exclude;
}
.card-frame--cool {
  background: linear-gradient(135deg, rgba(255,255,255,.4) 0%, rgba(140,190,255,.16) 24%, rgba(255,255,255,.02) 60%, rgba(120,180,255,.24) 100%);
}
.card-frame--cool-lead {
  background: linear-gradient(135deg, rgba(255,255,255,.5) 0%, rgba(140,190,255,.2) 20%, rgba(255,255,255,.02) 52%, rgba(255,150,70,.35) 100%);
}
.card-frame--warm {
  background: linear-gradient(135deg, rgba(255,180,110,.55) 0%, rgba(255,255,255,.06) 40%, rgba(255,255,255,.02) 70%, rgba(140,190,255,.25) 100%);
}
.card-frame--cool-soft {
  background: linear-gradient(140deg, rgba(255,255,255,.34) 0%, rgba(140,190,255,.16) 26%, rgba(255,255,255,.02) 62%, rgba(120,180,255,.22) 100%);
}
.card-frame--warm-soft {
  background: linear-gradient(140deg, rgba(255,190,130,.45) 0%, rgba(255,255,255,.05) 34%, rgba(255,255,255,.02) 66%, rgba(255,150,70,.32) 100%);
}
.card-frame--cool-brand {
  background: linear-gradient(140deg, rgba(255,255,255,.36) 0%, rgba(140,190,255,.16) 26%, rgba(255,255,255,.02) 62%, rgba(120,180,255,.24) 100%);
}
.card-frame--prize {
  background: linear-gradient(140deg, rgba(255,190,130,.6) 0%, rgba(255,255,255,.06) 42%, rgba(255,255,255,.02) 68%, rgba(255,150,70,.4) 100%);
}

/* Свечение иконок */
.icon-glow--blue {
  filter: drop-shadow(0 0 6px rgba(80,160,255,.85)) drop-shadow(0 0 18px rgba(40,130,255,.55)) drop-shadow(0 0 36px rgba(20,110,255,.3));
}
.icon-glow--blue-soft {
  filter: drop-shadow(0 0 6px rgba(80,160,255,.85)) drop-shadow(0 0 18px rgba(40,130,255,.5));
}
.icon-glow--orange {
  filter: drop-shadow(0 0 6px rgba(255,120,30,.85)) drop-shadow(0 0 18px rgba(255,90,10,.55)) drop-shadow(0 0 36px rgba(255,80,0,.3));
}
.icon-glow--orange-soft {
  filter: drop-shadow(0 0 6px rgba(255,120,30,.85)) drop-shadow(0 0 18px rgba(255,90,10,.5));
}

/* Кнопки */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  background: linear-gradient(180deg, #FF8A32 0%, #E85D00 100%);
  cursor: pointer;
}
/* Блик. Анимируется только transform, слой композитится на GPU */
.btn::after {
  content: '';
  position: absolute;
  top: -20%; bottom: -20%;
  left: 0;
  width: 42%;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.42), rgba(255,255,255,0));
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}
.btn:hover::after { animation: btnShine .7s ease-out; }
/* Главная CTA подмигивает сама: 1.5s пробега + 4.5s паузы */
.btn--hero::after { animation: btnShineLoop 6s ease-out 1.5s infinite; }
.btn--hero:hover::after { animation: btnShine .7s ease-out; }
.btn--hero {
  gap: 18px;
  height: 66px; /* 64px + рамка 1px сверху и снизу */
  padding: 0 30px;
  letter-spacing: .1em;
  border: 1px solid rgba(255,180,120,.35);
  box-shadow: 0 8px 24px rgba(232,93,0,.32), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn--hero:hover { filter: brightness(1.07); color: var(--color-white); }
.btn--lift {
  gap: 16px;
  height: 62px;
  padding: 0 32px;
  letter-spacing: .06em;
  box-shadow: 0 12px 30px -10px rgba(255,106,19,.7);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn--lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -12px rgba(255,106,19,.85);
  color: var(--color-white);
}
.btn--submit {
  height: 60px;
  padding: 0 34px;
  letter-spacing: .06em;
  box-shadow: 0 12px 30px -10px rgba(255,106,19,.7);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn--submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -12px rgba(255,106,19,.85);
}
.btn__arrow { font-size: 18px; line-height: 1; }
.btn--lift .btn__arrow { font-size: 17px; line-height: normal; }

/* Заголовки секций */
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 4vw, 62px);
  line-height: .98;
  letter-spacing: .01em;
  color: var(--color-white);
  text-transform: uppercase;
}
.section-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  text-wrap: pretty;
}
.section-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-label);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Шапка
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  max-width: 1460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: var(--header-pad);
}
.site-header__logo {
  height: 34px;
  width: auto;
}
.site-header__socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: transform .25s ease, filter .25s ease;
}
.social-link:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 10px rgba(120,180,255,.55));
}
.social-link img { width: 36px; height: 36px; }

/* --------------------------------------------------------------------------
   7. Первый экран
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  font-family: var(--font-body);
}
.hero__container {
  position: relative;
  max-width: var(--container-width);
  margin: 36px auto 0;
  padding: var(--side-pad);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero__frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--color-bg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 24px 60px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.05);
}
.hero__photo {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-background.webp");
  background-size: 84% auto;
  background-position: right top;
  background-repeat: no-repeat;
}
.hero__fade-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 58%;
  background: linear-gradient(180deg, rgba(5,10,20,0) 0%, rgba(5,10,20,.5) 42%, rgba(5,10,20,.88) 72%, #050a14 92%);
}
.hero__fade-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #050a14 12%, rgba(5,10,20,.92) 28%, rgba(5,10,20,.45) 46%, rgba(5,10,20,0) 62%);
}
.hero__gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 28px;
  background: radial-gradient(120% 80% at 6% -10%, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 34%, rgba(255,255,255,0) 62%);
}
.hero__rim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 28px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255,255,255,.75) 0%, rgba(110,175,255,.55) 12%, rgba(140,190,255,.22) 26%, rgba(255,255,255,.04) 40%, rgba(255,255,255,.02) 56%, rgba(255,255,255,.2) 72%, rgba(255,150,70,.5) 86%, rgba(255,200,140,.7) 100%);
  background-size: 280% 280%;
  animation: rimShift 46s ease-in-out infinite;
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  mask-composite: exclude;
}
.hero__sheen {
  position: absolute;
  left: 8%; right: 26%; top: 0;
  height: 1.5px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.9), rgba(255,255,255,0));
  filter: blur(.3px);
  animation: sheenShift 46s ease-in-out infinite;
}
.hero__content {
  position: relative;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 660px;
  min-height: 640px;
  gap: 30px;
}

.hero__title {
  margin: 0;
  width: fit-content;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .01em;
  color: var(--color-white);
  font-size: clamp(48px, 5.6vw, 86px);
  text-transform: uppercase;
}
.hero__title-main {
  display: inline-flex;
  align-items: center;
  gap: .22em;
  font-size: clamp(66.5px, 7.84vw, 121px);
  line-height: .95;
}
.hero__title-dot {
  width: .267em;
  height: .267em;
  flex: 0 0 .267em;
  border-radius: 50%;
  background: var(--color-orange);
  box-shadow: 0 0 18px rgba(255,106,19,.7);
  animation: dotPulse 3.6s ease-in-out infinite;
}
.hero__subtitle-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}
.hero__subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 2.6vw, 39px);
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1;
}
.hero__subtitle-rule {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, var(--color-orange), rgba(255,106,19,0));
  max-width: 120px;
}
.hero__lead {
  margin: -16px 0 10px;
  max-width: 470px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  text-wrap: pretty;
}

/* Плитки с фактами */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.fact {
  position: relative;
  padding: 16px 18px 15px;
  border-radius: 12px;
  border: 1px solid rgba(80,140,220,.22);
  background: linear-gradient(160deg, rgba(14,28,52,.92) 0%, rgba(7,15,30,.88) 100%);
  box-shadow: inset 0 1px 0 rgba(140,190,255,.08);
  overflow: hidden;
}
.fact__bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(66,150,255,0), rgba(66,150,255,.8), rgba(66,150,255,0));
}
.fact__row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.fact__icon {
  color: #3E9BFF;
  display: flex;
  flex: 0 0 auto;
}
.fact__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.fact__value {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--color-white);
  letter-spacing: .02em;
}
.fact__sub {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-label);
}

/* Кнопка и таймер */
.hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  align-items: end;
}
.countdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.countdown__label {
  text-align: center;
}
.countdown__units {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}
.countdown-unit {
  position: relative;
  flex: 1;
  text-align: center;
}
.countdown-unit__value {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--color-white);
}
.countdown-unit__label {
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-label);
  margin-top: 3px;
}
.countdown-unit__sep {
  position: absolute;
  right: -6px;
  top: 0;
  width: 12px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: #4E6A94;
  animation: blink 1s steps(1,end) infinite;
}

/* --------------------------------------------------------------------------
   8. Основная секция
   -------------------------------------------------------------------------- */

.main-section {
  position: relative;
  font-family: var(--font-body);
  padding: var(--section-pad);
}
.main-section__inner {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--side-pad);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.block-head__title { max-width: 560px; }
.block-head__lead { margin-bottom: 12px; max-width: 520px; }

/* --------------------------------------------------------------------------
   9. Блок «Зачем проходить тест» (бенто)
   -------------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 18px;
}
.bento-card {
  grid-column: span 2;
  position: relative;
  border-radius: var(--card-radius);
  padding: 30px 28px 32px;
  background: linear-gradient(150deg, rgba(14,28,52,.92) 0%, rgba(7,15,30,.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 40px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 230px;
}
.bento-card--lead {
  grid-column: span 4;
  padding: 34px 36px 36px;
  gap: 20px;
  background: linear-gradient(150deg, rgba(16,32,58,.94) 0%, rgba(7,15,30,.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 20px 44px rgba(0,0,0,.45);
}
.bento-card--warm {
  background: linear-gradient(150deg, rgba(30,21,13,.95) 0%, rgba(9,15,29,.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 18px 40px rgba(0,0,0,.45);
}
.bento-card__icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bento-card__icon-wrap--lead {
  width: 72px;
  height: 64px;
  margin-left: -4px;
}
.bento-card__icon-wrap--shift { margin-left: -7px; }
.bento-card__icon-wrap--fixed { flex: 0 0 auto; }
.bento-card__icon { width: 50px; height: 50px; }
.bento-card__icon--lead { width: 64px; height: auto; }
.bento-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento-card__body--lead { gap: 12px; }
.bento-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -.01em;
}
.bento-card__title--lead { font-size: 24px; line-height: 1.2; }
.bento-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-dim);
  text-wrap: pretty;
}
.bento-card__text--lead { font-size: 16px; max-width: 640px; }
.bento-card__text--warm { color: #b8c6da; }

/* --------------------------------------------------------------------------
   10. Цитата
   -------------------------------------------------------------------------- */

.quote {
  position: relative;
  margin: 160px auto 72px;
  padding: 0;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
}
.quote__rule {
  width: 120px;
  height: 1px;
}
.quote__rule--top {
  background: linear-gradient(90deg, rgba(2,104,225,0), rgba(110,175,255,.7), rgba(255,138,50,.7), rgba(255,106,19,0));
}
.quote__rule--bottom {
  background: linear-gradient(90deg, rgba(255,106,19,0), rgba(255,138,50,.7), rgba(110,175,255,.7), rgba(2,104,225,0));
}
.quote__text {
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 300;
  line-height: 1.4;
  color: #dce8f7;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.quote__highlight {
  color: var(--color-white);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   11. Блок «Кому стоит пройти» (роли)
   -------------------------------------------------------------------------- */

.roles-block { margin-top: 104px; }
.roles-block__title { margin-bottom: 40px; max-width: 600px; }

.roles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 16px;
}
.role-card {
  position: relative;
  border-radius: 18px;
  padding: 26px 22px 28px;
  min-height: 180px;
  background: linear-gradient(160deg, rgba(14,28,52,.9) 0%, rgba(7,15,30,.86) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 34px rgba(0,0,0,.38);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.role-card--warm {
  background: linear-gradient(160deg, rgba(30,21,13,.92) 0%, rgba(9,15,29,.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 34px rgba(0,0,0,.4);
}
.role-card__icon-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.role-card__icon { width: 46px; height: 46px; }
.role-card__title {
  position: relative;
  margin: 0;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -.01em;
}

/* --------------------------------------------------------------------------
   12. Блок «Как это работает» + призы
   -------------------------------------------------------------------------- */

.how-block { margin-top: 104px; }
.how-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.how-block__title { max-width: 520px; }

.how-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 380px;
  gap: 56px;
  align-items: start;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0,1fr);
  gap: 32px;
  padding-bottom: 40px;
  min-height: 208px; /* 168px содержимого + 40px нижнего отступа */
}
.step--last { padding-bottom: 0; min-height: 0; }
.step__marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.step--last .step__marker { gap: 0; }
.step__num {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--color-white);
  background: linear-gradient(160deg, rgba(14,28,52,.95), rgba(7,15,30,.9));
  box-shadow: inset 0 0 0 1px rgba(110,175,255,.45), 0 0 26px rgba(40,130,255,.25);
}
.step__num--warm {
  background: linear-gradient(160deg, rgba(30,21,13,.95), rgba(9,15,29,.9));
  box-shadow: inset 0 0 0 1px rgba(255,138,50,.55), 0 0 30px rgba(255,106,19,.3);
}
.step__line {
  position: absolute;
  left: 50%;
  top: 78px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, rgba(110,175,255,.45), rgba(110,175,255,.12));
}
.step__arrow {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  color: var(--color-blue-light);
  font-size: 13px;
  line-height: 1;
}

/* Прочерчивание линии и вспышка номера — включает класс .is-visible из JS.
   Значения по умолчанию (без JS) — конечное состояние, ничего не прячем. */
.js-anim .step__line {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .85s cubic-bezier(.4,0,.2,1) .12s;
}
.js-anim .step.is-visible .step__line { transform: scaleY(1); }

.js-anim .step__arrow {
  opacity: 0;
  transition: opacity .35s ease .8s;
}
.js-anim .step.is-visible .step__arrow { opacity: 1; }

.js-anim .step__num { transition: box-shadow .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
.js-anim .step.is-visible .step__num { animation: stepNumPop .7s cubic-bezier(.2,.8,.3,1); }
.step__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
}
.step--last .step__body { gap: 12px; }
.step__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -.01em;
}
.step__text {
  margin: 0;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dim);
  text-wrap: pretty;
}

.prizes {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.prizes__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.prize-card {
  position: relative;
  border-radius: 20px;
  padding: 30px 30px 32px;
  background: linear-gradient(150deg, rgba(38,25,14,.95) 0%, rgba(10,16,30,.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 20px 44px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.prize-card__icon-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prize-card__icon { width: 62px; height: auto; }
.prize-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prize-card__place {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--color-orange-light);
  letter-spacing: .03em;
}
.prize-card__text {
  font-size: 18px;
  line-height: 1.45;
  color: #f0f5fc;
  text-wrap: pretty;
}

.prize-row {
  position: relative;
  border-radius: 16px;
  padding: 20px 22px;
  background: linear-gradient(150deg, rgba(14,28,52,.9), rgba(7,15,30,.88));
  box-shadow: inset 0 0 0 1px rgba(110,175,255,.24);
  display: flex;
  align-items: center;
  gap: 18px;
}
.prize-row__icon {
  width: 42px;
  height: auto;
  flex: 0 0 42px;
  filter: drop-shadow(0 0 6px rgba(80,160,255,.8)) drop-shadow(0 0 16px rgba(40,130,255,.45));
}
.prize-row__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.prize-row__place {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  color: var(--color-blue-pale);
  letter-spacing: .03em;
}
.prize-row__text {
  font-size: 15px;
  line-height: 1.45;
  color: #cdd9e9;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   13. Блок «Подготовьтесь заранее»
   -------------------------------------------------------------------------- */

.pack-block {
  order: 1;
  position: relative;
  margin-top: 110px;
}
.pack {
  position: relative;
  z-index: 1;
  padding: 56px;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(10,22,42,.92) 0%, rgba(6,13,26,.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 22px 50px rgba(0,0,0,.45);
  overflow: hidden;
}
.pack__rim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(140,195,255,.55) 0%, rgba(77,163,255,.35) 22%, rgba(255,255,255,.03) 48%, rgba(255,255,255,.02) 66%, rgba(110,175,255,.4) 100%);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  mask-composite: exclude;
}
.pack__glow {
  position: absolute;
  left: -10%;
  top: -40%;
  width: 60%;
  height: 180%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(2,104,225,.16) 0%, rgba(5,10,20,0) 70%);
}
.pack__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 420px;
  gap: 64px;
  align-items: center;
}
.pack__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pack__title {
  margin: 0;
  max-width: 560px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--color-white);
  text-transform: uppercase;
}
.pack__text {
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  text-wrap: pretty;
}
.pack__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
}
.pack__cta-note {
  font-size: 13px;
  color: var(--color-label);
}

.fan {
  position: relative;
  height: 320px;
}
.fan-card {
  position: absolute;
  width: 376px;
  padding: 18px 24px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  will-change: transform;
  transition: filter .3s ease;
}
.fan-card:hover {
  animation-play-state: paused;
  filter: brightness(1.12);
}
.fan-card__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-light);
  filter: drop-shadow(0 0 7px rgba(80,160,255,.8));
}
.fan-card__icon--warm {
  color: var(--color-orange-light);
  filter: drop-shadow(0 0 7px rgba(255,120,30,.8));
}
.fan-card__text {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-white);
}

.fan-card--demo {
  left: 0; top: 6px; z-index: 5;
  background: linear-gradient(150deg, rgba(16,32,58,.96), rgba(7,15,30,.94));
  box-shadow: inset 0 0 0 1px rgba(110,175,255,.3), 0 18px 40px rgba(0,0,0,.5);
  animation: fanA 13s ease-in-out infinite;
}
.fan-card--checklist {
  left: 40px; top: 88px; z-index: 8;
  background: linear-gradient(150deg, rgba(16,32,58,.97), rgba(7,15,30,.95));
  box-shadow: inset 0 0 0 1px rgba(110,175,255,.34), 0 20px 44px rgba(0,0,0,.52);
  animation: fanB 16s ease-in-out infinite -4s;
}
.fan-card--mistakes {
  left: 10px; top: 170px; z-index: 20;
  background: linear-gradient(150deg, rgba(34,23,14,.97), rgba(9,15,29,.95));
  box-shadow: inset 0 0 0 1px rgba(255,138,50,.34), 0 22px 48px rgba(0,0,0,.55);
  animation: fanC 19s ease-in-out infinite -8s;
}
/* Размытые карточки-«хвост» стопки */
.fan-card--ghost { z-index: 0; }
.fan-card--ghost-1 {
  left: 22px; top: 20px; opacity: .26;
  background: linear-gradient(150deg, rgba(16,32,58,.94), rgba(7,15,30,.92));
  box-shadow: inset 0 0 0 1px rgba(110,175,255,.24), 0 22px 46px rgba(0,0,0,.5);
  animation: fanB 21s ease-in-out infinite -11s;
}
.fan-card--ghost-1 .fan-card__icon { filter: blur(4px) drop-shadow(0 0 7px rgba(80,160,255,.6)); }
.fan-card--ghost-1 .fan-card__text { color: #dbe8f8; filter: blur(4.5px); opacity: .75; }

.fan-card--ghost-2 {
  left: 16px; top: 104px; opacity: .26;
  background: linear-gradient(150deg, rgba(14,29,53,.92), rgba(7,15,30,.9));
  box-shadow: inset 0 0 0 1px rgba(110,175,255,.2), 0 24px 50px rgba(0,0,0,.52);
  animation: fanC 24s ease-in-out infinite -3s;
}
.fan-card--ghost-2 .fan-card__icon { filter: blur(5px) drop-shadow(0 0 7px rgba(80,160,255,.5)); }
.fan-card--ghost-2 .fan-card__text { color: #cfe0f4; filter: blur(5.5px); opacity: .6; }

.fan-card--ghost-3 {
  left: 26px; top: 186px; opacity: .18;
  background: linear-gradient(150deg, rgba(12,25,47,.9), rgba(6,13,27,.88));
  box-shadow: inset 0 0 0 1px rgba(110,175,255,.16), 0 26px 54px rgba(0,0,0,.55);
  animation: fanA 27s ease-in-out infinite -16s;
}
.fan-card--ghost-3 .fan-card__icon { filter: blur(6px) drop-shadow(0 0 7px rgba(255,120,30,.5)); }
.fan-card--ghost-3 .fan-card__text { color: #c6d7ee; filter: blur(6.5px); opacity: .45; }

/* --------------------------------------------------------------------------
   14. Форма регистрации
   -------------------------------------------------------------------------- */

.registration {
  position: relative;
  margin-top: 110px;
  padding: 52px 56px 46px;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(12,24,44,.92) 0%, rgba(7,15,30,.86) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 50px rgba(0,0,0,.45);
  overflow: hidden;
}
.registration__rim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255,255,255,.6) 0%, rgba(110,175,255,.4) 16%, rgba(255,255,255,.03) 44%, rgba(255,255,255,.02) 62%, rgba(255,150,70,.4) 88%, rgba(255,200,140,.6) 100%);
  background-size: 280% 280%;
  animation: rimShift 46s ease-in-out infinite;
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  mask-composite: exclude;
}
.registration__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.registration__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.registration__title {
  margin: 0;
  max-width: 520px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--color-white);
  text-transform: uppercase;
}
.registration__note {
  margin: 0 0 6px;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

/* Авторизация перед заявкой. Логика состояния адаптирована из webinar:
   checking -> unauthorized -> authorized. */
.reg-auth-checking {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--color-text-muted);
}
.reg-auth-checking__spinner {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  border: 2px solid rgba(110,175,255,.22);
  border-top-color: var(--color-blue-light);
  animation: regAuthSpin .8s linear infinite;
}
@keyframes regAuthSpin { to { transform: rotate(360deg); } }

.reg-auth-gate {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 780px;
  padding: 22px 24px;
  border: 1px solid rgba(110,175,255,.22);
  border-radius: 16px;
  background: rgba(8,20,39,.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.reg-auth-gate__icon {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #9CCAFF;
  background: rgba(45,132,230,.11);
  border: 1px solid rgba(110,175,255,.28);
  box-shadow: 0 0 28px rgba(35,112,205,.12);
}
.reg-auth-gate__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.reg-auth-gate__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--color-white);
}
.reg-auth-gate__text {
  margin: 0;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
}
.reg-auth-gate__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn--auth {
  height: 52px;
  min-width: 150px;
  padding: 0 28px;
  letter-spacing: .06em;
  box-shadow: 0 10px 26px -10px rgba(255,106,19,.65);
}
.reg-auth-gate__register {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(110,175,255,.34);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #B9DAFF;
  background: rgba(35,112,205,.08);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.reg-auth-gate__register:hover {
  color: var(--color-white);
  border-color: rgba(110,175,255,.62);
  background: rgba(35,112,205,.16);
}

.reg-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.reg-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: end;
}
.field {
  position: relative; /* якорь для .field__warning */
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-label);
  font-weight: 600;
}
.field__input {
  width: 100%;
  padding: 10px 2px 12px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-white);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(120,160,215,.35);
  outline: none;
}
.field__input:focus {
  border-bottom: 1px solid var(--color-blue-light);
  box-shadow: 0 8px 22px -14px rgba(77,163,255,.9);
}
.field__input.is-error { border-bottom-color: #FF5A45; }

/* Подпись под полем. position: absolute — чтобы появление ошибки не двигало
   соседние поля и кнопку в общей сетке .reg-form__grid */
.field__warning {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 5px;
  font-size: 12px;
  color: #FF5A45;
}
.agree.is-error .agree__box { border-color: #FF5A45; }

.reg-error {
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,90,69,.35);
  background: rgba(255,90,69,.08);
  font-size: 14px;
  color: #FFB3A8;
}

.agree {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.agree__box {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(120,160,215,.45);
  background: transparent;
  color: var(--color-white);
  font-size: 13px;
  line-height: 1;
}
.agree.is-checked .agree__box { background: var(--color-blue); }
.agree__text {
  font-size: 14px;
  color: var(--color-text-muted);
}
.agree__link {
  color: #FF8A32;
  border-bottom: 1px solid rgba(255,138,50,.4);
}

/* Экран «Спасибо» */
.reg-success {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 22px 0 10px;
}
.reg-success__icon {
  position: relative;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(30,21,13,.95), rgba(9,15,29,.9));
  box-shadow: inset 0 0 0 1px rgba(255,138,50,.55), 0 0 34px rgba(255,106,19,.35);
  animation: pulseGlow 2.6s ease-in-out infinite;
}
.reg-success__check {
  filter: drop-shadow(0 0 6px rgba(255,120,30,.9)) drop-shadow(0 0 18px rgba(255,90,10,.6));
}
.reg-success__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reg-success__title {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--color-white);
  text-transform: uppercase;
}
.reg-success__text {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  text-wrap: pretty;
}

.is-hidden { display: none !important; }

/* --------------------------------------------------------------------------
   15. Блок «О нас»
   -------------------------------------------------------------------------- */

.about-block {
  order: 2;
  position: relative;
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.about-block__title { margin-top: -14px; }
.about-block__text {
  margin: 0;
  max-width: 900px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  text-wrap: pretty;
}
.about-block__brand-name {
  color: var(--color-blue-light);
  font-weight: 700;
}
.about-block__claim {
  margin: 16px 0 0;
  max-width: 820px;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
  color: #e6eefb;
  text-wrap: pretty;
}

.brands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
  margin-top: 8px;
}
.brand-card {
  position: relative;
  border-radius: 20px;
  padding: 30px 32px 34px;
  background: linear-gradient(150deg, rgba(14,28,52,.9) 0%, rgba(7,15,30,.86) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 40px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brand-card--warm {
  background: linear-gradient(150deg, rgba(30,21,13,.92) 0%, rgba(9,15,29,.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.42);
}
.brand-card__logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.brand-card__logo { height: 38px; width: auto; }
.brand-card__logo--school { height: 34px; }
.brand-card__text {
  position: relative;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dim);
  text-wrap: pretty;
}

.clients {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.clients__viewport {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: clip;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.clients__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: logoMarquee 44s linear infinite;
}
.client-logo {
  flex: 0 0 auto;
  width: 230px;
  height: 124px;
  padding: 24px 40px;
  object-fit: contain;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(14,28,52,.85), rgba(7,15,30,.8));
  box-shadow: inset 0 0 0 1px rgba(110,175,255,.16);
  opacity: .85;
}
.client-logo--tight { padding: 38px 76px; }
.client-logo--hidden { display: none; }

/* --------------------------------------------------------------------------
   16. Вопросы и ответы
   -------------------------------------------------------------------------- */

.faq-block {
  order: 3;
  position: relative;
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.faq-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.faq-block__title { max-width: 560px; }
.faq-block__note {
  margin: 0 0 8px;
  max-width: 320px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  text-wrap: pretty;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  position: relative;
  border-radius: 18px;
  padding: 24px 28px;
  background: linear-gradient(160deg, rgba(14,28,52,.86) 0%, rgba(7,15,30,.82) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 14px 32px rgba(0,0,0,.35);
  cursor: pointer;
  transition: background .25s ease;
}
.faq-item__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,.24) 0%, rgba(140,190,255,.12) 30%, rgba(255,255,255,.02) 70%, rgba(120,180,255,.18) 100%);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  mask-composite: exclude;
}
.faq-item__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq-item__question {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.faq-item__toggle {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-light);
  background: rgba(255,255,255,.05);
  transform: rotate(0deg);
  transition: transform .3s ease;
  font-size: 18px;
  line-height: 1;
}
.faq-item.is-open .faq-item__toggle { transform: rotate(45deg); }
.faq-item__answer {
  position: relative;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dim);
  text-wrap: pretty;
}
.faq-item:not(.is-open) .faq-item__answer { display: none; }

/* --------------------------------------------------------------------------
   17. Подвал
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: 120px;
  padding: 44px 0 56px;
  font-family: var(--font-body);
  border-top: 1px solid rgba(120,160,215,.16);
}
.site-footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--side-pad);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.site-footer__copy {
  font-size: 14px;
  color: var(--color-label);
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.site-footer__link {
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid rgba(120,160,215,.28);
}
.site-footer__link:hover {
  color: var(--color-blue-light);
  border-bottom: 1px solid rgba(77,163,255,.55);
}

/* --------------------------------------------------------------------------
   18. Интерактив карточек (подсветка от курсора — навешивается из JS)
   -------------------------------------------------------------------------- */

.is-interactive {
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
}
.card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 0;
}
.is-interactive img { transition: opacity .07s linear; }

/* Карточки-«веер» анимируются через keyframes — им нужен только переход яркости */
.fan-card.is-interactive {
  transition: filter .3s ease;
}

/* --------------------------------------------------------------------------
   19. Появление при скролле

   Класс .reveal вешает JS — без него страница остаётся полностью видимой,
   поэтому при отключённом JS или упавшем IntersectionObserver ничего
   не пропадает. Анимируются только opacity и transform: их браузер
   композитит на GPU, layout не пересчитывается (важно — иначе на каждом
   кадре дёргался бы placeGridBand через ResizeObserver).
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s cubic-bezier(.22,.7,.3,1), transform .65s cubic-bezier(.22,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Элементы, которым сдвигать transform нельзя (свои keyframes или абсолютное
   позиционирование), появляются только прозрачностью */
.reveal--fade {
  transform: none;
}

/* Плавная смена формы на экран «Спасибо» */
.reg-fade {
  transition: opacity .3s ease, transform .3s ease;
}
.reg-fade.is-fading {
  opacity: 0;
  transform: translateY(-8px);
}
.reg-appear {
  animation: revealUp .5s cubic-bezier(.22,.7,.3,1);
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Пользователь просил меньше движения — отдаём статику */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js-anim .step__line { transform: scaleY(1); transition: none; }
  .js-anim .step__arrow { opacity: 1; transition: none; }
  .js-anim .step.is-visible .step__num { animation: none; }
  .btn::after,
  .btn--hero::after,
  .btn:hover::after { animation: none; }
  .reg-appear { animation: none; }
}

/* --------------------------------------------------------------------------
   20. Планшет: 768–1119px
   -------------------------------------------------------------------------- */

@media (max-width: 1119px) {
  :root {
    --side-pad: 0 28px;
    --header-pad: 22px 32px;
    --section-pad: 80px 0 96px;
  }

  .hero__photo {
    background-size: 70% auto;
    background-position: right top;
  }
  .hero__content {
    padding: 40px 36px;
    max-width: 80%;
    min-height: 540px;
  }

  .bento { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bento-card { grid-column: span 1; }
  .bento-card--lead { grid-column: span 2; }

  .roles { grid-template-columns: repeat(3, minmax(0,1fr)); }

  .how-layout {
    grid-template-columns: minmax(0,1fr);
    gap: 44px;
  }
  .prizes { position: static; }

  .pack { padding: 40px 36px; }
  .pack__grid {
    grid-template-columns: minmax(0,1fr);
    gap: 48px;
  }

  .registration { padding: 42px 36px 38px; }
  .reg-form__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

  /* Поля идут стопкой — абсолютная подпись налезает на лейбл следующего поля.
     Здесь она в потоке: сдвиг макета при ошибке не мешает, зато читается. */
  .field__warning {
    position: static;
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   21. Мобильный: до 767px
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  :root {
    --side-pad: 0 18px;
    --header-pad: 18px 18px;
    --section-pad: 64px 0 72px;
  }

  .hero__photo { background-size: 80% auto; }
  .hero__content {
    padding: 28px 22px 34px;
    max-width: 100%;
    min-height: auto;
  }
  .hero__actions { grid-template-columns: minmax(0,1fr); }

  .bento { grid-template-columns: minmax(0,1fr); }
  .bento-card,
  .bento-card--lead { grid-column: auto; }

  .roles { grid-template-columns: repeat(2, minmax(0,1fr)); }

  .how-layout { gap: 36px; }
  .step {
    grid-template-columns: 56px minmax(0,1fr);
    gap: 18px;
  }

  .pack { padding: 28px 22px 34px; }
  .pack__grid { gap: 40px; }
  .fan { height: 300px; }
  .fan-card { width: calc(100% - 48px); }

  .registration { padding: 30px 22px 30px; }
  .reg-form__grid { grid-template-columns: minmax(0,1fr); }
  .reg-auth-gate { align-items: flex-start; padding: 20px; gap: 16px; }
  .reg-auth-gate__icon { width: 50px; height: 50px; flex-basis: 50px; }
  .reg-auth-gate__actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .btn--auth, .reg-auth-gate__register { width: 100%; }

  .brands { grid-template-columns: minmax(0,1fr); }

  /* Единый внутренний отступ карточек: на десктопе он у всех свой
     (28/32/28) — на узком экране разнобой читается как съехавшая сетка.
     Приводим к 22px, как у .pack, .registration, .role-card. */
  .bento-card,
  .brand-card,
  .faq-item {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* --------------------------------------------------------------------------
   22. Узкий мобильный: до 560px
   -------------------------------------------------------------------------- */

@media (max-width: 560px) {
  /* Плитки фактов: при 30px «12:00–21:00» перестаёт влезать в колонку
     и ломается на две строки, растягивая карточку. Ужимаем типографику,
     grid-auto-rows выравнивает ряды, когда подпись уходит в две строки. */
  .facts { grid-auto-rows: 1fr; }
  .fact { padding: 14px 14px 13px; }
  .fact__row { gap: 12px; }
  .fact__icon svg { width: 24px; height: 24px; }
  .fact__value { font-size: 24px; }
  .fact__sub {
    font-size: 10px;
    letter-spacing: .1em;
  }
}

/* --------------------------------------------------------------------------
   23. Совсем узкий мобильный: до 479px
   -------------------------------------------------------------------------- */

@media (max-width: 479px) {
  .hero__photo { background-size: 170% auto; }

  /* Две колонки уже не держат «12:00–21:00» даже на 24px */
  .facts {
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
  }

  .roles { grid-template-columns: minmax(0,1fr); }

  /* Веер карточек наверх, текст с кнопкой под него */
  .pack__grid .fan { order: 1; }
  .pack__grid .pack__content { order: 2; }
}

/* --------------------------------------------------------------------------
   24. Плашка согласия на cookie
   Идёт после медиазапросов: блок самостоятельный, со своим брейкпоинтом
   -------------------------------------------------------------------------- */

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
}
.cookie-bar[hidden] { display: none; }

.cookie-bar__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-radius: var(--card-radius);
  border: 1px solid rgba(120,160,215,.22);
  background: rgba(9,16,30,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.9);
}
.cookie-bar__icon { flex: 0 0 34px; }
.cookie-bar__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.cookie-bar__title {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
}
.cookie-bar__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-blue);
  cursor: pointer;
}
.cookie-bar__btn:hover { background: #1a7bf0; }

@media (max-width: 767px) {
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; }
  .cookie-bar__inner {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
  }
  .cookie-bar__icon { display: none; }
  .cookie-bar__btn { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Состояния мероприятия: тест открыт / тест завершен
   -------------------------------------------------------------------------- */
.reg-event-action {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 820px;
  padding: 24px 26px;
  border: 1px solid rgba(110,175,255,.24);
  border-radius: 16px;
  background: rgba(8,20,39,.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 60px rgba(0,0,0,.12);
}
.reg-event-action__icon {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #FFB16F;
  background: rgba(255,106,19,.1);
  border: 1px solid rgba(255,138,50,.34);
  box-shadow: 0 0 30px rgba(255,106,19,.12);
}
.reg-event-action--finished .reg-event-action__icon {
  color: #9CCAFF;
  background: rgba(45,132,230,.11);
  border-color: rgba(110,175,255,.28);
  box-shadow: 0 0 28px rgba(35,112,205,.12);
}
.reg-event-action__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.reg-event-action__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--color-white);
}
.reg-event-action__text {
  margin: 0;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
}
.reg-event-action__button {
  width: auto;
  min-width: 230px;
  margin-top: 6px;
  text-decoration: none;
}
.reg-debug-state {
  margin-top: 18px;
  width: fit-content;
  padding: 6px 9px;
  border: 1px dashed rgba(255,180,90,.45);
  border-radius: 7px;
  font: 600 10px/1.2 var(--font-body);
  letter-spacing: .08em;
  color: rgba(255,193,120,.74);
  background: rgba(255,120,20,.06);
}

@media (max-width: 680px) {
  .reg-event-action {
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }
  .reg-event-action__icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
  .reg-event-action__button {
    width: 100%;
    min-width: 0;
  }
}

/* ========================================================================== 
   Страница /test/ — Этап 3: серверный шлюз доступа
   ========================================================================== */
.test-page {
  min-height: 100vh;
}
.test-layout {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding-bottom: 72px;
}
.test-site-header {
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.test-site-header > a {
  display: inline-flex;
}
.test-gateway {
  width: min(980px, calc(100% - 40px));
  margin: 76px auto 0;
}
.test-gateway__eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-label);
}
.test-gateway__title {
  margin: 0 0 34px;
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 128px);
  line-height: .82;
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--color-white);
}
.test-gateway__card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 28px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid rgba(135,166,220,.2);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(19,36,69,.76), rgba(7,14,28,.88)),
    rgba(7,14,28,.88);
  box-shadow: 0 34px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}
.test-gateway__card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 0%, rgba(255,106,19,.12), transparent 38%);
}
.test-gateway__card > * {
  position: relative;
  z-index: 1;
}
.test-gateway__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255,154,77,.32);
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: #ff9a4d;
  background: rgba(255,106,19,.08);
}
.test-gateway__person {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(181,205,245,.75);
}
.test-gateway__heading {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  line-height: .98;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-white);
}
.test-gateway__text,
.test-gateway__status {
  max-width: 650px;
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
}
.test-gateway__status--error {
  color: #ff8b83;
}
.test-gateway__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.test-gateway__secondary,
.test-gateway__back {
  color: #a9c8ff;
  text-decoration: none;
  font-weight: 650;
}
.test-gateway__secondary:hover,
.test-gateway__back:hover {
  color: var(--color-white);
}
.test-gateway__back {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
}
.test-gateway .btn[disabled] {
  opacity: .52;
  cursor: not-allowed;
  pointer-events: none;
}
.test-result-mini {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 4px 0 24px;
}
.test-result-mini > div {
  min-width: 150px;
  padding: 16px 18px;
  border: 1px solid rgba(137,173,234,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.test-result-mini span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-label);
}
.test-result-mini strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  color: var(--color-white);
}
@media (max-width: 700px) {
  .test-gateway {
    width: min(100% - 28px, 980px);
    margin-top: 48px;
  }
  .test-gateway__card {
    grid-template-columns: 1fr;
    gap: 20px;
    border-radius: 20px;
  }
  .test-gateway__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 28px;
  }
  .test-gateway__text,
  .test-gateway__status {
    font-size: 15px;
  }
  .test-gateway__actions .btn,
  .test-gateway__actions .test-gateway__secondary,
  .test-gateway .btn--submit {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ===== Этап 4: движок тестирования ===== */
.test-gateway--engine {
  width: min(1180px, calc(100% - 48px));
}
.test-engine {
  display: grid;
  gap: 22px;
}
.test-engine__toolbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(137,173,234,.2);
  border-radius: 18px;
  background: rgba(7,14,28,.92);
  box-shadow: 0 20px 55px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
}
.test-engine__counter {
  display: block;
  color: var(--color-white);
  font-size: 18px;
}
.test-engine__timer-wrap {
  text-align: center;
}
.test-engine__timer-wrap span {
  display: block;
  margin-bottom: 3px;
  color: var(--color-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.test-engine__timer-wrap strong {
  display: block;
  min-width: 150px;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  font-weight: 400;
  color: #ff9a4d;
  letter-spacing: .04em;
}
.test-engine__save {
  justify-self: end;
  color: #9fb8df;
  font-size: 13px;
  text-align: right;
}
.test-engine__save--error {
  color: #ff8b83;
}
.test-engine__progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.test-engine__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f8cff, #ff7a21);
  transition: width .2s ease;
}
.test-engine__questions {
  display: grid;
  gap: 18px;
}
.test-question {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(135,166,220,.18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(19,36,69,.72), rgba(7,14,28,.9));
  box-shadow: 0 24px 65px rgba(0,0,0,.22);
}
.test-question__meta {
  margin-bottom: 12px;
  color: #ff9a4d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.test-question__title {
  max-width: 900px;
  margin: 0 0 24px;
  color: var(--color-white);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.35;
  font-weight: 750;
}
.test-question__answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.test-answer {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 64px;
  padding: 16px 18px;
  border: 1px solid rgba(137,173,234,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.test-answer:hover {
  border-color: rgba(106,158,255,.42);
  background: rgba(79,140,255,.07);
}
.test-answer:has(input:checked) {
  border-color: rgba(255,139,61,.6);
  background: rgba(255,106,19,.1);
}
.test-answer input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.test-answer__mark {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid rgba(181,205,245,.48);
  border-radius: 6px;
  background: rgba(4,10,20,.48);
}
.test-answer input:checked + .test-answer__mark {
  border-color: #ff8b3d;
  background: #ff7a21;
}
.test-answer input:checked + .test-answer__mark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.test-answer__text {
  color: #e4ecfa;
  font-size: 15px;
  line-height: 1.5;
}
.test-question__save {
  min-height: 18px;
  margin-top: 10px;
  color: #ff8b83;
  font-size: 12px;
}
.test-engine__finish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255,139,61,.24);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(255,106,19,.1), rgba(12,25,47,.82));
}
.test-engine__finish h2 {
  margin: 0 0 6px;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  text-transform: uppercase;
}
.test-engine__finish p {
  margin: 0;
  color: var(--color-text);
  line-height: 1.55;
}
@media (max-width: 820px) {
  .test-gateway--engine { width: min(100% - 28px, 1180px); }
  .test-engine__toolbar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
  .test-engine__save {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
  .test-question__answers { grid-template-columns: 1fr; }
  .test-engine__finish { align-items: stretch; flex-direction: column; }
}
@media (max-width: 520px) {
  .test-engine__toolbar { grid-template-columns: 1fr; }
  .test-engine__timer-wrap { text-align: left; }
  .test-engine__timer-wrap strong { min-width: 0; }
}

/* ===== Этап 5: результат и рейтинг ===== */
.test-result-card__kicker {
  margin-bottom: 8px;
  color: #ff9a4d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.test-result-mini--full {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 18px;
}
.test-result-mini--full > div { min-width: 0; }
.test-result-mini__time { font-size: 28px !important; letter-spacing: .04em; }
.test-result-card__note {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.55;
}
.test-result-card__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.test-result-card__certificate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(137,173,234,.26);
  border-radius: 12px;
  color: #dce7f8;
  background: rgba(255,255,255,.035);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.test-result-card__certificate:hover {
  border-color: rgba(255,154,77,.52);
  background: rgba(255,106,19,.08);
  color: #fff;
}

.rating-shell {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 48px));
  margin: 72px auto 90px;
}
.rating-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 28px;
}
.rating-shell > .test-gateway__eyebrow {
  margin-bottom: 24px;
}
.rating-head__copy {
  max-width: 760px;
  margin-top: 12px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.65;
}
.rating-stat {
  min-width: 180px;
  padding: 18px 20px;
  border: 1px solid rgba(137,173,234,.18);
  border-radius: 18px;
  background: rgba(15,29,55,.72);
  text-align: right;
}
.rating-stat span,
.rating-stat small {
  display: block;
  color: var(--color-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rating-stat strong {
  display: block;
  margin: 3px 0;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  font-weight: 400;
}
.rating-search {
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid rgba(137,173,234,.16);
  border-radius: 18px;
  background: rgba(9,20,39,.74);
}
.rating-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-label);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rating-search__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rating-search input {
  flex: 1 1 420px;
  min-width: 0;
  height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(137,173,234,.22);
  border-radius: 12px;
  outline: none;
  background: rgba(255,255,255,.045);
  color: var(--color-white);
  font: inherit;
}
.rating-search input:focus { border-color: rgba(79,140,255,.68); }
.rating-search input::placeholder { color: #7186a4; }
.rating-search__clear {
  color: #a9bcd6;
  font-size: 13px;
}
.rating-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(137,173,234,.18);
  border-radius: 20px;
  background: rgba(8,18,35,.82);
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
}
.rating-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  color: #dce7f8;
}
.rating-table th {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(137,173,234,.2);
  background: rgba(35,63,107,.28);
  color: #8fa9cc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.rating-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(137,173,234,.11);
  font-size: 14px;
  line-height: 1.45;
}
.rating-table tbody tr:last-child td { border-bottom: 0; }
.rating-table tbody tr:hover { background: rgba(79,140,255,.045); }
.rating-table__row--current {
  background: linear-gradient(90deg, rgba(255,106,19,.12), rgba(79,140,255,.07));
  box-shadow: inset 3px 0 #ff7a21;
}
.rating-place {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
}
.rating-you {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255,106,19,.14);
  color: #ff9a4d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.rating-table__empty {
  padding: 46px 18px !important;
  color: var(--color-text-muted);
  text-align: center;
}
.rating-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  color: var(--color-text-muted);
  font-size: 13px;
}
.rating-pagination a {
  padding: 9px 13px;
  border: 1px solid rgba(137,173,234,.18);
  border-radius: 10px;
  color: #dce7f8;
  background: rgba(255,255,255,.03);
}
.rating-footer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
@media (max-width: 800px) {
  .test-result-mini--full { grid-template-columns: 1fr; }
  .rating-shell { width: min(100% - 28px, 1180px); margin-top: 50px; }
  .rating-head { grid-template-columns: 1fr; align-items: start; }
  .rating-stat { width: 100%; text-align: left; }
  .rating-search__row { flex-wrap: wrap; }
  .rating-search input { flex-basis: 100%; }
  .rating-footer-actions { align-items: stretch; flex-direction: column; }
  .rating-footer-actions .btn,
  .rating-footer-actions .test-gateway__secondary { width: 100%; justify-content: center; text-align: center; }
}

/* ===== Stage 06: participant certificate ===== */
.certificate-shell {
  width: min(1100px, calc(100% - 40px));
  margin: 76px auto 0;
}
.certificate-title { font-size: clamp(52px, 7.5vw, 104px); }
.certificate-result-summary {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(120px, .7fr));
  gap: 12px;
  margin: 0 0 20px;
}
.certificate-result-summary > div {
  padding: 16px 18px;
  border: 1px solid rgba(135,166,220,.17);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(19,36,69,.72), rgba(7,14,28,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.certificate-result-summary span {
  display: block;
  margin-bottom: 5px;
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.certificate-result-summary strong { color: var(--color-white); font-size: 18px; }
.certificate-result-summary__person strong { font-size: 16px; }
.certificate-panel {
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid rgba(135,166,220,.2);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(19,36,69,.76), rgba(7,14,28,.88));
  box-shadow: 0 34px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.05);
}
.certificate-preview {
  position: relative;
  width: min(100%, 1000px);
  margin: 0 auto;
  aspect-ratio: 2000 / 1414;
  overflow: hidden;
  border-radius: 12px;
  background: #e9eef5;
  box-shadow: 0 14px 42px rgba(0,0,0,.28);
}
.certificate-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.certificate-preview__name {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 47.8%;
  text-align: center;
  color: #111;
  font-size: clamp(14px, 2.05vw, 30px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .01em;
}
.certificate-panel__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.certificate-panel__status {
  flex-basis: 100%;
  margin: 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
}
.certificate-export-host {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 842px;
  height: 595px;
  overflow: hidden;
  pointer-events: none;
}
.certificate-export {
  position: relative;
  width: 842px;
  height: 595px;
  overflow: hidden;
  background: #fff;
}
.certificate-export > img { position: absolute; inset: 0; width: 842px; height: 595px; }
.certificate-export__name {
  position: absolute;
  left: 90px;
  right: 90px;
  top: 285px;
  text-align: center;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
}
.certificate-exporting .certificate-export-host { z-index: 99999; }
@media (max-width: 820px) {
  .certificate-shell { width: min(100% - 28px, 1100px); margin-top: 50px; }
  .certificate-result-summary { grid-template-columns: 1fr 1fr; }
  .certificate-result-summary__person { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .certificate-result-summary { grid-template-columns: 1fr; }
  .certificate-result-summary__person { grid-column: auto; }
  .certificate-panel { border-radius: 16px; }
  .certificate-panel__actions { align-items: stretch; }
  .certificate-panel__actions .btn,
  .certificate-panel__actions .test-gateway__secondary { width: 100%; justify-content: center; text-align: center; }
}
