:root {
  --ink: #0f172a;
  --muted: #52606d;
  --line: #dce3e8;
  --paper: #f6f9f8;
  --teal: #087d73;
  --teal-dark: #07564f;
  --violet: #635bdb;
  --blue: #1269dd;
  --navy: #082f45;
  --white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); }
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.nav-inner { display: flex; align-items: center; gap: 28px; }
.brand { margin-right: auto; font-weight: 700; text-decoration: none; }
.brand span { color: var(--teal); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: #26343d; font-size: 13px; text-decoration: none; }
.nav-cta {
  padding: 11px 15px;
  border: 1px solid rgba(99,91,219,.28);
  border-radius: 5px;
  color: #3026bd;
  text-decoration: none;
}

.crumbs { padding: 22px 0; color: var(--muted); font-size: 12px; }
.crumbs a { text-decoration: none; }

.detail-hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  color: white;
  background: #194e65 center/cover no-repeat;
}
.detail-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,25,38,.91) 0%, rgba(5,35,45,.7) 42%, rgba(5,35,45,.12) 75%);
  content: "";
}
.detail-hero .shell { position: relative; z-index: 1; }
.hero-copy { max-width: 620px; padding: 74px 0 88px; }
.eyebrow { margin: 0 0 16px; color: #65ddd1; font-size: 12px; font-weight: 700; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(46px, 6vw, 78px); line-height: 1; font-weight: 650; letter-spacing: 0; }
.hero-lead { max-width: 570px; margin: 24px 0; color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.6; }
.meta-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 30px; }
.meta-row span { padding: 8px 10px; border: 1px solid rgba(255,255,255,.32); border-radius: 4px; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { border-color: var(--violet); background: var(--violet); color: white; }

.section { padding: 76px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--navy); color: white; }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; margin-bottom: 44px; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; font-weight: 650; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.section-dark .section-head p { color: rgba(255,255,255,.68); }

.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.fact { min-height: 160px; padding: 24px 22px 22px 0; border-bottom: 1px solid var(--line); }
.fact + .fact { padding-left: 22px; border-left: 1px solid var(--line); }
.fact small { color: var(--teal); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.fact strong { display: block; margin: 28px 0 8px; font-size: 18px; }
.fact p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.list { border-top: 1px solid var(--line); }
.list-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}
.list-row > span { color: var(--teal); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.list-row strong { display: block; margin-bottom: 6px; font-size: 17px; }
.list-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.list-row a { color: var(--violet); font-size: 13px; font-weight: 700; text-decoration: none; }

.catalog-hero { padding: 74px 0 54px; background: var(--paper); }
.catalog-hero h1 { max-width: 820px; font-size: clamp(44px, 6vw, 72px); }
.catalog-hero p { max-width: 660px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.search-bar { display: grid; grid-template-columns: 1fr 220px 160px; gap: 10px; margin-top: 34px; }
.search-bar input, .search-bar select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cbd5dc;
  border-radius: 4px;
  background: white;
}
.result-count { margin: 0 0 18px; color: var(--muted); font-size: 13px; }

.entity-list { border-top: 1px solid var(--line); }
.entity {
  display: grid;
  grid-template-columns: 130px 1fr 230px;
  gap: 30px;
  align-items: center;
  min-height: 152px;
  border-bottom: 1px solid var(--line);
}
.entity-code { color: var(--teal); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.entity h2 { margin: 0 0 9px; font-size: 24px; }
.entity p { margin: 0; color: var(--muted); line-height: 1.55; }
.entity-side { text-align: right; }
.entity-side span { display: block; margin-bottom: 12px; color: var(--teal-dark); font-size: 12px; }

.notice { padding: 22px; border-left: 4px solid var(--teal); background: #e9f5f2; color: #23433f; line-height: 1.6; }
.footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 22px; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .entity { grid-template-columns: 90px 1fr; }
  .entity-side { grid-column: 2; text-align: left; }
  .search-bar { grid-template-columns: 1fr 180px; }
  .search-bar .button { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav-cta { display: none; }
  .detail-hero { min-height: 650px; }
  .hero-copy { padding: 58px 0 74px; }
  h1 { font-size: 46px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact + .fact { padding-left: 0; border-left: 0; }
  .list-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .entity { grid-template-columns: 1fr; gap: 9px; padding: 26px 0; }
  .entity-side { grid-column: 1; }
  .search-bar { grid-template-columns: 1fr; }
  .search-bar .button { grid-column: auto; }
}
