:root {
  /* Основные цвета */
  --primary-color: #4a6da7;
  --primary-hover: #3a5d97;
  --primary-light: #8ca2c9;
  --secondary-color: #6c757d;
  --secondary-hover: #5c636a;
  
  /* Нейтральные цвета */
  --neutral-100: #f8f9fa;
  --neutral-200: #e9ecef;
  --neutral-300: #dee2e6;
  --neutral-400: #ced4da;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;
  
  /* Акцентные цвета */
  --accent-color: #e5b668;
  --accent-hover: #d4a655;
  --success-color: #64a887;
  --warning-color: #e67e22;
  --danger-color: #c0392b;
  
  /* Цвета фона */
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --bg-tertiary: #f2f2f2;
  --bg-dark: #222831;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, rgba(74, 109, 167, 0.9), rgba(58, 93, 151, 0.9));
  --gradient-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  --gradient-card: linear-gradient(to bottom right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5));
  
  /* Тени */
  --shadow-sm: 4px 4px 10px rgba(0, 0, 0, 0.05), -4px -4px 10px rgba(255, 255, 255, 0.8);
  --shadow-md: 8px 8px 16px rgba(0, 0, 0, 0.1), -8px -8px 16px rgba(255, 255, 255, 0.8);
  --shadow-lg: 16px 16px 32px rgba(0, 0, 0, 0.1), -16px -16px 32px rgba(255, 255, 255, 0.8);
  --shadow-inset: inset 4px 4px 8px rgba(0, 0, 0, 0.1), inset -4px -4px 8px rgba(255, 255, 255, 0.8);
  
  /* Скругления */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Переходы */
  --transition-fast: 0.2s all ease-in-out;
  --transition-normal: 0.3s all ease-in-out;
  --transition-slow: 0.5s all ease-in-out;
  
  /* Размеры */
  --header-height: 80px;
  --footer-padding: 60px;
}

/* Общие стили */
body {
  font-family: 'Source Sans Pro', sans-serif;
  color: var(--neutral-800);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  padding-top: var(--header-height);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--neutral-900);
}

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

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

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

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Заголовки секций */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  margin-bottom: 1.5rem;
  color: var(--neutral-900);
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  border-radius: var(--border-radius-md);
}

.section-header .lead {
  color: var(--neutral-600);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Кнопки */
.btn {
  position: relative;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  padding: 10px 24px;
  transition: var(--transition-normal);
  overflow: hidden;
  z-index: 1;
  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-inset);
}

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

.btn:hover:before {
  width: 100%;
}

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

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

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

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

.btn-outline-light {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-lg {
  padding: 12px 30px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Формы */
input, select, textarea {
  background-color: var(--bg-primary);
  border: 1px solid var(--neutral-300);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  width: 100%;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-inset);
}

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

label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: var(--neutral-700);
}

.form-control, .form-select {
  box-shadow: var(--shadow-inset);
}

/* Карточки */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.card-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: center;
}

.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: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  height: 70px;
}

.navbar {
  height: 100%;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.navbar-brand:hover {
  color: var(--primary-hover);
}

.nav-link {
  font-weight: 600;
  color: var(--neutral-700);
  position: relative;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
}

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

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

.nav-link:hover:before {
  width: 100%;
}

.navbar-toggler {
  border: none;
  padding: 0;
  outline: none;
}

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

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
}

.hero-section .container {
  position: relative;
  z-index: 10;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* About Section */
.about-section {
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

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

.stats-container {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

/* Services Section */
.services-section {
  background-color: var(--bg-primary);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--neutral-800);
}

/* Team Section */
.team-section {
  background-color: var(--bg-secondary);
}

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

.team-card .card-image {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
}

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

.team-position {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  color: var(--neutral-600);
  transition: var(--transition-normal);
}

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

/* Success Section */
.success-section {
  background-color: var(--bg-primary);
}

.success-card {
  overflow: hidden;
}

.success-card .card-image {
  height: 100%;
}

.client-name {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 1.5rem;
}

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

.resource-card {
  text-align: center;
  height: 100%;
  padding: 2rem 1rem;
}

.resource-card h3 {
  margin-bottom: 1rem;
}

/* Research Section */
.research-section {
  background-color: var(--bg-primary);
}

.accordion-button {
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--neutral-800);
  padding: 1.2rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-light);
  color: var(--neutral-900);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-body {
  padding: 1.5rem;
}

/* News Section */
.news-section {
  background-color: var(--bg-secondary);
}

.news-card .card-image {
  height: 220px;
}

.news-date {
  color: var(--neutral-600);
  font-size: 0.9rem;
}

/* Media Section */
.media-section {
  background-color: var(--bg-primary);
}

.media-card {
  height: 100%;
}

.media-card .card-image {
  height: 100%;
}

.media-date {
  color: var(--neutral-600);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--bg-secondary);
}

.testimonial-card {
  text-align: center;
  padding: 2rem;
}

.testimonial-rating {
  color: var(--accent-color);
  font-size: 1.5rem;
}

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

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.testimonial-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

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

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

.contact-info {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-item i {
  margin-right: 1rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-map {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--neutral-300);
  padding-top: var(--footer-padding);
}

.footer h3, .footer h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--neutral-400);
  line-height: 1.8;
}

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

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

.footer-links a {
  color: var(--neutral-400);
  transition: var(--transition-normal);
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
}

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

.social-links a {
  color: var(--neutral-400);
  transition: var(--transition-normal);
}

.social-links a:hover {
  color: white;
  transform: translateY(-3px);
}

.copyright {
  color: var(--neutral-500);
}

.footer-legal-link {
  color: var(--neutral-500);
  margin-left: 1.5rem;
  transition: var(--transition-normal);
}

.footer-legal-link:hover {
  color: white;
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: none;
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: none;
  padding: 1.5rem;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(33, 37, 41, 0.95);
  color: white;
  padding: 1rem 0;
  z-index: 9999;
  display: none;
}

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

.cookie-content p {
  margin: 0;
}

.cookie-content a {
  color: var(--accent-color);
}

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

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

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

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

.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

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

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.animate-fadeInUp {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-fadeIn {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.animate-scaleIn {
  opacity: 0;
  animation: scaleIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Медиа-запросы */
@media (max-width: 992px) {
  .hero-section .display-3 {
    font-size: 2.5rem;
  }
  
  .team-card .card-image {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .hero-section .display-3 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: center;
  }
  
  .card-image {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header .lead {
    font-size: 1rem;
  }
  
  .contact-form, .contact-info {
    padding: 1.5rem;
  }
}