:root {
  /* Основная аналоговая цветовая схема */
  --primary-color: #3a7bd5;
  --primary-dark: #2a5e9c;
  --primary-light: #6294e0;
  --secondary-color: #00b4d8;
  --secondary-dark: #0096b7;
  --secondary-light: #48cae4;
  --accent-color: #5e60ce;
  --accent-dark: #4c4eb0;
  --accent-light: #7678ed;
  
  /* Нейтральные цвета */
  --dark-bg: #161b22;
  --medium-dark: #30363d;
  --medium: #586069;
  --medium-light: #8b949e;
  --light-bg: #f8f9fa;
  
  /* Цвета для текста */
  --text-dark: #333333;
  --text-medium: #586069;
  --text-light: #ffffff;
  
  /* Цвета для состояний */
  --success: #2ea043;
  --warning: #f0883e;
  --error: #f85149;
  
  /* Размеры и отступы */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Тени */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
  
  /* Переходы и анимации */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light-bg);
}

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

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

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

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

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

/* Глобальные кнопки */
.btn, button, input[type='submit'] {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: none;
}

.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(0);
}

.btn-primary, .btn-primary:visited {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.btn-secondary, .btn-secondary:visited {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-dark);
  color: var(--text-light);
}

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

.btn-outline-light:hover, .btn-outline-light:focus {
  background-color: var(--text-light);
  color: var(--primary-color);
}

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Анимация кнопки с морфингом */
.btn-morph {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-morph:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: skew(45deg);
  transition: all 0.5s;
  z-index: -1;
}

.btn-morph:hover:before {
  width: 180%;
}

/* Утилиты */
.text-center {
  text-align: center;
}

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

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

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 1rem auto;
  border-radius: var(--border-radius-md);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: 3rem;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Навигационное меню */
.header {
  background-color: transparent;
  transition: background-color var(--transition-medium);
  padding: 1rem 0;
}

.header.scrolled {
  background-color: var(--dark-bg);
  box-shadow: var(--shadow-md);
}

.navbar {
  padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-light);
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-medium);
}

.navbar-dark .navbar-nav .nav-link:hover:before,
.navbar-dark .navbar-nav .nav-link.active:before {
  width: 70%;
}

.navbar-brand {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--text-light) !important;
}

/* Hero секция */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(58, 123, 213, 0.8), rgba(94, 96, 206, 0.8));
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-buttons {
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-buttons .btn {
  margin: 0.5rem;
  min-width: 180px;
}

@keyframes fadeInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Innovation секция */
.innovation {
  position: relative;
  background-color: var(--light-bg);
}

.innovation-content {
  padding: 2rem 0;
}

.innovation-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

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

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

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

/* Прогресс-бары */
.progress-container {
  margin-bottom: 1.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.progress {
  height: 8px;
  background-color: #e9ecef;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 1s ease;
}

/* Переключатели */
.toggle-container {
  margin-top: 2rem;
}

.toggle-item {
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition-fast);
  border-radius: 34px;
}

.toggle-label:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition-fast);
  border-radius: 50%;
}

.toggle-input:checked + .toggle-label {
  background-color: var(--primary-color);
}

.toggle-input:checked + .toggle-label:before {
  transform: translateX(26px);
}

/* Sustainability секция */
.sustainability {
  background-color: #f5f7fa;
  position: relative;
}

.sustainability-card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

.sustainability-card .card-content {
  padding: 1.5rem;
  text-align: center;
}

.sustainability-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Timeline */
.timeline-container {
  padding: 2rem 0;
}

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

.timeline:before {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--border-radius-md);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

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

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

.timeline-dot {
  width: 20px;
  height: 20px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  position: absolute;
  top: 15px;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

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

.timeline-content {
  padding: 1.5rem;
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
}

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

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

/* Resources секция */
.resources {
  background-color: var(--light-bg);
}

.resource-card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

.resource-card .card-content {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

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

/* Clientele секция */
.clientele {
  background-color: #f5f7fa;
  position: relative;
}

.client-card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

.client-card .card-content {
  padding: 1.5rem;
  text-align: center;
}

.client-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.client-results {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.result-label {
  font-weight: 600;
  color: var(--text-medium);
}

.result-value {
  font-weight: 700;
  color: var(--success);
  font-size: 1.2rem;
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform var(--transition-medium);
}

.partner-logo:hover {
  transform: scale(1.1);
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter var(--transition-medium);
}

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

/* Testimonials секция */
.testimonials {
  background-color: var(--light-bg);
  position: relative;
}

.testimonial-card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.testimonial-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 5px solid white;
  box-shadow: var(--shadow-md);
}

.testimonial-rating {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.testimonial-position {
  color: var(--text-medium);
  font-size: 0.9rem;
}

/* Contact секция */
.contact {
  background-color: #f5f7fa;
  position: relative;
}

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

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

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

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

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

.contact-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

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

.form-label {
  font-weight: 600;
  color: var(--text-dark);
}

.form-control, .form-select {
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 5rem 0 2rem;
}

.footer-title {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.footer-description {
  color: var(--medium-light);
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-link {
  color: var(--medium-light);
  transition: color var(--transition-fast);
  font-weight: 600;
}

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

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

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

.footer-links a {
  color: var(--medium-light);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--text-light);
  transform: translateX(5px);
}

.footer-contact p {
  margin-bottom: 0.5rem;
  color: var(--medium-light);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--medium-dark);
}

.copyright, .credits {
  color: var(--medium-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(22, 27, 34, 0.95);
  color: var(--text-light);
  padding: 1rem 2rem;
  z-index: 9999;
  display: none;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 0;
  margin-right: 2rem;
}

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

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

.success-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.success-message {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

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

.page-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* Media Queries */
@media (max-width: 992px) {
  .timeline:before {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-dot {
    right: auto;
    left: 20px;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: 20px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .partner-logo {
    padding: 1rem;
  }
  
  .footer {
    padding: 3rem 0 1rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .contact-item {
    flex-direction: column;
  }
  
  .contact-icon {
    margin-bottom: 1rem;
    margin-right: 0;
  }
}

/* Animations */
@keyframes morphing {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

.innovation-image-container, .testimonial-image {
  animation: morphing 10s linear infinite;
}

/* Utility class for image containers */
.image-container, .card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Read more links */
.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  padding-right: 1.5rem;
}

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

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover:after {
  transform: translate(5px, -50%);
}

/* Contact icons */
.location-icon::before {
  content: '📍';
}

.phone-icon::before {
  content: '📞';
}

.email-icon::before {
  content: '✉️';
}

.hours-icon::before {
  content: '🕒';
}