.faq-header {
  background: #ffffff;
  border-bottom: 1px solid #f2f2f2;
}

.faq-header__inner {
  width: min(1160px, calc(100% - 80px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.faq-logo img {
  width: 220px;
  max-width: 52vw;
  height: auto;
  display: block;
}

.faq-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  color: #242424;
  font-weight: 700;
}

.faq-nav a {
  white-space: nowrap;
}

.faq-login {
  min-width: 122px;
  text-align: center;
  border: 1px solid #8490a4;
  border-radius: 7px;
  padding: 9px 28px;
}

.faq-hero {
  background: linear-gradient(180deg, #f9f9f8 0%, #e8f6ff 100%);
  padding-top: 70px;
}

.faq-hero__inner {
  min-height: 292px;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0 52px;
  text-align: center;
}

.faq-hero h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  color: #272727;
}

.faq-hero p {
  margin-top: 18px;
  font-size: 21px;
  line-height: 1.45;
  color: #272727;
}

.faq-search {
  margin-top: 23px;
  width: min(480px, 100%);
  display: flex;
  align-items: stretch;
}

.faq-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid #c6ccd6;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  padding: 10px 13px;
  font-size: 16px;
  outline: none;
}

.faq-search input:focus {
  border-color: #0a449e;
}

.faq-search button {
  width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 4px 4px 0;
  background: #0a449e;
  color: #ffffff;
}

.faq-page-section {
  width: min(1028px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}

.faq-page-section h2 {
  text-align: center;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  color: #262626;
}

.faq-tabs {
  margin: 48px auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.faq-tab {
  position: relative;
  padding: 0 8px 10px;
  color: #7d7d7d;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.faq-tab[aria-selected="true"] {
  color: #242424;
}

.faq-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #0a449e;
}

.faq-page-list {
  display: grid;
  gap: 12px;
}

.faq-card {
  background: #f3f1ed;
  border: 1px solid transparent;
  border-radius: 9px;
  overflow: hidden;
}

.faq-card.is-open {
  border-color: #0a66ff;
}

.faq-card__button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 17px;
  color: #242424;
  text-align: left;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
}

.faq-card__icon {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border: 3px solid #0a5fd5;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0a5fd5;
}

.faq-card.is-open .faq-card__icon {
  color: #7a8498;
  border-color: #7a8498;
}

.faq-card__answer {
  padding: 0 17px 17px;
  color: #2d2d2d;
  font-size: 18px;
  line-height: 1.35;
}

.faq-state {
  text-align: center;
  color: #6b7280;
  font-size: 16px;
}

.faq-state--error {
  color: #dc2626;
}

.faq-footer {
  background: #1f1f1f;
  color: #ffffff;
}

.faq-footer__inner {
  width: min(1160px, calc(100% - 80px));
  margin: 0 auto;
  padding: 48px 0 36px;
}

.faq-footer__top,
.faq-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.faq-footer__logo img {
  width: 220px;
  height: auto;
}

.faq-footer__links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 16px;
}

.faq-footer__links a:first-child {
  color: #ffffff;
}

.faq-footer__links a:last-child,
.faq-footer__bottom p {
  color: #8b8b8b;
}

.faq-footer__line {
  height: 1px;
  background: #3e3e3e;
  margin: 34px 0 38px;
}

.faq-footer__bottom ul {
  display: flex;
  align-items: center;
  gap: 26px;
}

.faq-footer__bottom img {
  width: 25px;
  height: 25px;
}

@media (max-width: 760px) {
  .faq-header__inner,
  .faq-footer__inner {
    width: min(100% - 32px, 1160px);
  }

  .faq-header__inner {
    min-height: 68px;
  }

  .faq-nav {
    gap: 12px;
    font-size: 14px;
  }

  .faq-nav a:not(.faq-login) {
    display: none;
  }

  .faq-login {
    min-width: 90px;
    padding: 8px 16px;
  }

  .faq-hero__inner {
    min-height: 260px;
  }

  .faq-hero h1 {
    font-size: 34px;
  }

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

  .faq-page-section {
    width: min(100% - 28px, 1028px);
    padding: 48px 0;
  }

  .faq-page-section h2 {
    font-size: 28px;
  }

  .faq-tabs {
    margin: 32px auto 28px;
    gap: 18px;
  }

  .faq-tab {
    font-size: 17px;
  }

  .faq-card__button {
    font-size: 18px;
    padding: 16px;
  }

  .faq-card__answer {
    font-size: 16px;
  }

  .faq-footer__top,
  .faq-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
