.faq-page {
  --faq-red: #a70000;
  --faq-gold: #b88d6d;
  --faq-ink: #282321;
  --faq-muted: #716965;
  --faq-line: #e9e2dd;
  --faq-soft: #fff5ef;
  box-sizing: border-box;
  max-width: 1260px;
  margin: 0 auto;
  padding: 18px 0 20px;
  color: var(--faq-ink);
  font-family: inherit;
  scroll-behavior: smooth;
}

.faq-page *,
.faq-page *::before,
.faq-page *::after {
  box-sizing: border-box;
}

.faq-page [hidden] {
  display: none !important;
}

.faq-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 56px;
  align-items: end;
  padding: 68px 0 58px;
  border-bottom: 1px solid var(--faq-line);
}

.faq-eyebrow {
  margin: 0 0 15px;
  color: var(--faq-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.faq-hero h1 {
  margin: 0;
  color: var(--faq-ink);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.faq-intro {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--faq-muted);
  font-size: 15px;
  line-height: 1.8;
}

.faq-search-panel {
  width: 100%;
  max-width: 390px;
  justify-self: end;
}

.faq-search-label {
  display: block;
  margin-bottom: 10px;
  color: var(--faq-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}

.faq-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid #d8c4b7;
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-search-box:focus-within {
  border-color: var(--faq-red);
  box-shadow: 0 0 0 4px rgba(167, 0, 0, .07);
}

.faq-search-box svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--faq-gold);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.faq-search-box input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--faq-ink);
  font: inherit;
  font-size: 13px;
  box-shadow: none;
}

.faq-search-box input::-webkit-search-cancel-button {
  display: none;
}

.faq-search-box input::placeholder {
  color: #a39a95;
  opacity: 1;
}

.faq-clear {
  flex: 0 0 auto;
  padding: 5px 0 5px 8px;
  border: 0;
  background: transparent;
  color: var(--faq-red);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}

.faq-clear:focus-visible,
.faq-category-link:focus-visible,
.faq-contact-link:focus-visible,
.faq-question:focus-visible {
  outline: 2px solid var(--faq-red);
  outline-offset: 3px;
}

.faq-search-status {
  min-height: 16px;
  margin: 10px 0 0;
  color: var(--faq-muted);
  font-size: 11px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 42px 0 0;
}

.faq-sidebar {
  position: sticky;
  top: 28px;
  align-self: start;
}

.faq-sidebar-title {
  margin: 0 0 14px;
  color: var(--faq-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.faq-category-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.faq-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: #fff;
  color: var(--faq-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.faq-category-link:hover,
.faq-category-link.active {
  border-color: #e8c9b7;
  background: var(--faq-soft);
  color: var(--faq-red);
  text-decoration: none;
}

.faq-nav-arrow {
  flex: 0 0 auto;
  color: var(--faq-gold);
  font-size: 15px;
  font-weight: 400;
}

.faq-section {
  margin: 0 0 54px;
  scroll-margin-top: 28px;
}

.faq-section-heading {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-bottom: 16px;
  padding: 0 0 13px 17px;
  border-bottom: 1px solid var(--faq-line);
}

.faq-section-heading::before {
  position: absolute;
  top: 1px;
  bottom: 15px;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--faq-red), var(--faq-gold));
  content: '';
}

.faq-section-index {
  color: var(--faq-red);
  font-size: 10px;
  font-weight: 700;
}

.faq-section-heading h2 {
  flex: 1 1 auto;
  margin: 0;
  color: var(--faq-ink);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.35;
}

.faq-section-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1e9;
  color: var(--faq-red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}

.faq-item {
  margin: 0 0 10px;
  padding: 0 19px;
  border: 1px solid #e9e0da;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.faq-item:hover {
  border-color: #d9b8a3;
  background: #fffaf7;
  box-shadow: 0 9px 22px rgba(184, 141, 109, .09);
}

.faq-item[open] {
  border-color: var(--faq-gold);
  background: #fff7f2;
  box-shadow: 0 10px 24px rgba(167, 0, 0, .06);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 64px;
  padding: 16px 0;
  color: var(--faq-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
  list-style: none;
  transition: color .18s ease;
}

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

.faq-question:hover,
.faq-item[open] .faq-question {
  color: var(--faq-red);
}

.faq-plus {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid #e8d1c5;
  border-radius: 50%;
  background: #fff;
  transition: border-color .18s ease, background-color .18s ease;
}

.faq-plus::before,
.faq-plus::after {
  position: absolute;
  top: 13px;
  left: 7px;
  width: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--faq-red);
  content: '';
  transition: transform .18s ease, background-color .18s ease;
}

.faq-plus::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-plus {
  border-color: var(--faq-red);
  background: var(--faq-red);
}

.faq-item[open] .faq-plus::before,
.faq-item[open] .faq-plus::after {
  background: #fff;
}

.faq-item[open] .faq-plus::after {
  transform: rotate(0);
}

.faq-answer {
  max-width: 760px;
  padding: 0 40px 20px 0;
  color: #625a55;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-line;
}

.faq-empty {
  margin: 0;
  padding: 38px 0;
  color: var(--faq-muted);
  font-size: 14px;
  line-height: 1.7;
}

.faq-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 2px 0 0;
  padding: 40px 44px;
  border: 1px solid #f0ded2;
  border-radius: 23px;
  background: linear-gradient(180deg, #fff9f5 0%, #fff0e7 100%);
}

.faq-contact .faq-eyebrow {
  margin-bottom: 10px;
}

.faq-contact h2 {
  margin: 0 0 10px;
  color: var(--faq-ink);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.25;
}

.faq-contact p:not(.faq-eyebrow) {
  max-width: 570px;
  margin: 0;
  color: var(--faq-muted);
  font-size: 12px;
  line-height: 1.8;
}

.faq-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 21px;
  border: 1px solid #d7b59f;
  border-radius: 999px;
  background: #fff;
  color: var(--faq-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.faq-contact-link:hover {
  border-color: var(--faq-red);
  background: var(--faq-red);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 767px) {
  .faq-page {
    padding-top: 8px;
  }

  .faq-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
    padding: 42px 0 35px;
  }

  .faq-hero h1 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .faq-intro {
    margin-top: 13px;
    font-size: 13px;
  }

  .faq-search-panel {
    max-width: none;
    justify-self: stretch;
  }

  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 25px;
  }

  .faq-sidebar {
    position: static;
    min-width: 0;
  }

  .faq-sidebar-title {
    margin-bottom: 10px;
  }

  .faq-category-nav {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .faq-category-nav::-webkit-scrollbar {
    display: none;
  }

  .faq-category-link {
    min-height: 40px;
    padding: 10px 13px;
    border-color: var(--faq-line);
    border-radius: 999px;
    font-size: 10px;
    white-space: nowrap;
  }

  .faq-nav-arrow {
    display: none;
  }

  .faq-section {
    margin-bottom: 42px;
    scroll-margin-top: 15px;
  }

  .faq-section-heading {
    gap: 9px;
    padding-left: 14px;
  }

  .faq-section-count {
    padding: 5px 8px;
    font-size: 8px;
  }

  .faq-item {
    padding: 0 14px;
    border-radius: 14px;
  }

  .faq-question {
    min-height: 58px;
    gap: 15px;
    padding: 15px 0;
    font-size: 12px;
  }

  .faq-answer {
    padding: 0 5px 18px 0;
    font-size: 12px;
  }

  .faq-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 23px;
    padding: 29px 23px;
    border-radius: 20px;
  }

  .faq-contact-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-page {
    scroll-behavior: auto;
  }

  .faq-page *,
  .faq-page *::before,
  .faq-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
