/* ============ ПРЕЛОАДЕР ============ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #111221;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.65s ease;
}
#preloader.preloader-out {
  opacity: 0;
  pointer-events: none;
}

.preloader-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.preloader-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: pb-move 12s ease-in-out infinite;
}
.pb-1 {
  width: 560px;
  height: 560px;
  background: rgba(41, 45, 107, 0.3);
  top: 0%;
  left: 0%;
  animation-duration: 13s;
}
.pb-2 {
  width: 420px;
  height: 420px;
  background: rgba(56, 52, 156, 0.2);
  bottom: 0%;
  right: 0%;
  animation-duration: 10s;
  animation-delay: -5s;
}
.pb-3 {
  width: 280px;
  height: 280px;
  background: rgba(30, 27, 133, 0.18);
  top: 40%;
  left: 35%;
  animation-duration: 16s;
  animation-delay: -9s;
}
@keyframes pb-move {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -25px) scale(1.08);
  }
  66% {
    transform: translate(-22px, 18px) scale(0.93);
  }
}

.preloader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.preloader-logo-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-logo-frame::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(56, 52, 156, 0.28) 0%,
    rgba(41, 45, 107, 0.14) 50%,
    transparent 75%
  );
  animation: pl-glow-pulse 2.2s ease-in-out infinite;
  filter: blur(24px);
}
@keyframes pl-glow-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.preloader-logo-svg {
  position: relative;
  width: 200px;
  height: auto;
  z-index: 1;
  animation: pl-logo-enter 0.4s ease-out forwards;
}
@keyframes pl-logo-enter {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.preloader-bar-wrap {
  width: 200px;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
  animation: pl-bar-wrap-in 0.3s ease-out 0.15s both;
}
@keyframes pl-bar-wrap-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.preloader-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    #1e1b85,
    #38349c,
    #6360c4,
    #38349c,
    #1e1b85
  );
  background-size: 300% 100%;
  box-shadow:
    0 0 10px rgba(56, 52, 156, 0.6),
    0 0 20px rgba(56, 52, 156, 0.3);
  animation:
    pl-bar-progress 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards,
    pl-bar-shimmer 1.5s linear 0.1s infinite;
}
@keyframes pl-bar-progress {
  0% {
    width: 0%;
  }
  60% {
    width: 75%;
  }
  85% {
    width: 90%;
  }
  100% {
    width: 100%;
  }
}
@keyframes pl-bar-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* ========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  background: radial-gradient(circle at 50% 50%, #292d6b 0%, #111221 100%);

  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.hero-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #292d6b 0%, #111221 100%);
  z-index: 1;
}

/* Паттерн на заднем фоне из logo.svg */
.bg-pattern {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url("img/logo.svg");
  background-size: 800px;
  opacity: 0.008;
  transform: rotate(-25deg);
  z-index: 1;
  pointer-events: none;
}

/* Декоративные квадраты (SVG) */
.decor-squares {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.decor-left {
  position: absolute;
  left: -5%;
  top: 0;
  height: 100%;
  width: auto;
}

.decor-right {
  position: absolute;
  right: -5%;
  top: 0;
  height: 100%;
  width: auto;
}

/* Шапка сайта */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
}

.logo {
  height: 60px;
}

.online-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.tech-support {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Подчёркивание слева направо для белых пунктов шапки */
.online-stats,
.tech-support {
  position: relative;
}

.online-stats::after,
.tech-support::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.online-stats:hover::after,
.tech-support:hover::after {
  width: 100%;
}

.header-center {
  display: flex;
  gap: 25px;
  font-size: 28px;
}

.header-center a {
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-center a:hover {
  transform: scale(1.25);
}

/* SVG иконки */
.icon-sm {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.icon-social {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

/* Цветные иконки соцсетей в хедере */
.header-center img[src*="youtube"] {
  filter: brightness(0) saturate(100%) invert(12%) sepia(97%) saturate(7471%)
    hue-rotate(2deg) brightness(97%) contrast(114%);
}
.header-center img[src*="discord"] {
  filter: brightness(0) saturate(100%) invert(36%) sepia(60%) saturate(2197%)
    hue-rotate(224deg) brightness(96%) contrast(96%);
}
.header-center img[src*="telegram"] {
  filter: brightness(0) saturate(100%) invert(56%) sepia(52%) saturate(1057%)
    hue-rotate(166deg) brightness(97%) contrast(89%);
}

.icon-promo {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  flex: 1;
}

.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #1e1b85;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.btn-donate-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-donate:hover,
.btn-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(30, 27, 133, 0.6), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-donate:active,
.btn-launcher:active {
  transform: translateY(0);
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn-launcher {
  background: #1e1b85;
  color: #ffffff;
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Центральный контент */
.main-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  text-align: center;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition:
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
    opacity 0.8s ease 0.15s;
}

.chars-visible .main-content {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.title-rpm {
  font-size: 160px;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -3px;
  margin-bottom: 5px;
}

.title-rp {
  font-size: 65px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.btn-play {
  background: #38349c;
  color: #ffffff;
  border: none;
  padding: 18px 60px;
  border-radius: 10px;
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(56, 52, 156, 0.6);
  margin-bottom: 25px;
  transition: transform 0.2s;
}

.btn-play:hover {
  transform: scale(1.02);
}

.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.free-badge::before,
.free-badge::after {
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.description {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #e0e0e0;
}

/* Персонажи */
.character {
  position: absolute;
  bottom: -5%;
  pointer-events: none;
  transition: all 0.3s ease;
}

.char-1 {
  left: 5%;
  height: clamp(70vh, 18vw, 100vh);
  z-index: 5;
  transform: translateX(-150%);
  opacity: 0;
  transition:
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease;
}

.char-3 {
  right: clamp(8%, 14vw, 18%);
  bottom: 5%;
  height: clamp(50vh, 12vw, 75vh);
  z-index: 3;
  /* Легкое затемнение заднего персонажа как на оригинале */
  filter: brightness(0.6) blur(1px);
  transform: translateX(150%);
  opacity: 0;
  transition:
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
    opacity 0.5s ease 0.1s;
}

.char-2 {
  right: 5%;
  height: clamp(65vh, 16vw, 95vh);
  z-index: 6;
  transform: translateX(150%);
  opacity: 0;
  transition:
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s,
    opacity 0.5s ease 0.05s;
}

/* Персонажи видимы после прелоадера */
.chars-visible .char-1,
.chars-visible .char-2,
.chars-visible .char-3 {
  transform: translateX(0);
  opacity: 1;
}

/* Увеличенные персонажи на больших экранах */
@media (min-width: 1401px) {
  .char-1 {
    height: clamp(80vh, 22vw, 110vh);
  }
  .char-2 {
    height: clamp(75vh, 20vw, 105vh);
  }
  .char-3 {
    height: clamp(60vh, 15vw, 85vh);
  }
}

/* Адаптация персонажей для разных ширин экрана */
@media (max-width: 1400px) {
  .char-1 {
    height: clamp(65vh, 16vw, 90vh);
  }
  .char-2 {
    height: clamp(60vh, 14vw, 85vh);
  }
  .char-3 {
    height: clamp(45vh, 10vw, 65vh);
    right: clamp(3%, 10vw, 12%);
  }
}

@media (max-width: 1200px) {
  .char-1 {
    height: clamp(60vh, 14vw, 80vh);
    left: 2%;
  }
  .char-2 {
    height: clamp(55vh, 12vw, 75vh);
    right: 2%;
  }
  .char-3 {
    height: clamp(40vh, 9vw, 55vh);
    right: 8%;
  }
}

@media (max-width: 992px) {
  .char-1 {
    height: clamp(50vh, 12vw, 70vh);
    left: 0%;
  }
  .char-2 {
    height: clamp(45vh, 11vw, 65vh);
    right: 0%;
  }
  .char-3 {
    height: clamp(35vh, 8vw, 50vh);
    right: 5%;
    opacity: 0.7;
  }
}

@media (max-width: 768px) {
  .char-1 {
    height: clamp(45vh, 18vw, 60vh);
    left: -2%;
  }
  .char-2 {
    height: clamp(40vh, 16vw, 55vh);
    right: -1%;
  }
  .char-3 {
    height: clamp(30vh, 12vw, 40vh);
    right: 2%;
    opacity: 0.5;
  }
}

@media (max-width: 576px) {
  .char-1 {
    height: clamp(40vh, 22vw, 50vh);
    left: -5%;
  }
  .char-2 {
    height: clamp(35vh, 18vw, 45vh);
    right: -3%;
  }
  .char-3 {
    display: none; /* Скрываем заднего персонажа на очень маленьких экранах */
  }
}

/* Стрелка прокрутки вниз */
.scroll-indicator {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 56px;
  height: 56px;
  fill: rgba(255, 255, 255, 0.6);
  transition: fill 0.3s ease;
}

.scroll-indicator:hover svg {
  fill: rgba(255, 255, 255, 0.9);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-12px);
  }
  60% {
    transform: translateX(-50%) translateY(-6px);
  }
}

/* Стрелка прокрутки в секции профессий */
.professions-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  cursor: pointer;
  animation: bounce 2s infinite;
}

/* Промокод внизу */
.promo-footer {
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 20;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
}

.promo-code {
  color: #ffb347 !important;
  text-shadow:
    0 0 8px rgba(255, 179, 71, 0.8),
    0 0 20px rgba(255, 140, 0, 0.6),
    0 0 40px rgba(255, 140, 0, 0.4) !important;
  animation: promo-glow 2s ease-in-out infinite;
  font-weight: 800;
}

@keyframes promo-glow {
  0%,
  100% {
    color: #ffb347 !important;
    text-shadow:
      0 0 8px rgba(255, 179, 71, 0.8),
      0 0 20px rgba(255, 140, 0, 0.6),
      0 0 40px rgba(255, 140, 0, 0.4) !important;
  }
  50% {
    color: #ffd700 !important;
    text-shadow:
      0 0 12px rgba(255, 200, 100, 1),
      0 0 30px rgba(255, 160, 0, 0.8),
      0 0 60px rgba(255, 140, 0, 0.6),
      0 0 80px rgba(255, 120, 0, 0.3) !important;
  }
}

/* Обёртка профессий — наезжает на hero, sticky чтобы scroll-content наезжал поверх */
.professions-wrap {
  position: relative;
  z-index: 5;
  margin-top: 100vh;
}

.professions-wrap .professions-section {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Обёртка скроллируемого контента, наезжающего поверх professions */
.scroll-content {
  position: relative;
  z-index: 10;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.pattern-wrap {
  position: relative;
}

.pattern-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 160%;
  height: 100%;
  background-image: url("img/logo.svg");
  background-size: 400px;
  background-repeat: space;
  opacity: 0.015;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to bottom, transparent 0%, white 8%, white 100%);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    white 8%,
    white 100%
  );
}

/* Секция статистики */
.stats-section {
  position: relative;
  z-index: 30;
  background: radial-gradient(ellipse at 50% 0%, #4444ae 0%, #312f70 60%);
  padding: 80px 40px 25px;
}

/* Дымчатый градиент внизу hero */
.hero-screen::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  z-index: 8;
  pointer-events: none;
  background: linear-gradient(
    to top,
    #111221 0%,
    rgba(17, 18, 33, 0.95) 8%,
    rgba(29, 29, 80, 0.7) 25%,
    rgba(41, 45, 107, 0.3) 50%,
    rgba(41, 45, 107, 0.05) 75%,
    transparent 100%
  );
}

.professions-section .decor-squares-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, white 40%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, white 40%);
}

.professions-section .decor-squares-inner .decor-left {
  position: absolute;
  left: -8%;
  top: -15%;
  height: auto;
  width: 600px;
  transform: rotate(127deg);
  opacity: 1;
  filter: brightness(1.8);
}

.professions-section .decor-squares-inner .decor-right {
  position: absolute;
  right: 0%;
  top: 0%;
  height: auto;
  width: 600px;
  opacity: 0.85;
  filter: brightness(1.8);
}

.stats-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stats-title {
  font-size: 64px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
  font-style: italic;
}

.stats-subtitle {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 660px;
  margin: 0 auto 20px;
}

.stats-title.reveal-item,
.stats-subtitle.reveal-item {
  opacity: 0;
  transform: translateY(100px) scale(0.7);
  filter: blur(20px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-subtitle.reveal-item {
  transition-delay: 0.15s;
}

.stats-title.reveal-item.revealed,
.stats-subtitle.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.stat-item {
  text-align: center;
  min-width: 200px;
}

.stat-label {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding-left: 2px;
  margin-bottom: 10px;
  font-style: italic;
}

.stat-value {
  font-size: 80px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Секция преимуществ */
.features-section {
  position: relative;
  background: linear-gradient(to bottom, #312f70 0%, #111221 30%, #323072 100%);
  padding: 80px 40px 120px;
  overflow: hidden;
}

.features-inner {
  position: relative;
  z-index: 2;
  max-width: 1720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-media {
  flex: 1.4;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 18, 33, 0.5);
}

.feature-media img,
.feature-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* ============ КАРУСЕЛЬ В FEATURES ============ */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.carousel-slide img.carousel-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Кнопка play для видео */
.carousel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 80px;
  height: 80px;
  background: rgba(56, 52, 156, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  pointer-events: none;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.15),
    0 0 40px rgba(56, 52, 156, 0.5);
  animation: play-pulse 2.5s ease-in-out infinite;
}

@keyframes play-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 6px rgba(255, 255, 255, 0.15),
      0 0 40px rgba(56, 52, 156, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(255, 255, 255, 0.1),
      0 0 60px rgba(56, 52, 156, 0.7);
  }
}

.carousel-play-btn svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  margin-left: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.carousel-slide:hover .carousel-play-btn {
  background: rgba(56, 52, 156, 0.95);
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.2),
    0 0 50px rgba(56, 52, 156, 0.8);
  animation: none;
}

/* Точки-индикаторы */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.25);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Стрелки карусели */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  background: rgba(56, 52, 156, 0.6);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  opacity: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel:hover .carousel-arrow {
  opacity: 0.85;
}

.carousel-arrow:hover {
  background: rgba(56, 52, 156, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px rgba(56, 52, 156, 0.6);
}

.carousel-arrow--prev {
  left: 12px;
}

.carousel-arrow--next {
  right: 12px;
}

/* ============ МОДАЛЬНОЕ ОКНО ============ */
.media-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.media-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.media-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.media-modal-overlay.open .media-modal-content {
  transform: scale(1);
}

.media-modal-content img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.media-modal-content iframe {
  display: block;
  width: 80vw;
  height: 45vw;
  max-width: 1200px;
  max-height: 675px;
  border: none;
}

.media-modal-content video {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  outline: none;
}

.media-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.media-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Спиннер в модалке */
.modal-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: modal-spin 0.7s linear infinite;
  z-index: 1;
}

@keyframes modal-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ============================================= */

.feature-text {
  flex: 1;
}

.feature-title {
  font-size: 56px;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-title .icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.feature-desc {
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  color: #d0d0e8;
  margin-top: 8px;
}

.feature-desc-img {
  margin-top: 12px;
  max-width: 200px;
  height: auto;
  opacity: 0.6;
  filter: brightness(2.6) blur(1px);
}

/* Разные углы вращения для каждого .feature-desc-img */
.feature-row:nth-child(1) .feature-desc-img {
  transform: rotate(-12deg);
}

.feature-row:nth-child(2) .feature-desc-img {
  transform: rotate(8deg);
}

.feature-row:nth-child(3) .feature-desc-img {
  transform: rotate(-5deg);
}

/* Секция профессий */
.professions-section {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, #4444ae 0%, #312f70 60%);
  padding: 20px 16px 80px;
}

.professions-inner {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  overflow-x: clip;
}

.professions-title {
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  margin-bottom: clamp(15px, 2vh, 30px);
}

.professions-title.reveal-item {
  opacity: 0;
  transform: translateY(100px) scale(0.7);
  filter: blur(20px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.professions-title.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.professions-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.professions-inner .stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: clamp(20px, 4vh, 60px);
}

.professions-inner .stat-item {
  text-align: center;
  min-width: 200px;
}

.professions-inner .stat-label {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding-left: 2px;
  margin-bottom: 6px;
  font-style: italic;
}

.professions-inner .stat-value {
  font-size: clamp(36px, 5vh, 56px);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.prof-card {
  position: relative;
  flex: 1;
  min-width: 0;
  height: clamp(350px, 55vh, 700px);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition:
    filter 0.5s ease,
    transform 0.3s ease;
  filter: grayscale(100%);
}

/* Плавное появление карточек профессий */
.prof-card.reveal-item {
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.prof-card.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.prof-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prof-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.prof-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prof-label-sub {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
}

.prof-card.revealed {
  transition:
    filter 0.3s ease,
    transform 0.2s ease;
  transition-delay: 0s !important;
}

.prof-card.revealed:hover {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.prof-card:hover::after {
  opacity: 1;
}

.prof-card:hover .prof-label {
  transform: translateY(0);
}

/* Центральная карточка с кнопкой */
.prof-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease;
}

.prof-play-btn svg {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 14px;
  backdrop-filter: blur(4px);
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.prof-play-btn span {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.prof-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.prof-play-btn:hover svg {
  background: rgba(56, 52, 156, 0.8);
  box-shadow: 0 0 30px rgba(56, 52, 156, 0.6);
}

/* При наведении на центральную карточку — все карточки цветные и увеличены */
.professions-grid:has(.prof-card-center:hover) .prof-card.revealed {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.professions-grid:has(.prof-card-center:hover) .prof-card::after {
  opacity: 0;
}

/* Промо-баннер ИГРАЙ / ВСТУПАЙ */
.promo-section {
  position: relative;
  padding: 60px 40px 80px;
  background: linear-gradient(to bottom, #323072 0%, #14131c 100%);
}

.promo-banner {
  position: relative;
  z-index: 2;
  max-width: 1720px;
  margin: 0 auto;
  min-height: 550px;
  background: linear-gradient(to bottom, #282769 0%, #14131c 100%);
  overflow: hidden;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.promo-fade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      #14131c 0%,
      transparent 14%,
      transparent 86%,
      #14131c 100%
    ),
    linear-gradient(
      to bottom,
      #14131c 0%,
      transparent 18%,
      transparent 82%,
      #14131c 100%
    );
}

.promo-banner .bg-explosion {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.08);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.promo-banner .bg-char-left,
.promo-banner .bg-char-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.85;
  object-fit: contain;
}

.promo-banner .bg-char-left {
  left: 0%;
}

.promo-banner .bg-char-right {
  right: 0%;
}

.promo-banner .center-char {
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  height: 105%;
  max-height: 700px;
  z-index: 4;
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.5));
}

.promo-content {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  padding: 0 40px;
  pointer-events: none;
}

.promo-left,
.promo-right {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 6;
}

.promo-title {
  font-size: clamp(40px, 6vw, 85px);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
}

.promo-btn {
  display: inline-block;
  background: #2b226e;
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 8px;
  text-transform: uppercase;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}

.promo-btn:hover {
  transform: scale(1.05);
  background: #392d8f;
}

.promo-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: clamp(40px, 4vw, 50px);
  height: clamp(40px, 4vw, 50px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: clamp(20px, 2vw, 24px);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.social-icon:hover {
  transform: translateY(-4px);
  filter: brightness(1.15);
}

.social-vk {
  background-color: #2787f5;
}
.social-yt {
  background-color: #ff0000;
}
.social-tt {
  background-color: #111111;
}
.social-ds {
  background-color: #5865f2;
}
.social-tg {
  background-color: #229ed9;
}

/* Секция FAQ */
.faq-section {
  position: relative;
  background: #111221;
  padding: 60px 40px 100px;
}

.faq-banner {
  position: relative;
  max-width: 1720px;
  margin: 0 auto;
  background: linear-gradient(to bottom, #1a1a3e 0%, #111221 100%);
  border-radius: 16px;
  overflow: hidden;
  padding: 60px 60px 70px;
}

.faq-banner .faq-bg-effects {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.faq-banner .faq-bg-effects img {
  position: absolute;
  opacity: 0.07;
}

.faq-banner .faq-bg-effects .faq-bg-1 {
  top: -20%;
  left: -5%;
  width: 550px;
  transform: rotate(-15deg);
}

.faq-banner .faq-bg-effects .faq-bg-2 {
  bottom: -20%;
  right: -5%;
  width: 550px;
  transform: rotate(20deg);
}

.faq-banner .faq-bg-effects .faq-bg-3 {
  top: 20%;
  right: 15%;
  width: 350px;
  transform: rotate(-30deg);
  opacity: 0.035;
}

.faq-inner {
  position: relative;
  z-index: 2;
}

.faq-title {
  font-size: 60px;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  margin-bottom: 50px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.faq-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.faq-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.faq-card-question {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.faq-card-answer {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #b0b0c8;
}

.faq-card-answer a {
  color: #e68a19;
  text-decoration: none;
}

.faq-card-answer a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-banner {
    padding: 40px 30px 50px;
  }
}

@media (max-width: 700px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .faq-title {
    font-size: 36px;
  }
  .faq-banner {
    padding: 30px 20px 40px;
  }
}

@media (max-width: 768px) {
  .promo-section {
    padding: 40px 20px 60px;
  }
  .promo-banner {
    min-height: 750px;
    padding: 60px 0;
  }
  .promo-content {
    flex-direction: column;
    justify-content: space-between;
    height: 650px;
  }
  .promo-banner .center-char {
    height: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
  }
  .promo-banner .bg-char-left,
  .promo-banner .bg-char-right {
    opacity: 0.2;
  }
}

@media (max-width: 480px) {
  .promo-content {
    height: 550px;
    padding: 0 20px;
  }
  .promo-banner .center-char {
    height: 40%;
  }
}

/* Анимация появления элементов при скролле */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Задержки для последовательной анимации */
.reveal-item[data-delay="1"] {
  transition-delay: 0.1s;
}
.reveal-item[data-delay="2"] {
  transition-delay: 0.15s;
}
.reveal-item[data-delay="3"] {
  transition-delay: 0.2s;
}
.reveal-item[data-delay="4"] {
  transition-delay: 0.25s;
}
.reveal-item[data-delay="5"] {
  transition-delay: 0.3s;
}
.reveal-item[data-delay="6"] {
  transition-delay: 0.35s;
}
.reveal-item[data-delay="7"] {
  transition-delay: 0.4s;
}

/* Увеличенные задержки для карточек профессий — эффект волны */
.prof-card.reveal-item[data-delay="1"] {
  transition-delay: 0.08s;
}
.prof-card.reveal-item[data-delay="2"] {
  transition-delay: 0.16s;
}
.prof-card.reveal-item[data-delay="3"] {
  transition-delay: 0.24s;
}
.prof-card.reveal-item[data-delay="4"] {
  transition-delay: 0.32s;
}
.prof-card.reveal-item[data-delay="5"] {
  transition-delay: 0.4s;
}
.prof-card.reveal-item[data-delay="6"] {
  transition-delay: 0.48s;
}
.prof-card.reveal-item[data-delay="7"] {
  transition-delay: 0.56s;
}

/* ============ ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА ============ */
.lang-select {
  position: relative;
  user-select: none;
}

.lang-select > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(30, 27, 133, 0.95);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  min-width: 120px;
}

.lang-select.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.lang-option:hover {
  background: rgba(56, 52, 156, 0.8);
}

.lang-option:first-child {
  border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
  border-radius: 0 0 8px 8px;
}

/* ============ МОДАЛКА СКАЧИВАНИЯ ЛАУНЧЕРА ============ */
.dl-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.dl-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.dl-modal {
  position: relative;
  width: 94vw;
  max-width: 960px;
  max-height: 92vh;
  background: linear-gradient(165deg, #1e1d4a 0%, #13122a 40%, #0e0d1f 100%);
  border-radius: 20px;
  border: 1px solid rgba(99, 96, 196, 0.2);
  box-shadow:
    0 0 80px rgba(56, 52, 156, 0.15),
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: scale(0.88) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-modal-overlay.open .dl-modal {
  transform: scale(1) translateY(0);
}

/* Декоративное свечение */
.dl-modal::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(56, 52, 156, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.dl-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.dl-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.dl-modal-body {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 100%;
}

/* ---- Стадии модалки ---- */
.dl-stage {
  display: none;
  padding: 40px 48px 56px;
  animation: dl-stage-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dl-stage.active {
  display: block;
}

@keyframes dl-stage-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стадия 1: Видео */
.dl-stage-header {
  text-align: center;
  margin-bottom: 28px;
}

.dl-stage-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(99, 96, 196, 0.9);
  margin-bottom: 12px;
}

.dl-stage-step-num {
  width: 22px;
  height: 22px;
  background: rgba(99, 96, 196, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #8b88d8;
}

.dl-stage-title {
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  line-height: 1.1;
  margin: 0;
}

.dl-stage-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
}

/* Видеоплеер */
.dl-video-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a18;
  border: 1px solid rgba(99, 96, 196, 0.15);
  aspect-ratio: 16 / 9;
  max-height: calc(92vh - 280px);
  max-height: calc(92dvh - 280px);
  margin-left: auto;
  margin-right: auto;
}

.dl-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Превью видео */
.dl-video-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-video-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.dl-video-play-btn {
  position: relative;
  z-index: 3;
  background: none;
  border: none;
  cursor: pointer;
  width: 68px;
  height: 68px;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 4px 20px rgba(30, 27, 133, 0.5));
}

.dl-video-play-btn:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 6px 28px rgba(30, 27, 133, 0.7));
}

.dl-video-preview.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Кнопка «Далее» */
.dl-btn-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 24px;
  padding: 18px 32px;
  background: linear-gradient(135deg, #2e2a8a 0%, #1e1b85 50%, #38349c 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(30, 27, 133, 0.3);
}

.dl-btn-next:hover {
  background-position: 100% 100%;
  box-shadow: 0 6px 30px rgba(30, 27, 133, 0.5);
  transform: translateY(-2px);
}

.dl-btn-next:active {
  transform: translateY(0);
}

.dl-btn-next svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.dl-btn-next:hover svg {
  transform: translateX(3px);
}

/* Кнопка «Назад» */
.dl-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.dl-btn-back:hover {
  color: rgba(255, 255, 255, 0.7);
}

.dl-btn-back svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Стадия 2: Выбор платформы */
.dl-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.dl-platform {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px 20px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dl-platform:hover {
  border-color: rgba(99, 96, 196, 0.3);
  background: rgba(99, 96, 196, 0.06);
  transform: translateY(-3px);
}

.dl-platform.selected {
  border-color: rgba(99, 96, 196, 0.6);
  background: rgba(99, 96, 196, 0.1);
  box-shadow: 0 0 30px rgba(56, 52, 156, 0.2);
}

.dl-platform-icon {
  width: 48px;
  height: 48px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.dl-platform.selected .dl-platform-icon,
.dl-platform:hover .dl-platform-icon {
  opacity: 1;
}

.dl-platform-name {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Чекмарк на выбранной платформе */
.dl-platform-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: #38349c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dl-platform.selected .dl-platform-check {
  opacity: 1;
  transform: scale(1);
}

.dl-platform-check svg {
  width: 12px;
  height: 12px;
  fill: #fff;
}

/* Кнопка «Далее» — disabled */
.dl-btn-next.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Карточки регионов */
.dl-region-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.dl-region {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 24px 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dl-region:hover {
  border-color: rgba(99, 96, 196, 0.3);
  background: rgba(99, 96, 196, 0.06);
  transform: translateY(-3px);
}

.dl-region.selected {
  border-color: rgba(99, 96, 196, 0.6);
  background: rgba(99, 96, 196, 0.1);
  box-shadow: 0 0 30px rgba(56, 52, 156, 0.2);
}

.dl-region-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: #38349c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dl-region.selected .dl-region-check {
  opacity: 1;
  transform: scale(1);
}

.dl-region-check svg {
  width: 13px;
  height: 13px;
  fill: #fff;
}

.dl-region-icon {
  width: 56px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-region-icon svg {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.dl-region[data-region="world"] .dl-region-icon svg {
  width: 44px;
  height: 44px;
  border-radius: 0;
  opacity: 0.85;
}

.dl-region-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.dl-region-desc {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
}

/* Ссылки для Windows (РФ и не РФ) */
.dl-windows-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.dl-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #38349c 0%, #4a46c0 50%, #38349c 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(56, 52, 156, 0.35);
  text-decoration: none;
}

.dl-link-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.dl-link-btn:hover {
  background-position: 100% 100%;
  box-shadow: 0 8px 35px rgba(56, 52, 156, 0.55);
  transform: translateY(-2px);
}

.dl-link-btn:active {
  transform: translateY(0);
}

.dl-link-btn-russia {
  background: linear-gradient(135deg, #2d6a4f 0%, #40916c 50%, #2d6a4f 100%);
  background-size: 200% 200%;
  box-shadow: 0 4px 20px rgba(45, 106, 79, 0.35);
}

.dl-link-btn-russia:hover {
  box-shadow: 0 8px 35px rgba(64, 145, 108, 0.55);
}

/* Кнопка скачивания */
.dl-btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 20px 32px;
  background: linear-gradient(135deg, #38349c 0%, #4a46c0 50%, #38349c 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(56, 52, 156, 0.35);
  text-decoration: none;
}

.dl-btn-download:hover {
  background-position: 100% 100%;
  box-shadow: 0 8px 35px rgba(56, 52, 156, 0.55);
  transform: translateY(-2px);
}

.dl-btn-download:active {
  transform: translateY(0);
}

.dl-btn-download svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.dl-btn-download.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Файл / размер */
.dl-file-info {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.25);
}

/* Промокод-плашка */
.dl-promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 179, 71, 0.08);
  border: 1px solid rgba(255, 179, 71, 0.18);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.85);
}

.dl-promo-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #ffb347;
  filter: drop-shadow(0 0 4px rgba(255, 179, 71, 0.5));
}

.dl-promo-banner .promo-code {
  color: #ffb347 !important;
}

/* Разделитель */
.dl-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.dl-divider::before,
.dl-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.dl-divider span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

/* Кнопка поддержки */
.dl-support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 24px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.dl-support-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

.dl-support-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Прогресс-бар шагов */
.dl-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.dl-progress-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.dl-progress-dot.active {
  background: #6360c4;
  box-shadow: 0 0 10px rgba(99, 96, 196, 0.4);
}

.dl-progress-dot.done {
  background: rgba(99, 96, 196, 0.4);
}

/* Адаптив */
@media (max-width: 700px) {
  .dl-modal {
    border-radius: 16px;
  }

  .dl-stage {
    padding: 28px 24px 32px;
  }

  .dl-stage-title {
    font-size: 24px;
  }

  .dl-btn-next {
    padding: 14px 24px;
    font-size: 15px;
  }

  .dl-region-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dl-region {
    flex-direction: row;
    padding: 18px 22px;
    text-align: left;
    gap: 16px;
  }

  .dl-region-icon {
    width: 40px;
    height: 30px;
    flex-shrink: 0;
  }

  .dl-region[data-region="world"] .dl-region-icon svg {
    width: 32px;
    height: 32px;
  }

  .dl-platforms {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dl-platform {
    flex-direction: row;
    padding: 16px 20px;
    text-align: left;
    gap: 16px;
  }

  .dl-platform-icon {
    width: 36px;
    height: 36px;
  }
}

/* ============ LAZY LOADING ИЗОБРАЖЕНИЙ ============ */
.lazy-img {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.lazy-img.lazy-loaded {
  opacity: 1;
}
