body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #1d3557;
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #357ABD;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: none;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #265b90;
}


header {
  background-color: #357ABD;
  color: white;
  padding: 15px 30px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* .lang-select {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  margin-right: 20px;
}

.lang-select i {
  color: #357ABD;
  font-size: 16px;
  margin-right: 8px;
}

.lang-select select {
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  background: transparent;
  color: #1d3557;
  font-weight: bold;
}

.lang-select select:focus {
  outline: none;
} */


.logo-section {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  margin-left: 50px;
}

.site-title {
  font-size: 1.4rem;
  font-weight: bold;
}

.auth-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  
}

.auth-links a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f7ff 100%);
  height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  z-index: 0;
}

.hero-wave-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 0;
}

.hero-wave-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-cards-container {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 40px;
  z-index: 2;
}

.hero-card {
  background: white;
  color: #1d3557;
  padding: 60px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  font-weight: bold;
  width: 160px;
  text-align: center;
  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-10px);
}

.hero-card .icon {
  font-size: 32px;
  margin-bottom: 15px;
  color: #357ABD;
  display: block;
}


.cards-container {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 40px;
  z-index: 1;
}

.card {
  background: white;
  color: #1d3557;
  padding: 80px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  font-weight: bold;
  width: 160px;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

.card .icon {
  font-size: 32px;
  margin-bottom: 15px;
  color: #357ABD;
  display: block;
}


.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}

.section {
  padding: 60px 20px;
  text-align: center;
}

.section-about {
  background-color: #ffffff;
  padding: 80px 40px;
  height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.particles-about-container {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  overflow: hidden;
}

#particles-about {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}



.about-left {
  flex: 1 1 40%;
  text-align: left;
}

.about-left h2 {
  font-size: 3rem;
  color: #357ABD;
  margin-bottom: 0;
}

.about-right {
  flex: 1 1 55%;
  text-align: left;
}

.about-right p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.choose-btn {
  background-color: #357ABD;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.choose-btn:hover {
  background-color: #265b90;
}

.directions {
  padding: 60px 30px;
  background-color: #f2f8fd;
}

.directions-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.info-card {
  background: #ffffff;
  border-top: 4px solid #357ABD;
  border-radius: 12px;
  padding: 30px 20px;
  width: 240px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.info-card .icon {
  font-size: 38px;
  margin-bottom: 15px;
  color: #357ABD;
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #1d3557;
}

.info-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}


.teachers {
  padding: 60px 30px;
  background-color: #f2f8fd;
}

.slider-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 250px;
  margin: 0 15px;
  background: #ffffff;
  border-top: 4px solid #357ABD;
  border-radius: 12px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.slide img {
  width: 100%;
  max-width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.slide h3 {
  margin: 10px 0 5px;
  color: #1d3557;
}

.slide p {
  font-size: 0.95rem;
  color: #444;
}

.slider-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.slider-buttons button {
  background-color: #357ABD;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-buttons button:hover {
  background-color: #265b90;
}

.slider-buttons i {
  font-size: 1.2rem;
}

.section-join {
  background-color: #ffffff;
  padding: 80px 40px;
  height: 500px;
  display: flex;
  align-items: center;
}

.join-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.join-left {
  flex: 1 1 50%;
  padding-right: 20px;
}

.join-left h2 {
  font-size: 2rem;
  color: #1d3557;
  margin-bottom: 15px;
}

.join-left p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #333;
}

.join-right {
  flex: 1 1 45%;
  text-align: center;
}

.join-right img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}



.footer {
  background-color: #357ABD;
  color: white;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-column {
  flex: 1 1 30%;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-column p {
  margin: 5px 0;
}

.footer-column i {
  margin-right: 8px;
}

.social-icons a {
  color: white;
  margin-right: 15px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffd700;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.payment-icons i {
  font-size: 2rem;
}

.bank-icon {
  height: 30px;
  object-fit: contain;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 30px;
  padding-top: 15px;
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 32px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #333;
}

.modal-content h2 {
  margin-bottom: 25px;
  color: #357ABD;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.input-group {
  position: relative;
  margin-bottom: 18px;
}

.input-group i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #999;
  font-size: 15px;
}

.input-group input {
  width: 87%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #357ABD;
}

.modal-content button {
  width: 100%;
  background-color: #357ABD;
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-content button:hover {
  background-color: #265b90;
}

.switch-form {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 15px;
  color: #444;
}

.switch-form a {
  color: #357ABD;
  text-decoration: none;
  font-weight: 600;
}

.switch-form a:hover {
  text-decoration: underline;
}

/* Анимации */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Появление слева */
.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Появление справа */
.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Скрыть скроллбар, но оставить прокрутку */
body, html {
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none; /* Chrome, Safari */
}


/* Мобильная адаптация и адаптивное меню */
@media (max-width: 1024px) {
  .auth-links {
    display: none;
    flex-direction: column;
    background-color: #0e559cad;
    position: absolute;
    top: 55px;
    right: -30px;
    gap: 20px;
    width: 180px;
    padding: 15px;
    border-radius: 0 0 0 10px;
    z-index: 1000;
  }

  .auth-links.show {
    display: flex !important;
  }

  .menu-toggle {
    display: block;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 1001;
  }

  .header-container {
    position: relative;
  }


  .cards-container,
  .hero-cards-container,
  .directions-grid,
  .join-container,
  .footer-container {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .card,
  .hero-card,
  .info-card,
  .slide {
    width: 90%;
    padding: 40px 20px;
  }

  .card .icon,
  .hero-card .icon,
  .info-card .icon {
    font-size: 28px;
  }

  .section-about {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
    text-align: center;
  }

  .about-left,
  .about-right {
    text-align: center;
    width: 100%;
  }

  .about-left h2 {
    font-size: 2rem;
  }

  .about-right p {
    font-size: 1rem;
  }

  .join-container {
    flex-direction: column;
    text-align: center;
  }

  .join-left,
  .join-right {
    width: 100%;
    padding: 0;
  }

  .slider-container {
    max-width: 100%;
  }

  .slider-buttons button {
    padding: 10px 14px;
    font-size: 1rem;
  }

  .modal-content {
    max-width: 70%;
    padding: 30px 20px;
  }

  .input-group input {
    width: 83%;
    padding-left: 38px;
  }

  .footer-column {
    flex: 1 1 100%;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  #scrollTopBtn {
    bottom: 150px;
    right: 20px;
  }
}


@media (min-width: 1025px) {
  .auth-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    margin-left: auto;
    gap: 20px;
  }

  .menu-toggle {
    display: none !important;
  }

  .daily-phrase-box {
  text-align: center;
  background: #f0f8ff;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 2px solid #ddd;
  font-family: "Arial", sans-serif;
  color: #333;
}

}
