/* Основные стили */
:root {
  --primary-color: #0a192f;
  --primary-color-blur: #0a192fa8;
  --secondary-color: #172a45;
  --accent-color: #64ffda;
  --text-color: #e6f1ff;
  --text-secondary: #8892b0;
  --card-bg: #112240;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --transition: all 0.3s ease;
  --social-links: #ccd6f6;
  --menu-links-bottom: rgba(255, 255, 255, 0.135);
}

[data-theme="light"] {
  --primary-color: #f9fafb;
  --primary-color-blur: #f9fafbc3;
  --secondary-color: #e5eaf0;
  --accent-color: #11998e;
  --accent-color-hover: #0c7b71;
  --text-color: #1f2937; /* вместо #111827 — чуть мягче */
  --text-secondary: #6b7280; /* вместо #4b5563 — светлее */
  --heading-color: #0f172a;
  --card-bg: #ffffff;
  --white: #ffffff;
  --light-gray: #dfe4ea;
  --transition: all 0.3s ease;
  --social-links: #111827;
  --menu-links-bottom: rgba(255, 255, 255, 0.386);
}

html {
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Навигация */
.main-nav {
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  background-color: var(--primary-color);
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-container img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1.1rem;
}

.aboutNav {
  padding-left: -3vw;
}

.nav-links a {
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-button {
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-button:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Мобильное меню */
.mobile-menu {
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background-color: var(--primary-color-blur); /* Полупрозрачный черный фон */
  backdrop-filter: blur(20px); /* Размытие фона */
  -webkit-backdrop-filter: blur(20px); /* Для поддержки в Safari */
  z-index: 1100;
  transition: right 0.3s ease;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

/* Затемнение фона при открытом меню */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.564);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.close-menu-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}

.mobile-menu-links a {
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--menu-links-bottom);
  color: var(--text-color);
}

.mobile-menu-button {
  margin-top: 0.5rem;
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
  gap: 0.5rem;
}

.mobile-menu-button:hover {
  background-color: #52e0c4;
}

/* Переключатель языка*/

.lang-dropdown {
  position: relative;
  font-family: "Quicksand", sans-serif;
}

.lang-toggle {
  margin: auto -1rem;
  background-color: transparent;
  color: var(--text-color);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  transition: var(--transition);
}

.lang-toggle:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

.lang-options {
  position: absolute;
  top: 110%;
  right: 0;
  background-color: var(--secondary-color);
  border: none;
  border-radius: 5px;
  display: none;
  flex-direction: column;
  z-index: 999;
  overflow: hidden;
}

.lang-options button {
  background: none;
  color: var(--text-color);
  border: none;
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.lang-options button:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

/* Show dropdown on hover (desktop) */
.lang-dropdown:hover .lang-options {
  display: flex;
}

.mobile-lang-mini {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 1rem;
}

.lang-icon-btn {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--menu-links-bottom);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-icon-btn:hover {
  background-color: rgba(100, 255, 218, 0.1);
}
.lang-flag {
  width: 2em;
  height: auto;
  aspect-ratio: 4 / 2.5;
  border-radius: 1px;
  object-fit: cover;
  margin-right: 6px;
  vertical-align: middle;
}

.lang-options button {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 1rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-lang-options {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: var(--primary-color);
  border: 1px solid var(--menu-links-bottom);
  border-radius: 6px;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  width: max-content;
  min-width: 70px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.mini-lang-options.show {
  display: flex;
  max-height: 200px; /* достаточно для двух кнопок */
  opacity: 1;
}

.mini-lang-options button {
  background-color: transparent;
  color: var(--text-color);
  border: none;
  padding: 0.4rem 0.7rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mini-lang-options button:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

/* Герой-секция */
.hero-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 7rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  width: 70%;
  height: auto;
  border-radius: 10px;
  margin-left: auto;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-section h1 span {
  color: var(--accent-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.top-buttons {
  display: flex;
  gap: 1rem;
}

.hero-buttons button {
  padding: 1rem 1.4rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  border: none;
  box-sizing: border-box;
}

.secondary-button {
  background-color: rgba(82, 224, 196, 0.1);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  flex: 1;
}

.results-button {
  background-color: rgba(82, 224, 196, 0.1);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  flex: 1;
}

.primary-button {
  background-color: var(--accent-color);
  color: var(--primary-color);
  width: 100%;
  margin-top: 0.5rem;
}

.hero-buttons button:hover {
  transform: translateY(-3px);
}

/* Секция классов */
.classes-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.class-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.class-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-color);
}

.class-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(100, 255, 218, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent-color);
  font-size: 1.5rem;
}

.class-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.class-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* О платформе */
.about-section {
  display: flex;
  align-items: center;
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
}

.about-content {
  flex: 1;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.about-image img {
  width: 80%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.about-text {
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.about-highlight {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 47, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 1rem;
}

.modal-content {
  background-color: var(--secondary-color);
  padding: 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 255, 218, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-close i {
  font-size: 1.5rem;
}

.modal-content h2 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form label {
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0;
}

.form input,
.form select,
.form textarea {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  padding: 0.8rem 1rem;
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
  width: 100%;
  font-family: "Inter", sans-serif;
}

.form textarea {
  min-height: 100px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.form button,
.arrow-right {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
  font-size: 1rem;
}
.arrow-right {
  display: none;
  padding: 0.6rem 0.8rem;
  transform: translateY(-1.5px);
}
.form button,
.arrow-right:hover {
  background-color: #52e0c4;
  transform: translateY(-2px);
}

.form-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.form-toggle button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-toggle button.active {
  color: var(--accent-color);
  background-color: rgba(100, 255, 218, 0.1);
}

/* Footer Styles */
.site-footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 50px 0 0;
  font-family: "Inter", sans-serif;
}

.footer-divider {
  border: 0;
  height: 1px;
  background: #555;
  width: 100%;
  margin: 0px auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-section {
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.footer-logo span {
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
  font-family: "Space Grotesk", sans-serif;
}

.footer-section p {
  color: var(--text-color);
}

.footer-section span {
  color: var(--accent-color);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--social-links);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.contact-info li {
  color: var(--text-color);
}

.contact-info i {
  margin-right: 10px;
  color: var(--accent-color);
  width: 20px;
  text-align: center;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  color: var(--social-links);
  font-size: 1.5rem;
  margin-right: 15px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  background-color: var(--primary-color);
  padding: 20px 10px;
  text-align: center;
  margin-top: 10px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Анимации */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.classes-section > * {
  transition-delay: calc(var(--order) * 0.1s);
}

.hero-section .hero-content {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-section .hero-image {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-section.visible .hero-content,
.hero-section.visible .hero-image {
  opacity: 1;
  transform: translateX(0);
}

.classes-grid .class-card {
  transition-delay: calc(var(--order) * 0.1s);
}

.about-section .about-content {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-section .about-image {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-section.visible .about-content,
.about-section.visible .about-image {
  opacity: 1;
  transform: translateX(0);
}

/* Проигрыватель видео */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  display: none;
}

.video-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
}

.video-container video {
  width: 100%;
  max-height: 90vh;
  outline: none;
}

.close-video {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* Переключатель темы */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-color);
  transition: transform 0.3s ease, var(--transition);
  position: relative;
}

.theme-toggle:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

.theme-toggle:active {
  transform: scale(0.9);
}

.theme-toggle i {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-sun {
  color: var(--accent-color);
}

.icon-moon {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="light"] .icon-sun {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="light"] .icon-moon {
  opacity: 1;
  transform: rotate(0);
  color: var(--accent-color);
}

/* Специфические стили для светлой темы */
[data-theme="light"] .main-nav {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .class-card {
  background-color: rgba(82, 224, 196, 0.1);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .class-card:hover {
  background-color: rgba(82, 224, 196, 0.301);
}

[data-theme="light"] .modal-content {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-divider {
  background: #e9ecef;
}

[data-theme="light"] .site-footer,
[data-theme="light"] .footer-bottom {
  background-color: rgba(82, 224, 196, 0.052);
}

[data-theme="light"] .social-links a {
  color: var(--accent-color);
}

[data-theme="light"] .social-links a:hover {
  color: var(--accent-color-hover);
}

[data-theme="light"] .nav-button,
[data-theme="light"] .secondary-button,
[data-theme="light"] .results-button {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

[data-theme="light"] .nav-button:hover,
[data-theme="light"] .secondary-button:hover,
[data-theme="light"] .results-button:hover {
  background-color: rgba(0, 119, 182, 0.1);
}

/* Медиа-запросы */
@media (max-width: 992px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: 5rem;
  }

  .hero-image {
    justify-content: center;
    margin: 0 auto;
    width: 100%;
  }

  .hero-image img {
    margin-left: 0;
    width: 100%;
    max-width: 300px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
    padding-top: 5rem;
  }

  .about-image {
    justify-content: center;
    margin: 0 auto;
    width: 100%;
  }

  .about-image img {
    margin-left: 0;
    width: 100%;
    max-width: 300px;
  }

  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 5rem 1rem 2rem;
    gap: 2rem;
  }

  .hero-image {
    order: -1;
    margin-bottom: 1rem;
    width: 100%;
  }

  .hero-image img {
    width: 80%;
    max-width: 250px;
    margin: 0 auto;
  }

  .hero-buttons {
    width: 100%;
  }

  .top-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-buttons button {
    width: 100%;
    margin: 0 auto;
    padding: 0.8rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .fade-in {
    transform: translateY(50px);
  }

  .hero-section .hero-content,
  .hero-section .hero-image {
    transform: translateX(0);
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .footer-section {
    margin-bottom: 20px;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    padding: 15px 10px;
  }

  .video-container {
    width: 95%;
  }

  .close-video {
    top: -30px;
    font-size: 25px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 4rem;
  }

  .hero-section h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-image {
    margin-top: 50px;
  }

  .hero-image img {
    width: 95%;
    max-width: 400px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .classes-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .site-footer {
    padding: 30px 0 0;
  }

  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .footer-section ul li {
    margin-bottom: 8px;
  }

  .social-links a {
    font-size: 1.3rem;
    margin: 0 10px;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .form {
    gap: 1.2rem;
  }

  .form input,
  .form select,
  .form textarea {
    padding: 0.7rem 1rem;
  }

  .modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .form-toggle button {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .mobile-menu .logo-text {
    font-size: 1.2rem;
  }
  .modal-content {
    padding: 1.2rem;
  }

  .form label {
    font-size: 0.9rem;
  }

  .form input,
  .form select,
  .form textarea {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
  }

  .form button {
    padding: 0.7rem;
    font-size: 0.95rem;
  }
  .arrow-right {
    padding: 0.45rem 0.6rem;
    transform: translateY(-1px);
  }
}
