/* Service pages have a full-width footer whose translated links can be wider
   than a mobile viewport. Clip the root scrolling box as well as the body so
   iOS Safari cannot pan the whole document sideways. */
html {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

.service-page {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  position: relative;
  touch-action: pan-y pinch-zoom;
  background: #111417;
  color: white;
}

@supports (overflow: clip) {
  html,
  .service-page {
    overflow-x: clip;
  }
}

.service-page > .site-header,
.service-page > .service-main,
.service-page > .site-footer,
.service-main > section {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.service-page .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  padding-inline: clamp(24px, 5vw, 72px);
}

.service-page .wordmark img { width: 154px; }

.service-page .site-nav,
.service-page .site-footer nav {
  gap: 28px;
  font-size: 13px;
}

.service-page .site-nav {
  left: 50%;
  transform: translateX(-50%);
}

.service-page .language-switch {
  right: calc(clamp(24px, 5vw, 72px) + 141px);
  width: 38px;
  font-size: 11px;
}
.service-page .header-phone { right: clamp(24px, 5vw, 72px); width: 126px; font-size: 13px; }

.service-main {
  overflow-x: clip;
  overflow-y: visible;
}

.service-hero {
  position: relative;
  height: clamp(680px, calc(100svh - 72px), 780px);
  overflow: hidden;
  background: #16191d;
}

.service-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  padding: clamp(56px, 6vw, 86px) clamp(28px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-hero-copy > * {
  min-width: 0;
  max-width: 100%;
}

.service-breadcrumb {
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b8babd;
  font-size: 13px;
}

.service-breadcrumb a { color: white; }
.service-breadcrumb i { color: var(--signal-red); font-size: 8px; }

.service-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(46px, 4.8vw, 72px);
  line-height: 1.2;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.service-hero-copy > p:not(.service-breadcrumb) {
  max-width: 58ch;
  margin: 28px 0 34px;
  color: #d1d2d4;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.service-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.service-hero-actions .button--outline {
  border: 0;
  text-decoration: none;
}
.service-hero-actions .button--outline span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 901px) {
  .service-hero-actions .button {
    min-width: 170px;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 15px;
  }
}

.service-hero-assurance {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: clamp(34px, 5vh, 54px) 0 0;
  color: #aeb1b4;
  font: 500 12px/1.45 "Montserrat", sans-serif;
}

.service-hero-assurance i {
  flex: 0 0 auto;
  color: var(--signal-red);
  font-size: 14px;
}

.service-hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #25282c;
}
.service-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 14, .94) 0%, rgba(10, 12, 14, .86) 38%, rgba(10, 12, 14, .58) 68%, rgba(10, 12, 14, .34) 100%),
    linear-gradient(0deg, rgba(7, 9, 11, .46), rgba(7, 9, 11, .08) 55%);
  pointer-events: none;
}

.service-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.service-page[data-service="home"] .service-hero-media img { object-position: 58% center; }
.service-page[data-service="auto"] .service-hero-media img { object-position: 53% center; }
.service-page[data-service="special"] .service-hero-media img { object-position: 58% center; }

.service-hero-media-label {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 3.5vw, 48px);
  bottom: clamp(20px, 3.5vw, 42px);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #d5d6d7;
  font: 500 11px/1.4 "Montserrat", sans-serif;
  text-align: right;
}

.service-hero-media-label::before {
  content: "";
  width: 36px;
  height: 3px;
  margin-bottom: 12px;
  background: var(--signal-red);
}

.service-hero-media-label strong {
  margin-top: 3px;
  color: white;
  font: 500 18px/1.2 "Oswald", sans-serif;
  text-transform: uppercase;
}

.service-offer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  color: var(--master-ink);
  background: var(--paper);
}

.service-offer-heading { padding: clamp(64px, 9vw, 116px) clamp(28px, 6vw, 88px); }
.service-page .service-offer-heading { padding-left: 0; }
.service-offer-heading,
.service-offer-list,
.service-offer-list li,
.service-offer-list span { min-width: 0; }
.service-offer-list span { overflow-wrap: anywhere; }
.service-offer h2,
.service-process h2,
.service-faq h2,
.service-location h2,
.service-cta h2 {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.service-offer-heading h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 30px;
  background: var(--signal-red);
}

.service-offer-list { margin: 0; padding: 0; list-style: none; border-left: 1px solid #cacacc; }
.service-offer-list li {
  min-height: 88px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px clamp(28px, 5vw, 72px);
  border-bottom: 1px solid #d4d3d1;
  font-size: clamp(15px, 1.5vw, 19px);
}
.service-offer-list li:last-child { border-bottom: 0; }
.service-offer-list i { color: var(--signal-red); font-size: 20px; text-align: center; }

.service-advice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 440px;
  background: #24282c;
}

.service-advice-image {
  position: relative;
  min-height: 440px;
  overflow: hidden;
}

.service-advice-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--advice-image-focus, center);
}
/* Remove the inherited inner gutter so the image fills its half exactly. */
.service-page .service-advice {
  padding-inline: 0;
}

/* Each service photograph has its own focal point.  The subject stays in the
   visible crop as the advice block changes from a two-column panel to a
   narrow, stacked mobile image. */
.service-advice-image--home { --advice-image-focus: 61% 78%; }
.service-advice-image--auto { --advice-image-focus: 67% 80%; }
.service-advice-image--locks { --advice-image-focus: 58% 56%; }

.service-advice-copy {
  align-self: center;
  min-width: 0;
  padding: clamp(56px, 8vw, 104px) clamp(28px, 6vw, 84px);
}
.service-advice-icon { color: var(--signal-red); font-size: 34px; }
.service-advice h2 { margin: 28px 0 20px; font-size: clamp(34px, 4vw, 54px); text-transform: uppercase; }
.service-advice h2 { overflow-wrap: anywhere; }
.service-advice p { max-width: 60ch; margin: 0; color: #d5d6d7; font: 400 16px/1.7 "Montserrat", sans-serif; text-wrap: pretty; }

.service-process { padding: clamp(72px, 10vw, 132px) clamp(28px, 7vw, 104px); color: var(--master-ink); background: #ededec; }
.service-process h2 { max-width: 430px; }
.service-page .service-process h2 {
  max-width: 100%;
  font-size: clamp(34.2px, 3.96vw, 57.6px);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.service-steps { margin-top: 58px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #bfc0c1; }
.service-step { position: relative; padding: 40px clamp(18px, 3vw, 42px) 10px 0; }
.service-step + .service-step { padding-left: clamp(18px, 3vw, 42px); border-left: 1px solid #bfc0c1; }
.service-step-number { display: block; color: var(--signal-red); font: 500 40px/1 "Oswald", sans-serif; }
.service-step h3 { margin: 26px 0 12px; font-size: 24px; text-transform: uppercase; }
.service-step p { max-width: 40ch; margin: 0; color: #55595d; font: 400 15px/1.65 "Montserrat", sans-serif; }

.service-faq {
  display: grid;
  grid-template-columns: minmax(340px, .78fr) minmax(0, 1.22fr);
  gap: clamp(44px, 7vw, 104px);
  padding: clamp(72px, 9vw, 120px) clamp(28px, 7vw, 104px);
  color: var(--master-ink);
  background: var(--paper);
}
.service-faq > * { min-width: 0; max-width: 100%; }
.section-kicker { margin: 0 0 18px; color: var(--signal-red); font: 600 12px/1.2 "Montserrat", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.service-faq h2, .service-location h2 { font-size: clamp(36px, 4.2vw, 60px); }
.service-faq h2 { font-size: clamp(36px, 3.61vw, 52px); overflow-wrap: anywhere; text-wrap: balance; }
.service-location h2 { text-transform: none; }
.service-faq-list { border-top: 1px solid #bfc0c1; }
.service-faq details { border-bottom: 1px solid #bfc0c1; }
.service-faq summary { position: relative; padding: 25px 52px 25px 0; cursor: pointer; font: 600 clamp(17px, 1.5vw, 20px)/1.4 "Montserrat", sans-serif; list-style: none; }
.service-faq summary::-webkit-details-marker { display: none; }
.service-faq summary::after { content: "+"; position: absolute; top: 20px; right: 4px; color: var(--signal-red); font: 400 30px/1 "Oswald", sans-serif; }
.service-faq details[open] summary::after { content: "−"; }
.service-faq details p { max-width: 70ch; margin: -5px 52px 24px 0; color: #55595d; font: 400 15px/1.7 "Montserrat", sans-serif; }

.service-location {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  padding: clamp(72px, 9vw, 116px) clamp(28px, 7vw, 104px);
  background: #24282c;
}
.service-location > div > p:last-child { max-width: 62ch; margin: 24px 0 0; color: #d5d6d7; font: 400 15px/1.7 "Montserrat", sans-serif; }
.service-location address { padding: clamp(26px, 4vw, 42px); border: 1px solid #4b5055; background: rgba(12, 15, 18, .34); font-style: normal; }
.service-location address p { display: grid; gap: 7px; margin: 0; padding: 0 0 20px; color: #e7e7e8; font: 400 15px/1.6 "Montserrat", sans-serif; }
.service-location address p + p { padding-top: 20px; border-top: 1px solid #4b5055; }
.service-location address strong {
  color: var(--signal-red);
  font: 600 12px/1.2 "Montserrat", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.service-location address a { display: inline-flex; gap: 9px; align-items: center; color: white; font: 600 13px/1.4 "Montserrat", sans-serif; text-decoration: underline; text-decoration-color: var(--signal-red); text-underline-offset: 5px; }
.service-location address .workshop-address { align-items: flex-start; font-size: 15px; font-weight: 400; line-height: 1.6; }
.service-location address a:hover,
.service-location address a:focus-visible { color: var(--signal-red); }
.service-location address a i { color: var(--signal-red); }

/* Reusable sticky-heading pattern for desktop two-column sections. Each
   element is constrained by its own section, so it follows the adjacent
   column only until that content ends. */
@media (min-width: 901px) {
  .service-offer-heading h2,
  .service-faq-intro,
  .service-location > div {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}

.service-cta {
  min-height: 410px;
  display: grid;
  place-items: center;
  padding: 72px 28px 150px;
  text-align: center;
  background:
    linear-gradient(rgba(11, 13, 15, .8), rgba(11, 13, 15, .88)),
    url("../assets/images/atelier-master-key-bg.jpg") top center / cover;
}
.service-cta-inner { max-width: 760px; }
.service-page[data-service="auto"] .service-cta h2 { line-height: 1.15; }
.service-cta p { max-width: 58ch; margin: 22px auto 30px; color: #d3d4d6; font: 400 16px/1.65 "Montserrat", sans-serif; }
.service-page[data-service="auto"] .service-cta p { margin-top: 30px; }
.service-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.service-cta .button { min-height: 48px; min-width: 210px; font-size: 14px; }

.service-page .site-footer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: 100%;
  min-height: 78px;
  margin-top: -78px;
  padding-inline: clamp(24px, 5vw, 72px);
  border-top-color: rgba(255, 255, 255, .45);
  background: rgba(10, 12, 14, .45);
}

@media (min-width: 901px) and (max-width: 1200px) {
  .service-page .site-nav,
  .service-page .site-footer nav { gap: 16px; font-size: 11px; }
  .service-hero h1 { font-size: clamp(42px, 5vw, 56px); }
}

@media (max-width: 900px) {
  .service-page .site-header { height: 64px; padding-inline: 16px; }
  .service-page .wordmark img { width: 145px; }
  .service-page .site-nav { left: 0; gap: 0; transform: none; }
  .service-page .site-nav,
  .service-page .site-footer nav { font-size: 15px; }
  .service-page .language-switch { right: auto; font-size: 12px; }
  .service-page .header-phone { right: auto; width: 44px; font-size: 0; }
  .service-page .site-footer > *,
  .service-page .site-footer nav,
  .service-page .footer-credit {
    min-width: 0;
    max-width: 100%;
  }
  .service-page .site-footer nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }
  .service-page .site-footer nav a,
  .service-page .footer-credit {
    overflow-wrap: anywhere;
  }
  .service-hero {
    height: clamp(680px, calc(100svh - 64px), 780px);
  }
  .service-hero-copy { height: 100%; }
  .service-hero-media::after {
    background:
      linear-gradient(90deg, rgba(10, 12, 14, .94), rgba(10, 12, 14, .66)),
      linear-gradient(0deg, rgba(7, 9, 11, .7), rgba(7, 9, 11, .08) 58%);
  }
  .service-hero-media-label { right: 20px; bottom: 18px; }
  .service-offer { grid-template-columns: 1fr; }
  .service-page .service-offer-heading {
    padding-left: clamp(28px, 7vw, 104px);
  }
  .service-offer-heading { padding-bottom: 48px; }
  .service-offer-list { border-left: 0; border-top: 1px solid #cacacc; }
  .service-advice { grid-template-columns: 1fr; }
  .service-advice-image { min-height: 55vw; }
  .service-faq, .service-location { grid-template-columns: 1fr; }
}

@media (max-width: 759px) {
  .service-hero { height: 700px; }
  .service-hero-copy { height: 100%; padding: 46px 20px 52px; }
  .service-breadcrumb { margin-bottom: 24px; }
  .service-hero h1 { font-size: clamp(32px, 8.7vw, 36px); text-wrap: wrap; }
  html[lang="ru"] .service-hero h1 { font-size: clamp(31px, 8.4vw, 35px); }
  .service-hero-copy > p:not(.service-breadcrumb) { font-size: 15px; }
  .service-hero-assurance { margin-top: 30px; font-size: 11px; }
  .service-hero-media-label { display: none; }
  .service-offer-heading { padding: 64px 20px 42px; }
  .service-page .service-offer-heading { padding-left: 20px; }
  .service-offer-list li { min-height: 74px; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 20px; }
  .service-advice-image { min-height: 72vw; }
  .service-advice-copy { padding: 58px 20px 68px; }
  .service-advice p { font-size: 15px; }
  .service-process { padding: 68px 20px 78px; }
  .service-faq, .service-location { padding: 68px 20px 78px; }
  .service-steps { grid-template-columns: 1fr; margin-top: 42px; }
  .service-step, .service-step + .service-step { padding: 28px 0; border-left: 0; border-bottom: 1px solid #bfc0c1; }
  .service-step:last-child { border-bottom: 0; }
  .service-step h3 { margin-top: 18px; }
  .service-cta { padding: 68px 20px 176px; }
  .service-page .site-footer { min-height: 150px; margin-top: -150px; padding: 22px 20px; }
}

@media (max-width: 420px) {
  .service-page .site-header { padding-inline: var(--page-gutter); gap: 8px; }
  .service-page .wordmark img { width: 130px; }
  .service-page .header-phone,
  .service-page .menu-toggle { width: 44px; height: 44px; }
  .service-hero-copy { padding-inline: 16px; }
  .service-offer-heading,
  .service-offer-list li,
  .service-advice-copy,
  .service-process,
  .service-faq,
  .service-location,
  .service-cta { padding-left: 16px; padding-right: 16px; }
  .service-page .site-footer { padding-inline: 16px; }
}

.service-hero-copy > p:not(.service-breadcrumb),
.service-offer-list li,
.service-advice p,
.service-step p,
.service-cta p {
  font-size: 15px;
}

/* Keep all service-page content on the same grid as the current home page.
   Section backgrounds remain full-bleed because the inset is section padding. */
@media (min-width: 901px) {
  .service-page .site-header { padding-inline: var(--page-gutter); }
  .service-page .language-switch { right: calc(var(--page-gutter) + 141px); width: 38px; }
  .service-page .header-phone { right: var(--page-gutter); }

  .service-offer,
  .service-advice,
  .service-process,
  .service-faq,
  .service-location {
    padding-right: var(--page-gutter);
    padding-left: var(--page-gutter);
  }

  /* The hero image stays full-bleed while the overlay copy follows the
     same readable grid as the rest of the site. */
  .service-hero { padding-inline: 0; }
  .service-hero-copy {
    padding-left: calc(var(--page-gutter) + clamp(28px, 4vw, 64px));
  }
  .service-page .service-hero-copy {
    padding-left: var(--page-gutter);
  }

  .service-page .site-footer { padding-inline: var(--page-gutter); }
}

@media (max-width: 900px) {
  .service-page .site-header { padding-inline: var(--page-gutter); }
  .service-page .site-nav { padding-inline: var(--page-gutter); }
}

@media (max-width: 900px) {
  .service-page .site-footer {
    min-height: 0;
    margin-top: 0;
    padding: 28px var(--page-gutter);
  }

  .service-page .site-footer nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.35;
  }
}

/* Match the homepage footer at tablet and compact-desktop widths. The shared
   stylesheet stacks generic footers below 1200px, so service pages need the
   same single-row override used by the homepage. */
@media (min-width: 901px) and (max-width: 1200px) {
  .service-page .site-footer {
    height: 78px;
    min-height: 0;
    margin-top: -78px;
    padding: 0 var(--page-gutter);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(18px, 2vw, 32px);
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 400;
  }

  .service-page .footer-wordmark {
    order: 1;
    flex: 0 0 auto;
    display: block;
    line-height: 0;
  }

  .service-page .footer-wordmark img {
    display: block;
    width: 118px;
    height: auto;
  }

  .service-page .footer-social {
    order: 2;
    flex: 0 0 auto;
    gap: 7px;
    margin: 0;
  }

  .service-page .footer-social a {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .service-page .site-footer nav {
    order: 3;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.45vw, 22px);
    margin: 0;
    font-size: 11px;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
  }

  .service-page .site-footer .footer-contact-link { display: none; }

  .service-page .footer-credit {
    order: 4;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .service-page .site-footer { gap: 10px; }
  .service-page .footer-wordmark img { width: 94px; }
  .service-page .footer-social { gap: 7px; }
  .service-page .footer-social a { width: 20px; height: 20px; font-size: 10px; }
  .service-page .site-footer nav { gap: 6px; font-size: 9px; }
  .service-page .footer-credit { font-size: 9px; }
}

@media (min-width: 1201px) {
  .service-page .site-footer nav {
    gap: clamp(12px, 1.45vw, 22px);
    font-size: 11px;
    font-weight: 400;
  }
}

html[data-theme="light"] .service-page {
  background: var(--day-canvas);
  color: var(--day-ink);
}

html[data-theme="light"] .service-hero,
html[data-theme="light"] .service-cta { color: white; }

html[data-theme="light"] .service-advice,
html[data-theme="light"] .service-location {
  color: var(--day-ink);
  background: var(--day-workbench);
}

html[data-theme="light"] .service-advice p,
html[data-theme="light"] .service-location > div > p:last-child { color: var(--day-copy); }

html[data-theme="light"] .service-location address {
  border-color: var(--day-border);
  background: var(--day-canvas);
}

html[data-theme="light"] .service-location address p {
  color: var(--day-ink);
  border-color: var(--day-border);
}

html[data-theme="light"] .service-location address a { color: var(--day-ink); }

/* The photographic service hero and CTA keep their cinematic overlay for
   reliable contrast; every informational section changes to day mode. */
