.detailing-case {
  background: var(--ink);
}

.detailing-preview {
  min-width: 0;
}

.detailing-case-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.detailing-case-notes h3 {
  margin-bottom: 10px;
  color: var(--paper);
  font-size: 1.05rem;
}

.detailing-case-notes p {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-store {
  height: 780px;
  overflow-y: auto;
  background: #f3f5f7;
  color: #151b24;
  scrollbar-width: thin;
  scrollbar-color: #f5c518 #111827;
}

.detail-store::-webkit-scrollbar {
  width: 8px;
}

.detail-store::-webkit-scrollbar-track {
  background: #111827;
}

.detail-store::-webkit-scrollbar-thumb {
  background: #f5c518;
  border: 2px solid #111827;
  border-radius: 8px;
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 18px;
  background: #0c111b;
  color: #b9c2cf;
  font-size: 0.38rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.detail-topbar span:first-child {
  color: #f5c518;
}

.detail-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid #263244;
  background: #111827;
  color: #fff;
}

.detail-nav strong,
.detail-footer-brand strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.detail-nav em,
.detail-footer-brand em {
  color: #f5c518;
  font-style: normal;
}

.detail-mark {
  display: inline-block;
  width: 24px;
  height: 10px;
  background: #f5c518;
  clip-path: polygon(0 25%, 100% 0, 90% 100%, 8% 82%);
}

.detail-nav > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 0.4rem;
  font-weight: 800;
}

.detail-nav-cta {
  justify-self: end;
  padding: 9px 13px;
  background: #f5c518;
  color: #111827;
  font-size: 0.4rem;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 360px;
  background: #111827;
  color: #fff;
}

.detail-hero-image {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.detail-hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #111827 0%, rgba(17, 24, 39, 0.1) 35%, rgba(17, 24, 39, 0.3) 100%);
  content: "";
}

.detail-hero-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

.detail-hero-copy small,
.detail-about-copy small {
  color: #f5c518;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.detail-hero-copy h3 {
  max-width: 10ch;
  margin-top: 12px;
  font-family: var(--body);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.detail-hero-copy h3 span {
  color: #f5c518;
}

.detail-hero-copy p {
  max-width: 44ch;
  margin-top: 16px;
  color: #aab5c4;
  font-size: 0.62rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.detail-button,
.detail-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-size: 0.42rem;
  font-weight: 800;
}

.detail-button {
  background: #f5c518;
  color: #111827;
}

.detail-outline {
  border: 1px solid #59677a;
  color: #fff;
}

.detail-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 18px;
  background: #111827;
}

.detail-features > div {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid #263244;
  background: #172131;
  color: #fff;
}

.detail-features > div:nth-child(2) {
  background: #f5c518;
  color: #111827;
}

.detail-features strong {
  font-size: 0.46rem;
  font-weight: 800;
}

.detail-features span {
  margin-top: 4px;
  color: #aab5c4;
  font-size: 0.38rem;
}

.detail-features > div:nth-child(2) span {
  color: #564605;
}

.detail-about {
  display: grid;
  grid-template-columns: 0.85fr 1.05fr 0.8fr;
  min-height: 300px;
  background: #111827;
  color: #fff;
}

.detail-about-image {
  min-width: 0;
  overflow: hidden;
}

.detail-about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-about-copy {
  padding: 28px;
}

.detail-about-copy h4 {
  max-width: 11ch;
  margin-top: 8px;
  font-family: var(--body);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.detail-about-copy p {
  margin-top: 14px;
  color: #aab5c4;
  font-size: 0.54rem;
}

.detail-about-copy ul {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.detail-about-copy li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d2d8e0;
  font-size: 0.44rem;
}

.detail-about-copy li .icon {
  width: 12px;
  height: 12px;
  color: #f5c518;
}

.detail-about-button {
  display: inline-block;
  padding: 8px 11px;
  background: #f5c518;
  color: #111827;
  font-size: 0.4rem;
  font-weight: 800;
}

.detail-form {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  margin: 22px 20px 22px 0;
  padding: 18px;
  border-radius: 8px;
  background: #1b2739;
}

.detail-form h5 {
  margin-bottom: 3px;
  font-size: 0.52rem;
  font-weight: 800;
}

.detail-form > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 9px;
  border-radius: 4px;
  background: #fff;
  color: #8b93a0;
  font-size: 0.4rem;
}

.detail-form small {
  color: #6c7481;
  font-size: 0.32rem;
  font-weight: 800;
}

.detail-form .detail-form-button {
  align-items: center;
  justify-content: center;
  background: #f5c518;
  color: #111827;
  font-weight: 800;
}

.detail-services {
  padding: 28px 20px;
  background: #1a2638;
  color: #fff;
}

.detail-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.detail-section-title h4 {
  font-family: var(--body);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.detail-section-title > span {
  color: #f5c518;
  font-size: 0.4rem;
  font-weight: 800;
}

.detail-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-service-grid article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #2f3d51;
  background: #111827;
}

.detail-service-grid article > div {
  position: relative;
  height: 130px;
  overflow: hidden;
}

.detail-service-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms var(--ease);
}

.detail-service-grid article:hover img {
  transform: scale(1.035);
}

.detail-service-grid article > div > span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 6px;
  background: #f5c518;
  color: #111827;
  font-size: 0.34rem;
  font-weight: 800;
}

.detail-service-grid h5 {
  padding: 10px 10px 0;
  font-size: 0.52rem;
  font-weight: 800;
}

.detail-service-grid p {
  padding: 5px 10px;
  color: #aab5c4;
  font-size: 0.42rem;
}

.detail-more {
  display: block;
  padding: 0 10px 11px;
  color: #f5c518;
  font-size: 0.38rem;
  font-weight: 800;
}

.detail-extra {
  margin-top: 14px;
  color: #8f9bab;
  font-size: 0.4rem;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #0c111b;
  color: #fff;
}

.detail-stats > div {
  display: flex;
  min-height: 90px;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border-right: 1px solid #263244;
}

.detail-stats > div:last-child {
  border-right: 0;
}

.detail-stats strong {
  color: #f5c518;
  font-size: 0.46rem;
  font-weight: 800;
}

.detail-stats span {
  margin-top: 4px;
  color: #9aa7b8;
  font-size: 0.38rem;
}

.detail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 22px;
  background: #f5c518;
  color: #111827;
}

.detail-cta small {
  font-size: 0.38rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.detail-cta h4 {
  margin-top: 5px;
  font-family: var(--body);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.detail-cta p {
  margin-top: 6px;
  color: #5a4a05;
  font-size: 0.48rem;
}

.detail-cta > span {
  flex: 0 0 auto;
  padding: 11px 14px;
  background: #111827;
  color: #fff;
  font-size: 0.42rem;
  font-weight: 800;
}

.detail-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
  padding: 26px 20px;
  background: #0c111b;
  color: #fff;
}

.detail-footer-brand p {
  margin-top: 8px;
  color: #8f9bab;
  font-size: 0.44rem;
}

.detail-footer h6 {
  margin: 0 0 9px;
  color: #f5c518;
  font-size: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.detail-footer > div:not(.detail-footer-brand) {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #9aa7b8;
  font-size: 0.42rem;
}

@media (max-width: 1100px) {
  .detail-nav > div {
    gap: 10px;
  }

  .detail-hero-copy h3 {
    font-size: 2.9rem;
  }

  .detail-about {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .detail-form {
    grid-column: 1 / -1;
    margin: 0 20px 22px;
  }

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

  .detail-service-grid article:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 620px) {
  .detail-topbar {
    justify-content: center;
  }

  .detail-topbar span:not(:first-child) {
    display: none;
  }

  .detail-nav {
    grid-template-columns: 1fr auto;
    min-height: 50px;
    padding-inline: 12px;
  }

  .detail-nav > div {
    display: none;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-hero-copy {
    padding: 22px 18px;
  }

  .detail-hero-copy h3 {
    font-size: 2.75rem;
  }

  .detail-hero-image {
    height: 210px;
  }

  .detail-features {
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }

  .detail-about {
    grid-template-columns: 1fr;
  }

  .detail-about-image {
    height: 190px;
  }

  .detail-about-copy {
    padding: 22px 18px;
  }

  .detail-about-copy h4 {
    font-size: 1.9rem;
  }

  .detail-form {
    margin: 0 12px 18px;
  }

  .detail-services {
    padding-inline: 12px;
  }

  .detail-section-title h4 {
    font-size: 1.25rem;
  }

  .detail-section-title > span {
    display: none;
  }

  .detail-service-grid {
    gap: 8px;
  }

  .detail-service-grid article > div {
    height: 105px;
  }

  .detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-stats > div {
    border-bottom: 1px solid #263244;
  }

  .detail-stats > div:nth-child(even) {
    border-right: 0;
  }

  .detail-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px;
  }

  .detail-cta h4 {
    font-size: 1.55rem;
  }

  .detail-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 14px;
  }

  .detailing-case-notes {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}