/* === 1. Шрифти та змінні === */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@600&family=Inter&display=swap');

:root {
  --bg-dark: #04005E;
  --bg-light: #440BD4;
  --accent: #E92EFB;
  --text-light: #fff;
  --shadow-glow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 18px;
  scroll-behavior: smooth;
  overflow-y: scroll;
}
body.modal-open {
  overflow: hidden;
}


/* === 2. Хедер і навігація === */
.header {
  position: sticky;
  top: 0;
  background-color: #000;
  padding: 10px 0;
  z-index: 999;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
}

.menu li a {
  color: var(--text-light);
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.menu li a:hover,
.menu li a.active {
  color: var(--accent);
  text-shadow: 0 0 5px var(--accent);
}

/* === 3. Перемикач мови === */
.lang-switch {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.lang-switch button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.lang-switch img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  transition: transform 0.2s ease;
  display: block;
}

.lang-switch img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--accent);
}

/* === 4. Основний контент === */
main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  margin-bottom: 60px;
  scroll-margin-top: 120px;
}

.hero {
  padding: 80px 20px 40px;
  text-align: center;
  background-color: var(--bg-dark);
}

h1 {
  font-family: 'Unbounded', cursive;
  font-size: 2rem;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.8rem;
  text-align: center;
  font-weight: bold;
}

.neonText {
  font-size: 2.5rem;
  text-shadow:
    0 0 7px #fff,
    0 0 10px #fff,
    0 0 21px #fff,
    0 0 42px var(--accent),
    0 0 82px var(--accent),
    0 0 92px var(--accent),
    0 0 102px var(--accent),
    0 0 151px var(--accent);
}

/* === 5. Кнопка === */
.neon-button {
  background-color: transparent;
  color: var(--text-light);
  padding: 10px 25px;
  font-size: 16px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  margin-top: 30px;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s ease;
}

.neon-button:hover {
  background-color: transparent;
  border-color: var(--bg-light);
  color: var(--accent);
  box-shadow: 0 0 15px var(--bg-light), 0 0 25px var(--accent);
}

/* === 6. Картки === */
.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.card {
  background-color: #12012a;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 10px #0e0333;
  color: white;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--accent);
}

.card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.text {
  margin-top: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  line-height: 1.5;
}

/* === 7. Модальне вікно === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 80px; /* Відступ від верху */
  background-color: rgba(0, 0, 0, 0.8);

  display: flex;
  align-items: flex-start; /* Вирівнює по верхньому краю */
  justify-content: center;

  overflow-y: auto; /* Прокрутка при великому вмісті */
  z-index: 10001;
}


.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #120032;
  padding: 2rem;
  padding-bottom: 4rem; /* 🟣 Добавлено, чтобы не зрезались кнопки */
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  position: relative;
  color: white;
  z-index: 1001;

  /* 🟣 Добавлено для корректной прокрутки при переполнении */
  max-height: 90vh;
  overflow-y: auto;

  /* 🟣 Обеспечивает вертикальное распределение (если нужно) */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Или space-between, если хочешь "прижать" кнопки вниз */
}
/* Кнопка закрытия */
.modal-content .close-button {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 10003;
  padding: 0;
  line-height: 1;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
  .modal-content {
    padding: 4rem 1rem 2rem;
    margin-top: 90px;
  }

  .modal-content .close-button {
    top: 10px;
    right: 12px;
    font-size: 2rem;
  }
}



/* Обгортка плеєра */
.audio-wrapper {
  background-color: #120032;
  box-shadow: 0 0 16px 4px #ff00ff80;
  padding: 20px;
  border-radius: 28px;
  max-width: 420px;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Сам плеєр */
.audio-wrapper audio {
  width: 100%;
  background-color: #000; /* чорний плеєр */
  border: none;
  border-radius: 12px;
  outline: none;
  filter: invert(100%) hue-rotate(180deg) brightness(0.95); /* світлі іконки, але збережено контраст */
  box-shadow: none;
  padding: 0;
  margin: 0;
  appearance: none;
}

/* Скидання інших стилів */
.modal-content audio {
  all: unset;
  width: 100%;
  display: block;
}


/* Кнопки під плеєром */
.modal-content .modal-buttons,
.modal-content .share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.modal-content .modal-buttons button,
.modal-content .share-buttons button {
  color: #120032;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.modal-content .modal-buttons button:hover,
.modal-content .share-buttons button:hover {
  background-color: #f0f;
  color: white;
}

/* Закриття */
.close-button {
  position: absolute;
  top: 60px;
  right: 20px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

.hero-logo {
  max-width: 300px;
  margin: 0 auto 20px;
  text-align: center;
}

.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* === 8. Картки оновлень === */
.updates-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.updates-list li {
  background-color: #18003d;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 6px rgba(233, 46, 251, 0.25);
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  height: 220px;
}

.updates-list li strong {
  font-size: 16px;
  color: #fff;
  margin-bottom: 10px;
}
.update-box {
  width: 100%;
  max-width: 320px;
  background-color: #12012a;
  color: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ← прибираємо space-between */
  min-height: auto; /* ← видаляємо примусову висоту */
}

.update-box h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.update-box p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.update-box .update-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  display: block;
}
.nav-left {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 24px;
  max-height: 24px;
  margin-right: 12px;
  display: block;
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}


.modal .close-button {
  position: absolute;
  top: 80px; 
  right: 24px;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.2s ease;
}
.modal .close-button:hover {
  transform: scale(1.2);
  color: var(--accent);
}

.hidden {
  display: none;
}
.story-section {
  padding: 40px 20px;
  max-width: 960px;
  margin: 0 auto;
}
.story-card {
  background-color: #12002c;
  border-radius: 16px;
  padding: 32px 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.story-card img {
  width: 140px;            /* ЗБІЛЬШЕНО */
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.story-card h3 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: white;
}

.story-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.story-buttons button {
  background-color: #2b005c;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.story-buttons button:hover {
  background-color: #4a007f;
}
.story-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -10px;
  margin-bottom: 16px;
  color: #ccc;
  font-size: 0.95rem;
  flex-wrap: nowrap; /* ← защищает от разрыва строки */
}
.story-location img.flag-small {
  width: 24px;
  height: 16px;
  object-fit: contain;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
}
.flag-small {
  width: 24px;
  height: 16px;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
  display: inline-block; /* ДОДАЙ ЦЕ */
  vertical-align: middle; /* Щоб не сповзав вниз */
}
.custom-audio {
  background-color: #1b0033;
  border: 2px solid var(--accent);
  border-radius: 32px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--shadow-glow);
  gap: 12px;
  margin-top: 12px;
}

.custom-audio audio {
  width: 300px;
  filter: invert(100%) hue-rotate(180deg) saturate(1.2);
}

.modal-content button {
  margin-top: 16px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999; /* НИЖЕ, чем modal */
  transition: opacity 0.3s ease;
}
.overlay.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* ВЫШЕ overlay */
}
@media (max-width: 480px) {
  .modal-content h2 {
    font-size: 1.2rem;
  }
}
.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: white;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 0.6rem;
  border-radius: 6px;
  border: none;
  width: 100%;
  max-width: 100%;
  font-size: 1rem;
}
.share-title {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.share-buttons button {
  background-color: #1b0033;
  border: 2px solid var(--accent);
  border-radius: 50%;
  padding: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.share-buttons button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--accent);
}

.share-buttons svg {
  fill: white;
}
.share-title {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.share-buttons button {
  background-color: #1b0033;
  border: 2px solid var(--accent);
  border-radius: 50%;
  padding: 10px;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
  font-size: 18px;
  color: white;
}

.share-buttons button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--accent);
}

.share-buttons svg {
  fill: white;
}

.copy-status {
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .menu li a {
    display: block;
    padding: 10px 0;
  }

  /* інші адаптації — hero, .card, .text, .slider... */
}
/* Скрываем бургер на десктопе */
.burger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    background-color: black;
    width: 100%;
    z-index: 999;
    padding: 1rem;
  }

  .menu.active {
    display: flex;
  }

  .lang-switch.desktop-only {
    display: none;
  }

  .lang-switch-mobile {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
}


@media (max-width: 480px) {
  .modal-content h2 {
    font-size: 1.2rem;
  }

  .share-buttons {
    gap: 8px;
  }


  .share-buttons button {
    width: 42px;
    height: 42px;
    padding: 8px;
  }

  .share-buttons svg {
    width: 18px;
    height: 18px;
  }

  .share-title {
    font-size: 1rem;
  }
}
.fairytale-text {
  max-width: 600px;
  margin: auto;
  padding: 20px;
  line-height: 1.8;
  font-size: 1.05rem;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.course-card {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}
.btn-detail,
.btn-signup {
  padding: 10px 16px;
  margin: 6px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
}

.btn-detail {
  background-color: #ffd700;
  color: black;
}

.btn-signup {
  background-color: #0077ff;
  color: white;
}
#signupModal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: rgba(0,0,0,0.8);
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

#signupModal.active {
  display: flex;
}

/* Кнопка закрытия модалки — фіолетова */
.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #cc66ff; /* фіолетовий */
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1001;
}

.close-button:hover {
  color: #e7b3ff;
}
/* Фоновий затемнений модал */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  z-index: 1000;
}

/* Контент модалки */
.modal-content {
  background: #111111; /* темний фон */
  color: #ffffff;
  padding: 2rem;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(204, 102, 255, 0.4);
  position: relative;
}

/* Статус копіювання */
.copy-status {
  margin-top: 10px;
  color: #cc66ff;
  font-size: 0.9rem;
}
.module {
  margin-top: 2rem;
}

.module-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
}

.course-page .signup-button {
  text-align: center;
  margin-top: 2rem;
}

.neon-button {
  background-color: #7c3aed;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.neon-button:hover {
  background-color: #a855f7;
}
.workshop-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.workshop-slider .card {
  scroll-snap-align: start;
  min-width: 300px;
  flex: 0 0 auto;
}
.download-block {
  text-align: center;
  margin: 60px auto;
  max-width: 600px;
}

.download-block h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.download-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.download-button {
  display: inline-block;
  background-color: #7c3aed;
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-glow);
}

.download-button:hover {
  background-color: #a855f7;
  box-shadow: 0 0 15px var(--accent);
}
/* === ГАЛЕРЕЯ ПОД НОВОСТЯМИ === */
.gallery * {
  font-family: Nunito, sans-serif;
}

.gallery .swiper-container {
  width: 100%;
  height: 100%;
}

.gallery img {
  object-fit: cover;
}

.gallery .responsive-container-block {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
}

.gallery .responsive-container-block.bigContainer {
  padding: 10px 20px;
}

.gallery .responsive-container-block.Container {
  max-width: 1320px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px auto;
}

.gallery .responsive-container-block.cardContainer {
  overflow-x: visible;
}

.gallery .text-blk.headingText {
  font-size: 25px;
  line-height: 34px;
  font-weight: 700;
  color: #eaa947;
  margin-bottom: 10px;
  text-align: center;
}

.gallery .swiper-slide {
  display: flex;
  justify-content: center;
}

.gallery .mainImg {
  width: 100%;
  height: 420px;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.gallery .mainImg:hover {
  transform: translateY(-8px);
}

.gallery .swiper-pagination {
  position: static;
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.gallery .swiper-container.mySwiper {
  overflow-y: hidden;
  padding-top: 20px;
}

@media (max-width: 1024px) {
  .gallery .mainImg {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .gallery .responsive-container-block.Container {
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .gallery .swiper-slide {
    justify-content: center;
  }

  .gallery .mainImg {
    height: 300px;
  }

  .gallery .text-blk.headingText {
    font-size: 20px;
  }
}

@media (max-width: 500px) {
  .gallery .mainImg {
    height: 240px;
  }

  .gallery .text-blk {
    font-size: 16px;
    line-height: 1.4;
  }
}
