/* ===== Блок скачивания LanGame ===== */
.download-langame {
  padding: 60px 20px;
  background: linear-gradient(180deg, #0a0a12 0%, #15152a 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.download-langame::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.download-langame::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(244, 114, 182, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.download-langame__container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.download-langame__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.download-langame__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.download-langame__icon-wrapper {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: all 0.3s ease;
}

.download-langame__icon-wrapper:hover {
  transform: scale(1.05);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
}

.download-langame__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.download-langame__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.6;
  margin: 0;
}

.download-langame__highlight {
  background: linear-gradient(135deg, #f472b6, #a363f2, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.download-langame__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.download-langame__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.download-langame__btn--primary {
  background: linear-gradient(135deg, #f472b6, #a363f2, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.download-langame__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.5);
}

.download-langame__btn--primary:active {
  transform: scale(0.97);
}

.download-langame__btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.download-langame__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.download-langame__stores {
  width: 100%;
  max-width: 700px;
  margin-top: 8px;
}

.download-langame .stores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.download-langame .app__store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 30px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.download-langame .app__store:hover {
  background: rgba(139, 92, 246, 0.12);
  color: #fff;
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.download-langame .app__store:active {
  transform: scale(0.97);
}

.download-langame .store-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
  filter: brightness(0.9);
}

.download-langame .store-label {
  font-weight: 500;
  white-space: nowrap;
  font-size: 0.85rem;
}

/* ===== Попап QR-кода ===== */
.qr-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-popup.show-modal {
  opacity: 1;
  visibility: visible;
}

.qr-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.qr-popup__content {
  position: relative;
  background: linear-gradient(180deg, #1a1a2e 0%, #12121f 100%);
  border-radius: 24px;
  padding: 40px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(139, 92, 246, 0.15);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  animation: qrPopupIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes qrPopupIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.qr-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.qr-popup__close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

.qr-popup__close img {
  width: 16px;
  height: 16px;
  filter: brightness(0.8);
}

.qr-popup__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.qr-popup__header {
  text-align: center;
}

.qr-popup__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.qr-popup__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}

.qr-popup__subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ===== Табы для переключения QR-кодов ===== */
.qr-popup__tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.qr-popup__tab {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.qr-popup__tab img {
  width: 28px;
  height: 28px;
  filter: brightness(0.6);
  transition: filter 0.3s ease;
}

.qr-popup__tab:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.08);
}

.qr-popup__tab:hover img {
  filter: brightness(0.9);
}

.qr-popup__tab--active {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.qr-popup__tab--active img {
  filter: brightness(1);
}

/* ===== Контейнер с QR-кодами ===== */
.qr-popup__qr-container {
  position: relative;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
  width: 100%;
  max-width: 282px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  cursor: default;
}

.qr-popup__qr-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-popup__qr-item--active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.qr-popup__qr-code {
  width: 210px;
  height: 210px;
  display: block;
  border-radius: 8px;
}

.qr-popup__qr-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #222;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 16px;
  border-radius: 20px;
}

/* ===== Магазины в попапе ===== */
.qr-popup__stores {
  width: 100%;
}

.qr-popup__stores-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.qr-popup__store {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  padding: 10px 14px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.2s ease !important;
  font-size: 0.85rem !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.qr-popup__store:hover {
  background: rgba(139, 92, 246, 0.12) !important;
  color: #fff !important;
  border-color: rgba(139, 92, 246, 0.2) !important;
}

.qr-popup__store .store-icon {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  display: block !important;
  filter: brightness(0.9) !important;
}

.qr-popup__store .store-label {
  font-weight: 500 !important;
  white-space: nowrap !important;
  font-size: 0.8rem !important;
}

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .download-langame .stores-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .download-langame {
    padding: 40px 16px;
  }

  .download-langame__title {
    font-size: 2rem;
  }

  .download-langame__subtitle {
    font-size: 1rem;
  }

  .download-langame__actions {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
  }

  .download-langame__btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .download-langame .stores-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qr-popup__content {
    padding: 28px 20px;
    max-width: 400px;
  }

  .qr-popup__qr-code {
    width: 180px;
    height: 180px;
  }

  .qr-popup__qr-container {
    max-width: 212px;
  }

  .qr-popup__stores-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .qr-popup__tab {
    width: 44px;
    height: 44px;
  }

  .qr-popup__tab img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .download-langame__title {
    font-size: 1.6rem;
  }

  .download-langame__icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .download-langame__icon-wrapper svg {
    width: 48px;
    height: 48px;
  }

  .download-langame .stores-grid {
    gap: 8px;
  }

  .download-langame .app__store {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .download-langame .store-icon {
    width: 18px;
    height: 18px;
  }

  .download-langame .store-label {
    font-size: 0.75rem;
  }

  .qr-popup__content {
    padding: 20px 16px;
  }

  .qr-popup__qr-code {
    width: 150px;
    height: 150px;
  }

  .qr-popup__qr-container {
    max-width: 182px;
    padding: 12px;
  }

  .qr-popup__title {
    font-size: 1.2rem;
  }

  .qr-popup__subtitle {
    font-size: 0.8rem;
  }

  .qr-popup__stores-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .qr-popup__store {
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
  }

  .qr-popup__store .store-icon {
    width: 16px !important;
    height: 16px !important;
  }

  .qr-popup__tab {
    width: 38px;
    height: 38px;
    padding: 6px;
  }

  .qr-popup__tab img {
    width: 20px;
    height: 20px;
  }
}
