/* =========================================================
   VEXEN — FAQ MOBILE
   393px Figma blueprint adapted to the finished mobile system.
   The FAQ uses normal document flow so opened answers push
   everything below them down, just like the desktop version.
   ========================================================= */

.FaqMobile {
  width: 393px;
  min-height: 2283px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #0A0A0A;
  color: #F2F2F0;
}

/* =========================================================
   ANNOUNCEMENT
   ========================================================= */

.FaqMobile .AnnouncementBar {
  width: 393px;
  height: 35px;
  position: absolute;
  left: 0;
  top: 0;
  background: #3A0D10;
}

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

.FaqMobileHeader {
  width: 393px;
  height: 32px;
  position: absolute;
  left: 0;
  top: 60px;
}

.FaqMobileLogo {
  width: 121.43px;
  height: 20.67px;
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  display: block;
}

.FaqMobileLogo img {
  width: 121.43px;
  height: 20.67px;
  display: block;
  object-fit: contain;
}

.FaqMobileMenu {
  width: 32px;
  height: 32px;
  position: absolute;
  left: 42px;
  top: 0;
  border: 2px solid #F2F2F0;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.67px;
  padding: 0;
}

.FaqMobileMenu span {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: #F2F2F0;
}

.FaqMobileCart {
  width: 32px;
  height: 32px;
  position: absolute;
  left: 320px;
  top: 0;
  display: block;
}

.FaqMobileCart img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.FaqMobileBreadcrumb {
  position: absolute;
  left: 0;
  top: 94px;
  width: 393px;
  color: #8C8C8C;
  text-align: center;
  font-family: "e-Ukraine", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.24px;
}

/* =========================================================
   FAQ CONTENT
   ========================================================= */

.FaqMobileContent {
  width: 353px;
  margin: 0 auto;
  padding-top: 230px;
  box-sizing: border-box;
}

/* Every category is in normal flow.
   This is important: when an answer opens, the categories
   and footer below it move down automatically. */

.FaqMobileCategory {
  width: 353px;
  margin: 0 0 80px;
}

.FaqMobileCategoryTitle {
  width: 353px;
  height: 13.3px;
  margin: 0;
  color: #8C8C8C;
  font-family: "e-Ukraine", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 13.3px;
  white-space: nowrap;
}

.FaqMobileItems {
  width: 353px;
  margin-top: 44.7px;
}

.FaqMobileItem {
  width: 353px;
  position: relative;
  margin: 0;
  border-bottom: 0.7px solid #292929;
}

/* Collapsed row heights taken from the mobile Figma coordinates. */
.FaqMobileItem--49 { --faq-row-height: 49px; }
.FaqMobileItem--45 { --faq-row-height: 45px; }
.FaqMobileItem--52 { --faq-row-height: 52px; }
.FaqMobileItem--48 { --faq-row-height: 48px; }
.FaqMobileItem--48_57 { --faq-row-height: 48.57px; }
.FaqMobileItem--44_57 { --faq-row-height: 44.57px; }
.FaqMobileItem--51_57 { --faq-row-height: 51.57px; }

/* The gaps between Figma rows. */
.FaqMobileItem:not(:last-child) {
  margin-bottom: 28px;
}

.FaqMobileCategory:first-child .FaqMobileItem:first-child {
  margin-bottom: 27px;
}

.FaqMobileCategory:nth-child(3) .FaqMobileItem:first-child {
  margin-bottom: 27px;
}

.FaqMobileCategory:nth-child(4) .FaqMobileItem:first-child,
.FaqMobileCategory:nth-child(4) .FaqMobileItem:nth-child(2) {
  margin-bottom: 27.43px;
}

.FaqMobileCategory:nth-child(5) .FaqMobileItem:first-child {
  margin-bottom: 27.43px;
}

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

.FaqMobileItemHeader {
  width: 353px;
  height: var(--faq-row-height);
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #F2F2F0;
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) 20px;
  column-gap: 0;
  align-items: start;
  text-align: left;
  cursor: pointer;
  position: relative;
  font: inherit;
  appearance: none;
}

.FaqMobileItemHeader:focus-visible {
  outline: 2px solid #C63436;
  outline-offset: 5px;
}

.FaqMobileNumber {
  width: 21.84px;
  height: 21.84px;
  position: relative;
  display: block;
  margin-top: -2.1px;
  margin-left: 0;
}

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

.FaqMobileNumber > span:last-child {
  position: absolute;
  left: 5.46px;
  top: 1.74px;
  color: #F2F2F0;
  font-family: "Space Mono", monospace;
  font-size: 10.92px;
  font-weight: 400;
  line-height: 15.98px;
}

.FaqMobileQuestion {
  display: block;
  padding: 0;
  color: #F2F2F0;
  font-family: "Unbounded", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 15.4px;
  white-space: normal;
}

.FaqMobileToggle {
  display: block;
  color: #F2F2F0;
  font-family: "Unbounded", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 15.4px;
  text-align: left;
  transition: transform 300ms ease;
  transform-origin: center;
}

.FaqMobileItem.is-open .FaqMobileToggle {
  transform: rotate(45deg);
}

/* =========================================================
   ANSWER
   Same accordion mechanism as desktop:
   grid-template-rows 0fr -> 1fr.
   ========================================================= */

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

.FaqMobileAnswerWrap > .FaqMobileAnswer {
  min-height: 0;
  overflow: hidden;
}

.FaqMobileAnswer {
  padding-left: 37px;
  padding-right: 20px;
  padding-bottom: 0;
  color: #8C8C8C;
  font-family: "e-Ukraine", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  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);
}

.FaqMobileAnswer p {
  margin: 0;
}

.FaqMobileItem.is-open .FaqMobileAnswerWrap {
  grid-template-rows: 1fr;
}

.FaqMobileItem.is-open .FaqMobileAnswer {
  padding-bottom: 24px;
  opacity: 1;
  transform: translateY(0);
}

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

.FaqMobileFooter {
  width: 393px;
  height: 430px;
  position: relative;
  overflow: hidden;
  background: #141414;
}

.FaqMobileFooterBrand {
  position: absolute;
  left: 42px;
  top: 30px;
  color: #F2F2F0;
  font-family: "Unbounded", sans-serif;
  font-size: 14.4px;
  font-weight: 500;
  line-height: 19.2px;
}

.FaqMobileFooterBrand span {
  display: block;
  margin-top: 4.8px;
  font-family: "e-Ukraine", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.FaqMobileFooterLanguage {
  position: absolute;
  left: 244px;
  top: 36px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: "e-Ukraine", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.54px;
}

.FaqMobileFooterLanguage span {
  width: 48px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7.5px;
}

.FaqMobileFooterLanguage .LangEn {
  color: #818181;
  background: #242424;
}

.FaqMobileFooterLanguage .LangUa {
  color: #0A0A0A;
  background: #E8E8E8;
}

.FaqMobileFooterNav {
  position: absolute;
  left: 23px;
  top: 152px;
  width: 347px;
  display: grid;
  grid-template-columns: 160px 160px;
  column-gap: 27px;
  row-gap: 38px;
}

.FaqMobileFooterNav a {
  width: 160px;
  color: #F2F2F0;
  text-align: center;
  font-family: "e-Ukraine", sans-serif;
  font-size: 17.28px;
  font-weight: 500;
  line-height: 23.04px;
  letter-spacing: 0.35px;
  text-decoration: none;
}

.FaqMobileFooterSocials {
  position: absolute;
  left: 44px;
  top: 316px;
  width: 305px;
  display: flex;
  justify-content: space-between;
}

.FaqMobileFooterSocials a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #F2F2F0;
  font-family: "e-Ukraine", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.36px;
}

.FaqMobileFooterSocials img {
  width: 19.5px;
  height: 19.5px;
  display: block;
  object-fit: contain;
}

.FaqMobileFooterLine {
  width: 401px;
  height: 1px;
  position: absolute;
  left: 0;
  top: 356.48px;
  background: #292929;
}

.FaqMobileFooterBottom {
  position: absolute;
  left: 44px;
  right: 44px;
  top: 380px;
  display: flex;
  justify-content: space-between;
  color: #F2F2F0;
  font-family: "e-Ukraine", sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
  white-space: nowrap;
}

/* Keep the initial Figma height. Open answers extend the page
   naturally because the footer is in normal document flow. */
@media (max-width: 392px) {
  .FaqMobile {
    transform-origin: top center;
    transform: scale(calc(100vw / 393));
  }

  body {
    min-height: calc(2283px * (100vw / 393));
  }
}
