/* НЕДРОВОД — service page v2
   Изолированные стили: не меняют главную, калькулятор и остальные шаблоны. */

.nd-service-page {
  --nd-ink: #101b20;
  --nd-dark: #0a1a21;
  --nd-dark-2: #112a33;
  --nd-paper: #f1f0e9;
  --nd-muted: #5f686a;
  --nd-line: #d7d5cd;
  --nd-orange: #ef6a36;
  background: var(--nd-paper);
  color: var(--nd-ink);
}

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

.nd-service-page a {
  color: inherit;
  text-decoration: none;
}

.nd-service-shell {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

/* HERO */
.nd-service-hero {
  position: relative;
  min-height: 325px;
  overflow: hidden;
  background: var(--nd-dark);
  color: #fff;
  isolation: isolate;
}

.nd-service-hero__media {
  position: absolute;
  z-index: -3;
  inset: 0 0 0 45%;
  background-position: center 46%;
  background-size: cover;
  filter: saturate(.65) contrast(1.05);
  opacity: .48;
}

.nd-service-hero__shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, #0b1f27 0%, #0b1f27 43%, rgba(11,31,39,.84) 65%, rgba(11,31,39,.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.18));
}

.nd-service-hero__inner {
  min-height: 325px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, .65fr);
  gap: 92px;
  align-items: center;
  padding-block: 48px 54px;
}

.nd-service-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 21px;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nd-service-breadcrumbs a {
  transition: color .18s ease;
}
.nd-service-breadcrumbs a:hover {
  color: #fff;
}

.nd-service-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: rgba(255,255,255,.55);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.nd-service-kicker span {
  width: 22px;
  height: 2px;
  background: var(--nd-orange);
}

.nd-service-hero h1 {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(46px, 5.3vw, 70px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.065em;
}

.nd-service-hero__lead {
  max-width: 315px;
  margin: 49px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.65;
}

/* MAIN LAYOUT */
.nd-service-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 232px;
  gap: 72px;
  align-items: start;
  padding-block: 55px 72px;
}

.nd-service-content {
  min-width: 0;
}

.nd-service-section {
  padding: 0 0 42px;
  margin: 0 0 38px;
  border-bottom: 1px solid var(--nd-line);
}

.nd-service-section h2,
.nd-service-related h2,
.nd-service-generic h2 {
  margin: 0 0 19px;
  color: var(--nd-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.nd-service-section p,
.nd-service-generic p {
  max-width: 700px;
  margin: 0 0 14px;
  color: #566164;
  font-size: 12.5px;
  line-height: 1.72;
}

.nd-service-list {
  padding: 0;
  margin: 25px 0 0;
  list-style: none;
  border-top: 1px solid var(--nd-line);
}

.nd-service-list li {
  position: relative;
  min-height: 45px;
  display: flex;
  align-items: center;
  padding: 9px 12px 9px 27px;
  border-bottom: 1px solid var(--nd-line);
  color: #3f4a4d;
  font-size: 12px;
  line-height: 1.45;
}

.nd-service-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nd-orange);
  transform: translateY(-50%);
}

/* SIDEBAR */
.nd-service-sidebar {
  position: relative;
}

.nd-service-sidebar__box {
  position: sticky;
  top: 28px;
  overflow: hidden;
  background: var(--nd-dark-2);
  color: #fff;
}

.nd-service-sidebar__title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.55);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nd-service-sidebar__title span {
  width: 21px;
  height: 2px;
  background: var(--nd-orange);
}

.nd-service-sidebar__box > .nd-service-sidebar__title {
  margin: 28px 22px 4px;
}
.nd-service-sidebar__nav {
  padding: 6px 22px 18px;
}
.nd-service-sidebar__nav a {
  position: relative;
  display: block;
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.64);
  font-size: 9px;
  line-height: 1.35;
  transition: color .18s ease, padding-left .18s ease;
}
.nd-service-sidebar__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--nd-orange);
}
.nd-service-sidebar__nav a:hover {
  padding-left: 21px;
  color: #fff;
}

.nd-service-sidebar__cta {
  padding: 22px 22px 23px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.nd-service-sidebar__cta h3 {
  margin: 15px 0 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.02;
}
.nd-service-sidebar__cta p {
  margin: 0 0 17px;
  color: rgba(255,255,255,.58);
  font-size: 9px;
  line-height: 1.55;
}
.nd-service-sidebar__button {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  background: var(--nd-orange);
  color: #fff !important;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: filter .18s ease, transform .18s ease;
}
.nd-service-sidebar__button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.nd-service-sidebar__button b {
  font-size: 15px;
  font-weight: 400;
}
.nd-service-sidebar__cta small {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.36);
  font-size: 7.5px;
  line-height: 1.4;
}

/* FAQ */
.nd-service-faq {
  padding-bottom: 30px;
}
.nd-service-faq__list {
  border-top: 1px solid var(--nd-line);
}
.nd-service-faq details {
  border-bottom: 1px solid var(--nd-line);
}
.nd-service-faq summary {
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 11px 46px 11px 0;
  color: #273236;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.nd-service-faq summary::-webkit-details-marker {
  display: none;
}
.nd-service-faq summary::after {
  content: "+";
  position: absolute;
  right: 3px;
  top: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #c6c5be;
  border-radius: 50%;
  color: var(--nd-orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  transform: translateY(-50%);
}
.nd-service-faq details[open] summary::after {
  content: "−";
}
.nd-service-faq details p {
  padding: 0 48px 16px 0;
  margin: -1px 0 0;
  font-size: 12px;
}

/* RELATED */
.nd-service-related {
  padding-top: 7px;
}
.nd-service-kicker--dark {
  color: #687174;
}
.nd-service-related h2 {
  margin-bottom: 22px;
  font-size: 36px;
}
.nd-service-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--nd-line);
  border-left: 1px solid var(--nd-line);
}
.nd-service-related__grid a {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 18px;
  border-right: 1px solid var(--nd-line);
  border-bottom: 1px solid var(--nd-line);
  color: #263034;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.25;
  transition: background .18s ease;
}
.nd-service-related__grid a:hover {
  background: rgba(255,255,255,.55);
}
.nd-service-related__grid i {
  color: var(--nd-orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-style: normal;
}

/* GENERIC FALLBACK */
.nd-service-hero--generic {
  min-height: 280px;
}
.nd-service-hero--generic .nd-service-hero__inner {
  min-height: 280px;
}
.nd-service-generic {
  max-width: 850px;
  padding-block: 60px 80px;
}
.nd-service-inline-button {
  min-height: 48px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-top: 25px;
  padding: 0 22px;
  background: var(--nd-orange);
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* ACCESSIBILITY */
.nd-service-page :focus-visible {
  outline: 3px solid #ff9a70;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .nd-service-hero__inner {
    grid-template-columns: 1fr .7fr;
    gap: 44px;
  }
  .nd-service-layout {
    grid-template-columns: minmax(0, 1fr) 215px;
    gap: 38px;
  }
}

@media (max-width: 760px) {
  .nd-service-shell {
    width: min(100% - 28px, 1080px);
  }

  .nd-service-hero {
    min-height: auto;
  }
  .nd-service-hero__media {
    inset: 0;
    opacity: .34;
  }
  .nd-service-hero__shade {
    background: linear-gradient(180deg, rgba(8,25,32,.88), rgba(8,25,32,.94));
  }
  .nd-service-hero__inner,
  .nd-service-hero--generic .nd-service-hero__inner {
    min-height: 390px;
    grid-template-columns: 1fr;
    gap: 20px;
    align-content: center;
    padding-block: 45px;
  }
  .nd-service-hero h1 {
    font-size: clamp(44px, 13vw, 62px);
    line-height: .94;
  }
  .nd-service-hero__lead {
    max-width: 520px;
    margin-top: 0;
    font-size: 13px;
  }

  .nd-service-layout {
    grid-template-columns: 1fr;
    padding-block: 42px 58px;
  }
  .nd-service-sidebar {
    order: -1;
  }
  .nd-service-sidebar__box {
    position: static;
  }
  .nd-service-sidebar__nav {
    display: none;
  }
  .nd-service-sidebar__cta {
    border-top: 0;
  }

  .nd-service-section {
    margin-bottom: 32px;
    padding-bottom: 35px;
  }
  .nd-service-section h2,
  .nd-service-related h2,
  .nd-service-generic h2 {
    font-size: 30px;
  }

  .nd-service-related__grid {
    grid-template-columns: 1fr;
  }
  .nd-service-related__grid a {
    min-height: 64px;
  }
}
