.hero {
  display: grid;
  gap: 24px;
  padding: 48px 32px 36px;
  background: var(--ff-color-soft-pink);
}

.hero h1,
.detail-main h1 {
  max-width: 860px;
  margin: 0;
  font-size: 48px;
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ff-color-coral);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.lead {
  max-width: 760px;
  color: var(--ff-color-text-muted);
  font-size: 18px;
  line-height: 1.55;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 28px 32px 56px;
  background: var(--ff-color-surface);
}

.filters-panel {
  position: sticky;
  top: 18px;
  min-width: 0;
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.filters-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.filters-heading h2 {
  margin: 0;
  font-size: 20px;
}

.filters-heading a {
  color: var(--ff-color-text-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.filters {
  display: grid;
  gap: 16px;
}

.filter-checkbox-group {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.filter-checkbox-group legend {
  margin-bottom: 8px;
  color: #65485a;
  font-size: 14px;
  font-weight: 500;
}

.city-filter-options {
  display: grid;
  gap: 7px;
}

.filter-checkbox-option {
  display: flex;
  width: auto;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.filters .filter-checkbox-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--ff-color-deep-purpur);
}

.filters .filter-checkbox-option span {
  color: var(--ff-color-text);
  font-weight: 400;
}

.filters label,
.filters input,
.filters select {
  min-width: 0;
  width: 100%;
}

.filter-range {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(108px, 1fr));
  gap: 10px;
}

.filter-actions .secondary-link {
  justify-content: center;
  min-width: 0;
  width: 100%;
  padding-right: 10px;
  padding-left: 10px;
  white-space: nowrap;
}

.filter-actions button {
  min-width: 0;
  width: 100%;
  padding-right: 10px;
  padding-left: 10px;
  white-space: nowrap;
}

.tender-list {
  display: grid;
  gap: 16px;
}

.catalog-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  padding: 16px 18px;
  background: #fff;
}

.catalog-results-bar h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.catalog-results-summary {
  display: grid;
  gap: 3px;
}

.catalog-results-bar p {
  margin: 0;
  color: var(--ff-color-text-muted);
  font-size: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 26px;
}

.tender-card,
.empty-state,
.side-panel {
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.empty-state {
  display: grid;
  gap: 12px;
}

.catalog-empty-state {
  min-height: 220px;
  align-content: center;
  justify-items: start;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(255, 118, 99, 0.08), rgba(241, 236, 255, 0.65)),
    #fff;
}

.empty-state .button-link {
  justify-self: start;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.not-found-page {
  display: grid;
  min-height: calc(100vh - 70px);
  max-width: none;
  place-items: center;
  padding: 48px 32px 64px;
}

.not-found-card {
  width: 100%;
  max-width: 760px;
}

.not-found-card h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
}

.tender-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 38%);
  gap: 16px;
  border-color: #c8b7c2;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(55, 11, 39, 0.05);
}

.tender-card h2 {
  margin: 12px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.tender-card h2 a {
  text-decoration: none;
}

.tender-card p {
  max-width: 680px;
  margin: 0;
  color: var(--ff-color-text-muted);
  line-height: 1.45;
}

.tender-card-content {
  display: grid;
  gap: 14px;
}

.tender-card-with-photo .tender-card-content {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
  align-items: start;
}

.tender-photo-preview {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--ff-color-border);
  border-radius: 12px;
  background: var(--ff-color-surface);
  color: var(--ff-color-deep-purpur);
  text-decoration: none;
  aspect-ratio: 4 / 3;
}

.tender-card-with-photo .tender-photo-preview {
  margin-top: 12px;
}

.tender-photo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tender-photo-preview span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ff-color-deep-purpur);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.tender-card-aside {
  display: grid;
  gap: 10px;
  align-content: space-between;
}

.tender-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tender-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--ff-color-text-muted);
  font-size: 13px;
  font-weight: 800;
}

.tender-location,
.tender-category {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  line-height: 1;
}

.tender-location {
  border: 1px solid var(--ff-color-border);
  color: var(--ff-color-deep-purpur);
  background: #fff;
}

.tender-category {
  color: var(--ff-color-deep-purpur);
  background: var(--ff-color-soft-purple);
}

.tender-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tender-conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tender-condition {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(55, 11, 39, 0.12);
  border-radius: 14px;
  padding: 10px;
  background: var(--ff-color-surface);
}

.tender-condition-budget {
  border-color: var(--ff-color-coral-shade-1);
  background: #fff7f5;
}

.tender-condition span {
  color: var(--ff-color-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.tender-condition strong {
  color: var(--ff-color-text);
  font-size: 15px;
  line-height: 1.25;
}

.tender-condition-budget strong {
  color: var(--ff-color-deep-purpur);
  font-size: 18px;
}

.tender-deadline-row small {
  color: var(--ff-color-text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.tender-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--ff-color-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
}

.facts.vertical {
  grid-template-columns: 1fr;
}

.facts.compact div {
  min-height: 58px;
}

.facts dt {
  color: var(--ff-color-text-muted);
  font-size: 12px;
}

.facts div {
  min-height: 76px;
  border: 1px solid rgba(55, 11, 39, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.facts dd {
  margin: 4px 0 0;
  font-weight: 800;
  line-height: 1.3;
}

.badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 100px;
  background: var(--ff-color-coral-shade-1);
  color: var(--ff-color-deep-purpur);
  font-size: 12px;
  font-weight: 700;
}

.badge-accent {
  background: var(--ff-color-soft-purple);
}

.badge-soft {
  background: var(--ff-color-surface);
}

.seller-faq {
  margin-top: 16px;
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.faq-link-panel {
  display: grid;
  gap: 14px;
}

.faq-link-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--ff-color-text-muted);
  line-height: 1.55;
}

.faq-link-panel .secondary-link {
  justify-self: start;
}

.faq-page {
  display: grid;
  gap: 24px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 44px 32px 64px;
}

.faq-page h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(55, 11, 39, 0.1);
  border-radius: 8px;
  background: var(--ff-color-surface);
  box-shadow: 0 16px 42px rgba(55, 11, 39, 0.08);
}

.faq-item {
  border: 1px solid rgba(55, 11, 39, 0.12);
  border-radius: 8px;
  background: var(--ff-color-bg);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  max-width: 860px;
  padding: 0 20px 18px;
  color: var(--ff-color-text-muted);
  line-height: 1.55;
}

.legal-page {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 44px 32px 64px;
}

.legal-document {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(55, 11, 39, 0.1);
  border-radius: 8px;
  padding: 28px;
  background: var(--ff-color-surface);
  box-shadow: 0 16px 42px rgba(55, 11, 39, 0.08);
}

.legal-document h1 {
  margin: 0 0 8px;
  font-size: 38px;
  line-height: 1.1;
}

.legal-document p,
.legal-document li {
  max-width: 860px;
  margin: 0;
  color: var(--ff-color-text-muted);
  line-height: 1.6;
}

.legal-document ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 22px;
}

.legal-document a {
  color: var(--ff-color-deep-purpur);
  font-weight: 800;
}
