/* Shared multi-page shell (services / cases / news) — violet brand */

.sp-page {
  background: #fff;
  color: #2f2f38;
  min-height: 60vh;
}

.sp-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.sp-hero {
  padding: 120px 0 48px;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(124, 58, 237, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(167, 139, 250, 0.08), transparent 50%),
    linear-gradient(180deg, #f8f5ff 0%, #fff 100%);
  border-bottom: 1px solid rgba(109, 40, 217, 0.08);
}

.sp-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c3aed;
}

.sp-eyebrow--on-dark {
  color: #c4b5fd;
}

.sp-h1 {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #1a1228;
  max-width: 18ch;
}

.sp-lead {
  margin: 16px 0 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: rgba(47, 47, 56, 0.58);
  font-weight: 500;
}

.sp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.sp-section {
  padding: 56px 0;
}

.sp-section--muted {
  background: #f7f5fb;
  border-block: 1px solid rgba(109, 40, 217, 0.06);
}

.sp-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.sp-h2 {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1a1228;
}

.sp-grid {
  display: grid;
  gap: 16px;
}

.sp-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sp-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .sp-grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .sp-hero {
    padding: 100px 0 36px;
  }
  .sp-grid--3,
  .sp-grid--2 {
    grid-template-columns: 1fr;
  }
}

.sp-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(47, 47, 56, 0.08);
  box-shadow: 0 16px 40px -28px rgba(47, 47, 56, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.sp-card--link {
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.sp-card--link:hover {
  border-color: rgba(109, 40, 217, 0.28);
  box-shadow: 0 22px 50px -28px rgba(109, 40, 217, 0.35);
  transform: translateY(-2px);
}

.sp-card__title {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1a1228;
}

.sp-card__text {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(47, 47, 56, 0.55);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(47, 47, 56, 0.4);
}

.sp-card__more {
  color: #6d28d9;
  font-weight: 700;
  font-size: 13px;
}

.sp-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b21b6;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.12);
}

.sp-chip--on-media {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.sp-btn:hover {
  transform: translateY(-1px);
}

.sp-btn--primary {
  background: #6d28d9;
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(109, 40, 217, 0.55);
}

.sp-btn--primary:hover {
  background: #5b21b6;
}

.sp-btn--ghost {
  background: #fff;
  color: #4c1d95;
  border-color: rgba(109, 40, 217, 0.18);
}

.sp-btn--light {
  background: #fff;
  color: #4c1d95;
}

.sp-btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.sp-case-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(47, 47, 56, 0.08);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 44px -30px rgba(47, 47, 56, 0.3);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.sp-case-card:hover {
  border-color: rgba(109, 40, 217, 0.25);
  box-shadow: 0 24px 50px -28px rgba(109, 40, 217, 0.3);
  transform: translateY(-2px);
}

.sp-case-card__media {
  position: relative;
  min-height: 220px;
  background: #efe9f8;
}

.sp-case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-case-card__ph {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.sp-case-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-case-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.sp-case-card__stats strong {
  display: block;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 18px;
  color: #6d28d9;
  letter-spacing: -0.02em;
}

.sp-case-card__stats span {
  font-size: 11px;
  color: rgba(47, 47, 56, 0.45);
  font-weight: 600;
}

@media (max-width: 720px) {
  .sp-case-card {
    grid-template-columns: 1fr;
  }
  .sp-case-card__media {
    min-height: 180px;
  }
}

.sp-prose {
  max-width: 72ch;
}

.sp-prose p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(47, 47, 56, 0.72);
  font-weight: 500;
}

.sp-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.sp-list li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(109, 40, 217, 0.1);
  font-size: 15px;
  font-weight: 600;
  color: #2f2f38;
  line-height: 1.4;
}

.sp-list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.sp-steps {
  display: grid;
  gap: 12px;
}

.sp-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(47, 47, 56, 0.08);
}

.sp-step__num {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: rgba(109, 40, 217, 0.35);
  letter-spacing: -0.03em;
}

.sp-step h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.sp-step p {
  margin: 0;
  font-size: 14px;
  color: rgba(47, 47, 56, 0.55);
  line-height: 1.45;
}

.sp-faq {
  display: grid;
  gap: 10px;
}

.sp-faq details {
  border-radius: 16px;
  border: 1px solid rgba(47, 47, 56, 0.08);
  background: #fff;
  padding: 14px 18px;
}

.sp-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}

.sp-faq summary::-webkit-details-marker {
  display: none;
}

.sp-faq details p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(47, 47, 56, 0.58);
}

.sp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f0fa;
  color: #4c1d95;
  font-size: 12px;
  font-weight: 700;
}

.sp-review {
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(109, 40, 217, 0.1);
}

.sp-review p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #3a3348;
  font-weight: 500;
}

.sp-review__who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-review__ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.sp-review strong {
  display: block;
  font-size: 14px;
}

.sp-review span {
  font-size: 12px;
  color: rgba(47, 47, 56, 0.45);
}

.sp-cta-band {
  margin-top: 24px;
  padding: 56px 0;
  background: linear-gradient(165deg, #7c3aed 0%, #6d28d9 42%, #5b21b6 100%);
  color: #fff;
}

.sp-cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sp-cta-band__title {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sp-cta-band__text {
  margin: 10px 0 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.5;
}

.sp-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sp-stat {
  padding: 18px;
  border-radius: 18px;
  background: #f7f5fb;
  border: 1px solid rgba(109, 40, 217, 0.1);
}

.sp-stat strong {
  display: block;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(22px, 2.5vw, 30px);
  color: #6d28d9;
  letter-spacing: -0.03em;
}

.sp-stat span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(47, 47, 56, 0.5);
}

.sp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.sp-gallery a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid rgba(47, 47, 56, 0.08);
}

.sp-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-news-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(47, 47, 56, 0.45);
}

.sp-article time {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(47, 47, 56, 0.45);
}

.sp-two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .sp-two-col {
    grid-template-columns: 1fr;
  }
  .sp-stats {
    grid-template-columns: 1fr;
  }
}
