:root {
  /* Триадная цветовая схема */
  --primary-color: #2c7bb6; /* Основной синий */
  --primary-dark: #1a5c8f; /* Темный синий */
  --primary-light: #7db9de; /* Светлый синий */
  
  --secondary-color: #16a085; /* Зеленый */
  --secondary-dark: #0e7a62; /* Темный зеленый */
  --secondary-light: #4cc3ad; /* Светлый зеленый */
  
  --accent-color: #d35400; /* Оранжевый */
  --accent-dark: #a04000; /* Темный оранжевый */
  --accent-light: #e67e22; /* Светлый оранжевый */
  
  /* Нейтральные цвета */
  --neutral-100: #ffffff;
  --neutral-200: #f8f9fa;
  --neutral-300: #e9ecef;
  --neutral-400: #dee2e6;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;
  
  /* Градиенты */
  --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));
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Переходы */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Границы */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Размер шрифта */
  --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;
  
  /* Семейства шрифтов */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
}

/* Base Styles */
body {
  font-family: var(--font-body);
  color: var(--neutral-800);
  background-color: var(--neutral-100);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--neutral-800);
}

.section-title {
  font-size: var(--font-size-2xl);
  margin-bottom: 0.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  margin-bottom: 2rem;
  color: var(--neutral-600);
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin: 0 auto 2rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Global Buttons */
.btn {
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--neutral-100);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--neutral-100);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--neutral-100);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  color: var(--neutral-100);
}

.btn-outline-light {
  border: 2px solid var(--neutral-100);
  color: var(--neutral-100);
}

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

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

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
}

/* Header & Navigation */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  padding: 1rem 0;
  z-index: 1000;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--primary-color);
}

.navbar-brand span {
  margin-left: 0.5rem;
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--neutral-700);
  padding: 0.5rem 1rem;
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -90px;
  padding-top: 90px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

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

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.hero-section .lead {
  font-size: var(--font-size-lg);
  margin-bottom: 2rem;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-buttons {
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

.parallax-section {
  background-attachment: fixed;
}

/* About Section */
.about-section {
  padding: 5rem 0;
}

.about-image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}

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

.about-content p {
  margin-bottom: 1.5rem;
}

.about-content .lead {
  font-size: var(--font-size-lg);
  color: var(--neutral-700);
  font-weight: 300;
}

.about-stats {
  background-color: var(--neutral-200);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-item h4 {
  color: var(--primary-color);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: var(--font-size-sm);
  color: var(--neutral-600);
  margin-bottom: 0;
}

/* Services Section */
.services-section {
  background-color: var(--neutral-200);
  padding: 5rem 0;
}

.service-card {
  border: none;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

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

/* Case Studies Section */
.case-studies-section {
  padding: 5rem 0;
}

.case-study-card {
  border: none;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.case-study-card .badge {
  background-color: var(--primary-color);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}

.case-study-card h3 {
  color: var(--primary-color);
}

.case-study-card .text-muted {
  color: var(--neutral-600);
}

.case-study-card ul li {
  margin-bottom: 0.5rem;
}

.case-study-card .bi-check-circle-fill {
  color: var(--secondary-color);
}

/* Resources Section */
.resources-section {
  padding: 5rem 0;
}

.resource-card {
  border: none;
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

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

.resource-card h3 {
  color: var(--primary-color);
}

/* Partners Section */
.partners-section {
  padding: 5rem 0;
}

.partner-logo {
  padding: 1.5rem;
  background-color: var(--neutral-100);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-normal);
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Testimonials Section */
.testimonials-section {
  padding: 5rem 0;
  background-color: var(--neutral-200);
}

.testimonial-card {
  border: none;
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

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

.testimonial-rating i {
  color: #ffc107;
  margin-right: 0.25rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--neutral-700);
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.testimonial-author h4 {
  margin-bottom: 0.25rem;
  color: var(--neutral-800);
}

/* Gallery Section */
.gallery-section {
  padding: 5rem 0;
}

.gallery-item {
  margin-bottom: 1.5rem;
}

.gallery-image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.gallery-image-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.gallery-image-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1.5rem;
  transition: var(--transition-normal);
  opacity: 0;
  transform: translateY(20px);
}

.gallery-image-container:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-info h3 {
  color: var(--neutral-100);
  margin-bottom: 0.5rem;
}

.gallery-info p {
  color: var(--neutral-300);
  margin-bottom: 0;
}

/* Media Section */
.media-section {
  padding: 5rem 0;
  background-color: var(--neutral-200);
}

.media-card, .media-event-card {
  border: none;
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

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

.media-source {
  display: flex;
  align-items: center;
}

.media-date {
  color: var(--neutral-600);
  font-size: var(--font-size-sm);
}

.event-date .badge {
  background-color: var(--primary-color);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-details {
  margin-top: 2rem;
}

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

.contact-icon {
  font-size: var(--font-size-xl);
  color: var(--primary-color);
}

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

.form-label {
  font-weight: 500;
  color: var(--neutral-700);
}

.form-control {
  border: 1px solid var(--neutral-400);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(44, 123, 182, 0.25);
}

.form-select {
  border: 1px solid var(--neutral-400);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem;
  transition: var(--transition-fast);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(44, 123, 182, 0.25);
}

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

/* Regional Offices */
.regional-offices {
  background-color: var(--neutral-200);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  margin-top: 2rem;
}

.regional-offices h4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background-color: var(--neutral-800);
  color: var(--neutral-300);
  padding: 5rem 0 3rem;
}

.footer-info p {
  margin-bottom: 1.5rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.social-links a {
  color: var(--neutral-300);
  transition: var(--transition-fast);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
}

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

.footer-links h3 {
  color: var(--neutral-100);
  font-size: var(--font-size-md);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.footer-links ul li a {
  color: var(--neutral-400);
  transition: var(--transition-fast);
  text-decoration: none;
}

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

.footer-newsletter h3 {
  color: var(--neutral-100);
  font-size: var(--font-size-md);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--neutral-100);
}

.newsletter-form .form-control::placeholder {
  color: var(--neutral-500);
}

.newsletter-form .btn {
  background-color: var(--primary-color);
  border: none;
  color: var(--neutral-100);
}

.footer-bottom {
  color: var(--neutral-500);
  font-size: var(--font-size-sm);
}

.footer-bottom a {
  color: var(--neutral-400);
  transition: var(--transition-fast);
  text-decoration: none;
}

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

/* Success Page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.success-content {
  max-width: 600px;
  padding: 3rem;
  background-color: var(--neutral-100);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  font-size: 5rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

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

.page-content h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.page-content h2 {
  color: var(--neutral-700);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.page-content p {
  margin-bottom: 1.5rem;
}

/* Utility Classes */
.bg-light {
  background-color: var(--neutral-200) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.shadow-hover {
  transition: var(--transition-normal);
}

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

/* Media Queries */
@media (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .about-image-container {
    margin-bottom: 2rem;
  }
  
  .contact-info {
    margin-bottom: 3rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .footer {
    padding: 3rem 0 2rem;
  }
  
  .partner-logo {
    padding: 1rem;
  }
  
  .partner-logo img {
    max-height: 60px;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .hero-section .lead {
    font-size: var(--font-size-md);
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-md);
  }
  
  .section-divider {
    margin-bottom: 1.5rem;
  }
  
  .gallery-image-container img,
  .card-image img {
    height: 200px;
  }
}