/* === Общие стили === */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f1f2f6;
  color: #333;
  line-height: 1.6;
}

/* Сброс ссылок и изображений */
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Верхняя плашка +18 === */
.age-banner {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(90deg, #ff3b3b, #ff6b6b);
  color: #fff;
  text-align: center;
  font-weight: bold;
  padding: 8px 0;
  z-index: 9999;
  font-size: 1rem;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* === Шапка сайта === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #1e1e1e;
  color: #fff;
  position: sticky;
  top: 40px; /* ниже плашки +18 */
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}

header:hover {
  background: #2a2a2a;
}

header img {
  height: 60px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  color: #fff;
  font-weight: 600;
  transition: color 0.3s, transform 0.3s;
}

header nav ul li a:hover {
  color: #004cff;
  transform: scale(1.05);
}

/* === Главная секция с слотом === */
.slot-section {
  text-align: center;
  padding: 140px 20px 80px;
  background: url("../images/book-bg.jpg") no-repeat center center;
  background-size: cover;
  color: #fff;
  position: relative;
}

.slot-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.slot-section * {
  position: relative;
  z-index: 2;
}

.slot-section h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.slot-section p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

/* === Кнопка Play Now === */
.play-button {
  display: inline-block;
  padding: 18px 40px;
  font-size: 1.6rem;
  background: linear-gradient(90deg, #290195, #0073df);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  margin-top: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.play-button:hover {
  background: linear-gradient(90deg, #0073df, #290195);
  transition: 0.5s;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* === Описание игры === */
.about-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.about-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #222;
}

.about-section p {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.8;
}

/* === Iframe слот === */
iframe {
  width: 100%;
  max-width: 1000px;
  height: 600px;
  border: none;
  margin: 30px auto 0;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

/* === Адаптивность === */
@media (max-width: 1024px) {
  .slot-section h1 {
    font-size: 2.5rem;
  }
  .slot-section p {
    font-size: 1.2rem;
  }
  .play-button {
    font-size: 1.4rem;
    padding: 16px 35px;
  }
  iframe {
    height: 500px;
  }
}

@media (max-width: 780px) {
  .slot-section {
    padding: 120px 15px 60px;
  }
  .slot-section h1 {
    font-size: 2rem;
  }
  .slot-section p {
    font-size: 1rem;
  }
  .play-button {
    font-size: 1.2rem;
    padding: 14px 30px;
  }
  iframe {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .slot-section h1 {
    font-size: 1.7rem;
  }
  .slot-section p {
    font-size: 0.95rem;
  }
  .play-button {
    font-size: 1rem;
    padding: 12px 25px;
  }
  iframe {
    height: 300px;
  }
  .about-section {
    padding: 40px 15px;
  }
}

/* Размещение символов рядом с логотипом */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #212020;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #1900ff;
  transition: all 0.3s ease;
}

.burger.toggle div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.toggle div:nth-child(2) {
  opacity: 0;
}

.burger.toggle div:nth-child(3) {
  transform: rotate(-48deg) translate(6px, -6px);
}

/* Адаптив */
@media screen and (max-width: 880px) {
  .nav-links {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    background-color: rgba(20, 20, 20, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    gap: 30px;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .burger {
    display: flex;
  }
}
/* Символы в секции слота */
.slot-section .neon-center {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.slot-section {
  background: url("../images/domendomen-back.png") no-repeat center center;
  background-size: cover;
  height: 100vh; /* 100% высоты окна */
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center; /* выравнивание по вертикали */
  align-items: center; /* выравнивание по горизонтали */
  padding: 20px;
}

/* Неоновые символы */
/* Неоновые символы с анимацией */
.neon-symbols {
  font-size: 5rem; /* сделали больше */
  color: #0ff;
  text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #0ff;
  margin: 0 10px;
  margin: 0 25px;
  display: inline-block;
  transition: transform 0.7s ease; /* плавная анимация */
}

/* Анимация вращения при наведении */
.neon-symbols:hover {
  transform: rotate(360deg);
}

/* Центрирование символов в секции */
.slot-section .neon-center {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
}

footer {
  background-color: #111;
  color: #efecda;
  text-align: center;
  padding: 30px 20px;
  font-size: 1rem;
  line-height: 1.6;
  border-top: 2px solid #0d00c9;
}

footer a {
  color: #0015ff;
  text-decoration: none;
  margin: 0 10px;
  transition: all 0.3s ease;
}

footer a:hover {
  text-shadow: 0 0 5px #0015ff, 0 0 10px #0015ff, 0 0 20px #0015ff;
  transform: scale(1.05);
}

@media (max-width: 780px) {
  footer {
    font-size: 0.8rem;
    padding: 20px 10px;
  }

  footer a {
    display: block;
    margin: 5px 0;
  }
}

/* Features Section */
.features-section {
  background-color: #0d0d0d;
  color: #3267ed;
  padding: 60px 20px;
  text-align: center;
}

.features-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

/* Сетка для карточек */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  gap: 30px;
  justify-content: center; /* Центрируем всю сетку */
  justify-items: center; /* Центрируем карточки в ячейках */
  align-items: start; /* Выравнивание по верху */
  width: 100%;
}

/* Современные карточки с анимацией волны */
.feature {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  padding: 30px 20px;
  max-width: 350px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Псевдоэлемент для волны */
.feature::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(47, 0, 255, 0.15);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s ease;
}

/* Подъём и волна при наведении */
.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(47, 0, 255, 0.3);
}

.feature:hover::before {
  transform: rotate(45deg) translateX(100%);
}

/* Символ на карточке */
.feature-symbol {
  display: block;
  font-size: 3rem;
  margin: 0 auto 15px auto;
  color: #375af9;
}

/* Заголовок и текст */
.feature h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.feature p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 780px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-section h2 {
    font-size: 2rem;
  }

  .feature h3 {
    font-size: 1.5rem;
  }

  .feature-symbol {
    font-size: 2.5rem;
  }

  .feature p {
    font-size: 0.9rem;
  }
}
/* About Site Section */
.about-site-section {
  background-color: #252525;
  color: #375af9;
  padding: 5%;
  max-width: 100%;
  margin: 0 auto;
}

.about-site-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
}

.about-item {
  margin-bottom: 30px;
}

.about-item h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.about-item p {
  font-size: 1rem;
  line-height: 1.6;
}

.about-item a {
  color: #375af9;
  text-decoration: underline;
  transition: all 0.3s ease;
}

.about-item a:hover {
  text-shadow: 0 0 5px #375af9, 0 0 10px #375af9;
}

/* Адаптив */
@media (max-width: 780px) {
  .about-site-section h2 {
    font-size: 2rem;
  }

  .about-item h3 {
    font-size: 1.5rem;
  }

  .about-item p {
    font-size: 0.9rem;
  }
}

/* FAQ Section full width */
.faq-section {
  max-width: 100%;
  background-color: #0d0d0d;
  color: #375af9;
  padding: 60px 20px;
}

.faq-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
}

/* Аккордеон элементы */
.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(43, 0, 255, 0.452);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #375af9;
  text-align: left;
  font-size: 1.5rem;
  padding: 15px 0;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  position: relative;
}

/* Стрелка справа */
.faq-question::after {
  content: "▼";
  position: absolute;
  right: 0;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* Стрелка при открытом состоянии */
.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-question:hover {
  text-shadow: 0 0 5px #375af9, 0 0 10px #375af9;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding-left: 15px;
}

.faq-answer p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
}

/* Адаптивность */
@media (max-width: 780px) {
  .faq-section h2 {
    font-size: 2rem;
  }

  .faq-question {
    font-size: 1.3rem;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }
}

.info-section {
  max-width: 100%;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  background: #1a1a1a; /* Тёмный фон страницы */
}

.info-section .container {
  max-width: 900px; /* Ограничение ширины */
  background: rgba(30, 30, 30, 0.85); /* Полупрозрачный темный блок */
  backdrop-filter: blur(6px); /* Лёгкий стеклянный эффект */
  -webkit-backdrop-filter: blur(6px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  color: #e0e0e0; /* Светло-серый текст */
  font-family: "Arial", sans-serif;
}

.info-section h1,
.info-section h2 {
  text-align: center;
  color: #f5f5f5;
  margin-bottom: 20px;
}

.info-section h1 {
  font-size: 2.2rem;
}

.info-section h2 {
  font-size: 1.6rem;
  margin-top: 30px;
}

.info-section p,
.info-section ul {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.info-section ul li {
  margin-left: 20px;
  margin-bottom: 8px;
}

.info-section a {
  color: #a8c0ff; /* мягкий синий для ссылок */
  text-decoration: underline;
}

.info-section .footer-note {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 780px) {
  .info-section .container {
    padding: 30px 20px;
  }

  .info-section h1 {
    font-size: 1.8rem;
  }

  .info-section h2 {
    font-size: 1.3rem;
  }

  .info-section p,
  .info-section ul {
    font-size: 0.9rem;
  }
}

.age-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  /* Сначала скрыт */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.age-popup.show {
  opacity: 1;
  visibility: visible;
}

.age-popup-content {
  background: #111;
  color: #fff;
  padding: 30px 50px;
  text-align: center;
  border-radius: 12px;
  max-width: 90%;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.age-popup-content p {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.age-popup-content button {
  padding: 12px 25px;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background-color: #2e23f5;
  color: #111;
  transition: background 0.3s ease;
}

.age-popup-content button:hover {
  background-color: #3b4fff;
}
