* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--heading-color);
  background: var(--bg-white);
  font-family: var(--body-font);
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.jd-page {
  overflow-x: hidden;
  background: var(--bg-white);
}

.jd-hero-section {
  min-height: 449px;
  color: #fff;
  background: url("../resources/hero-bg.png") center / cover no-repeat;
}

.jd-hero-wrap {
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
  padding-top: 114px;
}

.jd-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 175px;
  height: 39px;
  padding: 0 25px;
  background: var(--primary-color);
  color: var(--white-color);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.jd-hero-title {
  max-width: 560px;
  margin: 29px 0 0;
  color: var(--white-color);
  font-size: 48px;
  font-weight: 900;
  line-height: 1.17;
  letter-spacing: 0;
}

.jd-intro-section {
  padding: 107px 0 45px;
}

.jd-intro-wrap {
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 555px);
  gap: clamp(28px, 3.5vw, 68px);
  align-items: stretch;
}

.jd-intro-copy {
  min-width: 0;
  padding-top: 29px;
}

.jd-intro-kicker {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0;
  margin: 0;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  flex-wrap: wrap;
  row-gap: 8px;
}

.jd-intro-kicker::before {
  content: "";
  display: block;
  width: 73px;
  height: 4px;
  background: var(--primary-color);
}

.jd-intro-title {
  margin: 38px 0 0;
  color: var(--heading-color);
  font-size: 47px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.jd-intro-desc {
  max-width: 700px;
  margin: 58px 0 0;
  color: var(--grey-color);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.jd-intro-media {
  align-self: stretch;
  justify-self: end;
  width: 100%;
  max-width: 555px;
  min-height: 446px;
  overflow: hidden;
}

.jd-intro-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease, filter .55s ease;
}

.jd-intro-media:hover .jd-intro-image {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.jd-intro-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 30px clamp(24px, 3vw, 71px);
  max-width: 100%;
  margin-top: 74px;
}

.jd-intro-metric {
  min-width: 0;
}

.jd-intro-metric-number {
  display: block;
  color: var(--primary-color);
  font-size: clamp(42px, 3.8vw, 54px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.jd-intro-metric-name {
  display: block;
  margin-top: 14px;
  color: var(--heading-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.jd-brands-section {
  padding: 74px 0 74px;
  text-align: center;
}

.jd-brands-wrap {
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
}

.jd-brands-kicker {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0;
  margin: 0;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  justify-content: center;
}

.jd-brands-kicker::before {
  content: "";
  display: block;
  width: 73px;
  height: 4px;
  background: var(--primary-color);
}

.jd-brands-title {
  margin: 37px 0 0;
  color: var(--heading-color);
  font-size: 46px;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0;
}

.jd-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px 22px;
  margin-top: 76px;
}

.jd-brands-card {
  display: block;
  position: relative;
  min-width: 0;
  padding-bottom: 46px;
  color: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.jd-brands-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(1, 96, 255, .35);
}

.jd-brands-photo {
  overflow: hidden;
  aspect-ratio: 421 / 333;
}

.jd-brands-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
}

.jd-brands-card:hover .jd-brands-image {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.jd-brands-card-info {
  position: absolute;
  right: 17px;
  bottom: 0;
  left: 17px;
  min-height: 69px;
  padding: 31px 30px 17px;
  background: var(--white-color);
  box-shadow: 0 16px 34px rgba(3, 41, 108, .14);
  transition: box-shadow .24s ease, transform .24s ease;
}

.jd-brands-card:hover .jd-brands-card-info {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(3, 41, 108, .2);
}

.jd-brands-card-tag {
  position: absolute;
  top: -19px;
  left: 31px;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 19px;
  background: var(--secondary-color);
  color: var(--white-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.jd-brands-card-title {
  margin: 0;
  color: var(--heading-color);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
}

.jd-process-section {
  padding: 75px 0 82px;
  text-align: center;
}

.jd-process-wrap {
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
}

.jd-process-kicker {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0;
  margin: 0;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  justify-content: center;
}

.jd-process-kicker::before {
  content: "";
  display: block;
  width: 73px;
  height: 4px;
  background: var(--primary-color);
}

.jd-process-title {
  margin: 36px 0 0;
  color: var(--heading-color);
  font-size: 48px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.jd-process-steps {
  --jd-process-gap: 80px;
  --jd-process-circle: 72px;
  --jd-process-line-space: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--jd-process-gap);
  margin-top: 76px;
}

.jd-process-step {
  position: relative;
  min-width: 0;
}

.jd-process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 35px;
  left: calc(50% + (var(--jd-process-circle) / 2) + var(--jd-process-line-space));
  width: calc(100% + var(--jd-process-gap) - var(--jd-process-circle) - (var(--jd-process-line-space) * 2));
  height: 3px;
  background: var(--primary-color);
}

.jd-process-step-number {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  background: var(--white-color);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  transition: transform .24s ease, background-color .24s ease, color .24s ease;
}

.jd-process-step:hover .jd-process-step-number {
  transform: translateY(-5px);
  background: var(--primary-color);
  color: var(--white-color);
}

.jd-process-step-title {
  margin: 30px 0 0;
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.jd-process-step-desc {
  max-width: 270px;
  margin: 24px auto 0;
  color: var(--grey-color);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.jd-faq-section {
  padding: 0 0 107px;
  text-align: center;
}

.jd-faq-wrap {
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
}

.jd-faq-kicker {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0;
  margin: 0;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  justify-content: center;
}

.jd-faq-kicker::before {
  content: "";
  display: block;
  width: 73px;
  height: 4px;
  background: var(--primary-color);
}

.jd-faq-title {
  margin: 35px 0 0;
  color: var(--heading-color);
  font-size: 50px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.jd-faq-list {
  display: grid;
  gap: 15px;
  margin-top: 78px;
  text-align: left;
}

.jd-faq-item {
  background: var(--bg-grey);
  overflow: hidden;
  transition: background-color .24s ease;
}

.jd-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 106px;
  padding: 34px 41px;
  border: 0;
  background: transparent;
  color: var(--heading-color);
  cursor: pointer;
  text-align: left;
  transition: color .24s ease;
}

.jd-faq-item:not(.is-open):hover {
  background: var(--light-grey-color);
}

.jd-faq-item:not(.is-open):hover .jd-faq-question {
  color: var(--primary-color);
}

.jd-faq-item.is-open .jd-faq-question:hover {
  color: var(--primary-color);
}

.jd-faq-question-text {
  padding-right: 32px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.jd-faq-arrow {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}

.jd-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  padding: 0 42px;
  transition: grid-template-rows .48s cubic-bezier(.22, 1, .36, 1), opacity .32s ease, padding-bottom .48s cubic-bezier(.22, 1, .36, 1);
}

.jd-faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.jd-faq-answer-text {
  max-width: 1165px;
  margin: 0;
  color: var(--grey-color);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.52;
}

.jd-faq-item.is-open .jd-faq-question {
  min-height: auto;
  padding-bottom: 35px;
  color: var(--primary-color);
}

.jd-faq-item.is-open .jd-faq-arrow {
  transform: rotate(-135deg);
}

.jd-faq-item.is-open .jd-faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-bottom: 69px;
}

.jd-contact-section {
  position: relative;
  overflow: hidden;
  min-height: 243px;
  background: var(--primary-color);
  color: var(--white-color);
}

.jd-contact-section::before {
  content: "";
  position: absolute;
  left: -517px;
  bottom: -635px;
  width: 1387px;
  height: 1037px;
  background: url("../resources/footer-dots.png") center / contain no-repeat;
  opacity: .72;
  pointer-events: none;
}

.jd-contact-wrap {
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px 1fr 243px;
  gap: 64px;
  align-items: center;
  min-height: 243px;
}

.jd-contact-title {
  margin: 0;
  color: var(--white-color);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.jd-contact-desc {
  max-width: 800px;
  margin: 0;
  color: var(--white-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.jd-contact-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 243px;
  height: 59px;
  background: var(--white-color);
  color: var(--primary-color);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  transition: transform .24s ease, box-shadow .24s ease, color .24s ease;
}

.jd-contact-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(0, 98, 255, .14) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .45s ease;
}

.jd-contact-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(3, 41, 108, .22);
  color: var(--secondary-color);
}

.jd-contact-button:hover::after {
  transform: translateX(120%);
}

@media (max-width: 1200px) {
  .jd-brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jd-process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 52px 48px;
  }

  .jd-process-step::after {
    display: none;
  }

  .jd-contact-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 54px 0;
  }
}

@media (max-width: 980px) {
  .jd-intro-wrap {
    grid-template-columns: 1fr;
  }

  .jd-intro-copy {
    padding-top: 0;
  }

  .jd-intro-media {
    align-self: auto;
    justify-self: stretch;
    max-width: none;
    min-height: 0;
    aspect-ratio: 555 / 446;
  }

  .jd-intro-metrics {
    grid-template-columns: repeat(2, minmax(108px, 1fr));
    gap: 34px 70px;
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .jd-hero-wrap,
  .jd-intro-wrap,
  .jd-brands-wrap,
  .jd-process-wrap,
  .jd-faq-wrap,
  .jd-contact-wrap {
    width: min(100% - 32px, 1400px);
  }

  .jd-hero-section {
    min-height: 380px;
    background-position: 56% center;
  }

  .jd-hero-wrap {
    padding-top: 86px;
  }

  .jd-hero-title {
    font-size: clamp(34px, 9vw, 48px);
  }

  .jd-intro-section {
    padding: 76px 0 36px;
  }

  .jd-intro-kicker,
  .jd-brands-kicker,
  .jd-process-kicker,
  .jd-faq-kicker {
    font-size: 13px;
  }

  .jd-intro-kicker::before,
  .jd-brands-kicker::before,
  .jd-process-kicker::before,
  .jd-faq-kicker::before {
    width: 52px;
    height: 3px;
  }

  .jd-intro-title {
    margin-top: 30px;
    font-size: clamp(34px, 8vw, 47px);
  }

  .jd-intro-desc {
    margin-top: 34px;
  }

  .jd-intro-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 44px;
  }

  .jd-intro-metric-number {
    font-size: 42px;
  }

  .jd-brands-section {
    padding-top: 36px;
  }

  .jd-brands-title {
    font-size: clamp(32px, 8vw, 46px);
  }

  .jd-brands-grid {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .jd-process-section {
    padding: 48px 0 64px;
  }

  .jd-process-title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .jd-process-steps {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .jd-faq-section {
    padding-bottom: 76px;
  }

  .jd-faq-title {
    font-size: clamp(32px, 8vw, 50px);
  }

  .jd-faq-list {
    gap: 12px;
    margin-top: 32px;
  }

  .jd-faq-question {
    min-height: 72px;
    padding: 20px 20px;
  }

  .jd-faq-question-text {
    font-size: 16px;
    line-height: 1.35;
  }

  .jd-faq-answer {
    padding: 0 20px;
  }

  .jd-faq-item.is-open .jd-faq-answer {
    padding-bottom: 28px;
  }

  .jd-faq-answer-text {
    font-size: 15px;
  }

  .jd-contact-wrap {
    padding: 48px 0;
  }

  .jd-contact-title {
    font-size: 30px;
  }

  .jd-contact-button {
    width: 100%;
    max-width: 243px;
  }
}
