body {
  font-family: "Noto Serif", sans-serif;
}

a {
  text-decoration: none;
  font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6,
ul,
p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: "Noto Serif", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #8a4163;
}

/* Анімація появи всіх елементів при завантаженні */

/* Header */

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: #8a4163;
}

/* Hero */

.hero {
  display: flex;
  background-image: url("./img/HeroBG.png");
  position: relative;
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  padding-top: 50px;
  padding-bottom: 50px;
  overflow: hidden; /* важливо */
  justify-content: center;
  align-items: center;
  gap: 110px;
}

.heroMainTex {
  color: #493508;
  font-family: "Noto Serif";
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
  line-height: normal;
  max-width: 613px;
  padding-bottom: 10px;
}

.heroListUl {
  text-align: center;
}

.heroTex {
  color: #493508;
  font-family: "Noto Serif";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  padding-bottom: 30px;
}

.heroButton {
  border-radius: 15px;
  border: 2px solid #493508;
  color: #493508;
  font-family: "Noto Serif";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 15px 20px;
  background-color: transparent;
}

.heroListItem {
  margin-bottom: 15px;
}

.HeroIMG {
  transition: opacity 0.3s ease;
  opacity: 1;
  margin-bottom: 50px;
}
.HeroIMG.fade-out {
  opacity: 0;
}

/* About */

.about {
  border-radius: 20px;
  background: #f6d6de;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  max-width: 976px;
  justify-self: center;
  padding-top: 50px;
  padding-bottom: 20px;
  padding-left: 40px;
  padding-right: 40px;
  margin-bottom: 30px;
}

.aboutMainTex {
  color: #f6d6de;
  font-family: "Noto Serif";
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  padding-bottom: 50px;
}

.aboutList {
  display: flex;
  gap: 40px;
}

.aboutListItem {
}

.aboutListItemText {
  color: #493508;
  font-family: "Noto Serif";
  font-size: 21px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  max-width: 500px;
  text-align: center;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

.social li {
  cursor: pointer;
}

/* Kurses */

.kurses {
}

.KursesText {
  color: #f6d6de;
  text-align: center;
  margin-bottom: 50px;
}

.KursesList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 20px;
  list-style: none;
  margin: 0 auto;
  max-width: 1000px;
}

/* Картка */
.KursesListItem {
  background-color: #fddde6;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  padding: 20px;
  padding-bottom: 25px;
  flex-direction: column;
  justify-content: space-between;

  /* Анімація */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.KursesListItemText {
  color: #493508;
  font-family: "Noto Serif";
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 15px;
}

.KursesListItemTex {
  margin-bottom: 15px;
}

.KursesListItemTextPrice {
  color: #493508;
  font-family: "Noto Serif";
  font-size: 15px;
  margin-top: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 30px;
}

.KursesListItemFisButton {
  border-radius: 5px;
  border: 2px solid #493508;
  padding: 15px 70px;
  background-color: transparent;
  margin-bottom: 15px;
  color: #493508;
  font-family: "Noto Serif";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}


.KursesListItemSeccButton {
    border-radius: 5px;
  border: 2px solid #493508;
  background: #493508;
  padding: 15px 70px;
  color: #f6e5ff;
  font-family: "Noto Serif";
  width: 100%;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.KursesListItemSecButton {
  border-radius: 5px;
  border: 2px solid #493508;
  background: #493508;
  padding: 15px 80px;
  color: #f6e5ff;
  font-family: "Noto Serif";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* прихована за замовчуванням */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.visible {
  display: flex; /* показуємо, коли є .visible */
}

.modal-window {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Revievs */

.revievsTex {
  color: #f6d6de;
  font-family: "Noto Serif";
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  margin-bottom: 30px;
}

.testimonial-slider {
  max-width: 700px;
  margin: auto;
  padding: 40px;
  background-color: #f6d6de;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  margin-bottom: 100px;
}

.testimonial-content {
  color: #493508;
  text-align: center;
  font-family: "Noto Serif";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  max-width: ;
  line-height: normal;
  transition: opacity 0.3s ease;
}

.testimonial-author {
  font-weight: bold;
  color: #8a4163;
}

.slider-buttons {
  margin-top: 30px;
}

.slider-buttons button {
  color: #493508;
  font-family: "Noto Serif";
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding: 5px 27px;
  border-radius: 5px;
  border: 2px solid #493508;
  background-color: transparent;
}

.slider-buttons button:hover {
  background-color: #493508;
  color: #f6e5ff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* FAQ */

.faq-section {
  max-width: 800px;
  margin: auto;
  background-color: #f6d6de;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
}

.faq-section h2 {
  color: #8a4163;
  text-align: center;
  margin-bottom: 25px;
}

.faq-item {
  border-bottom: 1px solid #8a4163;
  padding: 15px 0;
}

.faq-question {
  font-weight: bold;
  color: #8a4163;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: max-height 0.4s ease, opacity 0.4s ease 0.1s,
    transform 0.4s ease 0.1s, margin-top 0.4s ease;
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px; /* або більше, якщо треба */
  opacity: 1;
  transform: translateY(0);
  margin-top: 10px;
}

.faq-toggle {
  font-size: 20px;
  color: #8a4163;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Footer */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
  background: #f6d6de;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25) inset;
}

.footerList {
  margin-left: auto;
  margin-right: auto;
}

/* animations */

.heroButton:hover {
  background-color: #493508;
  color: #f6e5ff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.KursesListItemFisButton:hover {
  background-color: #493508;
  color: #f6e5ff;
  border: 2px solid #493508;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.KursesListItemSecButton:hover {
  background-color: transparent;
  border: 2px solid #493508;
  color: #493508;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.KursesListItemSeccButton:hover {
  background-color: transparent;
  border: 2px solid #493508;
  color: #493508;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.KursesListItem:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}

/* --- При завантаженні --- */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-on-load {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}
.delay-4 {
  animation-delay: 0.8s;
}
.delay-5 {
  animation-delay: 1s;
}
.delay-6 {
  animation-delay: 1.2s;
}

/* --- При прокрутці (reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


  .modal {
    display: none; /* приховано за замовчуванням */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 300px;
    width: 100%;
    animation: fadeIn 0.3s ease;
  }

  .modal-content h2 {
    margin-bottom: 20px;
  }

  .contact-btn {
    display: block;
    padding: 12px;
    margin: 10px 0;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    color: white;
    transition: 0.3s;
  }

  .telegram {
    background: #0088cc;
  }
  .telegram:hover {
    background: #0072a1;
  }

  .whatsapp {
    background: #25d366;
  }
  .whatsapp:hover {
    background: #1ca955;
  }

  .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
  }

  @keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
  }