/* ─── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --bg:        #F4F6F7;
  --surface:   #FFFFFF;
  --dark:      #0C1A24;
  --text:      #0F1B26;
  --muted:     #55636F;
  --border:    #E1E6EA;
  --border2:   #D5DCE1;
  --accent:    #0B6B7E;
  --teal:      #7FE0D0;
  --teal-lt:   #9AEADB;
  --teal-bg:   #EAF3F4;
  --font:      'Onest', system-ui, -apple-system, sans-serif;
  --r-card:    24px;
  --r-pill:    999px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244,246,247,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.logo-sub  { font-size: 12px; color: var(--muted); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
}
.nav-link {
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  transition: background .15s;
}
.nav-link:hover { background: #E6EBEE; }
.nav-link--btn { background: none; border: none; cursor: pointer; font: inherit; }
.nav-btn {
  margin-left: 8px;
  color: #fff;
  background: var(--dark);
  padding: 11px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  border: none;
  font-size: 15px;
  font-family: var(--font);
}
.nav-btn:hover { background: #1a2e3f; }

/* ─── Hero section ───────────────────────────────────────────────────────── */
.hero-section { padding: 24px 0 0; }
.hero-card {
  background: var(--dark);
  background-image: radial-gradient(rgba(127,224,208,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  color: #E8EEF2;
  border-radius: 32px;
  padding: 64px 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
@media (max-width: 768px) {
  .hero-card { padding: 40px 28px; }
}
.hero-left  { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-right { flex: 1 1 300px; min-width: 0; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }

.hero-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(127,224,208,.12);
  border: 1px solid rgba(127,224,208,.3);
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-lt);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.hero-title {
  font-size: 52px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
}
@media (max-width: 768px) { .hero-title { font-size: 34px; } }
.hero-desc {
  font-size: 18px;
  color: #B4C3CE;
  max-width: 560px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 640px;
  margin-top: 8px;
  padding: 8px 8px 8px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
}
.hero-search input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 48px;
  padding: 0 4px;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search-btn {
  min-height: 52px;
  padding: 0 28px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  background: var(--teal);
  border: 0;
  border-radius: 14px;
}
.hero-search-btn:hover { background: var(--teal-lt); }
.hero-search:focus-within { outline: 3px solid var(--teal); outline-offset: 3px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #A9B8C4;
}
.hero-tag {
  color: #E8EEF2;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.08);
  transition: background .15s;
}
.hero-tag:hover { background: rgba(255,255,255,.16); }

/* Hero right — floating document preview cards */
.hero-doc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 22px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,.6);
}
.hero-doc-card--ghost {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #E8EEF2;
  margin-left: 36px;
}
.hero-doc-card--ghost2 {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #E8EEF2;
  margin-left: 12px;
}
.hero-doc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.hero-doc-card-type { font-weight: 600; color: var(--accent); }
.hero-doc-card-type--teal { color: var(--teal-lt); }
.hero-doc-card-title { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.hero-doc-card-title--sm { font-size: 17px; font-weight: 500; line-height: 1.3; }
.hero-doc-card-date { font-size: 13px; color: var(--muted); }

/* ─── Status badges ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge--active   { color: #0A5C4E; background: #DDF3EE; }
.badge--active::before   { background: #139A7F; }
.badge--amended  { color: #5C4200; background: #FFF3CD; }
.badge--amended::before  { background: #C79A00; }
.badge--repealed { color: #7A4300; background: #FDEBD3; }
.badge--repealed::before { background: #C77410; }

/* ─── Section headings ───────────────────────────────────────────────────── */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 32px;
}
.section-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
@media (max-width: 640px) { .section-title { font-size: 26px; } }
.section-link {
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.section-link:hover { text-decoration: underline; }

/* ─── Category cards ─────────────────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 20px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: #B9D9DF;
  box-shadow: 0 18px 36px -18px rgba(15,27,38,.28);
}
.cat-card-top { display: flex; align-items: center; justify-content: space-between; }
.cat-card-icon {
  width: 48px; height: 48px;
  border-radius: 15px;
  background: var(--teal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card-icon svg { stroke: var(--accent); }
.cat-card-num { font-size: 14px; font-weight: 600; color: var(--muted); }
.cat-card-name { font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.cat-card-desc { color: var(--muted); }
.cat-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.cat-tag {
  font-size: 13px;
  font-weight: 500;
  color: #0B4F5D;
  background: var(--teal-bg);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

/* ─── Category group heading ─────────────────────────────────────────────── */
.filter-subhead {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 14px 0 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.cat-group-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 16px;
}

/* ─── Category list cards (categories/index) ─────────────────────────────── */
.cat-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 16px;
}
.cat-list-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-list-card:hover {
  transform: translateY(-3px);
  border-color: #B9D9DF;
  box-shadow: 0 18px 36px -18px rgba(15,27,38,.28);
}
.cat-list-card:hover .cat-list-arrow {
  transform: translateX(4px);
  background: var(--accent);
  color: #fff;
}
.cat-list-icon {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 17px;
  background: var(--teal-bg);
  display: flex; align-items: center; justify-content: center;
}
.cat-list-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.cat-list-arrow {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #F1F4F6;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: transform .2s, background .2s, color .2s;
}

/* ─── Search page ─────────────────────────────────────────────────────────── */
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 760px;
  padding: 8px 8px 8px 20px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  transition: outline .1s;
}
.search-form:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.search-form input { flex: 1 1 200px; min-width: 0; min-height: 48px; padding: 0 4px; font: inherit; font-size: 17px; color: var(--text); background: transparent; border: 0; outline: none; }
.search-form-btn {
  min-height: 52px;
  padding: 0 28px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  transition: background .15s;
}
.search-form-btn:hover { background: #0a5d6e; }
.search-count { margin: 0; color: var(--muted); font-size: 15px; }
.search-count-q {
  color: var(--text);
  background: var(--teal-bg);
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.search-results { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.search-res-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.search-res-card:hover {
  transform: translateY(-2px);
  border-color: #B9D9DF;
  box-shadow: 0 16px 32px -18px rgba(15,27,38,.28);
}
.search-res-card:hover .search-res-arrow { transform: translateX(4px); color: var(--accent); }
.search-res-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 15px;
  background: var(--teal-bg);
  display: flex; align-items: center; justify-content: center;
}
.search-res-body { flex: 1 1 auto; min-width: 0; }
.search-res-title { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.search-res-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.search-res-arrow { flex: 0 0 auto; color: #8A97A2; font-size: 22px; transition: transform .2s, color .2s; }
.search-empty { color: var(--muted); font-size: 16px; }

/* ─── Document rows (catalog & homepage) ─────────────────────────────────── */
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  transition: background .15s;
}
.doc-row:hover { background: #F1F7F8; }
.doc-row:hover .doc-row-arrow { transform: translateX(4px); color: var(--accent); }
.doc-row-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 14px;
}
.doc-row-kind { font-weight: 600; color: var(--accent); }
.doc-row-num-date { color: var(--muted); }
.doc-row-title { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.doc-row-category { font-size: 14px; color: var(--muted); }
.doc-row-arrow { flex-shrink: 0; color: #8A97A2; font-size: 22px; transition: transform .2s, color .2s; }

/* ─── Catalog page layout ────────────────────────────────────────────────── */
.catalog-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
}
.catalog-sidebar {
  flex: 1 1 260px;
  max-width: 300px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px;
  box-sizing: border-box;
  position: sticky;
  top: 80px;
}
@media (max-width: 768px) {
  .catalog-sidebar { max-width: 100%; position: static; }
}
.catalog-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.filter-group { display: flex; flex-direction: column; gap: 2px; border: 0; padding: 0; }
.filter-group + .filter-group {
  padding-top: 20px;
  border-top: 1px solid #E8ECEF;
}
.filter-legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.filter-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 8px;
  margin: 0 -8px;
  cursor: pointer;
  border-radius: 10px;
}
.filter-opt:hover { background: var(--bg); }
.filter-opt input[type="checkbox"] {
  width: 20px; height: 20px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.filter-reset {
  min-height: 46px;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  background: var(--teal-bg);
  border: 0;
  border-radius: 14px;
}
.filter-reset:hover { background: #d5ebee; }

.catalog-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.catalog-bar-count { color: var(--muted); margin: 0; }
.catalog-bar-count strong { color: var(--text); }
.catalog-sort-wrap { display: flex; align-items: center; gap: 12px; }
.catalog-sort-label { font-size: 14px; color: var(--muted); }
.catalog-sort {
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  cursor: pointer;
}
.catalog-sort:focus { outline: 2px solid var(--teal); }

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.pagination a,
.pagination span {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
}
.pagination a {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination a.active,
.pagination span.current {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* ─── Document page ──────────────────────────────────────────────────────── */
.doc-page-layout { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.doc-page-aside {
  flex: 0 0 300px;
  max-width: 300px;
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 900px) { .doc-page-aside { flex: 100% 0 0; max-width: 100%; position: static; } }
.doc-page-main { flex: 1 1 0; min-width: 0; }

.doc-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px 24px 24px;
}
.doc-info-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.doc-info-list { margin: 0; padding: 0; }
.doc-info-row {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 0 12px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.doc-info-row:first-child { padding-top: 0; }
.doc-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.doc-info-row dt {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 0;
  margin: 0;
  line-height: 1.5;
  padding-top: 1px;
}
.doc-info-row dd {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}
.doc-info-tags { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.doc-info-tags-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 0 0 10px; }
.doc-info-tags-list { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--teal-bg);
  color: #0B4F5D;
  white-space: nowrap;
}

.doc-body-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 40px 44px;
}
@media (max-width: 640px) { .doc-body-card { padding: 24px 20px; } }
.doc-body-content { font-size: 16px; line-height: 1.7; }
.doc-body-content h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; letter-spacing: -0.01em; }
.doc-body-content h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.doc-body-content p  { margin-bottom: 14px; }
.doc-body-content ol,
.doc-body-content ul { padding-left: 24px; margin-bottom: 14px; }
.doc-body-content li { margin-bottom: 6px; }
.doc-body-content strong { font-weight: 700; }

/* ─── Search results ─────────────────────────────────────────────────────── */
.search-page-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
}
.search-page-bar input {
  flex: 1;
  min-height: 40px;
  border: none;
  outline: none;
  font: inherit;
  font-size: 16px;
  background: transparent;
}
.search-page-bar button {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
}

/* ─── Homepage sections spacing ──────────────────────────────────────────── */
.home-section { padding: 80px 0 24px; }
.home-section--last { padding-bottom: 80px; }

/* ─── 404 page ───────────────────────────────────────────────────────────── */
.notfound-card {
  background: var(--dark);
  background-image: radial-gradient(rgba(127,224,208,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  color: #E8EEF2;
  border-radius: 32px;
  padding: 72px 40px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.notfound-num {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: clamp(96px, 12vw, 168px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #E8EEF2;
}
.notfound-num svg { width: clamp(80px, 10vw, 150px); height: clamp(90px, 11vw, 168px); }
.notfound-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.notfound-desc {
  margin: 0;
  max-width: 480px;
  font-size: 18px;
  color: #B4C3CE;
  line-height: 1.6;
}
.notfound-search {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 8px 8px 20px;
  background: #fff;
  border-radius: 20px;
  box-sizing: border-box;
  text-align: left;
}
.notfound-search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.notfound-search input {
  flex: 1 1 160px;
  min-width: 0;
  min-height: 48px;
  padding: 0 4px;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
}
.notfound-search-btn {
  min-height: 52px;
  padding: 0 26px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #0C1A24;
  background: var(--teal);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  transition: background .15s;
}
.notfound-search-btn:hover { background: var(--teal-lt); }
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.notfound-btn-main {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  font-weight: 600;
  color: #0C1A24;
  background: #fff;
  border-radius: 14px;
  text-decoration: none;
  transition: background .15s;
}
.notfound-btn-main:hover { background: #E6EBEE; }
.notfound-btn-ghost {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  font-weight: 500;
  color: #E8EEF2;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  text-decoration: none;
  transition: background .15s;
}
.notfound-btn-ghost:hover { background: rgba(255,255,255,.14); }

/* ─── About modal ────────────────────────────────────────────────────────── */
.about-modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.about-modal::backdrop {
  background: rgba(12,26,36,.55);
  backdrop-filter: blur(4px);
}
.about-modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 48px 40px 40px;
  width: min(440px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 32px 64px -24px rgba(12,26,36,.28);
}
.about-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.about-modal-close:hover { background: var(--border); color: var(--text); }
.about-modal-icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.about-modal-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.about-modal-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}
.about-modal-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand { font-weight: 700; font-size: 16px; }
.footer-copy { font-size: 14px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border2); }

/* ─── Helpers ────────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}
