/* =========================================================
   FAQ SECTION
========================================================= */

.faq-section {
  width: min(100%, 840px);

  margin: 32px auto 38px;
}

/* =========================================================
   FAQ LIST
========================================================= */

.faq-list {
  display: grid;

  gap: 8px;

  width: 100%;

  margin: 0;
}

/* =========================================================
   ITEM
========================================================= */

.faq-item {
  position: relative;

  width: 100%;

  overflow: hidden;

  border: 1px solid rgba(139, 188, 215, 0.1);

  border-radius: 8px;

  background: linear-gradient(180deg, rgba(20, 51, 68, 0.86) 0%, rgba(16, 44, 59, 0.92) 100%);

  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

/* =========================================================
   RESET H3
========================================================= */

.site-main .faq-item__title,
.faq-item__title {
  margin: 0 !important;
  padding: 0;

  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

/* =========================================================
   HEADER BUTTON
========================================================= */

.faq-item__header {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  width: 100%;
  min-height: 52px;

  padding: 12px 14px 12px 16px;

  border: 0;

  background: transparent;

  color: #eaf3f7;

  text-align: left;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transition:
    color 0.18s ease,
    background 0.18s ease;
}

/* =========================================================
   QUESTION
========================================================= */

.faq-item__question {
  flex: 1;

  min-width: 0;

  color: inherit;

  font-size: 13.5px;
  line-height: 1.4;

  font-weight: 700;

  letter-spacing: -0.1px;
}

/* =========================================================
   ICON
========================================================= */

.faq-item__icon {
  position: relative;

  flex: 0 0 28px;

  width: 28px;
  height: 28px;

  border: 1px solid rgba(132, 187, 219, 0.13);

  border-radius: 6px;

  background: rgba(255, 255, 255, 0.025);

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

/* HORIZONTAL LINE */

.faq-item__icon::before {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 12px;
  height: 2px;

  border-radius: 3px;

  background: #9cb9c9;

  content: '';

  transform: translate(-50%, -50%);

  transition: background 0.2s ease;
}

/* VERTICAL LINE */

.faq-item__icon::after {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 2px;
  height: 12px;

  border-radius: 3px;

  background: #9cb9c9;

  content: '';

  transform: translate(-50%, -50%) scaleY(1);

  transform-origin: center;

  transition:
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.2s ease;
}

/* =========================================================
   OPEN ICON
========================================================= */

.faq-item.is-open .faq-item__icon {
  border-color: rgba(91, 177, 235, 0.22);

  background: rgba(41, 132, 199, 0.09);
}

.faq-item.is-open .faq-item__icon::before,
.faq-item.is-open .faq-item__icon::after {
  background: #78bceb;
}

/* PLUS -> MINUS */

.faq-item.is-open .faq-item__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

/* =========================================================
   ANSWER
========================================================= */

.faq-item__answer {
  color: #a8bfcc;

  font-size: 13px;
  line-height: 1.65;
}

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

.faq-item__answer-inner {
  padding: 0 48px 16px 16px;

  border-top: 1px solid rgba(142, 190, 216, 0.055);
}

.faq-item__answer-inner::before {
  display: block;

  height: 13px;

  content: '';
}

.faq-item__answer p {
  margin: 0 0 10px;
}

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

.faq-item__answer ul,
.faq-item__answer ol {
  margin: 9px 0 0;

  padding-left: 19px;
}

.faq-item__answer li + li {
  margin-top: 5px;
}

.faq-item__answer a {
  color: #73b9e8;

  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   HOVER
========================================================= */

@media (hover: hover) and (pointer: fine) {
  .faq-item:hover {
    border-color: rgba(114, 184, 225, 0.16);
  }

  .faq-item__header:hover {
    color: #ffffff;

    background: linear-gradient(90deg, rgba(47, 137, 201, 0.05), transparent 72%);
  }

  .faq-item__header:hover .faq-item__icon {
    border-color: rgba(106, 184, 233, 0.22);

    background: rgba(255, 255, 255, 0.045);
  }

  .faq-item__header:hover .faq-item__icon::before,
  .faq-item__header:hover .faq-item__icon::after {
    background: #80c3ed;
  }
}

/* =========================================================
   FOCUS
========================================================= */

.faq-item__header:focus-visible {
  outline: 2px solid rgba(74, 163, 225, 0.48);

  outline-offset: -2px;
}

/* =========================================================
   PAGE BOTTOM FIX
========================================================= */

.site-main,
.site-shell,
.site-shell__main,
.front-page__content {
  background: transparent;
}

.front-page__content {
  padding-bottom: 24px;
}

.site-footer {
  margin-top: 0;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .faq-section {
    width: min(100%, 760px);

    margin: 28px auto 34px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
  .faq-list {
    gap: 7px;
  }

  .faq-item {
    border-radius: 7px;
  }

  .faq-item__header {
    min-height: 50px;

    gap: 12px;

    padding: 11px 12px 11px 14px;
  }

  .faq-item__question {
    font-size: 13px;
    line-height: 1.4;
  }

  .faq-item__icon {
    flex-basis: 26px;

    width: 26px;
    height: 26px;
  }

  .faq-item__icon::before {
    width: 11px;
  }

  .faq-item__icon::after {
    height: 11px;
  }

  .faq-item__answer {
    font-size: 12.5px;
    line-height: 1.6;
  }

  .faq-item__answer-inner {
    padding: 0 14px 14px;
  }

  .faq-item__answer-inner::before {
    height: 11px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {
  .faq-item__header {
    padding: 10px 11px 10px 13px;
  }

  .faq-item__question {
    font-size: 12.5px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item__header,
  .faq-item__icon,
  .faq-item__icon::before,
  .faq-item__icon::after {
    transition: none !important;
  }
}
