:root {
  /* Основные цвета */
  --primary-color: #0066cc;
  --primary-dark: #004c99;
  --primary-light: #4d94ff;
  --secondary-color: #ff9900;
  --secondary-dark: #cc7a00;
  --secondary-light: #ffb84d;
  
  /* Монохромная схема */
  --dark: #222222;
  --dark-gray: #444444;
  --medium-gray: #666666;
  --light-gray: #aaaaaa;
  --lighter-gray: #eeeeee;
  --white: #ffffff;
  
  /* Гласморфизм */
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  
  /* Интерактивные состояния */
  --hover-transition: all 0.3s ease;
  
  /* Размеры и отступы */
  --container-width: 1200px;
  --section-padding: 80px 0;
  --card-padding: 25px;
  --border-radius: 10px;
  --button-padding: 12px 30px;
}

/* Сброс и базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Типография */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--dark);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 20px;
}

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

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: var(--medium-gray);
}

/* Контейнеры и сетка */
.container {
  width: 100%;
  max-width: var(--container-width);
  padding: 0 15px;
  margin: 0 auto;
  position: relative;
}

/* Кнопки */
.btn, button, input[type='submit'] {
  display: inline-block;
  padding: var(--button-padding);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--hover-transition);
  cursor: pointer;
  border: none;
  font-family: 'Source Sans Pro', sans-serif;
}

.btn.primary, button.primary, input[type='submit'] {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn.primary:hover, button.primary:hover, input[type='submit']:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn.secondary, button.secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn.secondary:hover, button.secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Гласморфизм */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  border-radius: var(--border-radius);
}

/* Хедер и навигация */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--hover-transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

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

.logo img {
  max-height: 60px;
  width: auto;
}

.desktop-menu ul {
  display: flex;
  list-style: none;
}

.desktop-menu ul li {
  margin-left: 30px;
}

.desktop-menu ul li a {
  color: var(--white);
  font-weight: 600;
  position: relative;
}

.desktop-menu ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--hover-transition);
}

.desktop-menu ul li a:hover::after {
  width: 100%;
}

header.scrolled .desktop-menu ul li a {
  color: var(--dark);
}

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

.hamburger-menu span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--white);
  transition: var(--hover-transition);
}

header.scrolled .hamburger-menu span {
  background-color: var(--dark);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu ul li {
  margin-bottom: 15px;
}

.mobile-menu ul li a {
  color: var(--dark);
  font-weight: 600;
  font-size: 1.2rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-bottom: 50px;
}

.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.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1, .hero-content p {
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

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

/* Estaciones Section */
.estaciones {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
}

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

.prev-btn, .next-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 10px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--hover-transition);
}

.prev-btn:hover, .next-btn:hover {
  background: var(--primary-dark);
}

/* Servicios Section */
.servicios {
  padding: var(--section-padding);
  background-color: var(--lighter-gray);
}

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

/* Recursos Externos Section */
.recursos-externos {
  padding: var(--section-padding);
  position: relative;
}

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

.recurso-item {
  padding: 25px;
  border-radius: var(--border-radius);
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--hover-transition);
}

.recurso-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.recurso-item h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.recurso-item h3 a {
  color: var(--primary-color);
}

.recurso-item h3 a:hover {
  color: var(--primary-dark);
}

.recurso-item p {
  color: var(--medium-gray);
  font-size: 0.95rem;
}

/* Proceso Section */
.proceso {
  padding: var(--section-padding);
  background-color: var(--white);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 20px;
  border-radius: var(--border-radius);
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -60px;
}

.timeline-content h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.image-container {
  margin-top: 20px;
  overflow: hidden;
  border-radius: var(--border-radius);
  text-align: center;
}

.image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.timeline-content:hover .image-container img {
  transform: scale(1.05);
}

/* Investigación Section */
.investigacion {
  padding: var(--section-padding);
  position: relative;
}

.research-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 50px;
}

.research-image {
  flex: 0 0 45%;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.research-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

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

.research-text {
  flex: 0 0 50%;
  padding-left: 5%;
}

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

/* Recursos Section */
.recursos {
  padding: var(--section-padding);
  background-color: var(--lighter-gray);
}

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

/* Instructores Section */
.instructores {
  padding: var(--section-padding);
  position: relative;
}

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

/* Testimonios Section */
.testimonios {
  padding: var(--section-padding);
  background-color: var(--white);
}

.testimonials-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-item {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.testimonial-item.active {
  display: block;
}

.testimonial-content {
  display: flex;
  align-items: center;
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-image {
  flex: 0 0 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 30px;
}

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

.testimonial-text {
  flex-grow: 1;
}

.testimonial-text p {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--dark-gray);
}

.testimonial-text h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.testimonial-role {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

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

.prev-testimonial, .next-testimonial {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 10px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--hover-transition);
}

.testimonial-dots {
  display: flex;
  margin: 0 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--light-gray);
  margin: 0 5px;
  cursor: pointer;
  transition: var(--hover-transition);
}

.dot.active {
  background-color: var(--primary-color);
}

/* Proyectos Section */
.proyectos {
  padding: var(--section-padding);
  position: relative;
}

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

/* Prensa Section */
.prensa {
  padding: var(--section-padding);
  background-color: var(--white);
}

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

.press-item {
  padding: 25px;
  border-radius: var(--border-radius);
  background: var(--lighter-gray);
  transition: var(--hover-transition);
}

.press-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.press-date {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.press-item h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.press-item p {
  color: var(--dark-gray);
  margin-bottom: 20px;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.read-more::after {
  content: '→';
  display: inline-block;
  margin-left: 5px;
  transition: var(--hover-transition);
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* Contacto Section */
.contacto {
  padding: var(--section-padding);
  position: relative;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-details {
  list-style: none;
  margin-bottom: 30px;
}

.contact-details li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-details li i {
  margin-right: 15px;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.social-media h4 {
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--hover-transition);
}

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

.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
  transition: var(--hover-transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 70px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 50px;
}

.footer-logo {
  flex: 0 0 100%;
  max-width: 300px;
  margin-bottom: 30px;
}

.footer-logo img {
  max-width: 150px;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  flex: 1;
}

.footer-column {
  flex: 0 0 auto;
  margin-bottom: 30px;
  min-width: 150px;
}

.footer-column h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-column ul {
  list-style: none;
}

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

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

.footer-column ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0;
  color: var(--light-gray);
}

/* Карточки */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--hover-transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-content {
  padding: var(--card-padding);
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-content h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.card-content p {
  color: var(--dark-gray);
  margin-bottom: 20px;
}

.card-content .btn {
  margin-top: auto;
}

/* Success Page */
.success-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--white);
}

.success-content {
  max-width: 600px;
  padding: 50px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.success-content h1 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.success-content p {
  margin-bottom: 30px;
  font-size: 1.2rem;
}

/* Privacy and Terms Pages */
.privacy-content, .terms-content {
  padding-top: 100px;
  padding-bottom: 50px;
}

.privacy-content h1, .terms-content h1 {
  margin-bottom: 30px;
  color: var(--primary-color);
}

.privacy-content h2, .terms-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--dark);
}

.privacy-content p, .terms-content p {
  margin-bottom: 20px;
  color: var(--dark-gray);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Cookie Notice */
#cookie-notice {
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 9999;
}

#accept-cookies {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  margin: 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--hover-transition);
}

#accept-cookies:hover {
  background-color: var(--primary-dark);
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .research-content {
    flex-direction: column;
  }
  
  .research-image {
    flex: 0 0 100%;
    margin-bottom: 30px;
  }
  
  .research-text {
    flex: 0 0 100%;
    padding-left: 0;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-content {
    width: 85%;
    margin-left: auto !important;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -45px;
  }
  
  .testimonial-content {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-image {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .desktop-menu {
    display: none;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    margin-bottom: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom p {
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .contact-container {
    flex-direction: column;
  }
}