:root {
  /* Триадная цветовая схема */
  --primary-color: #2e58ff;
  --secondary-color: #ff2e86;
  --tertiary-color: #2eff9e;
  
  /* Оттенки основных цветов */
  --primary-dark: #1a3dc8;
  --secondary-dark: #c41a66;
  --tertiary-dark: #1ac86e;
  
  /* Нейтральные цвета */
  --dark: #1a1a2e;
  --medium-dark: #333344;
  --medium: #555566;
  --medium-light: #8888aa;
  --light: #f5f5f8;
  
  /* Дополнительные цвета и эффекты */
  --overlay-dark: rgba(0, 0, 0, 0.6);
  --overlay-light: rgba(255, 255, 255, 0.9);
  --glass-effect: rgba(255, 255, 255, 0.15);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  
  /* Переходы и анимация */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Скругления */
  --border-radius-small: 4px;
  --border-radius-medium: 8px;
  --border-radius-large: 16px;
  
  /* Отступы */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

/* Базовые стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Merriweather', serif;
  color: var(--medium-dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--medium);
}

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

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

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

ul {
  list-style: none;
}

/* Контейнеры */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Секции */
section {
  padding: var(--spacing-lg) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-md);
  position: relative;
  color: var(--dark);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: var(--spacing-sm) auto var(--spacing-md);
  border-radius: var(--border-radius-small);
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  color: var(--medium);
  font-size: 1.1rem;
}

/* Кнопки */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius-medium);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 88, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(46, 88, 255, 0.4);
  transform: translateY(-2px);
  color: white;
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Хедер */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--spacing-md);
}

.logo {
  z-index: 1001;
}

.logo img {
  height: 60px;
  width: auto;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-list li {
  margin-left: var(--spacing-md);
}

.nav-list a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--medium-dark);
  transition: color var(--transition-fast);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--medium-dark);
  transition: all var(--transition-fast);
}

/* Hero секция */
.hero {
  position: relative;
  padding: 0;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  margin-top: 0;
}

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

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

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1, .hero-content h2 {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
}

/* Секция услуг */
.services {
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

/* Секция таймлайна */
.timeline-section {
  background-color: var(--light);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.timeline-content {
  position: relative;
  width: calc(50% - 40px);
  padding: var(--spacing-md);
  background-color: white;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--card-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -15px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 15px solid white;
}

.timeline-item:nth-child(even) .timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  right: -15px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid white;
}

.timeline-date {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius-small);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

/* Карточки */
.card {
  background-color: white;
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Прогресс-бары */
.progress-container {
  width: 100%;
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--medium);
}

.progress-bar {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  transition: width 1s ease;
}

.progress-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 5px;
  text-align: right;
}

/* Секция достижений */
.accolades {
  background-color: white;
}

.accolades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

/* Секция ресурсов */
.resources {
  background-color: var(--light);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

/* Секция отзывов клиентов */
.customer-stories {
  background-color: white;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.rating {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.client-car {
  font-style: italic;
  color: var(--medium-light);
  margin-bottom: var(--spacing-xs);
}

/* Секция вебинаров */
.webinars {
  background-color: var(--light);
}

.webinars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

.webinar-date {
  font-family: 'Montserrat', sans-serif;
  color: var(--medium);
  font-weight: 600;
  margin: var(--spacing-sm) 0;
}

/* Секция контактов */
.contact {
  background-color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.info-item {
  margin-bottom: var(--spacing-md);
}

.info-item h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.map {
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form {
  background-color: var(--light);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--card-shadow);
}

.contact-form h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--medium-dark);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-small);
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  color: var(--medium-dark);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(46, 88, 255, 0.2);
}

/* Футер */
.footer {
  background-color: var(--dark);
  color: white;
  padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-column h3 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.4rem;
}

.footer-column p,
.footer-column li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-column ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.social-links a {
  display: inline-block;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* Success страница */
.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  padding: var(--spacing-md);
}

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

.success-content {
  max-width: 600px;
}

.success-actions {
  margin-top: var(--spacing-lg);
}

/* Privacy, Terms страницы */
.legal-page {
  padding-top: 100px;
  padding-bottom: var(--spacing-lg);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.legal-content h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  font-size: 1.8rem;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: var(--spacing-md);
  z-index: 9999;
}

.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: var(--spacing-md);
  color: white;
}

.cookie-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

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

/* Медиа-запросы */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    right: auto;
    border-right: 15px solid white;
    border-left: none;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-fast);
    z-index: 1000;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-list li {
    margin: var(--spacing-sm) 0;
  }
  
  .nav-list a {
    font-size: 1.2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-content p {
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .section-title {
    font-size: 1.7rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.3rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .services-grid,
  .resources-grid,
  .webinars-grid,
  .accolades-grid,
  .stories-grid {
    grid-template-columns: 1fr;
  }
}

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

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

@keyframes drawLine {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.draw {
  animation: drawLine 2s ease-in-out forwards;
}

/* Состояния загрузки для изображений */
.image-loading {
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.image-loading::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  100% {
    transform: translateX(100%);
  }
}
.burger-menu{
  display: none;
}