/* Reset and base styles  */
* {
  padding: 0px;
  margin: 0px;
  border: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Links */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
  text-decoration: none;
}

/* Common */

aside,
nav,
footer,
header,
section,
main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-size: inherit;
  font-weight: inherit;
}

ul {
  list-style: disc; /* включает стандартные точки */
  padding-left: 20px; /* убирает стандартный отступ */
  margin-left: 0; /* убирает внешний отступ */
}

ul li {
  padding-left: 0px; /* если нужно чуть отступить текст от точки */
}

img {
  vertical-align: top;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal;
}

/* Form */

input,
textarea,
button,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: transparent;
}

input::-ms-clear {
  display: none;
}

button,
input[type='submit'] {
  display: inline-block;
  box-shadow: none;
  background-color: transparent;
  background: none;
  cursor: pointer;
}

input:focus,
input:active,
button:focus,
button:active {
  outline: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

label {
  cursor: pointer;
}

legend {
  display: block;
}

input[type='file'] {
  max-width: 100%;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 992px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

body {
  font-family: 'REM', sans-serif;
  background: #09030c;
}

.tx-16 {
  color: #f1f1f1;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.tx-32 {
  color: #fff;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 38.4px */
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .tx-32 {
    font-size: 20px;
  }
}

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

.mb-30 {
  margin-bottom: 30px;
}

.thrillergameszone-frame-blue {
  padding: 60px 40px;
  border-radius: 30px;
  background: linear-gradient(75deg, #1e0046 9.6%, #22018e 100.71%);
}

/* header */
.thrillergameszone-header {
  background: #09030c;
  padding: 18px 0;
  position: relative;
  z-index: 100;
}

.thrillergameszone-header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.thrillergameszone-header__logo img {
  width: 257px;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.thrillergameszone-header-navigation__list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.thrillergameszone-header-navigation__list a {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.thrillergameszone-header-navigation__list a:hover {
  opacity: 0.75;
}

.thrillergameszone-language-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 2px solid #5a12a1;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
}

.thrillergameszone-language-btn:hover {
  transform: scale(1.03);
}

.thrillergameszone-language-btn .flag {
  width: 20px;
  height: 20px;
}

.thrillergameszone-language-btn .arrow img {
  width: 10px;
  height: auto;
}

.thrillergameszone-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1000;
}

.thrillergameszone-burger span {
  width: 24px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.thrillergameszone-burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.thrillergameszone-burger.active span:nth-child(2) {
  opacity: 0;
}
.thrillergameszone-burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1100px) {
  .thrillergameszone-header__logo img {
    width: 150px;
  }

  .thrillergameszone-header-navigation__list {
    gap: 8px;
  }

  .thrillergameszone-header-navigation__list a {
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: 0.3px;
  }

  .thrillergameszone-language-btn {
    padding: 3px 10px;
    font-size: 11px;
    gap: 6px;
  }

  .thrillergameszone-language-btn .flag {
    font-size: 16px;
  }

  .thrillergameszone-language-btn .arrow img {
    width: 8px;
  }

  .thrillergameszone-header__wrapper {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .thrillergameszone-header {
    padding: 30px 0;
  }
  .thrillergameszone-header__wrapper {
    justify-content: flex-end;
    gap: 16px;
    position: relative;
  }

  .thrillergameszone-burger {
    display: flex;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .thrillergameszone-header__logo {
    margin-left: 60px;
  }

  .thrillergameszone-header__logo img {
    width: 204px;
    height: 20px;
  }

  .thrillergameszone-header-navigation {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background: #09030c;
    border-radius: 0 0 12px 12px;
    padding: 24px 20px;
    animation: fadeDown 0.3s ease forwards;
  }

  .thrillergameszone-header-navigation.active {
    display: flex;
    justify-content: center;
  }

  .thrillergameszone-header-navigation__list {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* hero section */

.thrillergameszone-hero {
  padding-top: 60px;
  padding-bottom: 60px;
}

.thrillergameszone-hero__container {
  background: url('/thrillergameszone-img/thrillergameszone-hero-bg-desk.webp')
    center/cover no-repeat;
  border-radius: 30px;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thrillergameszone-hero__container h1 {
  color: #fff;
  -webkit-text-stroke: 1px #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 120%;
  text-transform: uppercase;
  max-width: 900px;
  margin: 0 auto 30px;
}

.thrillergameszone-hero__container p {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  border-radius: 20px;
  background: rgba(89, 75, 111, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 25px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.thrillergameszone-gradient-btn {
  position: relative;
  border: 1px solid #57a5ff;
  background: linear-gradient(90deg, #1751ce 0%, #1cf8cc 100%);
  box-shadow: 0 0 15.6px 0 rgba(22, 106, 229, 0.7);
  border-radius: 100px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 40px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.thrillergameszone-gradient-btn:hover {
  transform: scale(1.05);
}

.thrillergameszone-gradient-btn::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 40px;
  height: 300px;
  background: #fff;
  opacity: 0.5;
  transform: rotate(45deg);
  animation: shine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    transform: translateX(0) rotate(45deg);
  }
  30%,
  100% {
    transform: translateX(350px) rotate(45deg);
  }
}

@media (max-width: 1200px) {
  .thrillergameszone-hero__container {
    background: url('/thrillergameszone-img/thrillergameszone-hero-bg-desk.webp')
      center/cover no-repeat;
    padding: 50px 16px;
  }

  .thrillergameszone-hero__container h1 {
    font-size: 36px;
  }

  .thrillergameszone-hero__container p {
    font-size: 16px;
    padding: 16px 20px;
  }
}

@media (max-width: 768px) {
  .thrillergameszone-hero {
    padding-top: 20px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .thrillergameszone-hero__container {
    background: url('/thrillergameszone-img/thrillergameszone-hero-bg-mb.webp')
      center center / cover no-repeat;
    border-radius: 20px;
    padding: 60px 40px;
  }

  .thrillergameszone-hero__container h1 {
    font-size: 24px;
    line-height: 120%;
    margin-bottom: 24px;
  }

  .thrillergameszone-hero__container p {
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    padding: 14px 16px;
    margin-bottom: 30px;
  }

  .thrillergameszone-gradient-btn {
    font-size: 16px;
    padding: 12px 30px;
  }
}

/* frame blue */

.thrillergameszone-frame-blue {
  padding: 60px 40px;
  border-radius: 30px;
  background: linear-gradient(75deg, #1e0046 9.6%, #22018e 100.71%);
}

@media (max-width: 780px) {
  .thrillergameszone-frame-blue {
    padding: 60px 16px;
  }
}

/* game section */
.thrillergameszone-game {
  padding: 80px 0;
}

.thrillergameszone-frame-blue {
  /* background: linear-gradient(180deg, #341866 0%, #3a1785 100%); */
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Контейнер с текстом и обложкой */
.thrillergameszone-game__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.thrillergameszone-game__text {
  flex: 1 1 45%;
  color: #fff;
}

.thrillergameszone-game__text h2 {
  margin-bottom: 24px;
}

.thrillergameszone-game__cover {
  flex: 1 1 45%;
  max-width: 480px;
  border-radius: 12px;
  display: block;
}

/* --- Игра с фоном --- */
.thrillergameszone-game__iframe-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;

  /* теперь фон задаётся через background */
  background-image: url('/thrillergameszone-img/thrillergameszone-cold-space-iframe-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  height: 642px;
}

/* Убираем img внутри, если было */
.thrillergameszone-game__iframe-bg img {
  display: none;
}

/* Кнопка Play Demo */
.thrillergameszone-game__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
}

/* iframe */
.thrillergameszone-game__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
  display: none;
  z-index: 1;
}

/* --- Адаптив --- */
@media (max-width: 900px) {
  .thrillergameszone-game__info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .thrillergameszone-game__iframe-box {
    min-height: 580px; /* делаем выше на планшетах */
    background-position: center top;
  }
}

@media (max-width: 600px) {
  .thrillergameszone-game__iframe-box {
    min-height: 720px; /* ещё выше для мобилок */
    background-position: center top;
    border-radius: 16px;
  }

  .thrillergameszone-game__play-btn {
    font-size: 22px;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .thrillergameszone-frame-blue {
    padding: 30px;
  }

  .thrillergameszone-game__text h2 {
    font-size: 24px;
  }

  .thrillergameszone-game__text p {
    font-size: 14px;
  }

  .thrillergameszone-game__cover {
    max-width: 300px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .thrillergameszone-game {
    padding: 40px 20px;
  }

  .thrillergameszone-game__info {
    flex-direction: column;
    text-align: center;
  }

  .thrillergameszone-game__cover {
    width: 296px;
    max-width: 100%;
  }

  .thrillergameszone-game__iframe-box {
    border-radius: 16px;
  }

  .thrillergameszone-game__play-btn {
    font-size: 16px;
    padding: 12px 30px;
  }
}

/*  */

.thrillergameszone-advantages {
  padding: 80px 0;
  text-align: center;
}

.thrillergameszone-advantages__title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 50px;
}

.thrillergameszone-advantages__list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
}

.thrillergameszone-advantages__item {
  flex: 1 1 300px;
  max-width: 360px;
  border-radius: 20px;
  border: 6px solid #4c70be;
  background: linear-gradient(89deg, #260c34 0.66%, #1c0172 100%);
  padding: 30px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.thrillergameszone-advantages__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.thrillergameszone-advantages__subtitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.gradient-text {
  background: linear-gradient(90deg, #9648ff 0%, #56bbff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.thrillergameszone-advantages__text {
  font-size: 15px;
  line-height: 150%;
  opacity: 0.9;
}

/* Tablet */
@media (max-width: 992px) {
  .thrillergameszone-advantages__title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .thrillergameszone-advantages__item {
    flex: 1 1 calc(50% - 20px);
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .thrillergameszone-advantages {
    padding: 60px 20px;
  }

  .thrillergameszone-advantages__list {
    flex-direction: column;
    gap: 20px;
  }

  .thrillergameszone-advantages__item {
    flex: 1 1 100%;
    padding: 24px 16px;
  }

  .thrillergameszone-advantages__subtitle {
    font-size: 16px;
  }

  .thrillergameszone-advantages__text {
    font-size: 14px;
  }
}
/* уникальный фон-контейнер ТОЛЬКО для контактной секции */
.thrillergameszone-contact__frame-blue {
  background: linear-gradient(180deg, #1b007a 0%, #2a009c 100%);
  border-radius: 30px;
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  flex-wrap: nowrap;
}

/* контент слева */
.thrillergameszone-contact__content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.thrillergameszone-contact__title {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.thrillergameszone-contact__email {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
}

.thrillergameszone-contact__icon img {
  width: 22px;
  height: 22px;
}

.thrillergameszone-contact__email a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.thrillergameszone-contact__email a:hover {
  opacity: 0.8;
}

/* форма */
.thrillergameszone-contact__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.thrillergameszone-contact__form label {
  color: #d5d5ff;
  font-size: 14px;
  font-weight: 600;
}

.thrillergameszone-contact__form input,
.thrillergameszone-contact__form textarea {
  width: 100%;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 12px 16px;
  font-size: 15px;
  outline: none;
  resize: none;
}

.thrillergameszone-contact__form input::placeholder,
.thrillergameszone-contact__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* кнопка */
.thrillergameszone-contact__btn {
  align-self: flex-start;
  border-radius: 100px;
  padding: 14px 36px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #1751ce 0%, #1cf8cc 100%);
  border: none;
  box-shadow: 0 0 16px rgba(22, 106, 229, 0.6);
  transition: transform 0.3s, box-shadow 0.3s;
}

.thrillergameszone-contact__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(22, 106, 229, 0.8);
}

/* изображение справа */
.thrillergameszone-contact__image {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
}

.thrillergameszone-contact__image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

/* планшет */
@media (max-width: 1200px) {
  .thrillergameszone-contact__frame-blue {
    gap: 40px;
    padding: 40px;
  }
}

/* мобильная версия */
@media (max-width: 900px) {
  .thrillergameszone-contact__frame-blue {
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    gap: 30px;
  }

  .thrillergameszone-contact__content {
    text-align: center;
  }

  .thrillergameszone-contact__email {
    justify-content: center;
  }

  .thrillergameszone-contact__btn {
    align-self: center;
  }

  .thrillergameszone-contact__image img {
    width: 296px;
    max-width: 100%;
  }
  .thrillergameszone-contact__form label {
    text-align: left;
  }
}

.thrillergameszone-footer {
  background: #09030c;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.thrillergameszone-footer__container {
  margin: 0 auto;
}

.thrillergameszone-footer__text {
  font-size: 15px;
  line-height: 160%;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thrillergameszone-footer__text p {
  margin-bottom: 16px;
}

.thrillergameszone-footer__age {
  display: inline-block;
  border: 2px solid #fff;
  border-radius: 50%;
  padding: 4px 8px;
  font-weight: 700;
  margin-left: 10px;
}

.thrillergameszone-footer__nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.thrillergameszone-footer__nav a {
  color: #5ed3ff;
  text-decoration: none;
  font-size: 15px;
  transition: opacity 0.3s ease;
}

.thrillergameszone-footer__nav a:hover {
  opacity: 0.8;
}

.thrillergameszone-footer__copyright {
  font-size: 14px;
  opacity: 0.85;
}

/* ===== MOBILE ===== */
@media (max-width: 700px) {
  .thrillergameszone-footer__nav {
    align-items: center;
    justify-content: space-around;
    gap: 10px;
  }

  .thrillergameszone-footer__text {
    font-size: 14px;
  }

  .thrillergameszone-footer__age {
    margin-left: 6px;
  }

  .thrillergameszone-footer__text p {
    margin-bottom: 10px;
  }
}

/* form send sms */

.thrillergameszone-form-message {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 8px;
  background: rgba(86, 187, 255, 0.15);
  color: #fff;
  font-size: 15px;
  text-align: center;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* star bg */
/* сам секционный блок (герой) */
#stars-bg {
  position: relative;
  overflow: hidden; /* обрезает звёзды внутри секции */
  isolation: isolate; /* гарантирует, что z-index не вылезет наружу */
  z-index: 0; /* звёзды будут фоном, не поверх других блоков */
}

/* слой со звёздами — строго внутри секции */
#particles-stars {
  position: absolute;
  inset: 0; /* top/left/right/bottom: 0 */
  z-index: -1; /* делает звёзды фоном */
  pointer-events: none; /* не блокируют клики */
}

/* контент секции — поверх */
#stars-bg .thrillergameszone-hero__container {
  position: relative;
  z-index: 1; /* текст, кнопки и т.д. выше звёзд */
}
