/* ===== Баннеры: слайдер с персонажами + карточки бонусов ===== */
.promo {
  --ease-out: cubic-bezier(0.230, 1, 0.320, 1);
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

/* ---------- Слайдер ---------- */
.hero {
  position: relative;
  height: clamp(360px, 104vw, 440px);
  overflow: hidden;
  border-radius: 22px;
  background: #121214;
  box-shadow: inset 0 0 0 1px #ffffff12;
  isolation: isolate;
  touch-action: pan-y;
}
@media (min-width: 761px) {
  .hero { height: 320px; border-radius: 24px; }
}

.hero__slide {
  --h: #2f8cff;
  --dark: color-mix(in srgb, var(--h) 16%, #0b0b0e);
  position: absolute;
  inset: 0;
  visibility: hidden;
  background: var(--dark);
}
.hero__slide.is-prev { visibility: visible; z-index: 1; }
.hero__slide.is-active {
  visibility: visible;
  z-index: 2;
  animation: hero-wipe 0.750s var(--ease-out) both;
}
.hero__slide.is-active.is-back { animation-name: hero-wipe-back; }
@keyframes hero-wipe {
  0% { clip-path: polygon(0 0, 0 0, -25% 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 125% 0, 100% 100%, 0 100%); }
}
@keyframes hero-wipe-back {
  0% { clip-path: polygon(125% 0, 100% 0, 100% 100%, 100% 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, -25% 100%); }
}

/* арт */
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos-m, 72% 20%);
  pointer-events: none;
  user-select: none;
}
.hero__slide.is-active .hero__img { animation: hero-zoom 7s ease-out both; }
@keyframes hero-zoom {
  0% { transform: scale(1.100); }
  100% { transform: scale(1); }
}
/* затемнение под текст: снизу на мобильном, слева на десктопе */
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--dark) 82%, transparent) 56%, var(--dark) 78%);
  pointer-events: none;
}
@media (min-width: 761px) {
  .hero__img {
    left: auto;
    width: min(68%, 780px);
    object-position: var(--pos-d, 60% 22%);
    -webkit-mask: linear-gradient(90deg, transparent, #000 42%);
    mask: linear-gradient(90deg, transparent, #000 42%);
  }
  .hero__slide::after {
    background:
      linear-gradient(90deg, var(--dark) 26%, transparent 62%),
      linear-gradient(0deg, color-mix(in srgb, var(--dark) 70%, transparent), transparent 30%);
  }
}

/* текст */
.hero__body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 66px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__tag {
  font: 800 11px/1 var(--font-title);
  letter-spacing: 0.080em;
  text-transform: uppercase;
  color: #ffffff8c;
}
.hero__title {
  margin: 8px 0 0;
  font: 900 26px/1.120 var(--font-title);
  letter-spacing: -0.010em;
  text-wrap: balance;
  text-shadow: 0 2px 12px #00000080;
}
.hero__title em {
  font-style: normal;
  color: color-mix(in srgb, var(--h) 62%, #fff);
  text-shadow: 0 0 22px color-mix(in srgb, var(--h) 70%, transparent);
}
.hero__sub {
  margin: 8px 0 0;
  font: 500 13px/1.400 var(--font-text);
  color: #d6d6dc;
  max-width: 44ch;
}
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 14px;
  padding: 0 22px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--h) 72%, #fff), var(--h) 55%, color-mix(in srgb, var(--h) 82%, #000));
  box-shadow: inset 0 1px 0 #ffffff70, 0 8px 24px color-mix(in srgb, var(--h) 45%, transparent);
  font: 800 15px/1 var(--font-title);
  color: #fff;
  text-shadow: 0 1px 0 #00000040;
  transition: transform 0.150s, filter 0.150s;
}
.cta svg { width: 18px; height: 18px; }
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 26%;
  background: linear-gradient(100deg, transparent, #ffffff66, transparent);
  transform: skewX(-20deg);
  animation: login-shine 4.200s ease-in-out infinite;
}
.cta:hover { filter: brightness(1.100); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 761px) {
  .hero__body {
    top: 0;
    bottom: 0;
    left: 40px;
    right: auto;
    width: 46%;
    justify-content: center;
    padding-bottom: 26px;
  }
  .hero__tag { font-size: 12px; }
  .hero__title { margin-top: 12px; font-size: 40px; }
  .hero__sub { margin-top: 12px; font-size: 14px; }
  .cta { width: auto; min-width: 190px; margin-top: 22px; }
}
.hero__slide.is-active .hero__body > * { animation: hero-rise 0.600s var(--ease-out) both; }
.hero__slide.is-active .hero__body > :nth-child(1) { animation-delay: 0.150s; }
.hero__slide.is-active .hero__body > :nth-child(2) { animation-delay: 0.220s; }
.hero__slide.is-active .hero__body > :nth-child(3) { animation-delay: 0.290s; }
.hero__slide.is-active .hero__body > :nth-child(4) { animation-delay: 0.360s; }
@keyframes hero-rise {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: none; }
}

/* ---------- Навигация: точки + стрелки ---------- */
.hero__nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  pointer-events: none;
}
.hero__dots { display: flex; align-items: center; gap: 6px; pointer-events: auto; }
.hero__dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff59;
  transition: width 0.350s var(--ease-out), background-color 0.250s;
}
.hero__dot::before { content: ""; position: absolute; inset: -8px; } /* зона нажатия */
.hero__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.hero__dot:hover { background: #ffffff99; }
.hero__dot.is-active { width: 28px; background: #ffffff4d; }
.hero__dot.is-active::after { animation: hero-progress 6.500s linear both; }
.hero:hover .hero__dot::after,
.hero:has(:focus-visible) .hero__dot::after { animation-play-state: paused; }
.hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes hero-progress { to { transform: scaleX(1); } }

.hero__arrows { position: absolute; right: 0; display: flex; gap: 8px; pointer-events: auto; }
.hero__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #0b0b0e99;
  box-shadow: inset 0 0 0 1px #ffffff26;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: background-color 0.200s, transform 0.150s;
}
.hero__arrow svg { width: 18px; height: 18px; }
.hero__arrow:hover { background: #ffffff26; }
.hero__arrow:active { transform: scale(0.940); }
.hero__arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 761px) {
  .hero__nav { left: 40px; right: 20px; bottom: 18px; justify-content: flex-start; }
}

/* ---------- Карточки бонусов ---------- */
/* «Работа в команде» сверху во всю ширину, две карточки под ней */
.promo__side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bonus--team { grid-column: 1 / -1; }
@media (min-width: 1100px) {
  .promo { grid-template-columns: minmax(0, 1fr) 340px; }
}
.bonus {
  --k: #2f8cff;
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 20px;
  background: color-mix(in srgb, var(--k) 20%, #121214);
  box-shadow: inset 0 0 0 1px #ffffff12;
  isolation: isolate;
}
.bonus--code { --k: #9a5cff; }
.bonus--team { --k: #3d9bff; }
.bonus--team { height: 150px; }
@media (min-width: 761px) and (max-width: 1099px) {
  .bonus { height: 210px; }
  .bonus--team { height: 170px; }
}
@media (min-width: 1100px) {
  .bonus, .bonus--team { height: 154px; }
}
.bonus__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 46%;
  transition: transform 0.600s var(--ease-out);
  pointer-events: none;
  user-select: none;
}
.bonus:hover .bonus__img, .bonus:focus-within .bonus__img { transform: scale(1.060); }
/* широкая карточка: арт 21:9 на всю площадь, иконки справа, заголовок слева */
.bonus--team {
  background:
    radial-gradient(70% 120% at 85% 40%, #1d4fd6 0, transparent 70%),
    #070b3a;
}
/* арт стоит целиком над кнопкой и не заходит под заголовок */
.bonus--team .bonus__img {
  inset: 0 -8px auto auto;
  width: auto;
  height: 108px;
  aspect-ratio: 21 / 9;
  object-fit: contain;
  transform-origin: 100% 30%;
}
.bonus--team::before { background: none; }
/* затемнение сверху под заголовок и снизу под кнопку */
.bonus::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #000000b3 0, transparent 44%, transparent 52%, #000000b8 100%);
  pointer-events: none;
}
/* цветная кромка */
.bonus::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.500px color-mix(in srgb, var(--k) 55%, transparent);
  opacity: 0.600;
  transition: opacity 0.250s;
  pointer-events: none;
}
.bonus:hover::after, .bonus:focus-within::after { opacity: 1; }

.bonus__head {
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.bonus__ico { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: color-mix(in srgb, var(--k) 60%, #fff); }
.bonus__title {
  margin: 0;
  font: 900 14px/1.250 var(--font-title);
  text-shadow: 0 1px 8px #000000b3;
}
.bonus__title em { font-style: normal; color: color-mix(in srgb, var(--k) 55%, #fff); }
.bonus__time {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 8px;
  background: #0000008c;
  box-shadow: inset 0 0 0 1px #ffffff1a;
  font: 800 11px/1 var(--font-title);
  font-variant-numeric: tabular-nums;
  color: #fff;
}
/* узкие карточки (телефон и колонка на десктопе): таймер у кнопки, в панели только нужное */
@media (max-width: 480px), (min-width: 1100px) {
  .bonus__time { position: absolute; left: 12px; bottom: 62px; }
  .bonus:not(.bonus--team) .bonus__bar { gap: 8px; font-size: 12.500px; }
  .bonus:not(.bonus--team) .bonus__chev, .code .bonus__tile { display: none; }
  .code { padding-left: 12px; }
}
@media (max-width: 480px), (min-width: 1100px) {
  .bonus--team .bonus__title { font-size: 13px; }
}
@media (min-width: 1100px) {
  .bonus:not(.bonus--team) .bonus__title { font-size: 13px; }
  .bonus:not(.bonus--team) .bonus__ico { display: none; }
}

/* стеклянная панель-кнопка внизу */
.bonus__bar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 10px 0 7px;
  border: 0;
  border-radius: 14px;
  background: #121216b8;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 50%, #ffffff26);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 800 13px/1 var(--font-title);
  color: #fff;
  transition: background-color 0.200s;
}
a.bonus__bar:hover { background: #26262eb8; }
a.bonus__bar:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bonus__tile {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ffffff1a;
}
.bonus__tile svg { width: 18px; height: 18px; }
.bonus__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bonus__chev { flex: 0 0 auto; width: 16px; height: 16px; rotate: -90deg; opacity: 0.800; transition: transform 0.250s var(--ease-out); }
a.bonus__bar:hover .bonus__chev { transform: translateY(3px); }

/* промокод: панель — это форма */
.code:focus-within { box-shadow: inset 0 0 0 1.500px var(--k); }
.code__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: 800 13px/1 var(--font-title);
  letter-spacing: 0.060em;
  text-transform: uppercase;
  color: #fff;
  outline: none;
}
.code__input::placeholder { color: #ffffffd9; letter-spacing: 0; text-transform: none; }
.code__input:focus::placeholder { color: #ffffff66; }
.code__btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #b98cff, var(--k) 55%, #6a3df0);
  box-shadow: inset 0 1px 0 #ffffff70;
  color: #fff;
  transition: filter 0.150s, transform 0.150s;
}
.code__btn svg { width: 16px; height: 16px; }
.code__btn:hover { filter: brightness(1.120); }
.code__btn:active { transform: translateY(1px); }
.code__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.code.is-shake { animation: code-shake 0.400s; }
@keyframes code-shake {
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.code__msg {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 60px;
  margin: 0;
  padding: 6px 9px;
  border-radius: 10px;
  background: #000000b8;
  font: 600 11px/1.300 var(--font-text);
  color: #ffcf8a;
}
.code__msg:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__slide.is-active, .hero__slide.is-active .hero__body > *, .hero__slide.is-active .hero__img,
  .cta::after, .hero__dot.is-active::after { animation: none; }
  .hero__dot.is-active::after { transform: none; }
  .bonus__img { transition: none; }
}

/* ===== Карточки «Бесплатный кейс» и «Промокод»: новый вид (голубой, новогодний) ===== */
.bonus--free { --k: #2f8cff; --k2: #8cc8ff; }
.bonus--code { --k: #4f6bff; --k2: #9fb2ff; }
.bonus--free, .bonus--code { background: radial-gradient(90% 80% at 75% 70%, color-mix(in srgb, var(--k) 45%, #0a1020), #070b16); border-radius: 22px; }
.bonus--free .bonus__img, .bonus--code .bonus__img { object-position: 70% 60%; }
/* затемнение: под заголовок слева сверху и под кнопку снизу */
.bonus--free::before, .bonus--code::before {
  background: linear-gradient(155deg, #050811e6 0%, #05081199 26%, transparent 52%), linear-gradient(180deg, transparent 58%, #050811cc 100%); }
/* светящаяся кромка + блик сверху */
.bonus--free::after, .bonus--code::after { opacity: 1;
  box-shadow: inset 0 0 0 1.500px color-mix(in srgb, var(--k) 55%, transparent), inset 0 1px 0 color-mix(in srgb, var(--k2) 70%, transparent), 0 0 22px color-mix(in srgb, var(--k) 25%, transparent); }
.bonus--free:hover::after, .bonus--code:focus-within::after, .bonus--code:hover::after {
  box-shadow: inset 0 0 0 1.500px var(--k), inset 0 1px 0 var(--k2), 0 0 28px color-mix(in srgb, var(--k) 45%, transparent); }

.bonus--free .bonus__head, .bonus--code .bonus__head { align-items: center; gap: 9px; padding: 12px 12px 0; }
.bonus__badge { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; rotate: -6deg;
  background: linear-gradient(145deg, var(--k2), var(--k) 55%, color-mix(in srgb, var(--k) 70%, #000)); box-shadow: inset 0 1px 0 #ffffff80, 0 4px 12px color-mix(in srgb, var(--k) 55%, transparent); }
.bonus__badge svg { width: 17px; height: 17px; fill: #fff; }
.bonus--free .bonus__title, .bonus--code .bonus__title { display: flex; flex-direction: column; gap: 2px; font: 900 14px/1.150 var(--font-title); color: #fff; text-shadow: 0 2px 10px #000000cc; }
.bonus--free .bonus__title em, .bonus--code .bonus__title em { font: 800 12px/1.150 var(--font-title); color: var(--k2); }
/* таймер — капсула с часами под заголовком */
.bonus__timer { position: absolute; left: 12px; top: 54px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 6px; border-radius: 999px;
  background: #05081199; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 50%, #ffffff1a); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 800 11px/1 var(--font-title); font-variant-numeric: tabular-nums; color: #fff; }
.bonus__timer svg { width: 13px; height: 13px; fill: var(--k2); }
.bonus__timer b { font-weight: 800; }
/* стеклянная кнопка снизу в цвет карточки */
.bonus--free .bonus__bar, .bonus--code .bonus__bar { height: 44px; border-radius: 14px; background: #070b16b8;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 55%, #ffffff1f), 0 6px 16px #00000066; }
.bonus--free a.bonus__bar:hover { background: color-mix(in srgb, var(--k) 25%, #070b16d0); }
.bonus--free .bonus__tile, .bonus--code .bonus__tile { width: 30px; height: 30px; background: color-mix(in srgb, var(--k) 30%, #ffffff12); color: var(--k2); }
.bonus--code .code__btn { background: linear-gradient(180deg, var(--k2), var(--k) 55%, color-mix(in srgb, var(--k) 70%, #000)); }
.bonus--code .code__input::placeholder { color: #ffffffe6; }
@media (max-width: 480px), (min-width: 1100px) {
  .bonus--free .bonus__title, .bonus--code .bonus__title { font-size: 13px; }
  .bonus--free .bonus__title em, .bonus--code .bonus__title em { font-size: 11.500px; }
  .bonus__badge { width: 26px; height: 26px; border-radius: 9px; }
  .bonus__badge svg { width: 15px; height: 15px; }
  .bonus__timer { top: 50px; left: 10px; }
}
@media (min-width: 1100px) {
  .bonus--free .bonus__head, .bonus--code .bonus__head { padding: 10px 10px 0; gap: 7px; }
  .bonus__timer { top: auto; bottom: 58px; }
}
/* картинка чуть ниже — сверху остаётся место под заголовок; затемнение сверху плотнее */
.bonus--free .bonus__img, .bonus--code .bonus__img { inset: auto 0 0 0; height: 90%; object-position: 66% 100%; }
.bonus--free::before, .bonus--code::before {
  background: linear-gradient(180deg, #050811 0%, #050811e0 16%, #0508118c 34%, transparent 52%), linear-gradient(180deg, transparent 60%, #050811cc 100%); }
/* узкие карточки: таймер над кнопкой, чтобы не наезжал на подпись */
@media (max-width: 480px), (min-width: 1100px) {
  .bonus__timer { top: auto; bottom: 58px; }
}
@media (max-width: 480px), (min-width: 1100px) {
  .bonus--free .bonus__badge, .bonus--code .bonus__badge { display: none; }
  .bonus--free .bonus__img, .bonus--code .bonus__img { height: 82%; }
  .bonus--free .bonus__title, .bonus--code .bonus__title { white-space: nowrap; }
}

/* ===== Правка: без тёмной полосы сверху; заголовок на стеклянной плашке ===== */
.bonus--free .bonus__img, .bonus--code .bonus__img { inset: 0; height: 100%; object-position: 64% 38%; }
.bonus--free::before, .bonus--code::before { background: linear-gradient(180deg, transparent 55%, #05081199 100%); }
.bonus--free .bonus__head, .bonus--code .bonus__head {
  position: absolute; left: 8px; top: 8px; right: auto; max-width: calc(100% - 16px); padding: 7px 11px 8px; gap: 8px;
  border-radius: 13px; background: #070b16a8; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 45%, #ffffff1a);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bonus--free .bonus__title, .bonus--code .bonus__title { text-shadow: none; letter-spacing: 0.005em; }
.bonus--free .bonus__title em, .bonus--code .bonus__title em { margin-top: 1px; }
@media (max-width: 480px), (min-width: 1100px) {
  .bonus--free .bonus__head, .bonus--code .bonus__head { left: 7px; top: 7px; padding: 6px 9px 7px; }
}
/* картинка чуть ниже, чтобы плашка не закрывала лица; верхний край плавно растворяется в фоне карточки */
.bonus--free .bonus__img, .bonus--code .bonus__img { inset: 26px 0 auto 0; height: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%); mask-image: linear-gradient(180deg, transparent 0, #000 16%); }
