* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
}

p {
  color: white;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
}

.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Добавьте полупрозрачную накладку если нужно */
.bg-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (min-aspect-ratio: 16/9) {
  body {
    background-size: cover;
  }
}

.flex {
  display: flex;
}
.justify-center {
  justify-content: center;
}
.container {
  max-width: 1024px;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  @media (max-width: 550px) {
    margin-bottom: 0;
  }
}

.logo {
  max-width: 310px;
  @media (max-width: 550px) {
    max-width: 131px;
    padding-left: 16px;
  }
}

.header_link {
  color: white;
  font-size: 16px;
  padding-right: 36px;
  @media (max-width: 550px) {
    display: none;
  }
}
.cursor-pointer {
  cursor: pointer;
}

.header_link:last-child {
  padding-right: 0;
}

.main_banner {
  position: relative;
  margin-bottom: 64px;
  @media (max-width: 550px) {
    display: none;
  }
}

.main_banner-mobile {
  display: none;
  @media (max-width: 550px) {
    display: flex;
    padding: 34px 80px;
    border-radius: 24px;
    background: linear-gradient(
      90deg,
      rgba(28, 67, 103, 0.3) 0%,
      rgba(56, 133, 205, 0.3) 100%
    );
    backdrop-filter: blur(4px);
    justify-content: center;
    flex-direction: column;
    align-items: center;
    max-width: 380px;
    text-align: center;
    margin: 32px auto;

    z-index: 2000;
  }
}

.main-btn {
  max-width: 220px;
  width: 100%;
  height: 98px;
  background: url("./img/button.svg") no-repeat center center;
  position: absolute;
  bottom: 30px;
  left: 4%;
  cursor: pointer;
}

.main-btn-mobile {
  width: 220px;
  height: 98px;
  background: url("./img/button.svg") no-repeat center center;
}

.btn {
  max-width: 220px;
  width: 100%;
  height: 98px;
  background: url("./img/button.svg") no-repeat center center;
  cursor: pointer;
  margin: 0 auto;
}

.benefits {
  margin-bottom: 64px;
  @media (max-width: 550px) {
    display: none;
  }
}
.benefits-mobile {
  padding: 0 16px;
  display: none;
  @media (max-width: 550px) {
    display: block;
  }
}
.benefits-center {
  display: flex;
  gap: 12px;
}

.title {
  text-align: center;
  color: white;
  font-size: 32px;
  margin-bottom: 38px;
  font-weight: 600;
  position: relative;
  @media (max-width: 550px) {
    font-size: 24px;
  }
}

.title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 3px;
  background: url("./img/line.svg") no-repeat center center;
}

.benefits_cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
  @media (max-width: 550px) {
    gap: 16px;
    margin-bottom: 32px;
  }
}

.benefits__card {
  width: 322px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 30px;
  background: linear-gradient(
    180deg,
    rgba(28, 67, 103, 0.3) 0%,
    rgba(56, 133, 205, 0.3) 100%
  );
  backdrop-filter: blur(2px);
  padding: 16px 0;
}

.benefits__card img {
  @media (max-width: 550px) {
    width: 80px;
    height: 80px;
  }
}

.benefits__text {
  color: white;
  font-weight: 600;
  padding-top: 24px;
  @media (max-width: 550px) {
    font-size: 14px;
    padding-top: 12px;
  }
}

.benefits_top,
.benefits-down {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  @media (max-width: 550px) {
    gap: 12px;
  }
}

.work_card {
  border-radius: 30px;
  background: linear-gradient(
    180deg,
    rgba(28, 67, 103, 0.3) 0%,
    rgba(56, 133, 205, 0.3) 100%
  );
  backdrop-filter: blur(2px);
  padding: 16px 24px;
  margin-bottom: 28px;
  @media (max-width: 550px) {
    margin-bottom: 16px;
  }
}

.work {
  margin-bottom: 36px;
}

.work_card-title {
  padding-bottom: 24px;
  font-weight: 700;
  @media (max-width: 550px) {
    padding-bottom: 16px;
  }
}

.work_card-text {
  @media (max-width: 550px) {
    font-size: 14px;
  }
}

.subtitle {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: white;
  margin-bottom: 28px;
  @media (max-width: 550px) {
    font-size: 14px;
    margin-bottom: 16px;
  }
}

.requirements {
  margin-bottom: 64px;
  display: block;
  @media (max-width: 550px) {
    display: none;
    margin-bottom: 32px;
  }
}
.requirements-mobile {
  display: none;
  @media (max-width: 550px) {
    display: block;
  }
}

.requirements_cards {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  @media (max-width: 550px) {
    gap: 10px;
    margin-top: 16px;
  }
}

.requirements__card {
  border-radius: 30px;
  background: linear-gradient(
    180deg,
    rgba(28, 67, 103, 0.3) 0%,
    rgba(56, 133, 205, 0.3) 100%
  );
  backdrop-filter: blur(2px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 235px;
}

.requirements__card img {
  margin-bottom: 24px;
  @media (max-width: 550px) {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
  }
}

.requirements__card p {
  text-align: center;
  @media (max-width: 550px) {
    font-size: 14px;
  }
}

.video {
  margin-bottom: 64px;
  @media (max-width: 550px) {
    margin-bottom: 32px;
  }
}

.join_text {
  max-width: 250px;
  margin: 0 auto;
  margin-bottom: 64px;
  font-weight: 700;
  font-size: 20px;
  @media (max-width: 550px) {
    margin-bottom: 32px;
  }
}

.join_text p {
  text-align: center;
}

.footer {
  background-color: #1c4367;
  padding: 32px 0;
  margin-bottom: 64px;
}

.footer_logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  @media (max-width: 550px) {
    margin-bottom: 16px;
  }
}

.footer p {
  text-align: center;
  max-width: 525px;
  margin: 0 auto;
  @media (max-width: 550px) {
    font-size: 12px;
  }
}

/* БУРГЕР-МЕНЮ - ТОЛЬКО ДЛЯ МОБИЛЬНОЙ ВЕРСИИ */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0px;
  width: 100%;
  height: 239px;
  background-color: #13213e;
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: white;
  font-size: 16px;
  margin: 8px 0;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  width: 80%;
  text-align: center;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.mobile-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.overlay.active {
  display: block;
}

.btn-container {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  width: 100%;
}

.btn-container-mobile {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  width: 100%;
}

.join-btn-container-mobile {
  display: none;
}

.main-btn-glow {
  position: absolute;
  left: 14%;
  transform: translate(-50%, -50%);
  width: 135px;
  height: 77px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 0, 0.9) 0%,
    rgba(0, 255, 128, 0.7) 30%,
    rgba(0, 255, 0, 0.4) 50%,
    rgba(0, 255, 0, 0) 70%
  );
  animation: pulse-glow 2s infinite ease-in-out;
  z-index: -1;
  pointer-events: none;
  bottom: 0;
}

.btn-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 135px;
  height: 77px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 0, 0.9) 0%,
    rgba(0, 255, 128, 0.7) 30%,
    rgba(0, 255, 0, 0.4) 50%,
    rgba(0, 255, 0, 0) 70%
  );
  animation: pulse-glow 2s infinite ease-in-out;
  z-index: -1;
  pointer-events: none;
}

.main-btn-glow-mobile {
  width: 135px;
  height: 77px;
  position: absolute;
  left: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 0, 0.9) 0%,
    rgba(0, 255, 128, 0.7) 30%,
    rgba(0, 255, 0, 0.4) 50%,
    rgba(0, 255, 0, 0) 70%
  );
  border-radius: 50%;
  animation: pulse-glow 2s infinite ease-in-out;
  z-index: -1;
  pointer-events: none;
  bottom: 5px;
  bottom: -30%;
}

/* Модальное окно попапа */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-modal {
  position: absolute;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  width: 320px;
}

.popup-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.popup-content {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  z-index: 2001;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ПОЗИЦИОНИРОВАНИЕ ДЛЯ ДЕСКТОПНЫХ ПОПАПОВ */
#popupTopDesktop {
  top: 79%;
  left: 19%;
  transform: translate(-50%, -66%) scale(1);
}

#popupBottomDesktop {
  left: 50%;
  top: 0;
  transform: translate(-50%, -11%) scale(1);
  margin-bottom: 10px;
}

/* ПОЗИЦИОНИРОВАНИЕ ДЛЯ МОБИЛЬНЫХ ПОПАПОВ (внутри своих контейнеров) */
.popup-mobile.popup-modal-top {
  display: none;
}

.popup-mobile.popup-modal-bottom {
  display: none;
}

.popup-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  padding-top: 19px;
  padding-bottom: 32px;
}

.popup-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #192540;
  backdrop-filter: blur(10px);
  z-index: -1;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 12px;
  height: 12px;
  background: none;
  border: none;
  color: white;
  font-size: 35px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
}

.popup-close:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.popup-close:active {
  transform: scale(0.95);
}

.popup-buttons {
  margin: 0 32px;
}

.popup-buttons-wa,
.popup-buttons-tg {
  display: flex;
  flex-direction: column;
}

.popup-buttons-wa {
  margin-bottom: 32px;
}

.popup-buttons-tg {
  margin-bottom: 14px;
}

.popup-btn {
  margin-bottom: 10px;
  border-radius: 6px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #253e61;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-btn_text {
  font-size: 16px;
}

.popup-btn:hover {
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    #253e61;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  #popupBottomMobile {
    left: 50%;
    top: 0;
    transform: translate(-50%, -30%) scale(1);
    margin-bottom: 10px;
  }

  #joinBtnDesktop {
    display: none;
  }

  .join-btn-container-mobile {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    width: 100%;
  }

  .btn-container {
    display: none;
  }

  #joinBtnMobile {
    display: block;
  }

  #popupTopMobile {
    transform: translate(0%, 14%) scale(1);
  }

  /* .popup-modal {
    position: fixed !important;
    z-index: 2000 !important;
    top: 70% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: 90% !important;
    max-width: 320px !important;
  } */

  /* .popup-modal.active {
    transform: translate(-50%, -50%) scale(1) !important;
  } */

  .popup-buttons {
    margin: 0 20px;
  }

  .popup-title {
    font-size: 20px;
    padding-top: 15px;
    padding-bottom: 25px;
  }

  .modal-overlay {
    z-index: 1500;
  }
}

/* Фиксация скролла без скачков */
body.modal-open {
  overflow: auto;
}

/* Добавляем родительским контейнерам позиционирование */
.main_banner,
.join {
  position: relative;
}

.benefits,
.work,
.requirements,
.video {
  position: relative;
  z-index: 1;
}

.mobile-menu {
  z-index: 2100;
}

.overlay {
  z-index: 2050;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* МЕДИА-ЗАПРОСЫ */
@media (max-width: 550px) {
  .header_links {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  .logo {
    max-width: 131px;
  }

  .mobile-menu {
    width: 100%;
    height: auto;
    min-height: 239px;
    padding: 20px 0;
    top: 0px;
  }

  .footer {
    margin-bottom: 0;
  }
}
