.faq-page {
  min-height: calc(100vh - 100px);
  padding: 30px 24px 60px;
  background: linear-gradient(115deg, #cfe3f8 0%, #dcecf7 42%, #f5f8fb 100%);
}
body[data-page="faq"] .promo-bar {
  display: none;
}
.faq-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 60px 58px;
  border: 1px solid #e7edf5;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 8px rgba(24, 72, 125, 0.02);
}
.faq-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.faq-heading h1 {
  margin: 0;
  color: #151d2b;
  font-size: 48px;
  font-weight: 550;
  letter-spacing: -1.1px;
  line-height: 1.2;
}
.faq-heading h1 em {
  color: #2c92f5;
  font-style: normal;
}
.faq-heading > img {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  object-fit: contain;
}
.faq-search {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 16px;
  border: 1px solid #e6eaf0;
  border-radius: 11px;
  background: #f6f7f9;
}
.faq-search input {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #273447;
  font-size: 16px;
}
.faq-search input::placeholder {
  color: #7c8796;
  opacity: 1;
}
.faq-search input:focus-visible {
  outline: 0;
}
.faq-search:focus-within {
  border-color: #8fc4ff;
  box-shadow: 0 0 0 3px rgba(45, 146, 245, 0.1);
}
.faq-search button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #2d95ff;
}
.faq-search button img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.faq-tabs {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 30px 0 20px;
  padding: 4px;
  border-radius: 24px;
  background: #f2f4f8;
}
.faq-tab {
  flex: 1 1 25%;
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: 60px;
  padding: 7px 10px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #151d2b;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}
.faq-tab.is-active {
  background: #2d95ff;
  color: #fff;
}
.faq-tab:focus-visible {
  outline: 3px solid #82bdff;
  outline-offset: 2px;
}
.faq-list {
  display: grid;
  gap: 20px;
}
.faq-item {
  overflow: hidden;
  border: 1px solid #e1e5eb;
  border-radius: 20px;
  background: #fff;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}
.faq-item:hover {
  border-color: #bddcff;
}
.faq-item[open] {
  border-color: #b3d2ff;
  background: linear-gradient(120deg, #f5f9ff, #e9f2ff);
}
.faq-item[hidden] {
  display: none;
}
.faq-item summary {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 20px 72px 20px 29px;
  color: #172132;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 27px;
  width: 22px;
  height: 22px;
  background: url("/public/images/faq/chevron-down.png") center/44px 44px
    no-repeat;
  content: "";
  transform: translateY(-50%);
  transition: transform 0.18s ease;
}
.faq-item[open] summary {
  color: #2a91f2;
}
.faq-item[open] summary::after {
  background-image: url("/public/images/faq/chevron-up.png");
  transform: translateY(-50%);
}
.faq-answer {
  margin: 0 29px 29px;
  padding: 23px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.83);
  color: #263346;
  font-size: 16px;
  line-height: 1.8;
}
.faq-message {
  margin: 0;
  padding: 8px 2px 0;
  color: #637083;
  font-size: 14px;
  line-height: 1.5;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
@media (max-width: 900px) {
  .faq-panel {
    padding: 44px 36px;
    border-radius: 24px;
  }
  .faq-heading h1 {
    font-size: 42px;
  }
  .faq-item summary {
    min-height: 72px;
  }
}
@media (max-width: 640px) {
  .faq-page {
    min-height: 0;
    padding: 18px 12px 40px;
  }
  .faq-panel {
    padding: 28px 18px 26px;
    border-radius: 20px;
  }
  .faq-heading {
    gap: 14px;
    margin-bottom: 22px;
  }
  .faq-heading h1 {
    font-size: clamp(29px, 7vw, 38px);
    letter-spacing: -0.7px;
  }
  .faq-heading > img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .faq-search {
    height: 50px;
    padding-left: 12px;
  }
  .faq-search input {
    font-size: 15px;
  }
  .faq-search button,
  .faq-search button img {
    width: 38px;
    height: 38px;
  }
  .faq-search button {
    flex-basis: 38px;
  }
  .faq-tabs {
    flex-wrap: wrap;
    gap: 3px;
    margin: 22px 0 16px;
    padding: 4px;
    border-radius: 18px;
  }
  .faq-tab {
    min-height: 38px;
  }
  .faq-list {
    gap: 12px;
  }
  .faq-item {
    border-radius: 15px;
  }
  .faq-item summary {
    min-height: 62px;
    padding: 15px 48px 15px 17px;
    font-size: 16px;
  }
  .faq-item summary::after {
    right: 15px;
    width: 22px;
    height: 22px;
    background-size: 44px 44px;
  }
  .faq-answer {
    margin: 0 12px 12px;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.65;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-tab,
  .faq-item,
  .faq-item summary::after {
    transition: none;
  }
}
