.cat-archive-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 60%, #0c1a3a 100%);
  padding: 9.6rem 0 4rem;
}
.cat-archive-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
}
.cat-archive-hero__breadcrumb a {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.cat-archive-hero__breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.75);
}
.cat-archive-hero__breadcrumb svg {
  color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.cat-archive-hero__breadcrumb span {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}
.cat-archive-hero__title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 80rem;
}
@media only screen and (min-width: 768px) {
  .cat-archive-hero__title {
    font-size: 3.4rem;
  }
}
.cat-archive-hero__desc {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 60rem;
  margin-bottom: 2rem;
}
.cat-archive-hero__meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cat-archive-hero__count {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.search-bar {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  padding: 1.6rem 0;
  position: sticky;
  top: 6.6rem;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: top 0.3s ease;
}
.search-bar__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.search-bar__main {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
@media only screen and (max-width: 576px) {
  .search-bar__main {
    flex-wrap: nowrap;
  }
}
.search-bar__filters-toggle {
  display: none;
}
@media only screen and (max-width: 576px) {
  .search-bar__filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.2rem 1.4rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
  }
  .search-bar__filters-toggle[aria-expanded=true] {
    background: rgba(129, 140, 248, 0.18);
    border-color: rgba(129, 140, 248, 0.4);
    color: #c7d2fe;
  }
}
.search-bar__filters-toggle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  padding: 0 0.4rem;
  background: #6366f1;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 10rem;
  line-height: 1;
}
.search-bar__input-wrap {
  flex: 1;
  position: relative;
  min-width: 20rem;
}
@media only screen and (max-width: 576px) {
  .search-bar__input-wrap {
    min-width: 0;
  }
}
.search-bar__ico {
  position: absolute;
  left: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.search-bar__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 1rem !important;
  padding: 1.2rem 3.6rem 1.2rem 4.4rem !important;
  font-size: 1.5rem !important;
  color: #fff !important;
  transition: border-color 0.2s;
}
.search-bar__input::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}
.search-bar__input:focus {
  border-color: rgba(129, 140, 248, 0.5) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}
.search-bar__input::-webkit-search-cancel-button {
  display: none;
}
.search-bar__clear-input {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.2rem;
  transition: color 0.2s;
}
.search-bar__clear-input:hover {
  color: rgba(255, 255, 255, 0.8);
}
.search-bar__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 1.2rem 2.4rem;
  font-size: 1.45rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.search-bar__submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
@media only screen and (max-width: 576px) {
  .search-bar__submit {
    padding: 1.2rem 1.4rem;
  }
  .search-bar__submit span {
    display: none;
  }
}
.search-bar__filters {
  margin-top: 2rem;
}
@media only screen and (max-width: 576px) {
  .search-bar__filters {
    display: none;
    margin-top: 1.4rem;
  }
  .search-bar__filters.is-open {
    display: block;
  }
}
.search-bar__filters-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  padding-bottom: 0.2rem;
}
@media only screen and (min-width: 576px) {
  .search-bar__filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 992px) {
  .search-bar__filters-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.search-bar__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.search-bar__label {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.search-bar__select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  padding: 1rem 3rem 1rem 1.2rem;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
}
.search-bar__select:focus {
  border-color: rgba(129, 140, 248, 0.5);
  outline: none;
}
.search-bar__select option {
  background: #1e1b4b;
  color: #e5e7eb;
}
.search-bar__filters-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 1.2rem;
}
.search-bar__reset {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.search-bar__reset:hover {
  color: rgba(255, 255, 255, 0.75);
}

body:has(#header.is-scrolled) .search-bar {
  top: 5.8rem;
}

.search-results {
  background: #f8f9fe;
  min-height: 60vh;
  padding: 3.6rem 0;
}

.search-results__container {
  position: relative;
  transition: opacity 0.25s ease;
}
.search-results__container.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.search-results__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.8rem;
}

.search-results__count {
  font-size: 1.5rem;
  color: #6b7280;
}
.search-results__count strong {
  color: #0f0f1a;
  font-weight: 700;
}

.search-results__page {
  font-size: 1.3rem;
  color: #9ca3af;
  margin-left: 0.4rem;
}

.search-results__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: #374151;
  background: #e0e7ff;
  border-radius: 10rem;
  padding: 0.4rem 1rem 0.4rem 1.2rem;
}
.filter-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  color: #6366f1;
  font-size: 1.4rem;
  text-decoration: none;
  line-height: 1;
  font-weight: 700;
  transition: background 0.15s;
}
.filter-chip__remove:hover {
  background: rgba(99, 102, 241, 0.15);
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.result-card {
  background: #fff;
  border-radius: 1.4rem;
  border: 1px solid #e9eaf6;
  box-shadow: 0 2px 8px rgba(15, 15, 26, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  position: relative;
}
.result-card:hover {
  box-shadow: 0 8px 24px rgba(15, 15, 26, 0.09);
  border-color: #c7d2fe;
}
.result-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 2.4rem;
  padding: 2.4rem;
}
@media only screen and (max-width: 768px) {
  .result-card__inner {
    flex-direction: column;
    gap: 1.6rem;
  }
}
.result-card__body {
  flex: 1;
  min-width: 0;
}
.result-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.result-card__title {
  font-size: 1.55rem;
  font-weight: 600;
  color: #0f0f1a;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}
@media only screen and (min-width: 768px) {
  .result-card__title {
    font-size: 1.65rem;
  }
}
.result-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
}
.result-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  color: #6b7280;
}
.result-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}
@media only screen and (max-width: 768px) {
  .result-card__actions {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding-top: 1.2rem;
    border-top: 1px solid #f0f0f6;
  }
}
.result-card__downloads {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.3rem;
  color: #9ca3af;
  white-space: nowrap;
}
.result-card__edit-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.7rem;
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.result-card__edit-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  transform: scale(1.1);
}
.result-card__download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 0.9rem;
  padding: 1rem 1.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}
.result-card__download-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.result-card__download-btn--disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}
.result-card__download-btn--disabled:hover {
  opacity: 1;
  transform: none;
  box-shadow: none;
}
.result-card__download-btn--locked {
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
}
.result-card__download-btn--locked:hover {
  background: #e5e7eb;
  color: #374151;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.result-badge {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.45rem 1.2rem;
  border-radius: 10rem;
  text-decoration: none;
}
.result-badge--type {
  background: #eff6ff;
  color: #1d4ed8;
}
.result-badge--year {
  background: #f0fdf4;
  color: #15803d;
}
.result-badge--spec {
  background: #faf5ff;
  color: #7e22ce;
  transition: background 0.15s;
}
.result-badge--spec:hover {
  background: #ede9fe;
}

.search-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 4.8rem;
}
.search-pagination__item .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.8rem;
  height: 3.8rem;
  padding: 0 1rem;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}
.search-pagination__item .page-numbers:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.search-pagination__item .page-numbers.current {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  border-color: transparent;
}
.search-pagination__item .page-numbers.prev, .search-pagination__item .page-numbers.next {
  padding: 0 1.6rem;
  font-size: 1.35rem;
}

.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem;
  gap: 1.6rem;
}
.search-empty__icon {
  color: #d1d5db;
}
.search-empty__title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0f0f1a;
}
.search-empty__desc {
  font-size: 1.6rem;
  color: #6b7280;
  max-width: 40rem;
  line-height: 1.6;
}
.search-empty__reset {
  display: inline-flex;
  align-items: center;
  margin-top: 0.8rem;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  text-decoration: none;
  border-radius: 0.9rem;
  padding: 1.2rem 2.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.search-empty__reset:hover {
  opacity: 0.9;
}