/* =============================
   1. RESET
   ============================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-optical-sizing: auto;
  color: #222;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* Ссылки и кнопки */
a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: #0056b3; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  background-color: #007bff;
  color: #fff;
  transition: background-color 0.2s;
}

.button:hover { background-color: #0056b3; }

/* =============================
   2. CONTAINER & SECTIONS
   ============================= */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 48rem;
  padding: 2rem 1rem;
  margin: 0 auto;
  gap: 3rem; /* Расстояние между секциями */
}

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  width: 100%;
  padding: 3rem 1rem;
}

/* Заголовки */
h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.25rem; line-height: 1.3; }
h3 { font-size: 1.5rem; line-height: 1.3; }

/* Параграфы */
p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 36rem;
}

/* =============================
   3. FLEX-BASED FEATURES
   ============================= */
.flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.flex-column > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  border-radius: 0.5rem;
  background-color: #f8f9fa;
  width: 100%;
}

/* Чередование фонов секций */
.section:nth-of-type(odd) { background-color: #ffffff; }
.section:nth-of-type(even) { background-color: #f0f0f0; }
