/* ===== ШРИФТЫ (Шаг 4) ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* ===== СБРОС СТИЛЕЙ И БАЗОВЫЕ НАСТРОЙКИ (Шаг 2) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

/* ===== ОБЩИЕ КОМПОНЕНТЫ И ЛОГИКА БЭМ (Шаг 3) ===== */

/* --- Общий класс-контейнер для ограничения ширины --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- Общие стили для секций --- */
.section {
  padding: 60px 0;
}

.section__title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #2c5530; /* Пример цвета из задания */
}

.section__subtitle {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #666;
  text-transform: uppercase;
}

/* --- Блок: Header --- */
.header {
  background-color: #fff; /* Белый фон на всю ширину */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Легкая тень для отделения от контента */
  /* Можно добавить position: sticky; top: 0; z-index: 100; чтобы шапка "прилипала" при прокрутке */
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0; /* Вертикальные отступы для контента внутри шапки */
}

.header__logo img {
  height: 50px; /* Задаем высоту лого */
}

/* --- Блок: Nav --- */
.nav__list {
  display: flex;
  gap: 30px;
}

.nav__link {
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav__item--active .nav__link,
.nav__link:hover {
  color: #2c5530; /* Цвет для активной/наведенной ссылки */
}

/* --- Блок: Product Grid & Card --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 карточки в ряд */
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.product-card__price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c5530;
    margin: 10px 0;
}
.product-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.product-card__description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}
.product-card__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* --- Блок: Button --- */
.button {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.button--primary {
    background-color: #2c5530;
    color: #fff;
}
.button--primary:hover {
    background-color: #1e3a22;
}
.button--secondary {
    background-color: #f0f0f0;
    color: #333;
}
.button--secondary:hover {
    background-color: #e0e0e0;
}

/* --- Блок: Footer --- */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}