.faq-page {
  min-width: 1280px;
}

.faq-main {
  min-height: calc(100vh - 164px);
}

.faq-section {
  padding: 46px 0 20px;
}

.faq-topbar {
  display: grid;
  grid-template-columns: 1fr 370px;
  align-items: start;
  column-gap: 52px;
  margin-bottom: 38px;
}

.faq-heading {
  margin: 0;
  color: var(--ink);
  font: 700 36px/1.1 var(--font-serif);
  letter-spacing: -0.01em;
}

.faq-search {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 6px;
}

.faq-search input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(57, 61, 50, 0.4);
  background: transparent;
  padding: 0 36px 12px 0;
  color: var(--ink);
  font: 400 18px/1.3 var(--font-sans);
  outline: none;
}

.faq-search input::placeholder {
  color: var(--ink);
  opacity: 1;
}

.faq-search-icon {
  position: absolute;
  right: 0;
  top: 4px;
  width: 20px;
  height: 20px;
}

.faq-search-icon::before,
.faq-search-icon::after {
  content: "";
  position: absolute;
}

.faq-search-icon::before {
  width: 14px;
  height: 14px;
  border: 1.8px solid rgba(57, 61, 50, 0.85);
  border-radius: 50%;
  left: 0;
  top: 0;
}

.faq-search-icon::after {
  width: 8px;
  height: 1.8px;
  background: rgba(57, 61, 50, 0.85);
  right: 0;
  bottom: 1px;
  transform: rotate(45deg);
  transform-origin: center;
}

.faq-tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 30px;
}

.faq-tab {
  position: relative;
  padding: 0 0 14px;
  border: 0;
  background: transparent;
  color: #e0be9a;
  cursor: pointer;
  font: 700 18px/1.2 var(--font-sans);
}

.faq-tab.is-active {
  color: var(--ink);
}

.faq-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 144px;
  height: 3px;
  background: #6b594b;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.faq-item[hidden] {
  display: none;
}

.faq-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #6b594b;
  color: #fff8f1;
  font: 400 26px/1 var(--font-sans);
}

.faq-card {
  border: 1px solid rgba(57, 61, 50, 0.7);
  border-left: 0;
  background: transparent;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 118px;
  padding: 0 34px 0 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font: 400 22px/1.35 var(--font-sans);
}

.faq-chevron {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-left: 22px;
}

.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 12px;
  height: 1.5px;
  background: rgba(57, 61, 50, 0.85);
}

.faq-chevron::before {
  left: 0;
  transform: rotate(45deg);
}

.faq-chevron::after {
  right: 0;
  transform: rotate(-45deg);
}

.faq-item.is-open .faq-chevron::before {
  transform: rotate(-45deg);
}

.faq-item.is-open .faq-chevron::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 34px 34px 34px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0 0 22px;
  color: #2f3d4d;
  font: 400 17px/1.48 var(--font-sans);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: -6px 0 0 28px;
  padding: 0;
}

.faq-answer li {
  margin: 0 0 8px;
  color: #2f3d4d;
  font: 400 17px/1.42 var(--font-sans);
}

.faq-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 119px;
  height: 54px;
  padding: 0 20px;
  background: #e0be9a;
  color: #5f5348;
  font: 400 18px/1 var(--font-sans);
}

.faq-footer {
  padding-top: 20px;
}

@media (max-width: 900px) {
  .faq-page {
    min-width: 0;
  }

  .faq-section {
    padding: 30px 0 20px;
  }

  .faq-topbar {
    grid-template-columns: 1fr;
    row-gap: 18px;
    margin-bottom: 28px;
  }

  .faq-heading {
    font-size: 32px;
  }

  .faq-search {
    margin-top: 0;
  }

  .faq-tabs {
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .faq-tab {
    flex: 0 0 auto;
    font-size: 15px;
  }

  .faq-tab.is-active::after {
    width: 100%;
  }

  .faq-item {
    grid-template-columns: 58px 1fr;
  }

  .faq-number {
    min-height: 86px;
    font-size: 18px;
  }

  .faq-question {
    min-height: 86px;
    padding: 0 16px;
    font-size: 17px;
  }

  .faq-chevron {
    width: 18px;
    height: 18px;
    margin-left: 14px;
  }

  .faq-answer {
    padding: 0 16px 22px;
  }

  .faq-answer p,
  .faq-answer li {
    font-size: 14px;
    line-height: 1.55;
  }

  .faq-answer ul {
    margin-left: 20px;
  }

  .faq-contact-link {
    min-width: 104px;
    height: 44px;
    font-size: 15px;
  }
}
