/* RESET & BASE STYLES */
:root {
  /* Цвет кнопки и тень */
  --light-purple: #cfa7ff;
  --primary-button-shadow-color: #9b6cff;
  /* Время анимации */
  --animation-timing: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #ffffff;
  background-color: #000000;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
}

/* CONTAINER AND FLEX UTILITIES */
.container {
  width: 90%;
  max-width: 1200px;
  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HEADER */
header {
  position: absolute;
  top: 0;
  width: 100%;
  padding-top: 20px;
  padding-right: 0;
  padding-bottom: 20px;
  padding-left: 0;
  z-index: 5;
}

header .logo img {
  width: 120px;
}

header nav .btn {
  padding-top: 10px;
  padding-right: 20px;
  padding-bottom: 10px;
  padding-left: 20px;
  border-radius: 50px;
  background-color: #000000;
  font-weight: bold;
}

header nav .btn + .btn {
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 10px;
}

.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  /* закомментировать или удалить: background-image: url('../images/hero.png'); */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

/* новое: видео на заднем плане */
.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;              /* под затемнением и контентом */
}

/* затемнение поверх видео (у вас уже есть z-index:1) */
.hero__darken {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.3);
  z-index: 1;
}

/* контент поверх всего */
.hero__content {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -40%);
  text-align: center;
  z-index: 2;
}

.hero__line1 {
  color: #fff;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.hero__line2 {
  color: #f2b01e;
  font-size: 4rem;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0.2rem 0 1rem;
  line-height: 1.1;
}

.hero__line3 {
  color: #f2b01e;
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  margin: 2.2rem 0 1rem;
  line-height: 1.1;
}

.hero__btn {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 18px 50px;
  font-size: 1.3rem;
  border-radius: 40px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-header,
.mobile-footer {
  display: none;
}

/* ---------- МОБИЛЬ (max-width:768px) ---------- */
@media (max-width: 768px) {
  /* Показываем фиксы */
  .mobile-header,
  .mobile-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    left: 0;
    z-index: 1000;
  }

  /* Шапка сверху */
  .mobile-header {
    top: 0;
    height: 60px;               
    background-color: rgb(0 0 0 / 81%)
  }
  .mobile-logo {
    max-height: 50px;
    width: auto;
  }

  /* Футер-кнопки снизу */
  .mobile-footer {
    bottom: 0;
    height: 60px;
    background-color: rgb(0 0 0 / 81%);
    gap: 1rem;
  }
  .mobile-footer-btn {
    flex: 1;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    background-color: #0dae5f;
    padding: 0.5rem;
    margin: 0 0.5rem;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
  }

  /* Подтолкнём сам героя между шапкой и футером */
  .hero {
    margin-top: 60px;           /* высота .mobile-header */
    margin-bottom: 60px;        /* высота .mobile-footer */
    height: calc(100vh - 120px);
    background-position: center top;
  }

  /* Центрирование контента — почти то же, что и у вас */
  .hero__content {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    text-align: center;
  }

  /* Текст и кнопка чуть поменьше */
  .hero__line1 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }
  .hero__line2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  .hero__btn {
    padding: 0.6rem 2rem;
    font-size: 1rem;
  }
  .desktop-header {
    display: none;
  }
}

/* GAMES GRID SECTION */
.games {
  position: relative;
  background-color: #000000;
  background-image: none !important;
  background-repeat: repeat;
  background-position: center center;
  background-size: auto;
  padding-top: 80px;
  padding-bottom: 40px;
}

.games::before {
  content: "";
  position: absolute;
  inset: 0;  /* растянуть по всему блоку */
  /* сюда подставьте путь к вашему SVG */
  background-image: url('../images/pattern.svg');
  background-repeat: repeat;
  background-position: center center;
  background-size: 30%;

  /* вот фильтр, который перекрасит чёрный в фиолетовый */
  filter: invert(8%) sepia(27%) saturate(5362%) hue-rotate(256deg) brightness(82%) contrast(109%);

  z-index: 1;
}

.games__title {
  text-align: center;
  color: #ffffff;
  font-size: 2rem;
  text-transform: uppercase;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 40px;
  margin-left: 0;
}

.highlight {
  color: #f9c33d;
  font-weight: bold;
}

.games__grid {
  width: calc((200px * 4) + (20px * 3));
  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  display: grid;
  grid-template-columns: 200px 200px 200px 200px;
  grid-column-gap: 20px;
  grid-row-gap: 20px;
}

.games__card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.games__card img {
  display: block;
  width: 100%;
  height: auto;
}

/* UNIFIED CTA BUTTON STYLES */
.feature-visual__btn {
  /* выставляем все как у games__cta-btn */
  position: relative;
  transform: translate3d(0, -3px, 0);
  margin: 0px auto 0; /* вместо margin-top:20px + центрирование */
  display: grid;
  width: calc((200px * 4) + (20px * 3)); /* та же ширина */
  background-color: var(--light-purple);
  color: #ffffff;
  filter: drop-shadow(0 4px 0 var(--primary-button-shadow-color));
  font-family: "Outfit Variable", Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  border: none;
  border-radius: 2.875rem;
  padding: 0.625rem 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--animation-timing);
  text-align: center;  /* чтобы строки центровались */
}

/* подкорректируем размер текста внутри */
.feature-visual__btn-main {
  font-size: 1.5rem;      /* совпадает с родительским font-size */
  line-height: 1;
}

.feature-visual__btn-sub {
  font-size: 1rem;        /* чуть поменьше */
  line-height: 1.2;
}


.games__cta-btn {
  position: relative;
  transform: translate3d(0, -3px, 0);
  margin-top: 20px;
  margin-right: auto;
  margin-left: auto;

  display: block;
  width: calc((200px * 4) + (20px * 3));

  background-color: var(--light-purple);
  color: #ffffff;
  filter: drop-shadow(0 4px 0 var(--primary-button-shadow-color));

  font-family: "Outfit Variable", Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;

  border: none;
  border-radius: 2.875rem;
  padding-top: 0.625rem;
  padding-right: 0.5rem;
  padding-bottom: 0.625rem;
  padding-left: 0.5rem;
  overflow: hidden;
  cursor: pointer;

  transition-property: all;
  transition-duration: var(--animation-timing);
}

.games__cta-btn:hover,
.feature-visual__btn:hover {
  transform: translate3d(0, -1px, 0);
  filter: drop-shadow(0 6px 0 var(--primary-button-shadow-color));
}

/* MEDIA QUERIES FOR GAMES GRID */
@media (max-width: 1024px) {
  .games__grid {
    width: calc((160px * 2) + 20px);
    grid-template-columns: 160px 160px;
  }
  .games__cta-btn,
  .feature-visual__btn {
    width: calc((160px * 2) + 20px);
    padding-top: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .games__grid {
    display: flex;               /* flex вместо grid */
    flex-wrap: nowrap;           /* не переносим карточки на новую строку */
    overflow-x: auto;            /* включаем прокрутку по горизонтали */
    width: auto;                 /* убираем фиксированную ширину */
    padding-bottom: 10px;        /* чтоб было место под скроллбар */
    /* опционально: добавим небольшой отступ слева/справа */
    margin: 0 -10px;
  }
  .games__card {
    flex: 0 0 160px;             /* фиксируем ширину карточки */
    margin: 0 10px;              /* разделяем карточки */
  }
  .games__grid::-webkit-scrollbar {
    height: 6px;                 /* высота скроллбара */
  }
  .games__grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
  }
}

/* FEATURE VISUAL SECTION */
.feature-visual {
  position: relative;
  background-color: #000000;
  background-image: none !important;
  background-repeat: repeat;
  background-position: center center;
  background-size: auto;
  padding-top: 80px;
  padding-bottom: 60px;
  text-align: center;
}
.feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;  /* растянуть по всему блоку */
  /* сюда подставьте путь к вашему SVG */
  background-image: url('../images/pattern.svg');
  background-repeat: repeat;
  background-position: center center;
  background-size: 30%;

  /* вот фильтр, который перекрасит чёрный в фиолетовый */
  filter: invert(8%) sepia(27%) saturate(5362%) hue-rotate(256deg) brightness(82%) contrast(109%);

  z-index: 1;
}

.games > .container,
.feature-visual > .container {
  position: relative;
  z-index: 2;
}

.feature-visual__video {
  display: block;
  width: 100%;
  height: auto;           /* или: height: 100%; object-fit: cover; */
  border-radius: 12px;
  transform: translateX(-40px);
  object-fit: cover;      /* заполнит контейнер, обрезая лишнее */
}

.feature-visual__title {
  color: #ffffff;
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 16px;
  margin-left: 0;
}

.feature-visual__subtitle {
  position: relative;
  display: inline-block;
  color: #f9c33d;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 40px;
  margin-left: 0;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 8px;
  padding-left: 0;
}

.feature-visual__subtitle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: #f9c33d;
}

.feature-visual__highlight {
  color: #ffffff;
}

.feature-visual__image {
  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0px;
  margin-left: auto;
  max-width: 400px;
  width: 100%;
}

.feature-visual__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
   transform: translateX(-40px);
}

.feature-visual__disclaimer {
  margin-top: 32px;
  padding: 16px;
  border: 2px dashed #f26b6b;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: rgba(255,255,255,0.05); /* лёгкий полупрозрачный фон */
  z-index: 1;
}

.disclaimer__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  background-color: #f26b6b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
}

.disclaimer__text {
  margin: 0;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.5;
  text-transform: uppercase;
  flex: 1;
}



/* MEDIA QUERIES FOR FEATURE VISUAL */
@media (max-width: 768px) {
  .feature-visual {
    padding-top: 60px;
    padding-right: 0;
    padding-bottom: 40px;
    padding-left: 0;
  }
  .feature-visual__title {
    font-size: 2.5rem;
  }
  .feature-visual__subtitle {
    font-size: 1.2rem;
    margin-bottom: 32px;
    padding-bottom: 6px;
  }
  .feature-visual__subtitle::after {
    height: 3px;
  }
  .feature-visual__image {
    max-width: 280px;
/*    margin-bottom: 32px;*/
  }
  .feature-visual__btn {
    max-width: 280px;
    width: 100%;
/*    margin-top: 20px;*/
    font-size: 1.2rem;
    padding-top: 0.5rem;
    padding-right: 0.75rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
  }
    .feature-visual__disclaimer {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }
  .disclaimer__icon {
    margin: 0 auto;
  }
  .disclaimer__text {
    font-size: 0.8rem;
    text-align: center;
  }
}


/* FOOTER SECTION */
footer {
  background-color: #000000;
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
  font-size: 0.9rem;
}

/* Логотип */
.footer-logo .logo img {
  width: 100px;
}

/* Утилиты */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Верхний ряд футера */
.footer-top {
  margin-bottom: 40px;
}

/* Текст ответственной игры */
.footer-responsible {
  max-width: 50%;
}
.responsible-title {
  color: #f9c33d;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 8px;
}
.footer-responsible small {
  color: #ffffff;
  display: block;
}

/* Кнопка ответственной игры */
.responsible-btn {
  background-color: #f9c33d;
  color: #000000;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

/* Возрастной значок */
.age {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border: 2px solid #f9c33d;
  color: #f9c33d;
  border-radius: 50%;
  text-align: center;
}

/* Ссылки внизу */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.footer-links a {
  color: #a0a0a0;
  text-decoration: none;
}



/* Адаптив */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-responsible {
    max-width: 100%;
    margin-bottom: 20px;
  }
  .responsible-btn {
    margin-bottom: 20px;
  }
  .age {
    margin-bottom: 20px;
  }
}

/* ------- Modal styles ------- */
/*.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}
.modal.active {
  display: block;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.modal__content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background-color: #000;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
  color: #fff;
}
.modal__close {
  position: absolute;
  top: 0.5rem; right: 0.75rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}
.modal__title {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  text-transform: uppercase;
}
.modal__form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.modal__form input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem;
  background: #111;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
}
.modal__submit {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  background-color: var(--light-purple);
  color: #fff;
  border: none;
  border-radius: 2.875rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  cursor: pointer;
  filter: drop-shadow(0 4px 0 var(--primary-button-shadow-color));
  transition: all var(--animation-timing);
}
.modal__submit:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 6px 0 var(--primary-button-shadow-color));
}*/



.notice-text {
  text-align: center;
  color: #ffffff;
  margin: 16px 0;      /* сверху и снизу немного отступа */
  font-size: 16px;
  z-index: 999;
  font-style: italic;
  position: relative;  /* если нужно, чтобы текст был поверх фоновых слоёв */

}


/* RESPONSIVE MEDIA QUERIES FOR HEADER BUTTONS */
@media (max-width: 768px) {
  header nav .btn {
    padding-top: 8px;
    padding-right: 16px;
    padding-bottom: 8px;
    padding-left: 16px;
    font-size: 0.9rem;
  }
}
