/* Обёртка: заголовок ГАРАНТИЯ и прямоугольники на одной линии */
.guarantee-section-wrap {
  display: flex;
  align-items: flex-start;
  margin: 16px 5% 40px;
  gap: 108px;
  font-family: 'HelveticaNeueCyr Roman', Arial, sans-serif;
}

/* Заголовок ГАРАНТИЯ — слева, выравнивание по верху с прямоугольниками */
.guarantee-page-title {
  font-size: 32px;
  font-weight: 700;
  color: #333F48;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  line-height: 1.2;
}

/* Блоки гарантии — справа от заголовка */
.guarantee-blocks {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.guarantee-row {
  width: 100%;
  margin-bottom: 4px;
  min-height: 125px;
  position: relative;
  padding: 18px 0;
  background-color: #FAFAFA;
}

.guarantee-row:first-child {
  padding-top: 8px;
}

.guarantee-row:last-child {
  margin-bottom: 0;
}

/* Контент ряда — на всю ширину секции */
.guarantee-row-inner {
  max-width: 1200px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  display: flex;
  align-items: stretch;
  min-height: 125px;
}

/* Одинаковая ширина и высота у всех прямоугольников (как «2 года»), не растягиваются от записей справа */
.guarantee-left {
  color: #fff;
  width: 360px;
  min-width: 360px;
  max-width: 360px;
  height: 125px;
  min-height: 125px;
  max-height: 125px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  border-radius: 0;
  /* Обрезанные углы одинаковые: верхний левый и нижний правый по 5% по горизонтали, 15% по вертикали */
  clip-path: polygon(5% 0, 100% 0, 100% 85%, 95% 100%, 0 100%, 0 15%);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  background-color: #7A7A7A;
}

/* Верхняя часть прямоугольника — тёмный фон, одинаковая высота у всех (как у первого) */
.guarantee-left .guarantee-term {
  background-color: #00a9ce;
  padding: 18px 24px 12px;
  font-size: 28px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.2em;
  max-height: 2.5em;
  line-height: 1.25;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
}

/* Нижняя часть — серый фон; слово ГАРАНТИЯ строго по центру (одинаковый отступ сверху и снизу) */
.guarantee-left .guarantee-label {
  background-color: #7A7A7A;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 24px 20px;
  text-align: left;
  opacity: 1;
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.8em;
  line-height: 1.2;
  box-sizing: border-box;
}

.guarantee-right {
  background: transparent;
  padding: 0 24px 16px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #333F48;
}

.guarantee-product {
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 2px;
}

.guarantee-product-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}
.guarantee-product-link:hover {
  color: #00A9CE;
}

/* Ссылка «Перейти в каталог» — ближе к заголовку сверху, больше отступ снизу */
.guarantee-catalog-link {
  font-size: 14px;
  font-weight: 500;
  color: #00A9CE;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 0;
  margin-bottom: 14px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.guarantee-catalog-link:last-child {
  margin-bottom: 0;
}

.guarantee-catalog-link:hover {
  color: #007B9A;
  transform: translateX(4px);
}

.guarantee-arrow {
  color: #00A9CE;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: color 0.25s ease;
}

.guarantee-catalog-link:hover .guarantee-arrow {
  color: #007B9A;
}

/* Вертикальные планшеты: всё в одну колонку под словом «Гарантия», без ухода контента вправо */
@media (min-width: 768px) and (max-width: 1299px) and (orientation: portrait) {
  .guarantee-section-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
    margin-left: 3% !important;
    margin-right: 3% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .guarantee-page-title {
    width: 100% !important;
    max-width: 100% !important;
  }
  .guarantee-blocks {
    width: 100% !important;
    max-width: 100% !important;
  }
  .guarantee-row {
    width: 50% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .guarantee-row-inner {
    flex-direction: column !important;
    min-height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .guarantee-left {
    width: 100% !important;
    min-width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    clip-path: polygon(5% 0, 100% 0, 100% 85%, 95% 100%, 0 100%, 0 15%);
  }
  .guarantee-right {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 0 0 0 !important;
    margin-top: 24px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  .guarantee-section-wrap {
    flex-direction: column;
    gap: 16px;
  }
  .guarantee-row-inner {
    flex-direction: column;
    min-height: auto;
  }
  .guarantee-left {
    width: 100%;
    min-width: auto;
    max-width: none;
    border-radius: 0;
    /* Те же обрезанные углы, что и в десктопе */
    clip-path: polygon(5% 0, 100% 0, 100% 85%, 95% 100%, 0 100%, 0 15%);
  }
  .guarantee-right {
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    margin-top: 24px;
  }
}
