.catalog-page {
  background: #fff;
}

.catalog-hero,
.bando-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 6vw, 78px) 0 clamp(54px, 6vw, 82px);
  background:
    radial-gradient(circle at 82% 28%, rgba(37, 189, 255, 0.18), transparent 26%),
    linear-gradient(125deg, #f8fbff 0%, #edf6ff 100%);
}

.catalog-hero {
  padding: clamp(24px, 3vw, 38px) 0 clamp(28px, 3.6vw, 44px);
}

.catalog-hero .feature-breadcrumbs {
  margin-bottom: 18px;
}

.catalog-hero h1 {
  max-width: 940px;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(30px, 3.7vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.bando-hero h1 {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--ink);
  font-size: clamp(23px, 2.5vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.catalog-hero > .section-shell > p:last-child,
.bando-hero-lead {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
}

.catalog-hero > .section-shell > p:last-child {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
}

.catalog-section {
  padding: clamp(30px, 3.8vw, 50px) 0 clamp(44px, 5vw, 66px);
}

.bando-content {
  padding: clamp(38px, 4.5vw, 58px) 0 clamp(48px, 6vw, 76px);
}

.catalog-toolbar {
  display: grid;
  align-items: end;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 220px);
}

.catalog-summary {
  display: flex;
  align-items: center;
  gap: 13px;
}

.catalog-summary-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(0, 92, 214, 0.2);
  border-radius: 13px;
  background: var(--surface-blue);
  color: var(--brand);
}

.catalog-toolbar h2 {
  margin: 0;
  font-size: clamp(21px, 2vw, 29px);
  letter-spacing: -0.032em;
}

.catalog-filter {
  position: relative;
  display: grid;
  gap: 8px;
}

.catalog-filter-label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.catalog-filter-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 15px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.catalog-filter-trigger[aria-expanded="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 92, 214, 0.12);
}

.catalog-filter-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: 100%;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.catalog-filter-options a {
  display: block;
  width: 100%;
  border: 0;
  padding: 9px 13px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.catalog-filter-options a:hover,
.catalog-filter-options a:focus-visible,
.catalog-filter-options a[aria-selected="true"] {
  background: var(--surface-blue);
  color: var(--brand);
}

.catalog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.catalog-card {
  min-width: 0;
}

.catalog-card[hidden] {
  display: none;
}

.catalog-card article {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.catalog-pagination {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.catalog-pagination-direction {
  color: var(--brand);
  text-decoration: none;
}

.catalog-pagination-direction:last-child {
  justify-self: end;
}

.catalog-card article:hover {
  border-color: rgba(0, 92, 214, 0.28);
  box-shadow: 0 20px 44px rgba(0, 68, 153, 0.11);
  transform: translateY(-3px);
}

.catalog-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #68758e;
  font-size: 12px;
  font-weight: 600;
}

.catalog-card-topline > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 58%;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-blue);
  color: var(--brand);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-card-topline time,
.catalog-card-deadline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.catalog-card-topline svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-card h2 {
  min-height: calc(3 * 1.28em);
  margin: 24px 0 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.2vw, 19px);
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.catalog-card h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-decoration: none;
}

.catalog-entity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 17px;
}

.catalog-entity > svg {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-entity > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.catalog-entity span,
.bando-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-entity strong,
.bando-facts dd {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.catalog-card article > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.catalog-card-link {
  display: grid;
  align-items: center;
  grid-template-columns: 18px auto 18px;
  justify-content: center;
  gap: 18px;
  justify-content: center;
  min-height: 42px;
  margin-top: 20px;
  padding: 9px 14px;
  border: 1px solid rgba(0, 92, 214, 0.55);
  border-radius: 12px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.catalog-card-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-empty {
  margin-top: 42px;
  padding: 42px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: var(--surface-soft);
  text-align: center;
}

.catalog-empty h2,
.catalog-empty p {
  margin: 0;
}

.catalog-empty p {
  margin-top: 8px;
  color: var(--muted);
}

.catalog-updated {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.catalog-premium {
  padding: clamp(72px, 8vw, 108px) 0;
  background: linear-gradient(130deg, #063b84, #005cd6 64%, #0879ec);
  color: #fff;
}

.catalog-premium .section-kicker {
  color: #9bddff;
}

.catalog-premium h2 {
  max-width: 800px;
  margin: 14px 0 0;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.catalog-premium > .section-shell > p:not(.section-kicker) {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.catalog-related {
  border-top: 0;
}

.bando-hero {
  padding: clamp(26px, 3vw, 40px) 0 clamp(40px, 5vw, 66px);
}

.bando-hero .feature-breadcrumbs {
  margin-bottom: clamp(30px, 4vw, 52px);
}

.bando-hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.65fr);
}

.bando-hero-copy .section-kicker {
  display: inline-flex;
  border: 1px solid rgba(0, 92, 214, 0.18);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.62);
}

.bando-hero-art {
  width: 100%;
  max-width: 360px;
  justify-self: end;
  overflow: visible;
}

.bando-layout {
  display: grid;
  align-items: start;
  gap: clamp(42px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.72fr);
}

.bando-facts {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.bando-facts div {
  min-width: 0;
  padding: 22px 20px;
  border-right: 1px solid var(--line);
}

.bando-facts div:last-child {
  border-right: 0;
}

.bando-facts dt {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.bando-facts dt svg {
  width: 30px;
  height: 30px;
  grid-row: 1 / span 2;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bando-facts dd {
  margin: 4px 0 0 44px;
  color: var(--ink);
  font-size: 14px;
}

.bando-description {
  margin-top: 48px;
}

.bando-description h2 {
  margin: 11px 0 0;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.035em;
}

.bando-description > p:last-of-type {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-line;
}

.bando-premium-boundary {
  display: grid;
  align-items: center;
  gap: 20px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  margin-top: clamp(44px, 6vw, 72px);
  padding: 24px 28px;
  border-left: 3px solid var(--brand);
  border-top: 1px solid rgba(0, 92, 214, 0.18);
  border-right: 1px solid rgba(0, 92, 214, 0.18);
  border-bottom: 1px solid rgba(0, 92, 214, 0.18);
  border-radius: 0 17px 17px 0;
  background: linear-gradient(105deg, #f4f9ff, #fbfdff);
}

.bando-premium-boundary > svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bando-premium-boundary > div {
  display: grid;
  gap: 5px;
}

.bando-premium-boundary strong {
  color: var(--ink);
  font-size: 16px;
}

.bando-premium-boundary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.bando-premium-boundary .button {
  min-width: 210px;
}

.bando-cta-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(0, 92, 214, 0.15);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.bando-cta-panel h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.bando-cta-panel > p:not(.section-kicker) {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-text-link {
  padding: 7px 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 980px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .bando-cta-panel {
    position: static;
  }

  .bando-premium-boundary {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .bando-premium-boundary .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .catalog-toolbar,
  .catalog-grid,
  .bando-facts {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    gap: 18px;
  }

  .catalog-grid {
    margin-top: 20px;
  }

  .catalog-card-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-card-topline > span {
    max-width: 100%;
  }

  .catalog-summary {
    align-items: center;
  }

  .catalog-summary-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .bando-hero-grid {
    grid-template-columns: 1fr;
  }

  .bando-hero-art {
    display: none;
  }

  .bando-hero .feature-breadcrumbs {
    margin-bottom: 24px;
  }

  .catalog-card h2 {
    min-height: auto;
  }

  .catalog-hero h1 {
    font-size: 29px;
    letter-spacing: -0.035em;
  }

  .bando-hero h1 {
    font-size: 24px;
    letter-spacing: -0.03em;
  }

  .bando-facts div,
  .bando-facts div:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .bando-facts div:last-child {
    border-bottom: 0;
  }

  .bando-premium-boundary {
    gap: 14px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 20px;
  }

  .bando-premium-boundary > svg {
    width: 34px;
    height: 34px;
  }

  .bando-premium-boundary .button {
    width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-card article {
    transition: none;
  }
}
