/* 1. Сброс и нормализация (минимальный reset) */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  color: #212121;
  background-color: #ffffff;
  min-height: 100vh;
  position: relative;
}

/* 2. Кастомные свойства (CSS Variables) */
:root {
  --primary: #1976d2;      /* Основной цвет */
  --secondary: #ff9800;    /* Дополнительный */
  --success: #4caf50;     /* Зелёный */
  --danger: #f44336;     /* Красный */
  --warning: #ffeb3b;     /* Жёлтый */
  --info: #03a9f4;      /* Голубой */
  --dark: #212121;      /* Тёмный текст */
  --light: #f5f5f5;     /* Светлый фон */
  --gray: #757575;      /* Серый текст */
  --border-radius: 8px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
  --font-base: 1rem;
  --font-sm: 0.875rem;
  --font-lg: 1.25rem;
}

/* 3. Типографика (SEO‑оптимизированная) */
h1 {
  font-size: var(--font-lg);
  margin-bottom: 1rem;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
}

h2, h3, h4, h5, h6 {
  font-size: calc(var(--font-base) + 0.125rem);
  margin: 1rem 0 0.75rem;
  color: var(--dark);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--gray);
  font-size: var(--font-base);
}

small {
  font-size: var(--font-sm);
  color: var(--gray);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1565c0;
}

/* 4. Сетки и контейнеры (гибкие, для SEO) */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Адаптивные колонки (без избыточности) */
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 5. Кнопки (доступные, с фокусом) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  outline: none;
}

.btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #1565c0;
}

/* 6. Формы (SEO‑дружелюбные, доступные) */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: var(--font-base);
  transition: border-color 0.3s ease;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* 7. Карточки (лёгкие, с тенями) */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 0.75rem;
  font-size: var(--font-lg);
}

/* 8. Навигация (sticky, доступная) */
.navbar {
  background-color: white;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
}

/* Мобильное меню (скрыто по умолчанию) */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    flex-direction: column;