/* Блок услуг на карточке товара. Отдельный файл, подключается только там,
   где блок выводится. Классы с префиксом ls-, чтобы не пересечься с темой. */

.ls {
  margin: 36px 0;
  padding: 26px 28px 22px;
  border: 1px solid #D4DEE6;
  border-radius: 4px;
  background: #F7FAFC;
  font-family: "Roboto", system-ui, sans-serif;
  color: #16202A;
}

.ls__head { margin-bottom: 18px; }

.ls__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.ls__sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #5F7182;
  max-width: 68ch;
}

.ls__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ls__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #D4DEE6;
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.ls__item:hover {
  border-color: #2980B9;
  box-shadow: 0 0 0 1px #2980B9 inset;
  color: inherit;
  text-decoration: none;
}

.ls__name { grid-column: 1; grid-row: 1; font-size: 17px; font-weight: 700; line-height: 1.25; }
.ls__meta { grid-column: 1; grid-row: 2; font-size: 13px; color: #5F7182; }
.ls__price {
  grid-column: 2; grid-row: 1 / span 2;
  white-space: nowrap;
  font-size: 16px; font-weight: 700; color: #2980B9;
  font-variant-numeric: tabular-nums;
}

.ls__foot {
  margin: 16px 0 0;
  font-size: 13px;
  color: #5F7182;
}

@media (max-width: 560px) {
  .ls { padding: 20px 18px 16px; }
  .ls__title { font-size: 20px; }
}
