/* Общие карточки и призывы к действию для списка и детальной страницы услуг. */

.service-icon {
  --service-hue: 264;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: hsl(var(--service-hue) 70% 55% / 0.15);
  color: hsl(var(--service-hue) 72% 55%);
}

.service-icon--strategy {
  --service-hue: 200;
}

.service-icon--advisory {
  --service-hue: 150;
}

html[data-theme="dark"] .service-icon {
  background: hsl(var(--service-hue) 56% 48% / 0.2);
  color: hsl(var(--service-hue) 76% 70%);
}

.service-tile {
  min-width: 0;
  padding: 24px;
  border-color: var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: none;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.service-tile:hover,
.service-tile:focus-within {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-tile__title {
  margin: 20px 0 10px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: var(--type-component-title);
  font-weight: 600;
  line-height: 1.2;
}

.service-tile__summary {
  margin: 0 0 20px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

.service-tile__footer {
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.service-tile__price {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.service-tile__link {
  gap: 6px;
  margin-left: auto;
  color: var(--accent-ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.service-tile__link:hover,
.service-tile__link:focus {
  color: var(--accent-deep);
}

.service-cta {
  gap: 24px;
  padding: 38px 40px;
  border-radius: var(--r-lg);
  background: var(--inverse-bg);
}

.service-cta__copy {
  flex: 1 1 360px;
}

.service-cta__title {
  margin: 0 0 8px;
  color: var(--inverse-text);
  font-family: var(--font-head);
  font-size: var(--type-section-title);
  font-weight: 600;
  line-height: var(--line-heading);
}

.service-cta__text {
  max-width: 48ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: var(--type-body);
  line-height: var(--line-body);
}

.service-cta__button,
.service-primary-button {
  --bs-btn-color: var(--on-accent);
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: var(--on-accent);
  --bs-btn-hover-bg: var(--accent-deep);
  --bs-btn-hover-border-color: var(--accent-deep);
  --bs-btn-active-color: var(--on-accent);
  --bs-btn-active-bg: var(--accent-deep);
  --bs-btn-active-border-color: var(--accent-deep);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
}

.service-secondary-button {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--line-2);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--surface-2);
  --bs-btn-hover-border-color: var(--ink-3);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .service-tile {
    padding: 22px;
  }

  .service-tile__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-tile__link {
    margin-left: 0;
  }

  .service-cta {
    padding: 28px 24px;
  }

  .service-cta__button {
    width: 100%;
  }
}
