.hero-faq {
  flex-direction: row;
  margin: 115px 0 175px 0;
  gap: 100px;
  align-items: baseline;
}

/* Левая колонка с инпутом и категориями вопросов */

.hero-faq-left {
  width: 320px;
  gap: 30px;
}
/* Инпут для поиска */
.search-input {
  width: 100%;
  background: var(--color-full-white);
  font-size: 18px;
  color: var(--color-grey);
  padding: 0 15px 0 42px;
  height: 30px;
  outline: none;
  border: none;
  border-radius: var(--radius);
  background-image: url("../images/faq/search-icon-figma.png");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: 12.5px;
  vertical-align: middle;
}
.search-input::placeholder {
  color: var(--color-grey);
  transform: translateY(1px);
}

/* категории вопросов (types) */

.questions-category {
  gap: 30px;
}

.questions-category span {
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: 0.2s;
}

/* Жёлтый цвет текста при клике на вопрос-категорию */

.active-press {
  transform: translateX(15px);
  color: var(--color-yellow);
  text-decoration: underline;
}
.questions-category .text:hover {
  transform: translateX(15px);
  color: var(--color-yellow);
  text-decoration: underline;
}

/* ------------------------------------------------- */

/* Жёлтая обводка при клике на вопрос */

.questions-category span.active-press::after,
.questions-category span.text:hover::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 160%;
  top: -35%;
  left: -10%;
  background: var(--gradient-yellow);
  z-index: -1;
}

/* ======================================= */

/* Правая колонка с карточками вопросов появляеться при нажатие */

.hero-faq-right {
  position: relative;
  width: 100%;
  gap: 40px;
}

/* Контейнер для карточек с вопросами */
.cards-container {
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2.8%;
  width: 100%;
}
/* Если инпут пуст или нечего не нашёл */
.searching-title {
  text-align: center;
  font-size: 30px;
  font-family: var(--font-play);
  color: var(--color-full-white);
  align-items: center;
  justify-content: center;
}
/* Карточка с вопросом */
.ask-card {
  position: relative;
  justify-content: space-evenly;
  width: 31%;
  height: 215px;
  border: 1px solid var(--bg-decor-border);
  border-radius: var(--radius);
  text-align: center;
  background: var(--bg-body);
  margin-bottom: 3%;
}
.ask-card p {
  margin-bottom: 7.5%;
  overflow-y: auto;
}
.ask-card p::-webkit-scrollbar {
  display: none;
}
/* Декор boll для каждого 5-эл следуя figma-макета */

.ask-card:nth-child(5n)::after {
  content: "";
  display: block;
  position: absolute;
  width: 150%;
  height: 170%;
  background: var(--gradient-yellow);
  z-index: -1;
}

/* ----------------------------------------------- */

/* Ограничение ширины текста в карточке */
.cards-container p {
  flex-grow: 1;
  width: 85%;
}
/* Кнопка для карточки */
.btn {
  margin-top: auto;
  margin-bottom: 10.5%;
  padding: 5% 10%;
  font-size: var(--font-size-text);
  color: var(--color-yellow);
  border: 1px solid var(--color-yellow);
  border-radius: var(--radius);
  cursor: pointer;
}

/* ------------ */

.img-text-qwestion {
  width: 35px;
  margin-bottom: 20px;
}

@media screen and (max-width: 1000px) {
  .questions-category {
    gap: 15px;
  }
  .ask-card {
    height: 190px;
  }
  .hero-faq-right h2 {
    font-size: 30px;
  }
}

/* Открытие-закрытие боковой панели */

.show-hide-panel {
  display: none;
}

/* -------------------------------- */

.panel-toggle {
  display: none;
}

/* Заголовок для панели */

.question-title-category-panel {
  display: none;
}

/* Доп инпут в панели справа */

.search-input2 {
  display: none;
}

/* ------ Мобильная Адапиация ----- */

@media screen and (max-width: 800px) {
  .hero-faq {
    flex-direction: column;
    align-items: center;
    margin-top: 250px;
    gap: 75px;
  }

  .hero-faq-left {
    align-items: center;
    width: 100%;
    gap: 0;
  }

  #questionTitle {
    position: absolute;
    top: -16rem;
    font-size: 36px;
  }

  /* Заголовок для панели */

  .question-title-category-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    width: 50%;
    height: 1em;
    margin-bottom: 3em;
  }
  
  #questionTitle2 {
    font-size: 34px;

  }

  .search-input {
    width: 70%;
    padding: 3.5px 15px 3.5px 42px;
  }

   /* Панель справа */

   .right-panel {
    display: flex;
    flex-direction: column;
    gap: 7.5%;
    padding-top: 6em;
    align-items: center;
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%;
    width: 100%;
    background-color: var(--bg-body);
    z-index: 100;
    overflow-y: auto;
    transition: 0.3s;
  }
  .questions-category {
    align-items: center;
    margin-bottom: 10%;
  }

  .right-panel.show-panel {
    right: 0;
  }

  .active-press {
    transform: translateX(0);
  }
  .questions-category .text:hover {
    transform: translateX(0);
  }

  /* input для панели */

  .search-input2 {
    display: initial;
  }

  /* Открытие-закрытие боковой панели */

  .panel-toggle {
    display: initial;
    position: fixed;
    right: 0;
    top: 47.5%;
    transform: scale(0.8);
    z-index: 101;
    transition: .3s;
  }
  .panel-toggle.show-panel {
    transform: rotate(180deg) scale(0.8);
  }

  .panel-toggle:active::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0.4em;
    background-color: rgba(26, 73, 48, 1);
    z-index: -1;
    border-radius: 50%;
    filter: blur(10px);
  }

  /* -------------------------------- */

  .cards-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .ask-card {
    position: relative;
    justify-content: space-evenly;
    width: 70%;
    height: 14.5rem;
  }

  .hero-faq-right h2 {
    text-align: center;
  }
}
