/* Общий стиль */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  background: #0d001a;
  overflow-x: hidden;
}

/* Фон */
.animated-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #6a11cb, #6e0872, #2c003e, #1a0033); /*#ff3ac7*/
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  z-index: -2;
}
@keyframes gradient {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Частицы */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

/* Hero */
.hero {
  text-align: center;
  padding: 120px 20px 100px;
}
.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 15px;
}
.tagline {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}
.intro {
  max-width: 650px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}
.ballerina-wrapper-ua {
  position: relative;
  display: flex;
  flex-direction: column; /* картинка сверху, текст снизу */
  align-items: center;    /* по горизонтали центр */
  justify-content: center; /* по вертикали центр */
  min-height: 75vh; /* занимает почти весь экран, можно подправить */
  text-align: center;  
  margin-bottom: -30%;
}
.ballerina-wrapper-ru {
  position: relative;
  display: flex;
  flex-direction: column; /* картинка сверху, текст снизу */
  align-items: center;    /* по горизонтали центр */
  justify-content: center; /* по вертикали центр */
  min-height: 82vh; /* занимает почти весь экран, можно подправить */
  text-align: center;  
  margin-bottom: -30%;
}
.ballerina-wrapper-de {
  position: relative;
  display: flex;
  flex-direction: column; /* картинка сверху, текст снизу */
  align-items: center;    /* по горизонтали центр */
  justify-content: center; /* по вертикали центр */
  min-height: 82vh; /* занимает почти весь экран, можно подправить */
  text-align: center;  
  margin-bottom: -30%;


}
.ballerina-text {
  color: #ffffff !important;
}
.ballerina-img {
  max-width: 300px;
  width: 25vw;
  height: auto;
  margin-top: -20%;
  margin-left: 40%;
  display: block;
}
.uaballerina-img {
  max-width: 300px;
  width: 25vw;
  height: auto;
  margin-top: -20%;
  margin-left: 40%;
  display: block;
}
/* Планшеты */
@media (max-width: 1024px) {
  .ballerina-img {
    width: 60vw;
    margin-top: -63%;
    margin-left: 32%;
  }
  .ballerina-wrapper-de{
    margin-bottom: -80%;
  }
  .ballerina-wrapper-ru{
    margin-bottom: -80%;
  }
  .ballerina-wrapper-ua{
    margin-bottom: -70%;
  }
  .uaballerina-img {
    width: 60vw;
    margin-top: -58%;
    margin-left: 32%;
  }
  .despeech-bubble {
    position: absolute;
    margin-left: -5%;
  }
   .uaspeech-bubble {
    position: absolute;
    margin-left: -5%;
  }
   .ruspeech-bubble {
    position: absolute;
    margin-left: -5%;
  }
}

/* Мобильные */
@media (max-width: 768px) {
  .ballerina-img {
    width: 30vw;
    margin-top: -48%;
    margin-left: 30%;    
  }
  .uaballerina-img {
    width: 30vw;
    margin-top: -37%;
    margin-left: 31%;    
  }
  .ballerina-wrapper-ru {
    margin-bottom: -70%;
  }
  .ballerina-wrapper-de {
    margin-bottom: -70%;
  }
  .ballerina-wrapper-ua {
    margin-bottom: -58%;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .ballerina-img {
    width: 50vw;
    margin-top: 10%;
    margin-left: 43%;
  }
  .ballerina-wrapper-ru {
    margin-bottom: -50%;
  }
  .ballerina-wrapper-de {
    margin-bottom: -50%;
  }
  .ballerina-wrapper-ua {
    margin-bottom: -50%;
  }
  .uaballerina-img {
    width: 50vw;
    margin-top: 10%;
    margin-left: 43%;
  }
  .uaspeech-bubble {
    position: absolute;
    margin-left: -10%;
  }
  .despeech-bubble {
    position: absolute;
    margin-left: -10%;
  }
  .ruspeech-bubble {
    position: absolute;
    margin-left: -10%;
  }
}






/* Речевой облачок */
.ruspeech-bubble {
  position: absolute;
  top: 0; /* подстрой под руку балерины */
  left: 50%;
  transform: translateX(-50%);
  background: #ff3ac7;
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Речевой облачок */
.despeech-bubble {
  position: absolute;
  top: 0; /* подстрой под руку балерины */
  left: 50%;
  transform: translateX(-50%);
  background: #ff3ac7;
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.uaspeech-bubble {
  position: absolute;
  top: 0; /* подстрой под руку балерины */
  left: 50%;
  transform: translateX(-50%);
  background: #ff3ac7;
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* “Хвостик” облачка */
.despeech-bubble::after {
  content: '';
  position: absolute;
  bottom: -20px; /* сдвиг вниз */
  left: 69%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: #ff3ac7 transparent transparent transparent;
}
.ruspeech-bubble::after {
  content: '';
  position: absolute;
  bottom: -20px; /* сдвиг вниз */
  left: 69%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: #ff3ac7 transparent transparent transparent;
}
.uaspeech-bubble::after {
  content: '';
  position: absolute;
  bottom: -20px; /* сдвиг вниз */
  left: 70%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: #ff3ac7 transparent transparent transparent;
}

/* Адаптив под телефоны */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;  /* кнопки в столбик */
    align-items: center;     /* центрируем */
  }

  .hero-buttons .btn {
    width: 80%;  /* кнопки почти на всю ширину экрана */
    max-width: 300px;
  }
}
/* Кнопки */
.btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(45deg, #6a11cb, #ff3ac7);
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(255, 58, 199, 0.5);
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 58, 199, 0.8);
}
.btn.secondary {
  background: transparent;
  border: 2px solid #fff;
  box-shadow: none;
}
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}



/* Блок про студию */
.studio {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  text-align: left;
}

.studio h2 {
  font-size: 2.4rem;
  text-align: center;
  display: block;
  margin-bottom: 30px;
  color: #ff3ac7;
  text-shadow: 0 0 8px rgba(255,58,199,0.7);
}

.studio-intro {
  font-size: 1.2rem;
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.6;
}

.studio-block {
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.studio-block h3 {
  font-size: 1.6rem;
  color: #ff9de2;
  margin-bottom: 12px;
}

.studio-block h4 {
  font-size: 1.2rem;
  color: #ccc;
  margin: 15px 0 10px;
}

.studio-block p {
  line-height: 1.6;
  text-align: justify;
}

.styled-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0;
}

.styled-list li {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}
.card {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px 30px;
  border-radius: 20px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Галерея */
.gallery {
  padding: 80px 20px;
  text-align: center;
}
.gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}
.gallery-grid img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 58, 199, 0.6);
}

/* Контакты */
.contact {
  padding: 80px 20px;
  text-align: center;
}
.contact form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.contact label {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  gap: 5px;
}

.contact input,
.contact select {
  padding: 12px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-size: 1rem;
  transition: 0.3s;
  outline: none;
}

.contact input:focus,
.contact select:focus {
  border-color: #ff3ac7;
  box-shadow: 0 0 12px rgba(255, 58, 199, 0.6);
}


.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: auto;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: #1a1a2e;
  color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: slideDown 0.5s ease, fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}



/* Подвал */
footer {
  text-align: center;
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.9rem;
}

footer .social-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

footer .social-links a {
  font-size: 1.8rem;
  color: #ff3ac7;
  transition: transform 0.3s, color 0.3s;
}

footer .social-links a:hover {
  transform: scale(1.2);
  color: #fff;
}


/* Анимации */
.bounce {
  animation: bounce 2s infinite;
}

h2 {
  position: relative;
  display: inline-block;
  animation: glow 3s ease-in-out infinite alternate;
}
.lang-dropdown {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.lang-dropdown select {
  padding: 10px 15px;
  border-radius: 12px;
  border: 2px solid rgba(255, 58, 199, 0.6);
  background: rgba(26, 26, 46, 0.8);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.lang-dropdown select:hover,
.lang-dropdown select:focus {
  border-color: #ff3ac7;
  box-shadow: 0 0 12px rgba(255, 58, 199, 0.6);
  outline: none;
}

.teachers {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
  color: #fff;
  text-align: center;
}

.teachers h2 {
  font-size: 2.4rem;
  color: #ff3ac7;
  text-shadow: 0 0 8px rgba(255,58,199,0.7);
  margin-bottom: 40px;
}

.teachers-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.teachers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.teacher-block {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  flex: 1 1 400px;
  max-width: 450px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-align: center;
}

.teacher-photo {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #ff9de2;
  box-shadow: 0 0 12px rgba(255, 58, 199, 0.6);
}


.maps {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
  color: #fff;
  text-align: center;
}

.maps h2 {
  font-size: 2.2rem;
  color: #ff3ac7;
  text-shadow: 0 0 8px rgba(255,58,199,0.7);
  margin-bottom: 20px;
}

.address {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}


.special {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  text-align: center;
}

.special h2 {
  font-size: 2.4rem;
  color: #ff3ac7;
  text-shadow: 0 0 8px rgba(255,58,199,0.7);
  margin-bottom: 30px;
}

.special-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.special-block {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-align: left;
}

.special-block h3 {
  font-size: 1.6rem;
  color: #ff9de2;
  margin-bottom: 15px;
}
#scrollTopBtn {
  position: fixed;
  bottom: 40px;  /* отступ снизу */
  right: 40px;   /* отступ справа */
  z-index: 100;  /* чтобы была поверх всего */
  border: none;
  outline: none;
  background-color: #ff69b4; /* розовый, можешь поменять */
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 24px;
  display: none; /* изначально скрыта */
  transition: background-color 0.3s;
}

#scrollTopBtn:hover {
  background-color: #ff1493; /* тёмный розовый при наведении */
}



@keyframes glow {
  from { text-shadow: 0 0 10px #6a11cb, 0 0 20px #ff3ac7; }
  to { text-shadow: 0 0 20px #ff3ac7, 0 0 40px #6a11cb; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0);}
  40% { transform: translateY(-15px);}
  60% { transform: translateY(-7px);}
}
.pulse {
  animation: pulse 5.s infinite;
}
@keyframes pulse {
  0% {box-shadow: 0 0 0 0 rgba(255,58,199,0.7);}
  70% {box-shadow: 0 0 0 20px rgba(255,58,199,0);}
  100% {box-shadow: 0 0 0 0 rgba(255,58,199,0);}
}
