.service-accordion {
  display: grid;
  gap: 1rem;
}

.service-group {
  background: rgba(247, 248, 245, 0.78);
  border: 1px solid rgba(11, 20, 32, 0.08);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(11, 20, 32, 0.06);
  backdrop-filter: blur(12px) saturate(118%);
  -webkit-backdrop-filter: blur(12px) saturate(118%);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.service-group summary {
  list-style: none;
  cursor: pointer;
}

.service-group summary::-webkit-details-marker {
  display: none;
}

.service-group-summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  align-items: start;
  align-content: center;
  gap: 0.7rem;
  min-height: 92px;
  padding: clamp(1.2rem, 2.8vw, 1.8rem) clamp(1.2rem, 3vw, 2rem);
  padding-right: 5rem;
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.service-group-heading {
  display: block;
  max-width: 56rem;
  color: var(--ink);
  font-size: clamp(1.58rem, 3vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.service-group-lead {
  display: block;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.18vw, 1.06rem);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: pretty;
}

.service-group-summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: clamp(1rem, 2.2vw, 1.4rem);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(11, 20, 32, 0.08);
  border-radius: 999px;
  background: #eef3ee;
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 500;
  transform: translateY(-50%);
  transition:
    transform 0.28s ease,
    background 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease;
}

.service-group[open] {
  background: rgba(248, 251, 252, 0.82);
  border-color: rgba(15, 64, 100, 0.16);
  box-shadow:
    0 24px 50px rgba(11, 20, 32, 0.08),
    0 0 0 1px rgba(27, 73, 101, 0.05);
}

.service-group[open] .service-group-summary {
  background:
    linear-gradient(135deg, rgba(22, 56, 79, 0.08) 0%, rgba(27, 73, 101, 0.05) 100%),
    linear-gradient(180deg, rgba(251, 252, 250, 0.88) 0%, rgba(245, 248, 244, 0.82) 100%);
  box-shadow: inset 0 -1px 0 rgba(11, 20, 32, 0.06);
}

.service-group[open] .service-group-summary::after {
  background: var(--brand);
  color: var(--white);
  border-color: rgba(15, 64, 100, 0.2);
  transform: translateY(-50%) rotate(45deg);
}

.service-group-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0.65;
  transition:
    grid-template-rows 0.34s ease,
    opacity 0.24s ease;
}

.service-group[open] > .service-group-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.service-group-panel-inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  padding: 0 clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 2.8vw, 1.7rem);
}

.service-group-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(11, 20, 32, 0.08);
}

.service-group-copy p,
.service-group-intro,
.service-card-copy {
  max-width: 62rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.68;
}

.service-group-intro {
  margin-bottom: 0.95rem;
}

.service-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.service-point {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1rem 1.05rem;
  background: linear-gradient(180deg, rgba(244, 247, 243, 0.92) 0%, rgba(238, 242, 237, 0.98) 100%);
  border: 1px solid rgba(11, 20, 32, 0.07);
  border-radius: 18px;
}

.service-point-label,
.service-card-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.9rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(27, 73, 101, 0.08);
  color: #1b4965;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.service-card-badge:not(.service-card-badge-accent) {
  display: none;
}

.service-point strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.service-subgrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 20, 32, 0.08);
}

.service-card {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  grid-column: span 6;
  min-height: 100%;
  padding: 1.2rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(244, 247, 243, 0.84) 100%);
  border: 1px solid rgba(11, 20, 32, 0.07);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(11, 20, 32, 0.04);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    background 180ms ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(27, 73, 101, 0.84) 0%, rgba(168, 219, 255, 0.82) 100%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.service-card:hover {
  border-color: rgba(27, 73, 101, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(240, 246, 249, 0.92) 100%);
  box-shadow: 0 16px 36px rgba(11, 20, 32, 0.08);
}

.service-card:hover::before,
.service-card-highlight::before {
  opacity: 1;
}

.service-card-highlight {
  grid-column: span 12;
  border-color: rgba(27, 73, 101, 0.18);
  background:
    linear-gradient(135deg, rgba(27, 73, 101, 0.09) 0%, rgba(255, 255, 255, 0.74) 38%, rgba(238, 127, 42, 0.08) 100%);
  box-shadow:
    0 14px 32px rgba(27, 73, 101, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.service-card-partner {
  background: linear-gradient(180deg, rgba(246, 249, 250, 0.76) 0%, rgba(238, 243, 246, 0.88) 100%);
}

.service-card-title {
  display: block;
  color: var(--ink);
  font-size: clamp(1.04rem, 1.45vw, 1.34rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.18;
  text-wrap: pretty;
}

.service-card-badge-accent {
  background: rgba(238, 127, 42, 0.12);
  color: #c56a1f;
}

.service-card-badge-partner {
  background: rgba(15, 64, 100, 0.1);
  color: #214b66;
}

.service-subgrid-partners .service-card {
  grid-column: span 4;
}

.service-group-summary:hover .service-group-heading {
  color: #143a59;
}

.service-group-summary:hover {
  background:
    linear-gradient(135deg, rgba(27, 73, 101, 0.04) 0%, rgba(27, 73, 101, 0.02) 100%);
}

@media (max-width: 900px) {
  .service-group-summary {
    padding-right: 4.4rem;
  }

  .service-group-heading {
    max-width: none;
  }

  .service-points {
    grid-template-columns: 1fr;
  }

  .service-subgrid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card-highlight,
  .service-subgrid-partners .service-card {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .service-accordion {
    gap: 0.8rem;
  }

  .service-group {
    border-radius: 22px;
  }

  .service-group-summary {
    min-height: 78px;
    padding: 1rem;
    padding-right: 3.9rem;
  }

  .service-group-heading {
    font-size: clamp(1.34rem, 6.8vw, 1.8rem);
  }

  .service-group-summary::after {
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .service-group-panel-inner {
    padding: 0 1rem 1rem;
  }

  .service-group-copy {
    padding-top: 0.9rem;
  }

  .service-group-lead {
    font-size: 0.98rem;
    max-width: 100%;
  }

  .service-subgrid {
    padding-top: 0.85rem;
  }

  .service-card {
    padding: 1rem 0.95rem;
  }
}
