/* assets/css/blocks/services.css */

.seoms-services {
  background: #fff;
  color: #111;
  font-family: "MontserratCustom", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 56px 0 64px;
}
.seoms-services__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.seoms-services__title {
  text-align: center;
  font-weight: 800;
  font-size: 34px;
  margin: 0 0 8px;
}
.seoms-services__subtitle {
  text-align: center;
  color: #555;
  margin: 0 0 36px;
  font-size: 16px;
}

/* grid — 4 колонки, по одной на экранах поменьше */
.seoms-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* card */
.service-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform .14s ease, box-shadow .14s ease;
}
.service-card:hover {
  transform: none !important;
  box-shadow: 0 20px 44px rgba(0,0,0,0.13);
}

/* media */
.service-card__media {
  height: 220px;
  flex: 0 0 220px;
  background: #f4f4f4;
  overflow: hidden;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PNG-иллюстрации услуг — не обрезаем, вписываем целиком */
.service-card__media .service-card__pic {
  object-fit: contain !important;
  padding: 12px !important;
}

/* Убираем старые CSS-наложения SEO/PF/DZEN/AUTO, т.к. они уже есть на картинках */
.service-card:nth-child(n) .service-card__media.service-card__media--png::after {
  display: none !important;
}

/* Исключаем влияние декоративных псевдоэлементов redesign.css на клики */
.service-card::before {
  pointer-events: none !important;
}


/* body */
.service-card__body {
  padding: 20px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

/* label-badge */
.service-card__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ff6d3d;
  background: rgba(255,109,61,.08);
  border-radius: 4px;
  padding: 3px 8px;
  align-self: flex-start;
}

.service-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: #111;
}
.service-card__desc {
  color: #555;
  font-size: 13px;
  line-height: 1.6;
}

/* price block — единый стиль для всех карточек */
.service-card__price-block,
.service-card__price-block--packages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f7f7f7 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
}
.service-card__price-from {
  font-size: 13px;
  color: #666 !important;
  font-weight: 600;
  line-height: 1.3;
}
.service-card__price {
  font-size: 18px;
  font-weight: 800;
  color: #111 !important;
  line-height: 1.2;
}

/* пакеты (для блока "Тексты") — приводим к единому виду */
.service-card__price-block--packages {
  gap: 8px;
}
.service-card__package {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  background: transparent;
  border-radius: 6px;
  padding: 4px 0;
  font-size: 13px;
}
.service-card__package--accent {
  background: rgba(255, 109, 61, 0.07);
  border: 1px solid rgba(255, 109, 61, 0.18);
  padding: 7px 10px;
}
.service-card__package-name {
  font-weight: 700;
  color: #111;
  flex: 1 1 auto;
}
.service-card__package-note {
  font-weight: 400;
  color: #666;
  display: block;
  font-size: 11px;
}
.service-card__package-price {
  font-weight: 800;
  color: #111;
  white-space: nowrap;
  flex-shrink: 0;
}

/* actions */
.service-card__actions {
  margin-top: auto;
  padding-top: 14px;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.service-card__actions .btn {
  position: relative;
  z-index: 6;
  cursor: pointer !important;
}

/* Поднимаем интерактивные элементы внутри спойлеров и ссылок над возможными перекрытиями */
.svc-checklist__body {
  position: relative;
  z-index: 4;
}
.svc-checklist__more-link,
.service-card__case-link {
  position: relative;
  z-index: 5;
}

/* btn base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  color: #fff;
  font-family: inherit;
}

/* оранжевая кнопка — на всю ширину карточки */
.btn--orange {
  background: #ff6d3d;
  padding: 14px 24px;
  min-height: 52px;
  width: 100%;
  border-radius: 0;
  font-size: 14px;
  transition: background .14s ease;
}
.btn--orange:hover {
  background: #e85a28;
  color: #fff;
}

/* период цены ("в месяц") */
.service-card__price-period {
  font-size: 13px;
  font-weight: 600;
  color: #888;
}

/* ставка в цене */
.service-card__rate {
  color: #888;
  font-weight: 600;
  font-size: 12px;
}

/* ссылка "посмотреть кейсы" над кнопкой */
.service-card__actions--stacked {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card__case-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,0,0,.3);
  align-self: flex-start;
  transition: color .14s, border-color .14s;
}
.service-card__case-link:hover {
  color: #ff6d3d;
  border-color: rgba(255,109,61,.6);
}

/* ─── Спойлер чек-листа ─── */
.svc-checklist {
  margin-top: 8px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.svc-checklist__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  width: 100%;
  text-align: left;
}
.svc-checklist__toggle:hover { color: #ff6d3d; }

/* redesign.css перебивает цвет — делаем читаемым */
.service-card__case-link,
.svc-checklist__toggle {
  color: #111 !important;
}
.service-card__case-link:hover,
.svc-checklist__toggle:hover {
  color: #ff6d3d !important;
}

/* redesign.css делает тогглер оранжевым — убираем градиент/оранжевый фон */
.svc-checklist__toggle {
  background: #f7f7f7 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* redesign.css задаёт жёсткий min-height, из-за которого в коротких карточках пустота */
.service-card__body {
  min-height: 0 !important;
}
.service-card__desc {
  min-height: 0 !important;
}

.svc-checklist__arrow {
  flex-shrink: 0;
  margin-left: auto;
  transition: transform .2s ease;
}
.svc-checklist__toggle[aria-expanded="true"] .svc-checklist__arrow {
  transform: rotate(180deg);
}

.svc-checklist__body {
  margin-top: 10px;
}
.svc-checklist__body[hidden] { display: none; }

.svc-checklist__list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.svc-checklist__list li {
  font-size: 13px;
  color: #333;
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}
.svc-checklist__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff6d3d;
  font-weight: 700;
  font-size: 12px;
  top: 1px;
}


/* ссылка "узнать полный список" */
.svc-checklist__more-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #ff6d3d;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,109,61,.4);
  transition: color .14s, border-color .14s;
}
.svc-checklist__more-link:hover {
  color: #e85a28;
  border-color: rgba(232,90,40,.6);
}

/* Единый ритм карточек: redesign.css толкает price-block вниз margin-top:auto,
   из-за чего в карточках без спойлера (ПФ, Дзен) цена "зависает" с большим
   отступом от описания. Возвращаем цену сразу под описание, а кнопку —
   всегда прижатой к низу карточки. */
.service-card__price-block {
  margin-top: 0 !important;
}
.service-card__actions {
  margin-top: auto !important;
}

/* responsive */
@media (max-width: 1200px) {
  .seoms-services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .seoms-services__grid { grid-template-columns: 1fr; }
  .service-card__media { height: 180px; flex: 0 0 180px; }
  .seoms-services__title { font-size: 26px; }
}
