/* RESET МИНИМАЛЬНЫЙ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BODY */

body {
  margin: 0;
  background: #f4f4f4;
  color: #111;
  font-family: Inter, sans-serif;
}

/* ОБЕРТКА */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}

/* ЗАГОЛОВОК */

h1 {
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 12px;
}

/* ОПИСАНИЕ */

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 32px;
}

/* СЕТКА */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* КАРТОЧКА */

.card {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 24px;

  display: flex;
  flex-direction: column;
  gap: 14px;

  min-height: 220px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ХОВЕР КАРТОЧКИ */

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ЗАГОЛОВОК В КАРТОЧКЕ */

.card h3 {
  font-size: 22px;
  line-height: 1.2;
}

/* ТЕКСТ */

.card p {
  color: #666;
  line-height: 1.6;
  flex: 1;
}

/* КНОПКА */

.card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 42px;
  padding: 0 16px;

  border-radius: 6px;
  background: #111;
  color: #fff;

  text-decoration: none;
  font-size: 14px;

  transition: background 0.2s ease;
}

.card a:hover {
  background: #333;
}

/* АДАПТИВ */

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 32px;
  }
}
