:root {
  /* Tetrad color scheme - футуристический эко-минимализм */
  --primary-color: #1e88e5; /* Основной синий */
  --primary-dark: #1565c0;
  --primary-light: #64b5f6;
  --secondary-color: #43a047; /* Дополнительный зеленый */
  --secondary-dark: #2e7d32;
  --secondary-light: #66bb6a;
  --accent-color-1: #9c27b0; /* Акцентный фиолетовый */
  --accent-color-2: #ff9800; /* Акцентный оранжевый */
  
  /* Нейтральные цвета */
  --dark-color: #1a1a2e;
  --dark-color-80: rgba(26, 26, 46, 0.8);
  --mid-color: #3a3a5c;
  --light-color: #f5f5f7;
  --white-color: #ffffff;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  --gradient-accent-1: linear-gradient(135deg, var(--accent-color-1), #7b1fa2);
  --gradient-accent-2: linear-gradient(135deg, var(--accent-color-2), #f57c00);
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
  
  /* Скругления */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 2rem;
  
  /* Анимации */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Размеры шрифтов */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  
  /* Высота строки */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-loose: 1.75;
}

/* Базовые стили */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', sans-serif;
  color: var(--mid-color);
  background-color: var(--light-color);
  overflow-x: hidden;
  line-height: var(--line-height-normal);
}

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

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

a:hover, a:focus {
  color: var(--primary-dark);
  text-decoration: none;
}

.section-padding {
  padding: 5rem 0;
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

.section-divider {
  height: 4px;
  width: 60px;
  background: var(--gradient-primary);
  margin: 0 auto 2.5rem;
  border-radius: var(--border-radius-sm);
}

.lead {
  font-size: var(--font-size-lg);
  font-weight: 300;
  line-height: var(--line-height-loose);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

/* Кнопки */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-medium);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

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

.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.btn-outline-light:hover, .btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background: var(--primary-color);
  color: var(--white-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-md);
}

/* Карточки */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  background-color: var(--white-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.card-image {
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: var(--font-size-lg);
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.card-text {
  color: var(--mid-color);
  margin-bottom: 1.5rem;
}

/* Параллакс и анимации */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.parallax-element {
  transition: transform var(--transition-slow);
}

/* Форма */
.form-control, .form-select {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  font-size: var(--font-size-md);
  transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(30, 136, 229, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Header */
.header {
  transition: all var(--transition-fast);
  background: transparent;
  padding: 1rem 0;
  z-index: 1000;
}

.header.scrolled {
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  transition: all var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--white-color);
  padding: 0.5rem 1rem;
  font-weight: 500;
  position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link:focus::after,
.navbar-dark .navbar-nav .nav-item.active .nav-link::after {
  width: 80%;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--white-color);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow-lg);
}

.hero-content h1, 
.hero-content h2,
.hero-content p {
  color: var(--white-color);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.hero-content .lead {
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

/* Mission Section */
.mission-section {
  position: relative;
  overflow: hidden;
}

.mission-content h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.mission-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mission-image img {
  transition: transform var(--transition-medium);
}

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

.progress {
  height: 10px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar {
  background: var(--gradient-primary);
  transition: width 1s ease;
}

/* History Section */
.history-section {
  position: relative;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.timeline-panel {
  position: relative;
  width: 45%;
  float: left;
  padding: 20px;
  border-radius: var(--border-radius-lg);
  background-color: var(--white-color);
  box-shadow: var(--shadow-md);
  margin-top: 60px;
}

.timeline-panel::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -15px;
  border-top: 15px solid transparent;
  border-left: 15px solid var(--white-color);
  border-bottom: 15px solid transparent;
}

.timeline-inverted .timeline-panel {
  float: right;
}

.timeline-inverted .timeline-panel::after {
  left: -15px;
  right: auto;
  border-left: none;
  border-right: 15px solid var(--white-color);
}

.timeline-content {
  padding: 1rem 0;
}

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

.timeline-image {
  margin-bottom: 1rem;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.timeline-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
}

/* Media Section */
.media-section {
  position: relative;
}

.carousel-inner {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.carousel-item {
  height: 500px;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  bottom: 20px;
}

.media-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium);
}

.media-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.media-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.media-card:hover .card-img-top {
  transform: scale(1.1);
}

/* Resources Section */
.resources-section {
  position: relative;
}

.resource-card {
  text-align: center;
  padding: 2rem;
  transition: all var(--transition-medium);
}

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

.resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
  position: relative;
}

.contact-info {
  padding: 2rem;
  background-color: var(--white-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-map {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 300px;
}

.contact-form-container {
  background-color: var(--white-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

/* Accolades Section */
.accolades-section {
  position: relative;
}

.accolade-card {
  text-align: center;
}

.accolade-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.award-year {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: var(--white-color);
  border-radius: var(--border-radius-md);
  font-weight: 700;
  margin-top: 1rem;
}

/* Events Section */
.events-section {
  position: relative;
}

.event-card {
  border: none;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.event-date {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gradient-secondary);
  color: var(--white-color);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  margin-bottom: 0.75rem;
}

.event-location {
  color: var(--primary-color);
  font-weight: 500;
}

/* Careers Section */
.careers-section {
  position: relative;
}

.benefit-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.benefit-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.career-card {
  position: relative;
  overflow: hidden;
}

.job-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gradient-accent-1);
  color: var(--white-color);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  margin-bottom: 0.75rem;
}

.job-location {
  color: var(--mid-color);
  font-size: var(--font-size-sm);
  margin-bottom: 1rem;
}

.job-requirements {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}



.footer h4 {
  color: var(--white-color);
  margin-bottom: 1.5rem;
  font-size: var(--font-size-lg);
  position: relative;
  padding-bottom: 0.75rem;
}

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

.footer-info p {
  margin-bottom: 1rem;
  line-height: var(--line-height-loose);
}

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

.footer-links ul li {
  margin-bottom: 0.75rem;
}

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

.footer-links ul li a:hover,
.footer-links ul li a:focus {
  color: var(--primary-light);
  text-decoration: none;
  padding-left: 5px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  color: var(--light-color);
  transition: all var(--transition-fast);
  text-decoration: underline;
}

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

.footer-newsletter input {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white-color);
  padding: 0.75rem 1rem;
  width: 100%;
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
}

.footer-newsletter input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter button {
  background: var(--gradient-primary);
  color: var(--white-color);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.footer-newsletter button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
}

.copyright {
  font-size: var(--font-size-sm);
}

.credits {
  font-size: var(--font-size-sm);
}

/* Modals */
.modal-content {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.modal-header {
  background: var(--gradient-primary);
  color: var(--white-color);
  border-bottom: none;
}

.modal-title {
  color: var(--white-color);
}

.modal-footer {
  border-top: none;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 26, 46, 0.95);
  color: var(--white-color);
  padding: 1.5rem 0;
  z-index: 9999;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
}

.cookie-content a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-content a:hover {
  text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease forwards;
}

/* Success page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--light-color) 0%, #e6e6fa 100%);
  padding: 2rem;
}

.success-container {
  max-width: 600px;
  text-align: center;
  background-color: var(--white-color);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

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

/* Privacy and Terms pages */
.page-content {
  padding-top: 100px;
  padding-bottom: 5rem;
}

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

/* Responsive */
@media (max-width: 991.98px) {
  .timeline::before {
    left: 40px;
  }
  
  .timeline-badge {
    left: 40px;
  }
  
  .timeline-panel {
    width: calc(100% - 85px);
    float: right;
    margin-left: 85px;
  }
  
  .timeline-panel::after {
    left: -15px;
    right: auto;
    border-left: 0;
    border-right: 15px solid var(--white-color);
  }
  
  .timeline-inverted .timeline-panel {
    float: right;
  }
  
  .timeline-inverted .timeline-panel::after {
    left: -15px;
    border-left: 0;
    border-right: 15px solid var(--white-color);
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 3rem 0;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.1rem;
  }
  
  .hero-content .lead {
    font-size: 1rem;
  }
  
  .carousel-item {
    height: 300px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-content button {
    width: 100%;
  }
}

/* Animation triggers */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Animated progress bars */
.progress .progress-bar {
  width: 0;
  transition: width 1.5s ease;
}

/* Extras for Eco-minimalism */
.eco-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-secondary);
  color: var(--white-color);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin: 0.5rem 0;
}