/* ========== БАЗОВЫЕ СТИЛИ ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-display: swap;
}

/* Учет предпочтений пользователя по уменьшению движения */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 var(--space-md);
  margin: 0 auto;
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__title {
  font-size: 3.6rem;
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-sm);
  color: var(--dark-color);
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section__subtitle {
  font-size: 1.8rem;
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
}