/* Типы полотна — 522:8284: шапка 1700×111, сетка 3×2 по 550×704, промежуток 25.
   Карточка похожа на «Основные категории», но текст кремовый (var(--cream))
   и добавлены пилюли характеристик — поэтому свой блок, а не переиспользование. */
.mtypes {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 3.125vw, 60px);
  padding: clamp(56px, 5.2083vw, 100px) var(--gutter);
  background: var(--paper);
}
.mtypes__title {
  font-size: clamp(30px, 2.7083vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 1px;
  color: var(--ink);
}
.mtypes__sub {
  margin-top: 20px;              /* 82 − 62 = 20 */
  max-width: 725px;
  font-size: var(--t-lead);
  line-height: 1.2;
  letter-spacing: 1px;
  color: var(--ink);
}

.mtypes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.3021vw, 25px);
}

.mtype {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink);
}
.mtype__media {
  position: relative;
  height: clamp(220px, 19.0104vw, 365px);
  overflow: hidden;
}
.mtype__media > img { width: 100%; height: 100%; object-fit: cover; }

.mtype__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}
.mtype__info { display: flex; flex-direction: column; gap: 20px; }
.mtype__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mtype__name {
  font-size: clamp(20px, 1.3542vw, 26px);
  font-weight: 900;
  line-height: var(--lh-h3);
  letter-spacing: 1px;
  color: var(--cream);
  white-space: nowrap;
}
.mtype__price {
  font-size: var(--t-body);
  font-weight: 600;
  line-height: var(--lh-h4);
  letter-spacing: 1px;
  color: rgba(255, 246, 240, 0.86);
  white-space: nowrap;
}
/* в макете бокс описания фиксирован в три строки (69px), чтобы низ карточек совпал */
.mtype__text {
  min-height: calc(3 * var(--lh-h4));
  font-size: var(--t-body);
  font-weight: 600;
  line-height: var(--lh-h4);
  letter-spacing: 1px;
  color: rgba(255, 246, 240, 0.86);
}

.mtype__specs { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
/* обводка в Figma рисуется внутрь: отступы 10/20 − 1px рамки */
.mtype__chip {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 9px 19px;
  border: 1px solid var(--cream);
  border-radius: var(--r-xl);
  background: rgba(255, 246, 240, 0.2);
  font-size: var(--t-body);
  font-weight: 600;
  line-height: var(--lh-h4);
  letter-spacing: 1px;
  color: var(--cream);
  white-space: nowrap;
}
.mtype__dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 3.5px;
  background: var(--cream);
  box-shadow: 0 0 0 5px rgba(215, 193, 127, 0.14);
}

.mtype__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--r-xl);
  background: var(--gold-grad);
  font-size: var(--t-body);
  font-weight: 600;
  line-height: var(--lh-h4);
  letter-spacing: 1px;
  color: var(--ink);
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mtype__btn img { flex: 0 0 20px; width: 20px; }
.mtype__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(184, 138, 52, 0.35); }

@media (max-width: 1279px) {
  .mtypes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mtype__name { white-space: normal; }
  .mtype__chip { white-space: normal; }
}
@media (max-width: 767px) {
  .mtypes__grid { grid-template-columns: 1fr; }
  .mtype__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mtype__text { min-height: 0; }
}
