.service-detail {
  --service-ink: #111827;
  --service-muted: #445166;
  --service-border: #dce4ed;
  --service-accent: #a33e0c;
  --service-brand: #a63b07;
  color: var(--service-ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.62;
}

.service-detail *, .service-detail *::before, .service-detail *::after {
  box-sizing: border-box;
}

/* Reserve the space occupied by the shared header while it mounts on the RU pages. */
body:has(> .service-detail[lang="ru"]):not(:has(> header[data-site-shell="header"]))::before {
  content: "";
  display: block;
  height: 88px;
}

body:has(> .service-detail) > nav:is([data-page-language-links], .en-language-links) {
  height: 50px;
  min-height: 50px;
}

@media (min-width: 1401px) and (max-width: 1499px) {
  body:has(> .service-detail[lang="ru"]):not(:has(> header[data-site-shell="header"]))::before {
    height: 129px;
  }
}

@media (max-width: 1400px) {
  body:has(> .service-detail[lang="ru"]):not(:has(> header[data-site-shell="header"]))::before {
    height: 76px;
  }
}

@media (max-width: 620px) {
  body:has(> .service-detail[lang="ru"]):not(:has(> header[data-site-shell="header"]))::before {
    height: 72px;
  }
}

.service-detail .service-wrap {
  width: min(1180px, calc(100% - clamp(32px, 8vw, 104px)));
  margin-inline: auto;
}

.service-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .55rem;
  align-items: center;
  padding-block: 12px 14px;
  color: var(--service-muted);
  font-size: .875rem;
}

.service-detail a:not(.service-button) {
  color: var(--service-accent);
  text-decoration: underline;
  text-underline-offset: .17em;
}

.service-hero {
  padding-block: clamp(24px, 5vw, 70px);
  background: linear-gradient(125deg, #101827, #202d40);
  color: #fff;
}

.service-detail:lang(en) .service-hero {
  background: linear-gradient(125deg, #f0f4f9, #fff);
  color: var(--service-ink);
}

.service-hero .service-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas:
    "tag photo"
    "title photo"
    "lead photo"
    "facts photo"
    "buttons photo";
  align-items: start;
  align-content: center;
  column-gap: clamp(24px, 4.5vw, 62px);
  row-gap: 14px;
}

.service-hero__tag {
  grid-area: tag;
  margin: 0;
  color: #fed7aa;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.service-detail:lang(en) .service-hero__tag {
  color: var(--service-accent);
}

.service-hero h1 {
  grid-area: title;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: clamp(2rem, 4.15vw, 3.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.service-hero__image {
  grid-area: photo;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  align-self: center;
  border-radius: 14px;
  object-fit: cover;
  background: #dce4ed;
}

.service-hero__lead {
  grid-area: lead;
  max-width: 57ch;
  margin: 0;
  color: #e5edf7;
  font-size: clamp(1rem, 1.4vw, 1.19rem);
}

.service-detail:lang(en) .service-hero__lead { color: var(--service-muted); }

.service-hero__facts {
  grid-area: facts;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  margin: 0;
  padding: 0 0 0 1.14em;
  list-style: disc;
  font-size: .93rem;
}

.service-hero .service-actions { grid-area: buttons; }

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.service-detail .service-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--service-brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.service-detail .service-button:hover { background: #7e2a06; }

.service-detail .service-button--secondary {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.service-detail .service-button--secondary:hover {
  background: rgba(125, 135, 155, .24);
}

.service-detail a:focus-visible, .service-detail summary:focus-visible {
  outline: 3px solid #ec964d;
  outline-offset: 3px;
}

.service-section { padding-block: clamp(30px, 5vw, 68px); }
.service-section--soft { background: #f5f7fb; }

.service-section h2, .service-quote h2 {
  margin: 0 0 12px;
  color: inherit;
  font-family: inherit;
  font-size: clamp(1.6rem, 3.2vw, 2.68rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.022em;
  overflow-wrap: anywhere;
}

.service-section h3 {
  margin: 0 0 6px;
  color: var(--service-ink);
  font-family: inherit;
  font-size: 1.09rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-section p {
  max-width: 75ch;
  margin: 0 0 14px;
  color: var(--service-muted);
}

.service-section p:last-child { margin-bottom: 0; }

.service-cards, .service-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
}

.service-cards--equipment { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-cards--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.service-card, .service-step {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--service-border);
  border-radius: 11px;
  background: #fff;
}

.service-card p, .service-step p { margin: 0; }
.service-card a { display: inline-block; margin-top: 8px; }
.service-card a + a { margin-left: 10px; }
.service-steps { list-style: none; counter-reset: service-step; }
.service-step { counter-increment: service-step; }
.service-step h3::before {
  content: counter(service-step) ". ";
  color: var(--service-accent);
  font-weight: 700;
}

.service-documents { margin: 12px 0 0; padding-left: 1.25rem; list-style: disc; }
.service-documents li + li { margin-top: 5px; }

.service-media {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(15px, 4vw, 42px);
}

.service-media figure { margin: 0; }
.service-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 365px;
  border-radius: 12px;
  background: #edf2f7;
  object-fit: contain;
}

.service-media figcaption {
  margin-top: 6px;
  color: var(--service-muted);
  font-size: .9rem;
}

.service-related {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 21px;
  margin-top: 16px;
}

.service-faq details {
  max-width: 860px;
  padding: 12px 0;
  border-bottom: 1px solid var(--service-border);
}

.service-faq summary { cursor: pointer; font-weight: 700; }
.service-faq details p { margin: 8px 0 0; }

.service-quote {
  padding: clamp(25px, 4vw, 48px);
  border-radius: 14px;
  background: #111827;
  color: #fff;
  scroll-margin-top: 145px;
}

.service-quote p { color: #e5edf7; }

@media (max-width: 970px) {
  .service-cards--equipment { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .service-detail ~ .site-contact-actions .site-contact-actions__numbers { display: none; }

  .service-detail .service-wrap {
    width: calc(100% - clamp(16px, 4vw, 36px) - 70px);
    margin-inline: clamp(16px, 4vw, 36px) 70px;
  }

  .service-hero .service-wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "tag" "title" "photo" "lead" "facts" "buttons";
  }

  .service-hero__image { aspect-ratio: 16 / 9; }
  .service-media { grid-template-columns: minmax(0, 1fr); }
  .service-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 570px) {
  .service-hero h1 { font-size: clamp(1.7rem, 7.45vw, 2.35rem); }
  .service-cards, .service-steps { grid-template-columns: minmax(0, 1fr); }
  .service-quote { padding-inline: 17px; }
}

@media (max-width: 620px) {
  .service-detail .service-wrap {
    width: calc(100% - 70px);
    margin-inline: 16px 54px;
  }
}
