/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
  /* Основные цвета */
  --primary-color: #FF6B35;
  --primary-dark: #E05A2B;
  --primary-light: #FF8E63;
  --secondary-color: #2EC4B6;
  --secondary-dark: #1AA097;
  --secondary-light: #4FDECF;
  --accent-color: #FFBF00;
  --accent-dark: #D6A000;
  --accent-light: #FFD452;
  
  /* Нейтральные цвета */
  --dark: #1A1A2E;
  --dark-80: #3A3A4E;
  --dark-60: #5A5A6E;
  --light: #FFFFFF;
  --light-90: #F4F4F8;
  --light-80: #E8E8EC;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  --gradient-dark: linear-gradient(135deg, var(--dark), var(--dark-80));
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-neo: 5px 5px 0px var(--dark);
  
  /* Скругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Размеры контейнера */
  --container-max-width: 1200px;
  --container-padding: 20px;
  
  /* Анимации */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== ОБЩИЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', 'Tajawal', 'Cairo', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light-90);
  overflow-x: hidden;
  direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', 'Tajawal', 'Cairo', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-md);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 1rem auto 0;
  border-radius: var(--radius-sm);
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Manrope', 'Tajawal', 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--light);
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-neo);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px var(--dark);
  text-decoration: none;
  color: var(--light);
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: 3px 3px 0px var(--dark);
}

.btn-primary {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
}

.btn-secondary {
  background: var(--gradient-secondary);
  border-color: var(--secondary-color);
}

.btn-accent {
  background: var(--gradient-accent);
  border-color: var(--accent-color);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--light);
}

button, input[type="submit"] {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/* ===== ХЕДЕР ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light);
  box-shadow: var(--shadow-md);
  padding: 15px 0;
  z-index: 1000;
  transition: var(--transition-normal);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  height: 50px;
  width: auto;
  border-radius: 0;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  color: var(--dark);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.nav-list li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  right: 0;
  background: var(--gradient-primary);
  transition: var(--transition-normal);
}

.nav-list li a:hover {
  color: var(--primary-color);
}

.nav-list li a:hover::after {
  width: 100%;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 100%;
  background-color: var(--dark);
  border-radius: 10px;
  transition: var(--transition-fast);
}

/* ===== HERO СЕКЦИЯ ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-top: 0;
  padding: 120px 0;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--light);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--light);
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;
}

/* ===== MISSION СЕКЦИЯ ===== */
.mission {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.mission::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--light-80) 0%, transparent 70%);
  z-index: 0;
  opacity: 0.5;
}

.mission-content {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.mission-image {
  flex: 1;
  max-width: 500px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neo);
  overflow: hidden;
  transform: rotate(-2deg);
}

.mission-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.mission-image:hover img {
  transform: scale(1.05);
}

.mission-text {
  flex: 1;
}

.mission-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.mission-values {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}

.value-card {
  text-align: center;
  padding: 20px;
  background: var(--light-90);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neo);
  transition: var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-10px);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
}

.value-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* ===== RESEARCH СЕКЦИЯ ===== */
.research {
  background-color: var(--light-90);
  position: relative;
}

.research-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.research-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.card {
  background: var(--light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-neo);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}

/* ===== PROJECTS СЕКЦИЯ ===== */
.projects {
  background-color: var(--light);
  position: relative;
}

.projects-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.project-card {
  background: var(--light-90);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-neo);
  transition: var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card .card-image {
  height: 300px;
}

.project-type {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 500;
}

.project-details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--light-80);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-details span {
  font-size: 0.9rem;
  color: var(--dark-60);
}

/* ===== EXTERNAL RESOURCES СЕКЦИЯ ===== */
.external-resources {
  background-color: var(--light-90);
  position: relative;
}

.resources-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.resource-card {
  background: var(--light);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-neo);
  text-align: center;
  transition: var(--transition-normal);
}

.resource-card:hover {
  transform: translateY(-10px);
}

.resource-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.resource-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.resource-links {
  text-align: right;
}

.resource-links li {
  margin-bottom: 10px;
}

.resource-links a {
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition-fast);
  display: inline-block;
  position: relative;
}

.resource-links a::after {
  content: "←";
  margin-right: 5px;
  transition: var(--transition-fast);
  opacity: 0;
  transform: translateX(-10px);
}

.resource-links a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ===== INSTRUCTORS СЕКЦИЯ ===== */
.instructors {
  background-color: var(--light);
  position: relative;
}

.instructors-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.instructor-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

.instructor-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.instructor-specialties span {
  background: var(--light-80);
  color: var(--dark);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== CLIENTELE СЕКЦИЯ ===== */
.clientele {
  background-color: var(--light-90);
  position: relative;
}

.clientele-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  align-items: center;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neo);
  transition: var(--transition-normal);
  filter: grayscale(100%);
}

.client-logo:hover {
  filter: grayscale(0%);
  transform: translateY(-10px);
}

.client-logo img {
  max-width: 100%;
  height: 100px;
  object-fit: contain;
}

/* ===== SUCCESS STORIES СЕКЦИЯ ===== */
.success-stories {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.success-stories::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('image/pattern-dots.jpg') repeat;
  opacity: 0.05;
  z-index: 0;
}

.success-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.testimonials-slider {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial {
  background: var(--light-90);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-neo);
  margin-bottom: 40px;
}

.testimonial-content {
  display: flex;
  gap: 30px;
  align-items: center;
}

.testimonial-image {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--light);
  box-shadow: var(--shadow-md);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  flex: 1;
}

.testimonial-text blockquote {
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--dark-80);
  margin-bottom: 20px;
  position: relative;
}

.testimonial-text blockquote::before {
  content: """;
  font-size: 4rem;
  position: absolute;
  top: -20px;
  right: -10px;
  color: var(--primary-light);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-text cite {
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
  display: block;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.prev-btn, .next-btn {
  background: var(--light);
  color: var(--dark);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 3px 3px 0 var(--dark);
}

.prev-btn:hover, .next-btn:hover {
  background: var(--primary-color);
  color: var(--light);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--dark);
}

/* ===== CONTACT СЕКЦИЯ ===== */
.contact {
  background-color: var(--light-90);
  position: relative;
}

.contact-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.info-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.info-text h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.info-text p {
  margin-bottom: 0;
  color: var(--dark-60);
}

.contact-form-container {
  background: var(--light);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-neo);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group:nth-last-child(3), .form-group:nth-last-child(2), .form-group:nth-last-child(1) {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.9rem;
}

input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="password"],
select, 
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--light-80);
  border-radius: var(--radius-md);
  background-color: var(--light);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

input:focus, 
select:focus, 
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.form-submit {
  grid-column: 1 / -1;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gradient-dark);
  color: var(--light);
  padding: 80px 0 30px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--gradient-primary);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  margin-bottom: 20px;
  height: 60px;
  width: auto;
  border-radius: 0;
}

.footer-logo p {
  color: var(--light-80);
  max-width: 300px;
}

.footer-links {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-column h3 {
  color: var(--light);
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--light-80);
  transition: var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.social-links li a {
  display: flex;
  align-items: center;
}

.social-links li a::before {
  margin-left: 8px;
  font-weight: 900;
}

.social-links li:nth-child(1) a::before {
  content: "●";
  color: #1877F2;
}

.social-links li:nth-child(2) a::before {
  content: "●";
  color: #1DA1F2;
}

.social-links li:nth-child(3) a::before {
  content: "●";
  color: #E1306C;
}

.social-links li:nth-child(4) a::before {
  content: "●";
  color: #0A66C2;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--light-80);
  margin-bottom: 0;
}

/* ===== COOKIES POPUP ===== */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: var(--light);
  padding: 20px;
  z-index: 9999;
  text-align: center;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
  min-width: 280px;
}

.cookie-content .btn {
  min-width: 120px;
  margin: 0;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТРАНИЦЫ ===== */
.page-content {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  text-align: center;
}

.page-description {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* Страница успешной отправки */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
}

.success-container {
  max-width: 600px;
  background: var(--light);
  padding: 50px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neo);
}

.success-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--light);
}

.success-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.success-message {
  margin-bottom: 30px;
}

/* Страницы Terms и Privacy */
.terms-page, .privacy-page {
  padding-top: 100px;
}

.terms-container, .privacy-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--light);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.terms-section, .privacy-section {
  margin-bottom: 40px;
}

.terms-section h3, .privacy-section h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== МЕДИА ЗАПРОСЫ ===== */
@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .mission-content {
    flex-direction: column;
    text-align: center;
  }
  
  .mission-image {
    margin: 0 auto 30px;
  }
  
  .mission-values {
    justify-content: center;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    order: 2;
  }
}

@media (max-width: 992px) {
  section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .testimonial-content {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-image {
    margin: 0 auto 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 10px 0;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--light);
    box-shadow: var(--shadow-md);
    padding: 20px;
    z-index: 1000;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 15px;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .research-cards, .instructors-grid, .clients-grid {
    grid-template-columns: 1fr;
  }
  
  .mission-values {
    flex-direction: column;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .testimonial {
    padding: 30px 20px;
  }
  
  .contact-form-container {
    padding: 30px 20px;
  }
}

/* ===== ПРОКРУТКА-ЗАВИСИМЫЕ ЭФФЕКТЫ ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== УТИЛИТЫ ===== */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

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

.w-100 { width: 100%; }
.h-100 { height: 100%; }