:root {
  --services-ink: #171719;
  --services-muted: #6b6966;
  --services-warm: #f4f0e9;
  --services-orange: #f26522;
  --services-line: rgba(23, 23, 25, 0.13);
}

.services-detail-page {
  background: var(--services-warm);
  color: var(--services-ink);
}

.services-main {
  overflow: clip;
}

.services-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: #111214;
  overflow: hidden;
}

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #171719 0%, rgba(23, 23, 25, 0.98) 39%, rgba(23, 23, 25, 0.82) 52%, rgba(23, 23, 25, 0.28) 76%, rgba(23, 23, 25, 0.36) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 36%, rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.services-hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 43%;
  width: 1px;
  background: linear-gradient(180deg, transparent 14%, rgba(242, 101, 34, 0.82) 44%, transparent 86%);
  transform: skewX(-8deg);
  transform-origin: top;
  opacity: 0.75;
  pointer-events: none;
}

.services-hero__slides,
.services-hero__slide {
  position: absolute;
  inset: 0;
}

.services-hero__slides {
  z-index: 0;
}

.services-hero__slide {
  opacity: 0;
  background-position: center 46%;
  background-size: cover;
  transform: scale(1.025);
  transition: opacity 900ms cubic-bezier(0.2, 0.65, 0.2, 1), transform 7s ease-out;
}

.services-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.services-hero__inner,
.services-explorer__shell {
  width: min(100%, 1376px);
  margin-inline: auto;
  padding-inline: 28px;
}

.services-hero__inner {
  position: relative;
  z-index: 3;
  padding-top: 150px;
  padding-bottom: 94px;
}

.services-hero__content {
  max-width: 520px;
}

.services-eyebrow,
.service-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 25px;
  color: var(--services-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.23em;
  line-height: 1;
  text-transform: uppercase;
}

.services-eyebrow::before,
.service-panel__eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.services-hero h1 {
  max-width: 520px;
  margin: 0 0 25px;
  color: #fff;
  font-size: clamp(42px, 4.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.058em;
  line-height: 0.94;
  text-wrap: balance;
}

.services-hero__lead {
  max-width: 455px;
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.73);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.68;
}

.services-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.services-hero .services-btn {
  min-height: 44px;
  min-width: 142px;
  padding: 12px 22px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-hero__controls {
  position: absolute;
  z-index: 4;
  right: max(28px, calc((100vw - 1320px) / 2 + 28px));
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #fff;
}

.services-hero__counter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.services-hero__counter > span:last-child {
  color: rgba(255, 255, 255, 0.45);
}

.services-hero__progress {
  position: relative;
  width: 110px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
}

.services-hero__progress i {
  position: absolute;
  inset: 0;
  background: var(--services-orange);
  transform: scaleX(0);
  transform-origin: left;
}

.services-hero__progress i.is-running {
  animation: servicesHeroProgress 6.8s linear forwards;
}

.services-hero__arrows {
  display: flex;
  gap: 1px;
}

.services-hero__arrows button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(22, 23, 25, 0.26);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.services-hero__arrows button:hover {
  border-color: var(--services-orange);
  background: var(--services-orange);
  transform: translateY(-2px);
}

@keyframes servicesHeroProgress {
  to {
    transform: scaleX(1);
  }
}

.services-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--services-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.services-btn:hover {
  background: #dc5317;
  color: #fff;
  transform: translateY(-2px);
}

.services-btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.services-btn--ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--services-ink);
}

.services-explorer {
  padding: 82px 0 64px;
  scroll-margin-top: 76px;
}

@media (min-width: 1181px) {
  .services-detail-page .page-footer .footer-shell {
    grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.65fr);
    gap: 46px;
  }

  .services-detail-page .footer-content {
    grid-template-columns: minmax(315px, 1.55fr) minmax(155px, 0.78fr) minmax(180px, 0.9fr);
    gap: 30px;
  }

  .services-detail-page .footer-service-links {
    column-gap: 24px;
    row-gap: 9px;
  }
}

.services-explorer__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.76fr);
  gap: 44px;
  align-items: center;
  margin-bottom: 46px;
}

.services-explorer__intro h2 {
  max-width: 520px;
  margin: 0;
  color: var(--services-ink);
  font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.046em;
  line-height: 1.02;
  text-wrap: balance;
}

.services-explorer__intro p {
  max-width: 480px;
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(238, 92, 28, 0.48);
  color: var(--services-muted);
  font-size: 14px;
  line-height: 1.68;
}

.services-explorer__layout {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.services-index {
  position: sticky;
  top: 104px;
}

.services-index__label {
  margin: 0 0 14px;
  color: var(--services-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.services-index__nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.services-index__link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 11px;
  align-items: center;
  min-height: 56px;
  padding: 10px 11px;
  border: 1px solid var(--services-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--services-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(23, 23, 25, 0.025);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.services-index__number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: rgba(242, 101, 34, 0.11);
  color: var(--services-orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: background-color 180ms ease, color 180ms ease;
}

.services-index__arrow {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: rgba(242, 101, 34, 0.08);
  color: var(--services-orange);
  font-size: 15px;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.services-index__link:hover,
.services-index__link.is-active {
  background: linear-gradient(135deg, #1d1d20, #121214);
  border-color: var(--services-ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 23, 25, 0.15);
  transform: translateX(3px);
}

.services-index__link:hover .services-index__arrow,
.services-index__link.is-active .services-index__arrow {
  background: var(--services-orange);
  color: #fff;
  opacity: 1;
}

.services-index__link:hover .services-index__number,
.services-index__link.is-active .services-index__number {
  background: var(--services-orange);
  color: #fff;
}

.services-panels {
  min-width: 0;
}

.service-panel[hidden] {
  display: none;
}

.service-panel {
  padding: clamp(34px, 4.4vw, 62px);
  background: #fff;
  border: 1px solid rgba(23, 23, 25, 0.07);
  border-radius: 26px;
  box-shadow: 0 22px 54px rgba(29, 25, 20, 0.08);
}

.service-panel__header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: 36px;
  align-items: end;
}

.service-panel__eyebrow {
  gap: 12px;
  margin-bottom: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
}

.service-panel__eyebrow::before {
  width: 30px;
  height: 1px;
}

.service-panel h2 {
  margin: 0;
  color: var(--services-ink);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.service-panel__description {
  margin: 0 0 2px;
  color: var(--services-muted);
  font-size: 15px;
  line-height: 1.68;
}

.service-panel__scope {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 32px;
  margin-top: 46px;
  padding: 30px 32px;
  border: 1px solid rgba(23, 23, 25, 0.06);
  border-radius: 16px;
  background: var(--services-warm);
}

.service-panel__scope h3 {
  margin: 3px 0 0;
  color: var(--services-ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service-panel__scope ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-panel__scope li {
  position: relative;
  padding-left: 19px;
  color: #4f4d4a;
  font-size: 14px;
  line-height: 1.5;
}

.service-panel__scope li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--services-orange);
}

.service-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  grid-template-rows: repeat(2, 214px);
  gap: 12px;
  margin-top: 46px;
}

.service-gallery__item {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  background: #252527;
  color: #fff;
  cursor: zoom-in;
  text-align: left;
}

.service-gallery__item:first-child {
  grid-row: 1 / -1;
}

.service-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.69));
  pointer-events: none;
}

.service-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.service-gallery__item:hover img {
  transform: scale(1.035);
}

.service-gallery__caption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.service-gallery__caption::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 23px;
  font-weight: 300;
  line-height: 0.8;
}

.service-panel__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--services-line);
}

.service-panel__pager-placeholder {
  display: block;
}

.service-panel__pager {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--services-line);
  border-radius: 999px;
  color: var(--services-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-decoration: none;
}

.service-panel__pager:hover {
  border-color: var(--services-orange);
  color: var(--services-orange);
}

.service-panel__pager--next {
  justify-self: end;
  text-align: right;
}

.service-panel__cta {
  border-radius: 12px;
  white-space: nowrap;
}

.service-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  padding: 72px 28px 42px;
  background: rgba(7, 7, 8, 0.97);
}

.service-lightbox[hidden] {
  display: none;
}

.service-lightbox__figure {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.service-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 150px);
  margin: 0 auto;
  object-fit: contain;
}

.service-lightbox__caption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.service-lightbox__close,
.service-lightbox__control {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.service-lightbox__close:hover,
.service-lightbox__control:hover {
  border-color: var(--services-orange);
  background: var(--services-orange);
}

.service-lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
}

.service-lightbox__control {
  width: 50px;
  height: 50px;
  justify-self: center;
  font-size: 27px;
  line-height: 1;
}

.service-lightbox__counter {
  position: absolute;
  top: 32px;
  left: 28px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.service-lightbox-open {
  overflow: hidden;
}

.services-index__link:focus-visible,
.services-btn:focus-visible,
.services-hero__arrows button:focus-visible,
.service-panel__pager:focus-visible,
.service-gallery__item:focus-visible,
.service-lightbox button:focus-visible {
  outline: 3px solid var(--services-orange);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .services-explorer__layout {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 30px;
  }

  .service-panel__header,
  .service-panel__scope {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 860px) {
  .services-hero {
    min-height: 600px;
  }

  .services-hero::before {
    background:
      linear-gradient(90deg, rgba(23, 23, 25, 0.96), rgba(23, 23, 25, 0.6)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent 45%, rgba(0, 0, 0, 0.35));
  }

  .services-hero::after {
    left: 54%;
  }

  .services-hero__slide {
    background-position: 62% center;
  }

  .services-explorer {
    padding: 76px 0 90px;
  }

  .services-explorer__intro {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }

  .services-explorer__layout {
    display: block;
  }

  .services-index {
    position: relative;
    top: auto;
    margin-bottom: 22px;
  }

  .services-index__label {
    margin-left: 2px;
  }

  .services-index__nav {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-width: thin;
  }

  .services-index__link {
    flex: 0 0 218px;
    min-height: 54px;
    padding: 9px 10px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.55);
  }

  .services-index__link:hover,
  .services-index__link.is-active {
    transform: translateY(-2px);
  }
}

@media (max-width: 640px) {
  .services-hero {
    min-height: 580px;
  }

  .services-hero__inner,
  .services-explorer__shell {
    padding-inline: 20px;
  }

  .services-hero__inner {
    padding-top: 134px;
    padding-bottom: 96px;
  }

  .services-hero h1 {
    max-width: 390px;
    font-size: clamp(35px, 10.4vw, 47px);
  }

  .services-hero__lead {
    max-width: 420px;
    font-size: 12px;
    line-height: 1.6;
  }

  .services-hero__actions {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .services-hero .services-btn {
    width: auto;
    min-width: 0;
    padding: 11px 15px;
    font-size: 9px;
  }

  .services-hero__controls {
    right: 20px;
    bottom: 19px;
  }

  .services-hero__counter {
    display: none;
  }

  .services-hero__arrows button {
    width: 40px;
    height: 40px;
  }

  .services-hero::after {
    display: none;
  }

  .services-explorer {
    padding: 64px 0 74px;
  }

  .services-explorer__intro h2 {
    max-width: 430px;
    font-size: clamp(32px, 8.7vw, 40px);
    line-height: 1.02;
  }

  .services-explorer__intro p {
    max-width: 560px;
    font-size: 13px;
  }

  .service-panel {
    padding: 31px 22px 27px;
    border-radius: 20px;
  }

  .service-panel h2 {
    font-size: 30px;
  }

  .service-panel__description {
    font-size: 15px;
  }

  .service-panel__scope {
    margin-top: 34px;
    padding: 24px 20px;
    border-radius: 13px;
  }

  .service-panel__scope ul {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .service-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 280px 140px;
    gap: 8px;
    margin-top: 34px;
  }

  .service-gallery__item:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .service-gallery__caption {
    right: 12px;
    bottom: 11px;
    left: 12px;
    font-size: 10px;
  }

  .service-gallery__item {
    border-radius: 12px;
  }

  .service-panel__footer {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }

  .service-panel__cta {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }

  .service-panel__pager {
    white-space: normal;
  }

  .service-lightbox {
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    padding: 74px 8px 42px;
  }

  .service-lightbox__control {
    width: 42px;
    height: 42px;
  }

  .service-lightbox__image {
    max-height: calc(100vh - 170px);
  }

  .service-lightbox__close {
    top: 18px;
    right: 18px;
  }

  .service-lightbox__counter {
    top: 31px;
    left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-btn,
  .services-index__link,
  .services-index__arrow,
  .service-gallery__item img,
  .services-hero__slide,
  .services-hero__arrows button {
    transition: none;
  }

  .services-hero__progress i.is-running {
    animation: none;
    transform: scaleX(1);
  }
}
