:root {
  /* Основные цвета */
  --primary-color: #2e7cf6;
  --primary-dark: #1956c4;
  --primary-light: #5c9dff;
  --secondary-color: #ff6347;
  --secondary-dark: #d84e38;
  --secondary-light: #ff8b75;
  
  /* Нейтральные цвета */
  --dark: #1a1a2e;
  --dark-medium: #2a2a40;
  --medium: #4a4a68;
  --light-medium: #6a6a88;
  --light: #f5f5fa;
  
  /* Цвета состояний */
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  
  /* Тени для нейроморфизма */
  --nm-shadow-light: 4px 4px 8px rgba(0, 0, 0, 0.1);
  --nm-shadow-dark: -4px -4px 8px rgba(255, 255, 255, 0.5);
  --nm-shadow-inset-light: inset 4px 4px 8px rgba(0, 0, 0, 0.1);
  --nm-shadow-inset-dark: inset -4px -4px 8px rgba(255, 255, 255, 0.5);
  
  /* Радиусы */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Переходы */
  --transition-fast: 0.2s ease-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Размер текста */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Интервалы */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
}

/* Базовые стили */
*, *:before, *:after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: var(--text-base);
  color: var(--medium);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  padding-top: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo Black', sans-serif;
  margin-top: 0;
  margin-bottom: var(--space-md);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
}

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

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

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

.w-100 {
  width: 100%;
}

/* Секция с фиксированным размером */
.section-padding {
  padding: var(--space-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  font-size: var(--text-4xl);
  color: var(--dark);
  padding-bottom: var(--space-md);
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius-sm);
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  color: var(--medium);
  font-size: var(--text-lg);
}

/* Навигация */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--nm-shadow-light);
  transition: all var(--transition-medium);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-family: 'Archivo Black', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-color);
}

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

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  color: var(--medium) !important;
  transition: color var(--transition-medium);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar-toggler {
  border: none;
  outline: none;
  padding: 0.25rem 0.75rem;
  transition: all var(--transition-medium);
}

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

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-medium);
  box-shadow: var(--nm-shadow-light);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn:focus {
  outline: 0;
  box-shadow: var(--nm-shadow-light), 0 0 0 0.25rem rgba(46, 124, 246, 0.25);
}

.btn:active {
  box-shadow: var(--nm-shadow-inset-light);
  transform: scale(0.98);
}

.btn:active::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

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

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

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

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

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

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

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

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

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: var(--text-lg);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: var(--text-sm);
}

/* Hero секция */
.hero-section {
  position: relative;
  padding: 100px 0;
  color: white;
  text-align: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
}

.hero-title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-md);
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
  color: white;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-text {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  color: white;
  opacity: 0.8;
  animation: fadeInUp 1.2s ease-out;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeIn 1.5s ease-out;
}

@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-xl);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.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: transform 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;
  width: 100%;
}

.card h3 {
  margin-bottom: var(--space-md);
  color: var(--dark);
  font-size: var(--text-xl);
}

/* Сервисы */
.services-section {
  padding: var(--space-xl) 0;
  background-color: var(--light);
}

/* Статистика */
.statistics-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-align: center;
}

.stat-widget {
  padding: var(--space-lg);
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  transition: transform var(--transition-medium);
}

.stat-widget:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: white;
}

.stat-label {
  font-size: var(--text-base);
  opacity: 0.9;
}

/* Клиенты */
.clientele-section {
  padding: var(--space-xl) 0;
  background-color: white;
}

/* Ресурсы */
.resources-section {
  padding: var(--space-xl) 0;
  background-color: var(--light);
}

.resource-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--nm-shadow-light);
  height: 100%;
  transition: all var(--transition-medium);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.resource-card h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-lg);
  text-align: center;
  font-weight: 600;
}

.resource-list {
  padding-left: 1.25rem;
}

.resource-list li {
  margin-bottom: var(--space-md);
}

.resource-list a {
  color: var(--medium);
  transition: color var(--transition-medium);
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.resource-list a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

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

.resource-list a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Вебинары */
.webinars-section {
  padding: var(--space-xl) 0;
  background-color: white;
}

.webinar-date {
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
}

.upcoming-webinars {
  margin-top: 3rem;
}

.upcoming-webinars h3 {
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--dark);
}

.accordion {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--nm-shadow-light);
  overflow: hidden;
}

.accordion-item {
  border: none;
  margin-bottom: 0.5rem;
}

.accordion-button {
  background-color: white;
  color: var(--dark);
  font-weight: 600;
  padding: 1.25rem;
  border-radius: var(--border-radius-md) !important;
  transition: all var(--transition-medium);
}

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

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

.accordion-body {
  padding: 1.5rem;
  background-color: var(--light);
}

/* Достижения */
.accolades-section, .awards-section {
  padding: var(--space-xl) 0;
  background-color: var(--light);
}

.awards-content {
  padding: var(--space-lg);
}

.awards-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: var(--space-lg);
}

.awards-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--space-md);
}

.awards-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: bold;
}

.awards-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--nm-shadow-light);
}

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

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

/* Новости */
.news-section {
  padding: var(--space-xl) 0;
  background-color: white;
}

.news-date {
  font-size: var(--text-sm);
  color: var(--light-medium);
  margin-bottom: var(--space-md);
}

/* FAQ */
.faq-section {
  padding: var(--space-xl) 0;
  background-color: var(--light);
}

/* Контакты */
.contact-section {
  padding: var(--space-xl) 0;
  background-color: white;
}

.contact-info {
  padding: var(--space-lg);
}

.contact-details {
  margin-bottom: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.contact-item i {
  margin-right: var(--space-md);
  color: var(--primary-color);
  font-size: var(--text-lg);
}

.map-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--nm-shadow-light);
}

.contact-form-container {
  background-color: var(--light);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--nm-shadow-light);
}

.contact-form-container h3 {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.form-group label {
  font-weight: 500;
  margin-bottom: var(--space-sm);
  display: block;
}

.form-control {
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius-md);
  padding: 0.75rem;
  transition: all var(--transition-medium);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(46, 124, 246, 0.25);
}

/* Футер */
.footer {
  background-color: var(--dark);
  color: white;
  padding-top: var(--space-xl);
}

.footer-info {
  margin-bottom: var(--space-lg);
}

.footer-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  color: white;
}

.footer-links h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  color: white;
}

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

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

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

.footer-social h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  color: white;
}

.social-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-medium);
  text-decoration: none;
}

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

.copyright {
  text-align: center;
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
}

/* Страница Success */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

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

.success-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.success-message {
  font-size: var(--text-lg);
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: var(--space-xl);
}

.privacy-page h1, .terms-page h1 {
  margin-bottom: var(--space-lg);
}

.privacy-content, .terms-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--nm-shadow-light);
}

/* Медиа-запросы */
@media (max-width: 992px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --text-2xl: 1.5rem;
    --text-xl: 1.25rem;
  }
  
  .section-padding {
    padding: var(--space-lg) 0;
  }
  
  .hero-section {
    padding: 60px 0;
  }
  
  .card-image {
    height: 200px;
  }
  
  .contact-info {
    margin-bottom: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }
  
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-xl);
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
  
  .stat-widget {
    margin-bottom: var(--space-md);
  }
  
  .card-image {
    height: 180px;
  }
  
  .awards-image-container {
    margin-top: var(--space-lg);
  }
}

@media (max-width: 576px) {
  :root {
    --space-xl: 2.5rem;
    --space-lg: 1.5rem;
  }
  
  .hero-section {
    padding: 30px 0;
  }
  
  .hero-title {
    font-size: var(--text-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .section-title {
    font-size: var(--text-2xl);
  }
  
  .card-image {
    height: 160px;
  }
}