/* Search and category filters */
.gs1-faq-block__search-section {
  /* background: #f4f7fb; */
  padding: 28px 0 18px;
}

.gs1-faq-block__filter-panel {
  position: relative;
  padding: 24px;
  border: 1px solid #dde6f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 47, 108, .08);
}

.gs1-faq-block__filter-panel::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: #d83b20;
}

.gs1-faq-block__filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.gs1-faq-block__search {
  min-width: 0;
}

.gs1-faq-block__search label {
  display: block;
  margin-bottom: 9px;
  color: #002f6c;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
}

.gs1-faq-block__search input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #cfd9e8;
  border-radius: 14px;
  background: #fff;
  color: #0f2748;
  font-size: 16px;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.gs1-faq-block__search input:focus {
  outline: none;
  border-color: #002f6c;
  box-shadow: 0 0 0 4px rgba(0, 47, 108, .10);
}

.gs1-faq-block__search input::placeholder {
  color: #7d8ba0;
}

.gs1-faq-block__search-error {
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid #ffd0c7;
  border-radius: 12px;
  background: #fff4f1;
  color: #a62f1a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.gs1-faq-block__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.gs1-faq-block__actions button,
.gs1-faq-block__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  background: #d83b20;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.gs1-faq-block__actions button:hover,
.gs1-faq-block__actions button:focus {
  background: #b92f19;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(216, 59, 32, .18);
}

.gs1-faq-block__reset {
  border: 1px solid #d7e0ec;
  background: #eef3f9;
  color: #002f6c;
}

.gs1-faq-block__reset:hover,
.gs1-faq-block__reset:focus {
  border-color: #c4d1e2;
  background: #e3ebf5;
  color: #002f6c;
  transform: translateY(-1px);
}

.gs1-faq-block__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5edf6;
}

.gs1-faq-block__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #d2dbe8;
  border-radius: 999px;
  background: #fff;
  color: #002f6c;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.gs1-faq-block__category:hover,
.gs1-faq-block__category:focus {
  border-color: #002f6c;
  color: #002f6c;
  box-shadow: 0 8px 18px rgba(0, 47, 108, .08);
  transform: translateY(-1px);
}

.gs1-faq-block__category.is-active {
  border-color: #002f6c;
  background: #002f6c;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 47, 108, .16);
}

.gs1-faq-block__body {
/*   background: #f4f7fb; */
  padding: 10px 0 80px;
}

.gs1-faq-block__results-title {
  margin: 0 0 18px;
  color: #002f6c;
  font-size: 26px;
  font-weight: 800;
}

.gs1-faq-block__item {
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 47, 108, .06);
}

.gs1-faq-block__item > summary {
  position: relative;
  display: block;
  padding: 22px 64px 22px 24px;
  color: #002f6c;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.gs1-faq-block__item > summary::-webkit-details-marker {
  display: none;
}

.gs1-faq-block__item > summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #eef4fb;
  color: #d83b20;
  font-size: 24px;
  line-height: 30px;
  text-align: center;
  transform: translateY(-50%);
}

.gs1-faq-block__item[open] > summary {
  background: #eaf2fb;
}

.gs1-faq-block__item[open] > summary::after {
  content: "–";
}

.gs1-faq-block__answer {
  padding: 22px 24px 26px;
  color: #334155;
  font-size: 16px;
  line-height: 1.65;
}

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

.gs1-faq-block__empty {
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  color: #334155;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 47, 108, .06);
}

.gs1-faq-block__empty p {
  margin: 0 0 18px;
}

.gs1-faq-block__global-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
}

.gs1-faq-block__global-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #d7dee8;
  border-radius: 10px;
  color: #0f2748;
}

.gs1-faq-block__global-search button {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: #d83b20;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

@media (max-width: 992px) {
  .gs1-faq-block__filters {
    grid-template-columns: 1fr;
  }

  .gs1-faq-block__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .gs1-faq-block__search-section {
    padding: 18px 0 14px;
  }

  .gs1-faq-block__filter-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .gs1-faq-block__filter-panel::before {
    top: 18px;
    bottom: 18px;
  }

  .gs1-faq-block__filters {
    gap: 12px;
  }

  .gs1-faq-block__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gs1-faq-block__actions button,
  .gs1-faq-block__reset {
    width: 100%;
  }

  .gs1-faq-block__categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
  }

  .gs1-faq-block__categories::-webkit-scrollbar {
    height: 6px;
  }

  .gs1-faq-block__category {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .gs1-faq-block__item > summary {
    padding: 18px 56px 18px 18px;
  }

  .gs1-faq-block__answer {
    padding: 18px;
  }

  .gs1-faq-block__global-search {
    flex-direction: column;
  }

  .gs1-faq-block__global-search button {
    width: 100%;
  }
}
