@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  background: #F5F5F5;
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  color: #fff;
  font-weight: normal;
}

img {
  width: 100%;
  pointer-events: none;
}

/* #region Container */
.container {
  max-width: 1030px;
  margin: 0 auto;
  padding: 0 15px;
}

@media screen and (max-width: 992px) {
  .container {
    max-width: 720px;
  }
} 

@media screen and (max-width: 768px) {
  .container {
    max-width: 540px;
  }
} 
/* #endregion */

/* #region HEADER */
.stats-bar {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 10px 0;
  text-align: center;
  width: 100%;
  z-index: 1000;
  font-size: 14px;
}

.stats-bar__inner {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .stats-bar__inner {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-value {
  color: #4CAF50;
  font-weight: bold;
}
/* #endregion */

/* #region HERO */
.hero {
  padding: 60px 0 40px;
}

@media (max-width: 576px) {
  .hero {
    padding: 40px 0;
  }
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
}

.hero__title h1 {
  color: #F50D0D;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 576px) {
  .hero__title h1 {
    font-size: 18px;
  }
}
/* #endregion */

/* #region VIDEO */
.video__wrapper {
  position: relative;
  display: block;
  /* max-width: 670px; */
  width: 100%;
  margin: 0 auto;
  z-index: 1;
}

.video__wrapper video {
  width: 100%;
}

.video__wrapper::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  -moz-backdrop-filter: blur(5px);
  z-index: 2;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video__wrapper.playing::before {
  opacity: 0;
  visibility: hidden;
  z-index: -1;
}

.video__info_wrapper {
  padding: 15px;
  max-width: 475px;
  width: 100%;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.play__btn {
  margin: 0 auto;
  width: 50px;
  height: 50px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: playPulse 1.8s infinite ease-out;
}

.play__btn::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #024672;
  margin-left: 3px;
}

.play__btn:hover {
  transform: scale(1.2) !important;
  animation: none !important;
}

.video__info.playing .play__btn {
  opacity: 0;
  visibility: hidden;
}

@keyframes playPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, .6),
      0 0 0 0 rgba(255, 255, 255, .4);
  }
  100% {
    box-shadow:
      0 0 0 18px rgba(255, 255, 255, 0),
      0 0 0 30px rgba(255, 255, 255, 0);
  }
}

#play {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border: none;
}

#play::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 3px;
}

#play:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}
/* #endregion */

/* #region FORM */
.block__hidden {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;

  opacity: 0;
  visibility: hidden;
  z-index: -1;
}

.block__hidden.active {
  position: relative;
  left: auto;
  transform: none;
  top: auto;

  opacity: 1;
  visibility: visible;
  z-index: 10;
}
/* #endregion */

/* #region FORM */
.form {
  background: #FFFFFF;
  max-width: 670px;
  margin: 72px auto 0;
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 4px 21px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 576px) {
  .form {
    margin: 32px auto 0;
    padding: 32px 16px;
  }
}

.form input {
  border: 1px solid #B6B6B6;
  border-radius: 10px;
  padding: 16px 22px;
  font-size: 18px;
  line-height: 1.3;
}

@media (max-width: 576px) {
  .form input {
    font-size: 16px;
  }
}

.form__btn {
  background: #024672;
  border-radius: 10px;
  padding: 16px;
  color: #fff;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s linear;
}

@media (max-width: 576px) {
  .form__btn {
    font-size: 20px;
  }
}

@media (hover: hover) {
  .form__btn:hover  {
    scale: 1.03;
    background: #014bb9;
  }
}

@media (hover: none) {
  .form__btn :active  {
    scale: 1.03;
    background: #014bb9;
  }
}
/* #endregion */

/* #region USERS */
.users {
  padding: 0 0 60px;
}

.users__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px 16px;
}

@media (max-width: 992px) {
  .users__wrapper {
      flex-direction: column;
  }
}

/* User Card */
.user__box {
  width: calc((100% - 32px) / 2);
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #e8e8e8;
  padding: 14px;
  border-radius: 4px;
  gap: 15px;
}

@media (max-width: 992px) {
  .user__box {
      width: 100%;
      max-width: 100%;
  }
}

@media (max-width: 576px) {
  .user__box {
      flex-direction: column;
      text-align: center;
  }
}

/* User Image */
.user__image {
  width: 70px;
  height: 70px;
  min-width: 70px;
  min-height: 70px;
  object-fit: cover;
  flex-shrink: 0;
}

/* User Info */
.user__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.user__name {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin: 0;
  line-height: 1.2;
}

.user__label {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.2;
}

.user__amount {
  font-size: 20px;
  font-weight: 700;
  color: #ff0000;
  margin: 0;
  line-height: 1.2;
}
/* #endregion */

/* #region FOOTER */
.footer {
  background: #024672;
  padding: 32px 0;
}

.footer__links {
  display: flex;
  justify-content: space-evenly;
  gap: 25px;
  margin-bottom: 30px;
}

@media (max-width: 576px) {
  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

.footer__links a {
  transition: all .2s linear;
  text-align: center;
}

@media (hover: hover) {
  .footer__links a:hover  {
    color: #eda606;
  }
}

@media (hover: none) {
  .footer__links a:active  {
    color: #eda606;
  }
}

.footer__wrapper p {
  text-align: center;
  font-size: 14px;
  line-height: 1.2;
  opacity: .8;
}
/* #endregion */