#branch, #account, #novelty, #rate { scroll-margin-top: 40px; }
@media (max-width: 1279px) {
  #branch, #account, #novelty, #rate { scroll-margin-top: 96px; }
}

.faq-top {
  position: relative;
  padding: 64px;
}
.faq-top__title {
  position: relative;
  display: inline-block;
  margin: 0;
  color: var(--c-blue);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 80px;
  line-height: 144px;
  white-space: nowrap;
}
.faq-top__line {
  position: absolute;
  left: 0;
  top: 140px;
  width: 100%;
  height: 4px;
  max-width: none;
}
.faq-top__hero {
  position: absolute;
  left: 774px;
  top: 42px;
  width: 160px;
  height: auto;
}
.faq-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}
.faq-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100px;
  padding: 0 40px;
  border: 2px solid var(--c-white);
  border-radius: 8px;
  background: var(--c-white);
  color: var(--c-brown);
  font-size: 18px;
  font-weight: 700;
  line-height: 25px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq-cat__text { min-width: 0; }
.faq-cat__icon { position: relative; flex: 0 0 20px; width: 20px; height: 20px; background: url("../img/faq/cat-chip-arrow.svg") center / 100% 100% no-repeat; transform: rotate(90deg); }

.faq-cat__icon::after { content: ""; position: absolute; inset: 0; background: url("../img/faq/cat-chip-arrow-red.svg") center / 100% 100% no-repeat; opacity: 0; transition: opacity var(--dur) var(--ease); }

a.faq-cat:hover,
a.faq-cat:focus-visible { color: var(--c-red); border-color: var(--c-red); }
a.faq-cat:hover .faq-cat__icon::after,
a.faq-cat:focus-visible .faq-cat__icon::after { opacity: 1; }

.faq-sec, .faq-rate { margin-top: 40px; }
.faq-sec { padding: 80px 64px; }
.faq-sec__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 40px;
}
.faq-sec__head--sm { margin-bottom: 24px; }
.faq-sec__icon { flex: 0 0 auto; height: 50px; width: auto; }
.faq-sec__head--sm .faq-sec__icon { height: 30px; width: 30px; margin-top: 1px; }
.faq-sec__title {
  margin: 0;
  color: var(--c-brown);
  font-size: 32px;
  font-weight: 700;
  line-height: 32px;
}

.faq-sec .faq-item__mark { object-fit: none; }
@media (max-width: 1023px) { .faq-sec .faq-item__mark { object-fit: contain; } }

.faq-rate {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.faq-rate__lead {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 32px;
}
.faq-rate__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.faq-sec__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 40px 0 0 auto;
}
.faq-rate__note {
  margin: 0;
  color: var(--c-gray);
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}

@media (max-width: 1439px) {
  .faq-top__hero { left: auto; right: 64px; }
}
@media (max-width: 1279px) {
  .faq-top, .faq-sec { padding-left: 40px; padding-right: 40px; }
  .faq-rate { padding-left: 40px; padding-right: 40px; }
  .faq-top__hero { right: 40px; }
}

@media (max-width: 1023px) {
  .faq-top { padding: 40px 24px 24px; }
  .faq-top__title { font-size: 40px; line-height: 72px; }
  .faq-top__line { top: 68px; }
  .faq-top__hero { top: 16px; right: 16px; width: 96px; }
  .faq-cats { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .faq-cat { height: 72px; padding: 0 24px; font-size: 16px; line-height: 23px; }

  .faq-sec { padding: 48px 24px; }
  .faq-sec__head { margin-bottom: 24px; }
  .faq-sec__icon { height: 40px; }
  .faq-sec__title { font-size: 24px; line-height: 32px; }

  .faq-rate { flex-direction: column; align-items: flex-start; gap: 24px; padding: 48px 24px; }
  .faq-sec__head--sm .faq-sec__icon { height: 26px; width: 26px; }
  .faq-rate__lead { font-size: 16px; line-height: 29px; }
  .faq-rate__link { align-items: flex-start; }
  .faq-sec__more { margin-top: 32px; }
  .faq-rate__note { white-space: normal; }
}
@media (max-width: 540px) {
  .faq-top { padding: 32px 16px 16px; }
  .faq-top__title { font-size: 32px; line-height: 58px; }
  .faq-top__line { top: 54px; }
  .faq-top__hero { width: 80px; top: 12px; right: 8px; }
  .faq-sec__title { font-size: 20px; line-height: 28px; }

  .faq-top__title { font-size: min(32px, calc((100vw - 132px) / 7)); }
  .faq-sec__title { white-space: nowrap; font-size: min(20px, calc((100vw - 140px) / 11)); }
}
