/* =========================================================
   VEXEN — FAQ PAGE
   Page-specific styles only.
   Global fonts / reset / base styles are inherited from style.css.
   ========================================================= */

.FaqPage {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #0A0A0A;
  color: #F2F2F0;
}

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

.FaqHeader {
  width: 1200px;
  height: 120px;
  position: absolute;
  left: 50%;
  top: 64px;
  transform: translateX(-50%);
  font-family: "e-Ukraine", sans-serif;
}

.FaqLogo {
  width: 260px;
  height: 32px;
  position: absolute;
  left: 0;
  top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.FaqLogo img {
  display: block;
  width: 170px;
  height: auto;
}

.FaqHeaderNavLink,
.FaqHeaderHome,
.FaqHeaderCart {
  color: #F2F2F0;
  font-family: "e-Ukraine", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.48px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.FaqHeaderNavLink {
  width: 260px;
  position: absolute;
  left: 340px;
  top: 24px;
}

.FaqHeaderHome {
  width: 260px;
  position: absolute;
  left: 600px;
  top: 24px;
}

.FaqHeaderCart {
  width: 260px;
  height: 32px;
  position: absolute;
  left: 940px;
  top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.FaqHeaderCartText {
  width: 260px;
}

.FaqHeaderCart .ShoppingBasket {
  width: 24px;
  height: 24px;
  left: 23px;
  top: 4px;
  position: absolute;
  overflow: hidden;
}

.FaqHeaderCart .ShoppingBasket img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.FaqBreadcrumb {
  position: absolute;
  left: 50%;
  top: 136px;
  transform: translateX(-555px);
  color: #8C8C8C;
  font-family: "e-Ukraine", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.48px;
}

/* =========================================================
   FAQ CONTENT
   Normal document flow is intentional:
   when an answer opens, everything below it moves down.
   ========================================================= */

.FaqContent {
  width: 1200px;
  margin: 0 auto;
  padding-top: 360px;
  padding-bottom: 80px;
}

.FaqCategory {
  width: 1200px;
}

.FaqCategory + .FaqCategory {
  margin-top: 240px;
}

.FaqCategoryTitle {
  margin: 0;
  color: #8C8C8C;
  font-family: "e-Ukraine", sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 38px;
}

.FaqItems {
  width: 1200px;
  margin-top: 84px;
}

.FaqItem {
  width: 100%;
  position: relative;
  margin: 0 0 84px;
  border-bottom: 2px solid #292929;
}

.FaqItem:last-child {
  margin-bottom: 0;
}

/* The clickable area is the entire question row. */
.FaqItemHeader {
  width: 100%;
  min-height: 124px;
  padding: 0 0 0 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #F2F2F0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 44px;
  align-items: start;
  text-align: left;
  cursor: pointer;
  position: relative;
  font: inherit;
  appearance: none;
}

.FaqItemHeader:focus-visible {
  outline: 2px solid #C63436;
  outline-offset: 6px;
}

.FaqNumber {
  width: 48px;
  height: 48px;
  position: relative;
  display: block;
  margin-left: 13px;
  margin-top: 0;
}

.FaqNumberBox {
  width: 48px;
  height: 48px;
  position: absolute;
  left: 0;
  top: 0;
  transform: rotate(-5deg);
  transform-origin: top left;
  background: #171717;
  border-radius: 10px;
}

.FaqNumber > span:last-child {
  position: absolute;
  left: 12px;
  top: 4px;
  color: #F2F2F0;
  font-family: "Space Mono", monospace;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
}

.FaqQuestion {
  display: block;
  padding-top: 0;
  color: #F2F2F0;
  font-family: "Unbounded", sans-serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 44px;
}

.FaqToggle {
  display: block;
  padding-top: 0;
  color: #F2F2F0;
  font-family: "Unbounded", sans-serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 44px;
  text-align: left;
  transition: transform 300ms ease;
}

.FaqItem.is-open .FaqToggle {
  transform: rotate(45deg);
}

.FaqAnswerWrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.FaqAnswerWrap > .FaqAnswer {
  min-height: 0;
  overflow: hidden;
}

.FaqAnswer {
  padding-left: 82px;
  padding-right: 100px;
  padding-bottom: 0;
  color: #8C8C8C;
  font-family: "e-Ukraine", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 350ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-bottom 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.FaqAnswer p {
  margin: 0;
}

.FaqItem.is-open .FaqAnswerWrap {
  grid-template-rows: 1fr;
}

.FaqItem.is-open .FaqAnswer {
  padding-bottom: 36px;
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   FOOTER
   ========================================================= */

.FaqFooter {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
  background: #141414;
}

.FaqFooterLine {
  width: 100%;
  height: 1px;
  position: absolute;
  left: 0;
  top: 164.7px;
  background: #292929;
}

.FaqFooterBrand {
  position: absolute;
  left: 120px;
  top: 42.7px;
  color: #F2F2F0;
  font-family: "Unbounded", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
}

.FaqFooterTagline {
  position: absolute;
  left: 120px;
  top: 82.7px;
  color: #F2F2F0;
  font-family: "e-Ukraine", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

.FaqFooterCopyright,
.FaqFooterDrop {
  position: absolute;
  left: 120px;
  color: #F2F2F0;
  font-family: "e-Ukraine", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

.FaqFooterCopyright {
  top: 188.7px;
}

.FaqFooterDrop {
  top: 222.7px;
}

.FaqFooterNav {
  position: absolute;
  left: 460px;
  top: 32.7px;
  width: 520px;
  display: grid;
  grid-template-columns: 260px 260px;
  grid-template-rows: 32px 32px;
  row-gap: 34px;
}

.FaqFooterNav a {
  width: 260px;
  color: #F2F2F0;
  font-family: "e-Ukraine", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.48px;
  text-align: center;
  text-decoration: none;
}

.FaqFooterSocials {
  position: absolute;
  right: 120px;
  top: 32.7px;
  width: 199px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.FaqFooterSocial {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #F2F2F0;
  font-family: "e-Ukraine", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.48px;
  text-decoration: none;
}

.FaqFooterSocialIcon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.FaqFooterSocialIcon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.FaqFooterLanguage {
  position: absolute;
  right: 120px;
  top: 206.3px;
  width: 144px;
  height: 36px;
  display: flex;
  gap: 16px;
}

.FaqFooterLanguage button {
  width: 64px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  font-family: "e-Ukraine", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.72px;
  cursor: pointer;
}

.FaqFooterLanguage .is-inactive {
  background: #242424;
  color: #818181;
}

.FaqFooterLanguage .is-active {
  background: #E8E8E8;
  color: #0A0A0A;
}

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

@media (max-width: 1199px) {
  .FaqHeader {
    width: calc(100% - 48px);
  }

  .FaqHeaderNavLink,
  .FaqHeaderHome,
  .FaqHeaderCart {
    width: calc((100% - 32px) / 3);
  }

  .FaqHeaderNavLink {
    left: calc((100% - 32px) / 3 + 16px);
  }

  .FaqHeaderHome {
    left: calc(2 * ((100% - 32px) / 3 + 16px));
  }

  .FaqHeaderCart {
    left: auto;
    right: 0;
  }

  .FaqContent {
    width: calc(100% - 48px);
  }

  .FaqCategory,
  .FaqItems {
    width: 100%;
  }

  .FaqQuestion {
    font-size: clamp(28px, 4vw, 36px);
  }

  .FaqFooterBrand,
  .FaqFooterTagline,
  .FaqFooterCopyright,
  .FaqFooterDrop {
    left: 48px;
  }

  .FaqFooterNav {
    left: 50%;
    transform: translateX(-50%);
  }

  .FaqFooterSocials,
  .FaqFooterLanguage {
    right: 48px;
  }
}

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

@media (max-width: 767px) {
  .FaqPage {
    overflow: hidden;
  }

  .FaqHeader {
    width: calc(100% - 32px);
    height: 64px;
    top: 40px;
  }

  .FaqLogo {
    width: 100%;
    left: 0;
    top: 0;
  }

  .FaqLogo img {
    width: 140px;
  }

  .FaqHeaderNavLink,
  .FaqHeaderHome {
    width: 50%;
    font-size: 14px;
    line-height: 20px;
  }

  .FaqHeaderNavLink {
    left: 50%;
    top: 0;
  }

  .FaqHeaderHome {
    left: 50%;
    top: 32px;
  }

  .FaqHeaderCart {
    display: none;
  }

  .FaqBreadcrumb {
    left: 16px;
    top: 120px;
    transform: none;
    font-size: 16px;
    line-height: 24px;
  }

  .FaqContent {
    width: calc(100% - 32px);
    padding-top: 220px;
    padding-bottom: 48px;
  }

  .FaqCategory + .FaqCategory {
    margin-top: 100px;
  }

  .FaqCategoryTitle {
    font-size: 18px;
    line-height: 26px;
  }

  .FaqItems {
    margin-top: 40px;
  }

  .FaqItem {
    margin-bottom: 40px;
  }

  .FaqItemHeader {
    min-height: 96px;
    grid-template-columns: 56px minmax(0, 1fr) 28px;
  }

  .FaqNumber {
    width: 40px;
    height: 40px;
    margin-left: 0;
  }

  .FaqNumberBox {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .FaqNumber > span:last-child {
    left: 9px;
    top: 3px;
    font-size: 18px;
    line-height: 26px;
  }

  .FaqQuestion,
  .FaqToggle {
    font-size: clamp(18px, 5vw, 28px);
    line-height: 1.25;
  }

  .FaqAnswer {
    padding-left: 56px;
    padding-right: 16px;
    font-size: 16px;
    line-height: 24px;
  }

  .FaqItem.is-open .FaqAnswer {
    padding-bottom: 24px;
  }

  .FaqFooter {
    height: 500px;
  }

  .FaqFooterLine {
    top: 270px;
  }

  .FaqFooterBrand,
  .FaqFooterTagline,
  .FaqFooterCopyright,
  .FaqFooterDrop {
    left: 16px;
  }

  .FaqFooterBrand {
    top: 30px;
    font-size: 20px;
    line-height: 28px;
  }

  .FaqFooterTagline {
    top: 65px;
    font-size: 15px;
    line-height: 24px;
  }

  .FaqFooterNav {
    left: 16px;
    top: 125px;
    width: calc(100% - 32px);
    transform: none;
    grid-template-columns: 1fr 1fr;
    row-gap: 21px;
  }

  .FaqFooterNav a {
    width: 100%;
    font-size: 16px;
    line-height: 24px;
  }

  .FaqFooterSocials {
    right: 16px;
    top: 225px;
    width: auto;
    gap: 16px;
  }

  .FaqFooterSocial {
    font-size: 16px;
    line-height: 24px;
    height: 28px;
  }

  .FaqFooterLanguage {
    left: 16px;
    right: auto;
    top: 310px;
  }

  .FaqFooterCopyright {
    top: 390px;
    font-size: 14px;
    line-height: 22px;
  }

  .FaqFooterDrop {
    top: 420px;
    font-size: 14px;
    line-height: 22px;
  }
}
