.category-page {
  padding-bottom: 0;
}

.category-page .places-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.category-page .places-head-tools {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 36px;
}

.category-page .section-gap,
.category-page .footer {
  margin-top: 140px;
}

.category-intro {
  margin-top: 32px;
}

.category-intro + .section-gap {
  margin-top: 64px;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--orange);
}

.breadcrumbs-sep {
  color: var(--orange);
}

.category-main-title {
  margin: 80px 0 0;
  max-width: 1387px;
  font: 400 72px/0.94 "Comfortaa", sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.category-layout {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 335px 1fr;
  gap: 20px;
}

.category-filter-col {
  display: grid;
  align-content: start;
  gap: 20px;
}

.category-filter-col .chip {
  width: fit-content;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-content: start;
}

.category-cards-grid .place-card {
  padding: 12px;
  min-height: 408px;
  background: var(--surface);
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.category-cards-grid .place-card:hover {
  background: var(--teal);
  color: #fff;
}

.category-cards-grid .photo {
  height: 200px;
  border-radius: 10px;
}

.category-cards-grid .tag-stack {
  top: 12px;
  left: 12px;
  gap: 8px;
}

.category-cards-grid .tiny-chip {
  height: 24px;
  padding: 0 16px;
}

.category-cards-grid .tiny-chip b {
  font-size: 12px;
}

.category-cards-grid .place-meta {
  margin-top: 20px;
  font-size: 12px;
}

.category-cards-grid .place-name {
  margin-top: 12px;
  font: 400 18px/1 "Comfortaa", sans-serif;
  text-transform: uppercase;
}

.category-cards-grid .stars {
  margin-top: 16px;
  font-size: 20px;
  letter-spacing: 3px;
}

.category-cards-grid .place-extra {
  margin-top: 16px;
  gap: 9px;
}

.category-cards-grid .place-extra div:first-child,
.category-cards-grid .place-extra div:not(:first-child) {
  font-size: 14px;
}

.category-cards-grid .place-arrow {
  margin-top: -20px;
  font-size: 56px;
}

.places-sort-form {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.category-tag-filter-wrap {
  width: auto;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-tag-filter-label {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--ink-soft);
}

.category-tag-filter-select {
  width: 280px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  font: 400 14px/1 "PT Sans", sans-serif;
}

.places-sort-form label {
  font-size: 14px;
  color: var(--ink-soft);
}

.places-sort-form select {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  font: 400 14px/1 "PT Sans", sans-serif;
}

.faq-section .faq-title {
  max-width: 980px;
}

.faq-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.faq-col {
  display: grid;
  align-content: start;
  gap: 20px;
}

.faq-open {
  display: grid;
  gap: 20px;
}

.faq-open .faq-open-answer {
  display: none;
}

.faq-open.is-open .faq-open-answer {
  display: block;
}

.faq-open-toggle,
.faq-item {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 10px;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font: 400 18px/1 "Comfortaa", sans-serif;
  text-transform: uppercase;
}

.faq-open-toggle span:first-child,
.faq-item span:first-child {
  line-height: 1.3;
}

.faq-open-toggle {
  background: var(--orange);
  color: #fff;
}

.faq-item {
  background: var(--surface);
  color: var(--ink);
}

.faq-open:not(.is-open) .faq-open-toggle {
  background: var(--surface);
  color: var(--ink);
}

.faq-open:not(.is-open) .faq-open-toggle .faq-icon {
  color: var(--orange);
}

.faq-open.is-open .faq-item {
  background: var(--orange);
  color: #fff;
}

.faq-open.is-open .faq-item .faq-icon {
  color: #fff;
}

.faq-icon {
  color: var(--orange);
  font-size: 44px;
  line-height: 0.5;
  font-family: "PT Sans", sans-serif;
}

.faq-open-toggle .faq-icon {
  color: #fff;
}

.faq-open-answer {
  margin: 0;
  padding: 0 30px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.2;
  color: #5f5f5f;
}

@media (max-width: 1240px) {
  .category-main-title {
    font-size: 56px;
    white-space: normal;
  }

  .category-layout {
    grid-template-columns: 1fr;
  }

  .category-filter-col {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .places-sort-form {
    width: 100%;
    flex-wrap: wrap;
  }

  .places-sort-form select {
    flex: 1 1 auto;
  }

  .category-tag-filter-wrap {
    width: 100%;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .category-tag-filter-select {
    width: 100%;
  }

  .category-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .category-main-title {
    margin-top: 40px;
    font-size: 40px;
    line-height: 1;
  }

  .category-layout {
    margin-top: 40px;
  }

  .category-cards-grid {
    grid-template-columns: 1fr;
  }

  .faq-open-toggle,
  .faq-item {
    padding: 0 18px;
    font-size: 15px;
  }

  .faq-open-answer {
    padding: 0 18px;
    font-size: 14px;
  }
}
