@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

.container {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

body {
  padding-top: 80px;
}

html {
  scroll-behavior: smooth;
}

/* LOADER */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: "Montserrat", sans-serif;
  transition: opacity 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loader-content .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #0d4cb1;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

.loader-content p {
  font-size: 18px;
  color: #0d4cb1;
  margin: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* LOGIN PANEL */
.login_panel {
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login {
  max-width: 500px;
  width: 100%;
  padding: 40px;
  box-shadow: 0px 0px 47px 0px rgba(34, 60, 80, 0.2);
  border-radius: 40px;
  background-color: white;
  position: relative;
}

.login input,
.login button {
  display: block;
  margin: 15px 0px 25px 0px;
  height: 50px;
  border-radius: 30px;
  width: 100%;
}

.login input {
  padding-left: 30px;
  border: 2px solid #ddd;
  font-size: 18px;
  outline: none;
  transition: border-color 0.3s ease;
}

.login input:focus {
  border-color: #0d4cb1;
}

.close_btn {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.close_btn:hover {
  opacity: 1;
}

.login button {
  border: none;
  background-color: #1763e1;
  color: white;
  font-size: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.login button:hover {
  background-color: #0d4cb1;
  transform: translateY(-2px);
}

.login p {
  color: #979da4;
  font-size: 12px;
  text-align: center;
  line-height: 1.4;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: white;
  padding: 8px 0;
  border-bottom: 1px solid #6d737a47;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav_media {
  display: flex;
  align-items: center;
}

.logo_nav img {
  width: 135px;
  cursor: pointer;
  height: 60px;
  transition: transform 0.3s ease;
}

.logo_nav img:hover {
  transform: scale(1.05);
}

.nav_info ul {
  display: flex;
  gap: 20px;
  align-items: center;
  list-style: none;
}

.nav_info ul li a {
  color: #6d737a;
  text-decoration: none;
  font-size: 14px;
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav_info ul li a:hover,
.nav_info ul li a.active {
  background-color: #0d4cb1;
  color: #fff;
  transform: translateY(-2px);
}

.nav_right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav_right > button {
  padding: 16px 40px;
  background: #1763e1;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav_right > button:hover {
  background: #0d4cb1;
  transform: translateY(-2px);
}

.lang_change {
  border: 2px solid #ddd;
  outline: none;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.lang_change:focus {
  border-color: #0d4cb1;
}

.toggle {
  display: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.toggle:hover {
  background-color: #f0f0f0;
}

.toggle img {
  width: 30px;
  height: 30px;
}

section {
  scroll-margin-top: 80px;
}

/* HEADER */
.header_main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: calc(100vh - 80px);
  gap: 40px;
}

.header_left {
  flex: 1;
  max-width: 600px;
}

.header_left > h2 {
  color: #1763e1;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}

.header_left > h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.header_left p {
  font-size: 22px;
  color: #6d737a;
  line-height: 1.5;
}

.header_right {
  flex: 1;
  text-align: center;
}

.header_right img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}

/* SECTIONS */
.teachers_page,
.achievments_page {
  background-color: #cae0ff60;
  padding: 60px 0;
}

.feedback_page {
  padding: 60px 0;
}

.teachers_page > .container > h1,
.achievments_page > .container > h1,
.feedback_page > .container > h1 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700;
}

.teachers_page > .container > h1 > span,
.achievments_page > .container > h1 > span,
.feedback_page > .container > h1 > span {
  color: #1763e1;
}

/* SWIPER */
.swiper {
  width: 100%;
  height: 100%;
  padding-bottom: 50px;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0px 5px 20px rgba(34, 60, 80, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swiper-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 30px rgba(34, 60, 80, 0.2);
}

.swiper-slide img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 320px;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 15px;
}

.swiper-slide h3 {
  padding: 17px 0;
  font-weight: 600;
  font-size: 20px;
  color: #333;
}

.swiper-slide p {
  color: #6d737a;
  line-height: 1.5;
}

.swiper-slide1 img {
  object-fit: cover;
  width: 320px;
  height: 320px;
}

.swiper-slide1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.swiper-slide1 h3 {
  font-weight: 600;
  font-size: 20px;
}

.swiper-slide3 img {
  object-fit: cover;
  width: 320px;
  height: 440px;
}

.swiper-slide3 h3 {
  font-weight: 600;
}

.swiper-slide3 a {
  color: #0d4cb1;
  font-weight: 700;
  text-decoration: none;
}

.swiper-pagination-bullet {
  background: #0d4cb1;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* ABOUT US */
#about-us {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

#about-us .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.about_us_left h1 {
  font-size: 42px;
  margin-bottom: 30px;
  font-weight: 700;
  color: #333;
}

.about_us_left p {
  font-size: 18px;
  line-height: 1.8;
  color: #6d737a;
}

.about_us_right img {
  max-width: 600px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* FEEDBACK */
.feedback_info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.feedback_info > img {
  width: 80px;
  height: 80px;
  margin: 0 !important;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f0f0f0;
}

.feedback_info_detail h3 {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 5px;
  color: #333;
}

.feedback_info_detail p {
  text-align: left;
  color: #6d737a;
  font-size: 14px;
}

.text-container {
  position: relative;
}

.text-content {
  max-height: 180px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  text-align: left;
  line-height: 1.6;
  color: #333;
}

.text-container.expanded .text-content {
  max-height: 1000px;
}

.read-more-btn {
  margin-top: 15px;
  background-color: #0d4cb1;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background-color: #083580;
  transform: translateY(-2px);
}

/* CONTACT */
.contact {
  background-color: #cae0ff60;
  padding: 100px 0;
}

.contact > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.contact_left {
  position: relative;
  flex: 1;
}

.con_line {
  position: absolute;
  top: -20px;
  left: 20px;
  z-index: -1;
  opacity: 0.3;
}

.con_img {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact_right {
  flex: 1;
}

.contact_right h1 {
  font-size: 42px;
  margin-bottom: 25px;
  line-height: 1.2;
  font-weight: 700;
  color: #333;
}

.contact_right p {
  font-size: 20px;
  margin-bottom: 35px;
  color: #6d737a;
}

.contact_right span {
  color: #1763e1;
  font-weight: 700;
}

.contact_right button {
  padding: 18px 45px;
  background: linear-gradient(135deg, #1763e1 0%, #0d4cb1 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(23, 99, 225, 0.3);
}

.contact_right a {
  text-decoration: none;
}

.contact_right button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(23, 99, 225, 0.4);
}

/* FOOTER */
footer {
  padding: 80px 0;
  background: #f8f9fa;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.footer_left > img {
  width: 110px;
  height: 110px;
  margin-bottom: 25px;
}

.footer_left h3 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #333;
  font-weight: 600;
}

.footer_left p {
  color: #6d737a;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer_left p > a {
  text-decoration: none;
  color: #0d4cb1;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer_left p > a:hover {
  color: #1763e1;
}

.logo {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.tg,
.ig {
  width: 50px;
  height: 50px;
  background-color: #b1cfff70;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tg:hover,
.ig:hover {
  background-color: #0d4cb1;
  transform: translateY(-3px);
}

.tg:hover img,
.ig:hover img {
  filter: brightness(0) invert(1);
}

.tg img,
.ig img {
  width: 25px;
  height: 25px;
  transition: filter 0.3s ease;
}

.footer_center h2 {
  margin-bottom: 25px;
  font-size: 22px;
  color: #333;
  font-weight: 600;
}

.footer_center p {
  margin-bottom: 12px;
}

.footer_center p > a {
  color: #6d737a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer_center p > a:hover {
  color: #0d4cb1;
}

.footer_right iframe {
  width: 400px;
  height: 300px;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .header_left > h1 {
    font-size: 40px;
  }

  .contact_right h1 {
    font-size: 36px;
  }

  .footer_right iframe {
    width: 300px;
    height: 250px;
  }

  .contact > .container {
    gap: 50px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .container {
    padding: 0 15px;
  }

  /* NAVBAR MOBILE */
  .navbar {
    padding: 10px 0;
  }

  .logo_nav img {
    width: 100px;
    height: 45px;
  }

  .toggle {
    display: block;
  }
  /* Скрыть кнопки на мобильном по умолчанию */
  .nav_right > select {
    display: none;
  }
  .nav_right > button{
    display: none;
  }

  /* Показать только когда меню активно */
  nav.active .nav_right > button,
  nav.active .nav_right > select {
    display: block;
  }
  .nav_info {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 20px 20px;
    padding: 25px;
    z-index: 10;
  }
  .nav_right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 20px 20px;
    padding: 25px;
    z-index: 10;
  }

  nav.active .nav_info,
  nav.active .nav_right {
    display: block;
  }

  .nav_info ul {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
  }

  .nav_info ul li {
    width: 100%;
  }

  .nav_info ul li a {
    display: block;
    padding: 15px 20px;
    text-align: center;
    border-radius: 10px;
    font-size: 16px;
    background: #f8f9fa;
    margin-bottom: 5px;
  }

  .nav_info ul li a:hover,
  .nav_info ul li a.active {
    background-color: #0d4cb1;
    color: white;
  }

  .nav_right {
    display: none;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .nav_right > button {
    width: 100%;
    max-width: 250px;
    padding: 15px 30px;
    font-size: 16px;
  }

  .lang_change {
    padding: 12px 20px;
    font-size: 16px;
    width: 120px;
  }

  /* HEADER MOBILE */
  .header_main {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding: 40px 0;
    gap: 30px;
  }

  .header_left {
    order: 2;
    max-width: 100%;
  }

  .header_left > h2 {
    font-size: 16px;
  }

  .header_left > h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .header_left p {
    font-size: 18px;
  }

  .header_right {
    order: 1;
    margin-bottom: 20px;
  }

  .header_right img {
    max-width: 320px;
    border-radius: 15px;
  }

  /* SECTIONS MOBILE */
  .teachers_page,
  .achievments_page,
  .feedback_page {
    padding: 50px 0;
  }

  .teachers_page > .container > h1,
  .achievments_page > .container > h1,
  .feedback_page > .container > h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .swiper {
    padding-bottom: 40px;
  }

  .swiper-slide {
    padding: 25px 20px;
  }

  .swiper-slide img {
    height: 250px;
    max-width: 280px;
  }

  .swiper-slide1 img,
  .swiper-slide3 img {
    width: 100%;
    max-width: 280px;
  }

  .swiper-slide3 img {
    height: 350px;
  }

  /* ABOUT US MOBILE */
  #about-us {
    padding: 50px 0;
  }

  #about-us .container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .about_us_left h1 {
    font-size: 28px;
  }

  .about_us_left p {
    font-size: 16px;
  }

  .about_us_right img {
    height: 280px;
    max-width: 100%;
  }

  /* FEEDBACK MOBILE */
  .feedback_info {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    margin-bottom: 25px;
  }

  .feedback_info img{
    width: 80px;
    height: 80px;
  }
  
  .swiper-slide3 img{
    height: 400px !important;
  }

  .feedback_info_detail p {
    text-align: center;
  }

  .text-content {
    max-height: 120px;
    text-align: center;
  }

  /* CONTACT MOBILE */
  .contact {
    padding: 60px 0;
  }

  .contact > .container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .contact_left {
    order: 2;
  }

  .con_line {
    display: none;
  }

  .con_img {
    max-width: 300px;
  }

  .contact_right {
    order: 1;
  }

  .contact_right h1 {
    font-size: 26px;
  }

  .contact_right p {
    font-size: 18px;
  }

  .contact_right button {
    padding: 16px 35px;
    font-size: 16px;
  }

  /* FOOTER MOBILE */
  footer {
    padding: 50px 0;
  }

  footer .container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .footer_left,
  .footer_center {
    width: 100%;
  }

  .footer_right iframe {
    width: 100%;
    max-width: 350px;
    height: 250px;
  }

  /* LOGIN MOBILE */
  .login {
    padding: 30px 25px;
    margin: 15px;
    border-radius: 25px;
  }

  .login input,
  .login button {
    height: 45px;
    margin: 12px 0 20px 0;
  }

  .login input {
    font-size: 16px;
    padding-left: 25px;
  }

  .login button {
    font-size: 20px;
  }

  .login p {
    font-size: 11px;
  }
  .logo{
    display: flex;
    justify-content: center;
  }
  .footer_right iframe{
    width: 400px;   
  }
}

@media (max-width: 480px) {
  .header_left > h1 {
    font-size: 24px;
  }

  .header_left p {
    font-size: 16px;
  }

  .contact_right h1 {
    font-size: 22px;
  }

  .contact_right p {
    font-size: 16px;
  }

  .swiper-slide {
    padding: 20px 15px;
  }

  .about_us_left h1 {
    font-size: 24px;
  }

  .teachers_page > .container > h1,
  .achievments_page > .container > h1,
  .feedback_page > .container > h1 {
    font-size: 24px;
  }

  .swiper-slide img {
    height: 220px;
  }

  .swiper-slide3 img {
    height: 300px;
  }

  .contact_right button {
    padding: 14px 30px;
    font-size: 15px;
  }

  .login {
    padding: 25px 20px;
  }
}
@media (max-width: 768px) {
    /* Скрыть nav_right по умолчанию на мобильном */
    .nav_right {
        display: none !important;
        background-color: transparent;
        box-shadow: none;
    }
    
    /* Показать только когда меню активно */
    nav.active .nav_right {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}