.home-faq .section__header {
  max-width: 760px;
  margin-bottom: 44px;
}

.home-faq__intro {
  max-width: 650px;
  margin: 14px auto 0;
  color: #687284;
  line-height: 1.65;
}

.home-faq .faq__wrapper {
  grid-template-columns: minmax(0, 1.48fr) minmax(310px, 0.72fr);
  gap: 32px;
}

.home-faq .faq__accordion {
  gap: 10px;
}

.home-faq .accordion-item {
  position: relative;
  overflow: hidden;
  border: 1px solid #dce6ef !important;
  border-radius: 8px !important;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 42, 79, 0.05);
}

.home-faq .accordion-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--faq-accent, #087ed7);
}

.home-faq .accordion-button {
  min-height: 66px;
  padding: 16px 20px 16px 22px;
  font-size: 17px;
  letter-spacing: 0;
}

.home-faq .accordion-button[aria-expanded="true"] {
  background: #f7fbff !important;
  color: #062f65 !important;
}

.home-faq__question {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-faq__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 6px;
  color: var(--faq-accent, #087ed7) !important;
  background: color-mix(in srgb, var(--faq-accent, #087ed7) 10%, white);
  font-size: 12px;
  font-weight: 800;
}

.home-faq .accordion-button-icon {
  width: 20px;
}

.home-faq .accordion-body {
  padding: 2px 52px 21px 70px;
  color: #526071;
  font-size: 15px;
  line-height: 1.65;
}

.home-faq .accordion-body a {
  color: #006cc9;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-faq__knox {
  position: sticky;
  top: 112px;
  min-height: 430px;
  overflow: hidden;
  padding: 36px 32px;
  border: 1px solid #164a84;
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(6, 41, 85, 0.98) 0%, rgba(6, 41, 85, 0.94) 54%, rgba(6, 41, 85, 0.72) 100%),
    #062955;
  color: #fff;
  box-shadow: 0 18px 42px rgba(6, 41, 85, 0.18);
}

.home-faq__knox::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #14b8e4 0 35%, #3d7be3 35% 68%, #e24f87 68% 100%);
}

.home-faq__knox-copy {
  position: relative;
  z-index: 3;
  max-width: 300px;
}

.home-faq__knox-label {
  display: block;
  margin-bottom: 12px;
  color: #29c5ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-faq__knox h3 {
  max-width: 280px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 29px;
  line-height: 1.1;
}

.home-faq__knox p {
  margin-bottom: 22px;
  color: #d4e4f5;
  font-size: 15px;
  line-height: 1.55;
}

.home-faq__chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  background: #18b9df;
  color: #05264c;
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.home-faq__chat:hover,
.home-faq__chat:focus-visible {
  transform: translateY(-2px);
  background: #4bd0ee;
}

.home-faq__chat img {
  width: 19px;
  filter: brightness(0) saturate(100%) invert(13%) sepia(42%) saturate(2426%) hue-rotate(182deg) brightness(87%) contrast(104%);
}

.home-faq__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.home-faq__contact:hover {
  color: #45d0ef;
}

.home-faq__contact img {
  width: 17px;
  filter: brightness(0) invert(1);
}

.home-faq__topics {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.home-faq__topics span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(4, 31, 66, 0.82);
  color: #ecf7ff;
  font-size: 11px;
  font-weight: 700;
}

.home-faq__knox-image {
  position: absolute;
  z-index: 1;
  right: -38px;
  bottom: -28px;
  width: min(92%, 340px);
  max-height: 420px;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.18;
  filter: saturate(0.8) contrast(0.92);
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .home-faq .faq__wrapper {
    grid-template-columns: 1fr;
  }

  .home-faq__knox {
    position: relative;
    top: auto;
    min-height: 410px;
    order: 2 !important;
  }

  .home-faq .faq__accordion {
    order: 1 !important;
  }

  .home-faq__knox-image {
    right: -24px;
    bottom: -32px;
    width: 330px;
    max-height: 400px;
  }

  .home-faq__knox-copy {
    max-width: 420px;
  }
}

@media (max-width: 575.98px) {
  .home-faq .section__header {
    margin-bottom: 30px;
    text-align: left !important;
  }

  .home-faq__intro {
    margin-left: 0;
  }

  .home-faq .accordion-button {
    min-height: 62px;
    padding: 14px 14px 14px 16px;
    font-size: 15px;
  }

  .home-faq__question {
    gap: 10px;
  }

  .home-faq__index {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .home-faq .accordion-body {
    padding: 2px 42px 18px 56px;
    font-size: 14px;
  }

  .home-faq__knox {
    min-height: 440px;
    padding: 30px 24px;
  }

  .home-faq__knox-copy {
    max-width: 100%;
  }

  .home-faq__knox h3 {
    max-width: 250px;
    font-size: 27px;
  }

  .home-faq__knox p {
    font-size: 14px;
  }

  .home-faq__chat {
    width: 100%;
    padding-inline: 12px;
  }

  .home-faq__contact {
    font-size: 13px;
  }

  .home-faq__knox-image {
    right: -42px;
    bottom: -34px;
    left: auto;
    width: 300px;
    max-height: 360px;
    transform: none;
    opacity: 0.14;
  }

  .home-faq__topics {
    right: 18px;
    bottom: 20px;
    left: 18px;
  }
}
