.detail-header,
.detail-hero,
.detail-content,
.detail-contact {
  padding-inline: max(var(--pad), calc((100% - 1180px) / 2));
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.detail-header .brand { width: clamp(105px, 13vw, 168px); }
.detail-header__services { font-size: .95rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(200px, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(1.75rem, 4vw, 3.75rem);
  background: #f0f5f8;
}
.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .65rem;
  margin-bottom: 1.45rem;
  color: var(--muted);
  font-size: .86rem;
}
.detail-breadcrumb a { text-decoration: underline; text-underline-offset: .17em; }
.detail-hero h1 { max-width: 20ch; font-size: clamp(2.7rem, 5.1vw, 4.7rem); }
.detail-hero p { max-width: 58ch; margin-top: 1.05rem; font-size: clamp(1.06rem, 1.65vw, 1.32rem); color: var(--muted); line-height: 1.5; }
.detail-hero picture { border: 7px solid var(--blue); border-radius: 1.15rem; overflow: hidden; background: var(--blue); }
.detail-hero img { width: 100%; height: auto; aspect-ratio: 1.09; object-fit: cover; object-position: center; }
.detail-button { margin-top: 1.4rem; min-height: 48px; padding: .7rem 1rem; border-radius: .64rem; font-size: .96rem; }
.detail-button span { font-size: 1.55rem; line-height: .82; }

.detail-content { display: grid; gap: clamp(2.2rem, 5.2vw, 4.25rem); padding-block: clamp(2.6rem, 6vw, 5rem); }
.detail-content h2, .detail-contact h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.04; }
.detail-content .rule::before { width: 36px; height: 3px; margin-bottom: .46em; }
.detail-content h3 { font-size: 1.12rem; line-height: 1.23; }
.detail-content p, .detail-content li { line-height: 1.57; }

.detail-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: 1.35rem; }
.detail-cases li { padding: clamp(1rem, 2.1vw, 1.75rem); border-radius: .9rem; background: var(--blue); color: white; }
.detail-cases p { margin-top: .55rem; color: #e4f0f8; }

.detail-work { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); align-items: start; gap: clamp(1.25rem, 4vw, 3.25rem); }
.detail-steps { margin-top: 1.35rem; counter-reset: detail-step; }
.detail-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .9rem; padding-block: .85rem; border-bottom: 1px solid #d7e1e9; counter-increment: detail-step; }
.detail-steps li:first-child { padding-top: 0; }
.detail-steps li::before { content: counter(detail-step, decimal-leading-zero); grid-row: span 2; padding-right: .68rem; border-right: 1px solid #d7e1e9; color: var(--blue); font-weight: 750; }
.detail-steps p { margin-top: .25rem; color: var(--muted); }
.detail-checklist { padding: clamp(1.25rem, 2.5vw, 2rem); background: #edf2f6; border-radius: .95rem; }
.detail-checklist h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.035em; }
.detail-checklist ul { margin-top: .9rem; padding-left: 1.12rem; list-style: disc; }
.detail-checklist li + li { margin-top: .6rem; }

.detail-faq { margin-top: 1.15rem; border-top: 1px solid #d7e1e9; }
.detail-faq details { border-bottom: 1px solid #d7e1e9; }
.detail-faq summary { padding: .95rem .25rem; font-weight: 700; cursor: pointer; }
.detail-faq details p { max-width: 75ch; padding: 0 .25rem 1rem; color: var(--muted); }
.detail-references h2 { font-size: 1.35rem; letter-spacing: -.025em; }
.detail-references ul { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; margin-top: .6rem; font-size: .92rem; }
.detail-references a { text-decoration: underline; text-underline-offset: .2em; }

.detail-contact { padding-block: clamp(2.2rem, 5vw, 3.5rem); background: #edf2f6; }
.detail-contact p { margin-top: .65rem; line-height: 1.5; color: var(--muted); }

@media (max-width: 760px) {
  .detail-header__services { font-size: .85rem; text-align: right; }
  .detail-hero, .detail-work, .detail-cases { grid-template-columns: 1fr; }
  .detail-hero { gap: 1.4rem; }
  .detail-hero h1 { font-size: clamp(2.2rem, 8.6vw, 3.25rem); }
  .detail-hero img { aspect-ratio: 2.65; }
}
