:root {
  /* Основная цветовая схема (раздельно-дополнительная) */
  --primary-color: #3a6ea5;
  --primary-dark: #2a4f75;
  --primary-light: #5c8fca;
  --secondary-color: #e94e77;
  --secondary-dark: #c93d64;
  --secondary-light: #f06e94;
  --accent-color: #f1b24a;
  --accent-dark: #d9963a;
  --accent-light: #f6c670;
  
  /* Нейтральные цвета */
  --dark: #333333;
  --gray-dark: #555555;
  --gray: #888888;
  --gray-light: #cccccc;
  --light: #f8f9fa;
  --white: #ffffff;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  --gradient-dark: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
  
  /* Переходы */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Радиусы */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 50%;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--gray-dark);
}

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

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

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

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

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

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

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

.bg-light {
  background-color: var(--light) !important;
}

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

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

.bg-dark {
  background-color: var(--dark) !important;
}

/* ---------- Кнопки ---------- */
.btn, 
button, 
input[type="submit"] {
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
}

.btn:hover, 
button:hover, 
input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:active, 
button:active, 
input[type="submit"]:active {
  transform: translateY(1px);
}

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

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

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

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

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ---------- Навигация ---------- */
header {
  transition: var(--transition-normal);
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: var(--white) !important;
  box-shadow: var(--shadow-md);
}

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

.nav-link {
  font-weight: 600;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  color: var(--dark) !important;
  position: relative;
}

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

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

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

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

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

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

.hero-section h1,
.hero-section p {
  color: var(--white);
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.3s;
  animation-fill-mode: both;
}

.hero-section .btn {
  animation: fadeInUp 1s ease-out 0.6s;
  animation-fill-mode: both;
}

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

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: 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-body {
  padding: 1.5rem;
  flex: 1;
  width: 100%;
}

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

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: var(--primary-light);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
  z-index: 1;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  margin-bottom: 30px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--white);
  border: 4px solid var(--secondary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 2;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--white);
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

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

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--white);
  border: 4px solid var(--secondary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 2;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
}

/* ---------- Team Section ---------- */
.team-card {
  text-align: center;
}

.team-card .card-image {
  height: 300px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.team-card .card-image img {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.team-card .card-body {
  padding: 2rem 1.5rem;
}

.team-card .card-title {
  margin-bottom: 0.25rem;
}

.team-card .text-muted {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ---------- Behind the Scenes ---------- */
#tras-bastidores img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}

#tras-bastidores img:hover {
  transform: scale(1.02);
}

/* ---------- Clientele Section ---------- */
.blockquote-footer {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray);
}

/* ---------- Resource Cards ---------- */
.resource-card {
  height: 100%;
  background: var(--white);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

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

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

.resource-card .btn {
  margin-top: 1rem;
}

/* ---------- Innovation Section ---------- */
.progress-container {
  margin-bottom: 2rem;
}

.progress {
  height: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background-color: var(--gray-light);
}

.progress-bar {
  background: var(--gradient-secondary);
  border-radius: var(--radius-sm);
}

/* ---------- Events Section ---------- */
.event-card {
  overflow: hidden;
}

.event-card .card-image {
  height: 200px;
}

.event-card .text-muted {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.event-card .btn {
  margin-top: 1rem;
}

/* ---------- Insights Section ---------- */
.insight-card .card-image {
  height: 250px;
}

/* ---------- Careers Section ---------- */
#carreras img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

#carreras img:hover {
  transform: scale(1.02);
}

/* ---------- Media Section ---------- */
.media-card .card-image {
  height: 200px;
}

.media-card .text-muted {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ---------- Contact Section ---------- */
.contact-info, 
.contact-form {
  height: 100%;
}

.contact-info h3,
.contact-form h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.contact-info p {
  margin-bottom: 0.75rem;
}

.form-control, 
.form-select {
  padding: 0.75rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.form-control:focus, 
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(58, 110, 165, 0.25);
}

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

/* ---------- Footer ---------- */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

footer h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

footer p {
  color: var(--gray-light);
}

footer a {
  color: var(--white);
  transition: var(--transition-fast);
  text-decoration: none;
}

footer a:hover {
  color: var(--secondary-light);
}

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

footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ---------- Cookie Consent ---------- */
#cookieConsent {
  background-color: rgba(0, 0, 0, 0.85);
  color: var(--white);
  padding: 20px;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  display: none;
}

#acceptCookies {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-normal);
}

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

/* ---------- Animation Keyframes ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* ---------- Utility Classes ---------- */
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.rounded {
  border-radius: var(--radius-md) !important;
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

.rounded-circle {
  border-radius: var(--radius-round) !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

/* Анимации при прокрутке */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 22px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: 22px;
  }
  
  .timeline-item .timeline-dot {
    left: 22px;
  }
}

@media (max-width: 768px) {
  .card-image {
    height: 200px;
  }
  
  .team-card .card-image {
    height: 250px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
  }
  
  .btn-lg {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
  }
  
  .hero-section {
    min-height: 500px;
  }
}

/* ---------- Special Pages ---------- */
.about-page, 
.privacy-page, 
.terms-page, 
.contacts-page {
  padding-top: 100px;
}

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--light);
}

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

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

.success-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.success-message {
  margin-bottom: 2rem;
}

/* Стили для изображений с фоном и текстом */
.bg-image-with-text {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 6rem 0;
}

.bg-image-with-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.bg-image-with-text .container {
  position: relative;
  z-index: 2;
}

/* Стили для "Читать далее" ссылок */
.read-more {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: 600;
  position: relative;
  padding-right: 25px;
  transition: var(--transition-normal);
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition-normal);
}

.read-more:hover {
  color: var(--secondary-dark);
  padding-right: 30px;
}

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

/* Социальные сети в футере */
.social-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-block;
  color: var(--white);
  transition: var(--transition-normal);
  font-weight: 600;
  text-decoration: none;
}

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