.faq-page {
  background: #fff;
  color: var(--text);
}

.faq-page main {
  overflow: hidden;
  background: #fff;
}

.faq-hero {
  background: linear-gradient(180deg, #f1f9ff 0%, #eaf7ff 100%);
  border-bottom: 1px solid #edf4fa;
}

.faq-hero__inner {
  min-height: 360px;
  padding: 34px 0 36px;
}

.faq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #163b60;
  font-size: 15px;
  font-weight: 700;
}

.faq-breadcrumb a {
  color: #163b60;
}

.faq-breadcrumb strong {
  font-weight: 800;
}

.faq-hero h1 {
  max-width: 760px;
  margin: 34px 0 0;
  color: #071f3d;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.faq-hero p {
  margin: 16px 0 0;
  color: #163b60;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
}

.faq-search {
  width: min(800px, 100%);
  height: 64px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  margin: 48px auto 0;
  border: 1px solid #bfd4ea;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 47, 82, .06);
}

.faq-search span {
  position: relative;
  width: 54px;
  height: 100%;
}

.faq-search span::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 21px;
  width: 17px;
  height: 17px;
  border: 3px solid #526b8a;
  border-radius: 50%;
}

.faq-search span::after {
  content: "";
  position: absolute;
  left: 39px;
  top: 39px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: #526b8a;
  transform: rotate(45deg);
}

.faq-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px 0 0;
  color: #1c3757;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
}

.faq-search input::placeholder {
  color: #7d90a8;
}

.faq-popular {
  width: min(800px, 100%);
  display: grid;
  grid-template-columns: auto repeat(5, 1fr);
  align-items: center;
  gap: 0;
  margin: 28px auto 0;
  color: #071f3d;
  font-size: 14px;
  font-weight: 900;
}

.faq-popular a {
  min-height: 22px;
  display: grid;
  place-items: center;
  border-left: 1px solid #b9cfe5;
  color: #006df4;
}

.faq-tabs {
  display: grid;
  grid-template-columns: 86px repeat(6, 1fr);
  gap: 18px;
  padding-top: 32px;
}

.faq-tabs a {
  min-height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid #cfddec;
  border-radius: 10px;
  color: #123154;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(16, 47, 82, .03);
}

.faq-tabs a.is-active {
  border-color: #006df4;
  background: #006df4;
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 109, 244, .24);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 920px) 280px;
  gap: 64px;
  align-items: start;
  padding-top: 34px;
}

.faq-content {
  min-width: 0;
}

.faq-group {
  margin-bottom: 42px;
}

.faq-group__title {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #cfddec;
}

.faq-group__title span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}

.faq-group__title img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.faq-group__title h2 {
  margin: 0;
  color: #102b52;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.18;
}

.faq-item {
  border-bottom: 1px solid #cfddec;
}

.faq-item summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px 0 22px;
  color: #102b52;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-right: 2px solid #102b52;
  border-bottom: 2px solid #102b52;
  transform: rotate(45deg) translateY(-4px);
}

.faq-item[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.faq-answer,
.faq-item > p {
  max-width: 820px;
  margin: 0;
  padding: 0 36px 28px 22px;
  color: #102b52;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.faq-answer p {
  margin: 0;
}

.faq-answer a {
  display: inline-flex;
  margin-top: 20px;
  color: #006df4;
  font-size: 15px;
  font-weight: 900;
}

.faq-support {
  position: sticky;
  top: 24px;
  min-height: 438px;
  border: 1px solid #cfddec;
  border-radius: 13px;
  padding: 36px 36px 30px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 47, 82, .05);
}

.faq-support h2 {
  margin: 0;
  color: #102b52;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.18;
}

.faq-support p {
  margin: 18px 0 32px;
  color: #102b52;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.faq-support__primary,
.faq-support__secondary {
  min-height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
}

.faq-support__primary {
  background: var(--orange);
  color: #fff;
}

.faq-support__secondary {
  margin-top: 18px;
  border: 2px solid #006df4;
  color: #006df4;
  background: #fff;
}

.faq-support__meta {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
  color: #102b52;
  font-size: 14px;
  font-weight: 800;
}

.faq-support__meta + .faq-support__meta {
  margin-top: 22px;
}

.faq-support__meta span {
  color: #8092a8;
  font-size: 13px;
  font-weight: 900;
}

.faq-support__meta:first-of-type strong {
  color: #006df4;
}

.faq-ready {
  min-height: 137px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 13px;
  background: linear-gradient(180deg, #edf8ff 0%, #e9f6ff 100%);
}

.faq-ready h2 {
  margin: 0;
  color: #102b52;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
}

.faq-ready div {
  display: flex;
  gap: 20px;
}

.faq-ready a {
  min-width: 240px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
}

.faq-ready__primary {
  background: var(--orange);
  color: #fff;
}

.faq-ready__secondary {
  border: 2px solid #006df4;
  color: #006df4;
  background: #fff;
}

@media (max-width: 1180px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-support {
    position: static;
    min-height: 0;
  }

  .faq-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .faq-hero__inner {
    min-height: 0;
    padding: 26px 0 30px;
  }

  .faq-hero h1 {
    margin-top: 24px;
    font-size: 36px;
  }

  .faq-hero p {
    font-size: 16px;
  }

  .faq-search {
    height: 58px;
    margin-top: 30px;
  }

  .faq-popular {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .faq-popular strong {
    grid-column: 1 / -1;
  }

  .faq-popular a {
    border: 1px solid #cfddec;
    border-radius: 8px;
    min-height: 34px;
  }

  .faq-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .faq-layout {
    padding-top: 24px;
  }

  .faq-group__title h2 {
    font-size: 20px;
  }

  .faq-item summary {
    padding-left: 0;
    font-size: 15px;
  }

  .faq-answer,
  .faq-item > p {
    padding-left: 0;
    padding-right: 0;
  }

  .faq-support {
    padding: 26px;
  }

  .faq-ready {
    padding: 26px;
    text-align: center;
  }

  .faq-ready div {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .faq-ready a {
    min-width: 0;
    width: 100%;
  }
}
