:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #5e6d67;
  --line: #d8e0dc;
  --paper: #fbfcfa;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --gold: #c2841a;
  --blue: #245b91;
  --shadow: 0 18px 45px rgba(20, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 250, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.top-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
}

.top-nav {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--accent-strong);
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: clamp(52px, 9vw, 104px) clamp(18px, 4vw, 56px);
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 26, 24, 0.86), rgba(8, 26, 24, 0.5) 54%, rgba(8, 26, 24, 0.16)),
    var(--hero-image) center / cover;
}

.hero-inner {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.brief-hero h1 {
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 20px 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.search-panel {
  width: min(680px, 100%);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input[type="search"] {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
  box-shadow: var(--shadow);
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.metrics-band div {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 22px clamp(16px, 3vw, 34px);
  background: var(--panel);
}

.metrics-band strong {
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  color: var(--accent-strong);
}

.metrics-band span {
  color: var(--muted);
}

.section {
  padding: clamp(40px, 7vw, 74px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2,
.content-block h2,
.brief-aside h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.chip.is-active,
.chip:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.catalog-section {
  padding-top: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.brief-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(20, 33, 31, 0.08);
}

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

.brief-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #dce8e3;
}

.brief-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brief-body {
  padding: 18px;
}

.brief-category {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brief-body h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.brief-body h3 a {
  text-decoration: none;
}

.brief-body p {
  min-height: 70px;
  margin: 12px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0 15px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
}

.button-secondary {
  background: white;
  color: var(--accent-strong);
}

.button-full {
  width: 100%;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  background: white;
}

.brief-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(48px, 8vw, 90px) clamp(18px, 4vw, 56px);
  background: #edf4f1;
}

.brief-hero-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.brief-hero img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px clamp(18px, 4vw, 56px) 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: clamp(34px, 6vw, 64px) clamp(18px, 4vw, 56px);
}

.brief-main {
  display: grid;
  gap: 18px;
}

.content-block,
.brief-aside {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: clamp(20px, 4vw, 30px);
}

.content-block ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.content-block p {
  color: var(--muted);
  line-height: 1.7;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq details:first-of-type {
  margin-top: 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.brief-aside {
  align-self: start;
  position: sticky;
  top: 86px;
}

.brief-aside dl {
  margin: 18px 0;
}

.brief-aside div {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.brief-aside dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brief-aside dd {
  margin: 5px 0 0;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 32px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: white;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

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

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

  .brief-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .hero {
    min-height: 76vh;
  }

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

  .catalog-grid,
  .brief-hero {
    grid-template-columns: 1fr;
  }

  .brief-hero h1,
  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }
}

@media (max-width: 480px) {
  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .metrics-band {
    grid-template-columns: 1fr;
  }

  .brief-actions {
    display: grid;
  }
}
