/* Основные переменные */
:root {
  /* Цветовая схема "Пастельная" с нео-брутализмом */
  --primary-color: #FF9A8B;
  --primary-dark: #FF8E7F;
  --primary-light: #FFB5A8;
  --secondary-color: #6DC8BF;
  --secondary-dark: #5BB0A7;
  --secondary-light: #8ED4CD;
  --accent-color: #FFD384;
  --accent-dark: #FFCA6F;
  --accent-light: #FFDDAA;
  --text-color: #333333;
  --text-light: #666666;
  --text-dark: #1A1A1A;
  --bg-color: #F8F9FA;
  --bg-dark: #E9ECEF;
  --bg-light: #FFFFFF;
  --success-color: #76C893;
  --error-color: #E07A5F;
  --warning-color: #F9C74F;
  --info-color: #90C4FF;
  
  /* Типографика */
  --heading-font: 'Manrope', sans-serif;
  --body-font: 'Rubik', sans-serif;
  
  /* Тени и эффекты для нео-брутализма */
  --neo-shadow: 5px 5px 0px rgba(0, 0, 0, 0.8);
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --hover-transform: translateY(-5px);
  
  /* Размеры и отступы */
  --container-width: 1200px;
  --section-spacing: 80px;
  --element-spacing: 20px;
  --border-radius: 10px;
  --neo-border-radius: 0px;
  
  /* Анимации */
  --transition-quick: 0.2s ease-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-slow: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

/* Кнопки - глобально */
.btn, button, input[type='submit'] {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border: 3px solid var(--text-dark);
  border-radius: var(--neo-border-radius);
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-medium);
  position: relative;
  box-shadow: var(--neo-shadow);
  text-decoration: none;
}

.btn:hover, button:hover, input[type='submit']:hover {
  transform: var(--hover-transform);
  box-shadow: 7px 7px 0px rgba(0, 0, 0, 0.9);
  text-decoration: none;
}

.btn:active, button:active, input[type='submit']:active {
  transform: translateY(0);
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.7);
}

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

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

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-dark);
}

/* Формы */
input, select, textarea {
  display: block;
  width: 100%;
  padding: 12px 15px;
  font-family: var(--body-font);
  font-size: 1rem;
  border: 3px solid var(--text-dark);
  border-radius: var(--neo-border-radius);
  margin-bottom: 15px;
  background-color: var(--bg-light);
  transition: var(--transition-quick);
}

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

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

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

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

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition-medium);
}

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

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

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

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

.nav-desktop ul li a {
  color: var(--text-dark);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 5px 0;
  position: relative;
}

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

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

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

.burger-menu span {
  height: 3px;
  width: 100%;
  background-color: var(--text-dark);
  transition: var(--transition-quick);
}

.nav-mobile {
  display: none;
  background-color: var(--bg-light);
  padding: 20px;
  border-top: 1px solid var(--bg-dark);
}

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

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

.nav-mobile ul li a {
  display: block;
  color: var(--text-dark);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 120px 0 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  color: #FFFFFF;
  margin-bottom: 20px;
  font-size: 3.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  color: #FFFFFF;
  font-size: 1.25rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about {
  padding: var(--section-spacing) 0;
  background-color: var(--bg-light);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--neo-shadow);
  margin: 0 auto;
}

.about-text {
  flex: 1 1 45%;
  min-width: 300px;
}

/* Mission Section */
.mission {
  padding: var(--section-spacing) 0;
  background-color: var(--bg-color);
}

.mission-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.mission-text {
  flex: 1 1 45%;
  min-width: 300px;
}

.mission-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.mission-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--neo-shadow);
  margin: 0 auto;
}

/* Insights Section */
.insights {
  padding: var(--section-spacing) 0;
  background-color: var(--bg-light);
}

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

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

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

.timeline-content {
  position: relative;
  background-color: var(--bg-light);
  border: 3px solid var(--text-dark);
  border-radius: var(--neo-border-radius);
  padding: 30px;
  box-shadow: var(--neo-shadow);
  width: calc(50% - 40px);
  margin-left: auto;
  transition: var(--transition-medium);
}

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

.timeline-content:hover {
  transform: var(--hover-transform);
}

.timeline-content h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.timeline-content img {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin: 20px auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Sustainability Section */
.sustainability {
  padding: var(--section-spacing) 0;
  background-color: var(--bg-color);
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.card {
  flex: 1 1 calc(33.333% - 30px);
  min-width: 280px;
  background-color: var(--bg-light);
  border: 3px solid var(--text-dark);
  border-radius: var(--neo-border-radius);
  overflow: hidden;
  box-shadow: var(--neo-shadow);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: var(--hover-transform);
  box-shadow: 7px 7px 0px rgba(0, 0, 0, 0.9);
}

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

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

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

.card-content {
  padding: 25px;
  text-align: center;
}

.card-content h3 {
  margin-top: 0;
  color: var(--text-dark);
}

/* Instructors Section */
.instructors {
  padding: var(--section-spacing) 0;
  background-color: var(--bg-light);
}

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

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

.instructor-card {
  flex: 0 0 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.instructor-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--text-dark);
  margin-bottom: 20px;
  box-shadow: var(--neo-shadow);
}

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

.instructor-details {
  text-align: center;
}

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

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

.prev-btn,
.next-btn {
  background-color: var(--secondary-color);
  margin: 0 10px;
}

/* Resources Section */
.resources {
  padding: var(--section-spacing) 0;
  background-color: var(--bg-color);
}

.resources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.resource-card {
  flex: 1 1 calc(33.333% - 30px);
  min-width: 280px;
  background-color: var(--bg-light);
  border: 3px solid var(--text-dark);
  border-radius: var(--neo-border-radius);
  padding: 30px;
  box-shadow: var(--neo-shadow);
  transition: var(--transition-medium);
}

.resource-card:hover {
  transform: var(--hover-transform);
  box-shadow: 7px 7px 0px rgba(0, 0, 0, 0.9);
}

.resource-card h3 {
  color: var(--secondary-color);
  margin-top: 0;
  text-align: center;
}

.resource-card ul {
  list-style-type: none;
  padding: 0;
}

.resource-card ul li {
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
}

.resource-card ul li:before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.resource-card ul li a {
  color: var(--text-color);
  transition: var(--transition-quick);
}

.resource-card ul li a:hover {
  color: var(--primary-color);
}

/* Research Section */
.research {
  padding: var(--section-spacing) 0;
  background-color: var(--bg-light);
}

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

.research-text {
  flex: 1 1 45%;
  min-width: 300px;
}

.research-chart {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.research-chart img {
  border-radius: var(--border-radius);
  box-shadow: var(--neo-shadow);
  margin: 0 auto;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--bg-light);
  max-width: 600px;
  width: 90%;
  padding: 40px;
  border: 3px solid var(--text-dark);
  border-radius: var(--neo-border-radius);
  box-shadow: var(--neo-shadow);
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

/* Contact Section */
.contact {
  padding: var(--section-spacing) 0;
  background-color: var(--bg-color);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

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

.contact-form {
  background-color: var(--bg-light);
  padding: 30px;
  border: 3px solid var(--text-dark);
  border-radius: var(--neo-border-radius);
  box-shadow: var(--neo-shadow);
}

.contact-info {
  flex: 1 1 40%;
  min-width: 300px;
  background-color: var(--bg-light);
  padding: 30px;
  border: 3px solid var(--text-dark);
  border-radius: var(--neo-border-radius);
  box-shadow: var(--neo-shadow);
}

.contact-info h3 {
  margin-top: 0;
  color: var(--secondary-color);
}

.contact-image {
  margin-top: 20px;
  text-align: center;
}

.contact-image img {
  border-radius: var(--border-radius);
  max-width: 100%;
  margin: 0 auto;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--bg-light);
  padding: 60px 0 20px;
}

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

.footer-logo {
  flex: 1 1 25%;
  min-width: 200px;
}

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

.footer-logo p {
  color: var(--bg-light);
  opacity: 0.8;
}

.footer-links, .footer-legal, .footer-social {
  flex: 1 1 20%;
  min-width: 150px;
}

.footer h3 {
  color: var(--primary-light);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer ul {
  list-style: none;
  padding: 0;
}

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

.footer ul li a {
  color: var(--bg-light);
  opacity: 0.8;
  transition: var(--transition-quick);
}

.footer ul li a:hover {
  opacity: 1;
  color: var(--primary-light);
}

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

.footer-bottom p {
  color: var(--bg-light);
  opacity: 0.6;
}

/* Cookie Consent */
#cookie-consent {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  text-align: center;
  z-index: 9999;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

#cookie-consent p {
  color: white;
  margin-bottom: 10px;
}

#accept-cookies {
  background-color: var(--success-color);
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition-quick);
}

#accept-cookies:hover {
  background-color: #5BAD7D;
}

/* Success page */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  text-align: center;
  background-color: var(--bg-light);
}

.success-content {
  max-width: 600px;
  padding: 40px;
  background-color: var(--bg-light);
  border: 3px solid var(--text-dark);
  border-radius: var(--neo-border-radius);
  box-shadow: var(--neo-shadow);
}

.success-icon {
  font-size: 80px;
  color: var(--success-color);
  margin-bottom: 20px;
}

/* Privacy & Terms pages */
.page-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto 60px;
}

.page-content h1 {
  margin-bottom: 30px;
  text-align: center;
}

.page-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-content p {
  margin-bottom: 20px;
}

.page-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-content ul li {
  margin-bottom: 10px;
}

/* Read More links */
.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--primary-color);
  transition: var(--transition-quick);
}

.read-more:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
  text-decoration: none;
}

.read-more:after {
  content: ' →';
  transition: var(--transition-quick);
}

.read-more:hover:after {
  margin-left: 5px;
}

/* Media Queries */
@media (max-width: 1024px) {
  :root {
    --section-spacing: 60px;
  }
  
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .timeline:before {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 50px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .nav-desktop {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .nav-mobile.active {
    display: block;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .about-content, .mission-content, .research-content {
    flex-direction: column;
  }
  
  .mission-image {
    order: -1;
  }
  
  .modal-content {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-spacing: 40px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .card, .resource-card {
    min-width: 100%;
  }
  
  .timeline-content {
    padding: 20px;
  }
}

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

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes morphBg {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
  animation: slideInUp 0.8s ease-out;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out;
}

.morph-bg {
  animation: morphBg 8s ease-in-out infinite;
}