.services-page {
  margin: 0;
  color: #fff;
  background: #111316;
}

.services-shell {
  min-height: 100vh;
}

.services-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.services-hero__background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  filter: saturate(0.78) contrast(1.04);
  transform: scale(1.03);
}

.services-hero__veil {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 14, 0.58), rgba(8, 11, 14, 0.88)),
    radial-gradient(circle at 20% 15%, rgba(33, 135, 122, 0.2), transparent 38%);
}

.services-topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
}

.services-page .brand {
  color: #fff;
  background: rgba(17, 19, 22, 0.58);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.services-page .brand__mark {
  color: #111316;
  background: #fff;
}

.services-page .brand__text small {
  color: rgba(255, 255, 255, 0.65);
}

.services-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: rgba(17, 19, 22, 0.56);
  backdrop-filter: blur(18px);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.services-home-link:hover,
.services-home-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(17, 19, 22, 0.76);
  transform: translateY(-2px);
}

.services-page .language-menu__button {
  color: #fff;
  background: rgba(17, 19, 22, 0.56);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.services-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 64px;
}

.services-intro {
  max-width: 820px;
  margin-bottom: 34px;
}

.services-intro__eyebrow {
  margin: 0 0 12px;
  color: #77d4c6;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.services-intro h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.65rem, 5.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.services-intro__subtitle {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.55;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  color: #fff;
  background: #171a1e;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.service-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.08) saturate(1.04) contrast(1.02);
  transition:
    filter 0.5s ease,
    transform 0.65s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.service-card--one > img {
  object-position: 50% center;
}

.service-card--two > img {
  object-position: 50% center;
}

.service-card--three > img {
  object-position: 56% center;
}

.service-card--four > img {
  object-position: 54% center;
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 13, 16, 0.04) 28%, rgba(10, 13, 16, 0.24) 56%, rgba(10, 13, 16, 0.9) 100%),
    linear-gradient(90deg, rgba(10, 13, 16, 0.18), transparent 62%);
}

.service-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 26px;
}

.service-card__number {
  margin-bottom: auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.service-card strong {
  max-width: 500px;
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.service-card__description {
  max-width: 520px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.46;
}

.service-card__button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 0 17px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 0.84rem;
  font-weight: 780;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  transform: translateY(-6px);
}

.service-card:hover > img,
.service-card:focus-visible > img {
  filter: brightness(1.12) saturate(1.1) contrast(1.03);
  transform: scale(1.07);
}

.service-card--two:hover > img,
.service-card--two:focus-visible > img {
  transform: scale(1.07);
}

.service-card--three:hover > img,
.service-card--three:focus-visible > img {
  transform: scale(1.07);
}

.service-card--four:hover > img,
.service-card--four:focus-visible > img {
  transform: scale(1.07);
}

.service-card:hover .service-card__button,
.service-card:focus-visible .service-card__button {
  color: #111316;
  background: #fff;
  transform: translateX(3px);
}

@media (min-width: 761px) {
  .services-shell,
  .services-hero {
    height: 100svh;
    min-height: 680px;
  }

  .services-content {
    display: flex;
    height: 100svh;
    min-height: 680px;
    box-sizing: border-box;
    flex-direction: column;
    padding: 94px 0 18px;
  }

  .services-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
    grid-template-rows: auto auto;
    align-items: end;
    column-gap: clamp(32px, 5vw, 72px);
    flex: 0 0 auto;
    max-width: none;
    margin-bottom: 16px;
  }

  .services-intro__eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 7px;
  }

  .services-intro h1 {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
    font-size: clamp(2.15rem, 3.8vw, 3.55rem);
  }

  .services-intro__subtitle {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: 460px;
    padding-bottom: 5px;
    font-size: clamp(0.9rem, 1.35vw, 1.05rem);
    line-height: 1.4;
  }

  .services-grid {
    min-height: 0;
    flex: 1;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 0;
  }

  .service-card__content {
    padding: 20px 22px;
  }

  .service-card__number {
    font-size: 0.68rem;
  }

  .service-card strong {
    margin-bottom: 7px;
    font-size: clamp(1.18rem, 1.8vw, 1.62rem);
  }

  .service-card__description {
    margin-bottom: 12px;
    font-size: clamp(0.78rem, 1.05vw, 0.9rem);
    line-height: 1.35;
  }

  .service-card__button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.78rem;
  }
}

@media (max-width: 760px) {
  .services-home-link {
    display: none;
  }

  .services-content {
    width: min(100% - 24px, 560px);
    padding: 112px 0 36px;
  }

  .services-topbar {
    position: absolute;
    top: calc(34px + env(safe-area-inset-top));
  }

  .services-intro {
    margin-bottom: 24px;
  }

  .services-intro h1 {
    max-width: 540px;
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .services-intro__subtitle {
    font-size: 0.98rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    min-height: 310px;
    border-radius: 18px;
  }

  .service-card__content {
    padding: 22px;
  }

  .service-card strong {
    font-size: 1.55rem;
  }

  .service-card__description {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card > img,
  .service-card__button,
  .services-home-link {
    transition: none;
  }
}
