.svc,
.svc-other {
  --svc-accent: #436bef;
  --svc-accent-hover: #1c4ade;
  --svc-accent-soft: #e7ecfc;
  --svc-gray: #ecf0f1;
  --svc-ink: #000;
  --svc-ink-soft: #3b3f45;
  --svc-ease: cubic-bezier(.22, .61, .36, 1);
  font-family: 'TildaSans', Arial, sans-serif;
  color: var(--svc-ink);
}

.svc *,
.svc *::before,
.svc *::after,
.svc-other *,
.svc-other *::before,
.svc-other *::after {
  box-sizing: border-box;
}

.svc-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tilda's "#allrecords ol/ul" padding outranks plain class selectors */
#allrecords .svc-includes,
#allrecords .svc-steps,
#allrecords .svc-other__grid {
  padding: 0;
}

#allrecords .svc-includes {
  margin: 0 auto;
}

#allrecords .svc-steps,
#allrecords .svc-other__grid {
  margin: 0;
}

#allrecords .svc-prose ul,
#allrecords .svc-prose ol {
  margin: 0 0 1em;
  padding-left: 0;
}

/* Hero */
.svc-hero,
.svc-cta {
  position: relative;
  background-color: #111;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.svc-veil {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, .80), rgba(0, 0, 0, .90));
}

.svc-hero__inner,
.svc-cta__inner {
  position: relative;
}

.svc-hero__inner {
  padding-top: 96px;
  padding-bottom: 104px;
}


.svc-hero__title {
  max-width: 900px;
  margin: 0 auto;
  font-size: 62px;
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: .5px;
  color: #fff;
  text-wrap: balance;
}

.svc-hero__lead {
  max-width: 680px;
  margin: 28px auto 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, .84);
  text-wrap: pretty;
}

.svc-hero__lead p {
  margin: 0;
}

.svc-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 40px 0 0;
}

.svc-facts__item {
  padding: 4px 32px;
}

.svc-facts__item + .svc-facts__item {
  border-left: 1px solid rgba(255, 255, 255, .24);
}

.svc-facts dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.svc-facts dd {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

/* Buttons */
.svc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.svc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 40px;
  border-radius: 30px;
  font-family: 'TildaSans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  gap: 10px;
  transition: background-color .2s var(--svc-ease), color .2s var(--svc-ease), transform .15s var(--svc-ease);
}

.svc-btn__icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.svc-btn:active {
  transform: scale(.97);
}

.svc-btn:focus-visible,
.svc-other__card:focus-visible {
  outline: 3px solid var(--svc-accent);
  outline-offset: 3px;
}

.svc-hero .svc-btn:focus-visible,
.svc-cta .svc-btn:focus-visible {
  outline-color: #fff;
}

.svc-btn_primary,
#allrecords .svc-btn_primary {
  background-color: var(--svc-accent);
  color: #fff;
}

.svc-btn_light,
#allrecords .svc-btn_light {
  background-color: #fff;
  color: #000;
}

@media (hover: hover) {
  .svc-btn_primary:hover,
  #allrecords .svc-btn_primary:hover {
    background-color: var(--svc-accent-hover);
    color: #fff;
  }

  .svc-btn_light:hover,
  #allrecords .svc-btn_light:hover {
    background-color: var(--svc-accent-soft);
    color: #000;
  }
}

/* Sections */
.svc-section {
  padding: 96px 0 112px;
}

.svc-section_white {
  background-color: #fff;
}

.svc-section_gray {
  background-color: var(--svc-gray);
}

.svc-h2 {
  margin: 0 0 56px;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
  text-align: center;
  color: var(--svc-ink);
  text-wrap: balance;
}

/* Detail text from the admin editor */
.svc-prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--svc-ink);
}

.svc-prose > *:first-child {
  margin-top: 0;
}

.svc-prose > *:last-child {
  margin-bottom: 0;
}

.svc-prose p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.svc-prose h2,
.svc-prose h3 {
  margin: 1.8em 0 .6em;
  font-weight: 600;
  line-height: 1.3;
}

.svc-prose h2 {
  font-size: 30px;
}

.svc-prose h3 {
  font-size: 24px;
}

.svc-prose strong,
.svc-prose b {
  font-weight: 600;
}

.svc-prose a,
#allrecords .svc-prose a {
  color: var(--svc-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.svc-prose ul,
.svc-prose ol {
  margin: 0 0 1em;
  padding-left: 0;
  list-style: none;
}

.svc-prose li {
  position: relative;
  margin: 0 0 .5em;
  padding-left: 28px;
}

.svc-prose ul > li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 4px;
  width: 8px;
  height: 8px;
  background: var(--svc-accent);
}

.svc-prose ol {
  counter-reset: svc-ol;
}

.svc-prose ol > li::before {
  counter-increment: svc-ol;
  content: counter(svc-ol) ".";
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--svc-accent);
  font-variant-numeric: tabular-nums;
}

.svc-prose img {
  max-width: 100%;
  height: auto;
}

/* What's included */
.svc-includes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.svc-includes__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 32px 32px 34px;
  background-color: #fff;
}

.svc-includes__num {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--svc-accent);
  font-variant-numeric: tabular-nums;
}

.svc-includes__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.svc-includes__text {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--svc-ink-soft);
}

/* Steps: same black-circle timeline language as the homepage */
.svc-steps {
  display: grid;
  grid-template-columns: repeat(var(--svc-steps, 4), minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-steps__item {
  position: relative;
  text-align: center;
}

.svc-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(50% + 34px);
  width: calc(100% + 32px - 68px);
  height: 2px;
  background: #222;
}

.svc-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.svc-steps__title {
  margin: 22px 0 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.svc-steps__text {
  max-width: 260px;
  margin: 10px auto 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--svc-ink-soft);
}

/* Contacts */
.svc-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

#allrecords .svc-contacts {
  margin: 0 auto;
  padding: 0;
}

.svc-contacts__item {
  padding: 40px 32px 44px;
  background-color: #fff;
  text-align: center;
}

.svc-contacts__icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.svc-contacts__title {
  margin: 20px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.svc-contacts__link,
#allrecords .svc-contacts__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 500;
  color: var(--svc-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.svc-contacts__link:hover,
#allrecords .svc-contacts__link:hover {
  color: var(--svc-accent-hover);
}

.svc-contacts__link:focus-visible {
  outline: 3px solid var(--svc-accent);
  outline-offset: 3px;
}

@media screen and (max-width: 640px) {
  .svc-contacts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .svc-contacts__item {
    padding: 32px 20px 36px;
  }
}

/* CTA */
.svc-cta__inner {
  padding-top: 104px;
  padding-bottom: 112px;
}

.svc-cta__title {
  margin: 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
  color: #fff;
  text-wrap: balance;
}

.svc-cta__text {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, .84);
}

.svc-actions_center {
  margin-top: 40px;
}

/* Other services */
.svc-other {
  padding: 96px 0 120px;
  background-color: var(--svc-gray);
}

.svc-other__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-other__card,
#allrecords .svc-other__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.44;
  padding: 24px;
  overflow: hidden;
  background-color: #111;
  color: #fff;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, .3);
}

.svc-other__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform .5s var(--svc-ease);
}

.svc-other__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, .70), rgba(0, 0, 0, .80));
  transition: opacity .3s var(--svc-ease);
}

.svc-other__name {
  position: relative;
  z-index: 2;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  text-wrap: balance;
}

@media (hover: hover) {
  .svc-other__card:hover .svc-other__bg {
    transform: scale(1.05);
  }

  .svc-other__card:hover::before {
    opacity: .85;
  }
}

@media screen and (max-width: 960px) {
  .svc-hero__title {
    font-size: 44px;
  }

  .svc-h2,
  .svc-cta__title {
    font-size: 34px;
  }

  .svc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .svc-steps__item:nth-child(2n)::after {
    display: none;
  }
}

@media screen and (max-width: 640px) {
  .svc-hero__inner {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .svc-hero__title {
    font-size: 32px;
    letter-spacing: 0;
  }

  .svc-hero__lead,
  .svc-cta__text {
    font-size: 17px;
  }

  .svc-facts__item {
    padding: 4px 20px;
  }

  .svc-facts dd {
    font-size: 20px;
  }

  .svc-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 36px;
  }

  .svc-btn {
    min-height: 54px;
    padding: 0 24px;
    font-size: 15px;
  }

  .svc-section,
  .svc-other {
    padding: 64px 0 76px;
  }

  .svc-cta__inner {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .svc-h2,
  .svc-cta__title {
    margin-bottom: 36px;
    font-size: 28px;
  }

  .svc-cta__title {
    margin-bottom: 0;
  }

  .svc-prose {
    font-size: 17px;
  }

  .svc-prose h2 {
    font-size: 24px;
  }

  .svc-prose h3 {
    font-size: 20px;
  }

  .svc-includes {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .svc-includes__item {
    grid-template-columns: 34px 1fr;
    gap: 12px;
    padding: 24px 20px 26px;
  }

  .svc-includes__title {
    font-size: 19px;
  }

  .svc-includes__text {
    font-size: 16px;
  }

  .svc-steps {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .svc-steps__item {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 20px;
    padding-bottom: 32px;
    text-align: left;
  }

  .svc-steps__item:not(:last-child)::after,
  .svc-steps__item:nth-child(2n):not(:last-child)::after {
    display: block;
    top: 46px;
    left: 22px;
    width: 2px;
    height: calc(100% - 46px);
  }

  .svc-steps__num {
    grid-row: 1 / span 2;
  }

  .svc-steps__title {
    margin-top: 9px;
    font-size: 20px;
  }

  .svc-steps__text {
    max-width: none;
    margin: 6px 0 0;
  }

  .svc-other__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .svc-other__name {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-btn,
  .svc-other__bg,
  .svc-other__card::before {
    transition: none;
  }

  .svc-btn:active {
    transform: none;
  }
}
