/**
 * Секция «Практика» (кейсы).
 * По макету: x: 69px, блок 1228.5×672px; карточка изображение ~386×254px,
 * border-radius 4px; подпись Inter 500 14px; заголовок Inter 20px;
 * дата Inter 500 13px rgba(68,68,68,0.9); ссылка #A48B3A. Кнопка как у «Больше рекомендаций».
 */

.practice {
  background: #ECF1F3;
  padding: 64px 24px 80px;
  max-width: 100%;
}

.practice__inner {
  display: flex;
  flex-direction: column;
  gap: 55px;
  max-width: 1111px;
  margin: 0 auto;
}

.practice__title {
  align-self: center;
  margin-bottom: 11px;
}

.practice__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
}

.practice__card {
  margin: 0;
  height: 100%;
}

.practice__card-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  color: inherit;
}

.practice__img-wrap {
  margin-bottom: 12px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #d8d8d8;
}

.practice__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 386 / 254;
  object-fit: cover;
  border-radius: 4px;
}

/* Подпись над заголовком: Inter 500 14px (макет) */
.practice__caption {
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.9);
  margin: 0 0 8px;
  line-height: 1.4;
}

/* Заголовок карточки: Inter 20px (макет); ограничен 2 строками */
.practice__card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: #1b1c1c;
  margin: 0 0 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Описание карточки: ограничено 4 строками */
.practice__description {
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0%;
  color: #2D2D2D;
  margin: 0 0 15px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.practice__meta {
  display: flex;
  justify-content: space-between;
}

/* Дата: Inter 500 13px rgba(68,68,68,0.9) (макет) */
.practice__date {
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 400;
  color: rgba(68, 68, 68, 0.9);
  line-height: 1.4;
}

/* Ссылка «Изучить детали»: 13px, цвет #A48B3A (макет) */
.practice__link-text {
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 400;
  color: #a48b3a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.practice__link-text:hover {
  color: #8f7832;
  text-decoration: underline;
}

.practice__link-arrow {
  margin-left: 4px;
}

.practice__actions {
  text-align: center;
  margin: 0;
}

.practice__actions .section-btn {
  padding: 14px 42px 13px;
  border-radius: var(--radius-btn);
  transition: var(--transition-bg);
  font-family: var(--font-raleway);

}

.practice__actions .section-btn:hover {
  opacity: 1;
  background-color: var(--color-gold-hover);
}


@media (min-width: 1024px) {
  .practice {
    padding-left: 69px;
    padding-right: 69px;
    padding-top: 80px;
    padding-bottom: 96px;
  }
}

@media (max-width: 900px) {
  .practice__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .practice {
    padding-top: 48px;
    padding-bottom: 64px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .practice__title {
    margin-bottom: 32px;
  }

  .practice__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
  }

  .practice__card-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .practice__img {
    aspect-ratio: 386 / 254;
  }
}
