.service-detail {
  --sd-ink: #1d1d1f;
  --sd-text: #515154;
  --sd-blue: #0066cc;
  --sd-border: #e5e5ea;
  overflow: hidden;
  border: 1px solid var(--sd-border);
  border-radius: 24px;
  background: #fff;
  color: var(--sd-ink);
  box-shadow: 0 18px 50px #16253a14;
  overflow-wrap: anywhere;
}

.sd-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(220px, 32vh, 360px);
  background: linear-gradient(135deg, #0066cc, #8622c3);
}

.sd-banner img, .sd-banner::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sd-banner img { object-fit: cover; z-index: -2; }

.sd-banner::after {
  content: "";
  z-index: -1;
  background: linear-gradient(to top, #000e, #0006 63%, #0001);
}

.sd-banner-copy { padding: 34px 40px; color: white; }
.sd-banner-copy h1 { margin: 10px 0 4px; text-shadow: 0 2px 8px #0006; }

.sd-category {
  display: inline-block;
  padding: 3px 14px;
  border: 1px solid #ffffff40;
  border-radius: 20px;
  background: #ffffff33;
  font-size: .82rem;
  font-weight: 700;
}

.sd-price { margin: 4px 0 0; color: #ffd000; font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 800; }

.sd-layout { padding: 36px 40px 40px; display: grid; gap: 38px; align-items: start; }
.sd-layout-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.sd-primary, .sd-sidebar { display: grid; gap: 18px; min-width: 0; }
.sd-sidebar { gap: 14px; }

.sd-intro { color: var(--sd-text); font-size: 1rem; margin: 0; }
.sd-delivery { display: grid; gap: 20px; }
.sd-delivery-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.service-detail h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  font-size: .97rem;
  line-height: 1.45;
}

.sd-icon { display: inline-grid; place-items: center; flex: none; color: var(--sd-blue); }
.sd-icon svg, .sd-button svg { width: 16px; height: 16px; }
.sd-rich { color: var(--sd-text); font-size: .9rem; line-height: 1.65; }
.sd-rich p, .sd-rich ul, .sd-rich ol { margin: 0 0 .55em; }
.sd-rich > :last-child { margin-bottom: 0; }
.sd-rich ul, .sd-rich ol { padding-inline-start: 1.35em; }
.sd-rich li + li { margin-top: .22em; }
.sd-rich h3 { margin: .85em 0 .4em; font-size: 1em; color: var(--sd-ink); }
.sd-rich h3:first-child { margin-top: 0; }
.sd-tone-time .sd-rich { color: var(--sd-blue); font-weight: 700; }
.sd-tone-danger .sd-icon { color: #c32c2c; }

.sd-description-separated { border-top: 1px solid var(--sd-border); padding-top: 16px; }
.sd-description h2 { font-size: 1.15rem; margin-bottom: 10px; }
.sd-description .sd-rich { font-size: .96rem; line-height: 1.8; }
.sd-description .sd-rich ul > li::marker { content: "✓  "; color: #1d883f; font-weight: 700; }

.sd-note {
  padding: 16px 18px;
  border: 1px solid var(--sd-border);
  border-radius: 16px;
  box-shadow: 0 1px 3px #0000000d;
}

.sd-note .sd-icon { width: 26px; height: 26px; border-radius: 8px; background: #1d1d1f08; color: inherit; }
.sd-tone-success h2 { color: #1d783a; }
.sd-tone-warning h2 { color: #8a5300; }
.sd-tone-risk { border: 1px dashed #d9383860; background: #fff5f5; box-shadow: none; }
.sd-tone-risk h2 { color: #b12626; }
.sd-tone-risk .sd-icon { background: #d9383812; }

.sd-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 40px;
  background: #fafafc;
  border-top: 1px solid var(--sd-border);
}

.sd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
}

.sd-button-secondary { color: var(--sd-ink); border: 1px solid var(--sd-border); background: white; }
.sd-button-primary { background: var(--sd-blue); color: white; }
.sd-button:hover { text-decoration: none; filter: brightness(.94); }
.sd-button:focus-visible { outline: 3px solid var(--sd-blue); outline-offset: 3px; }

@media (max-width: 800px) {
  .sd-layout-split { grid-template-columns: minmax(0, 1fr); }
  .sd-layout { gap: 24px; }
}

@media (max-width: 560px) {
  .service-detail { border-radius: 18px; }
  .sd-banner { min-height: 210px; }
  .sd-banner-copy, .sd-layout { padding: 22px 20px; }
  .sd-actions { padding: 14px 20px; justify-content: stretch; }
  .sd-actions a { flex: 1 1 auto; }
  .sd-delivery-pair { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
