:root {
  --nb-service-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nb-service-max: 1040px;
}

.nb-service-page {
  font-family: var(--nb-service-font);
  color: #1f2732;
  background: #fff;
}

.nb-service-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.nb-service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(33, 40, 50, 0.55), rgba(33, 40, 50, 0.55));
}

.nb-service-hero__inner {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px;
}

.nb-service-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.15;
  color: #fff;
}

.nb-service-hero p {
  margin: 10px 0 0;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
}

.nb-service-main {
  max-width: var(--nb-service-max);
  margin: 0 auto;
  padding: 54px 24px 80px;
}

.nb-service-main .nb-article > *:first-child {
  margin-top: 0;
}

.nb-service-main p,
.nb-service-main li {
  font-size: 18px;
  line-height: 1.7;
  color: #2f3640;
}

.nb-service-main h2 {
  margin: 34px 0 10px;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nb-service-main h2 strong {
  font-weight: 800;
}

.nb-service-main ul {
  padding-left: 20px;
}

.nb-service-gallery {
  margin-top: 44px;
}

.nb-service-gallery h2 {
  margin-top: 0;
}

.nb-service-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.nb-service-gallery__grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #eef0f2;
}

.nb-service-gallery__grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 200ms ease;
}

.nb-service-gallery__grid a:hover img {
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .nb-service-hero {
    min-height: 270px;
  }
  .nb-service-hero__inner {
    padding: 42px 16px;
  }
  .nb-service-main {
    padding: 34px 16px 56px;
  }

  .nb-service-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nb-service-gallery__grid img {
    height: 140px;
  }
}
