:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-soft: #edf4f1;
  --ink: #171a1f;
  --muted: #5d6672;
  --line: #dfe6e3;
  --accent: #0f7a61;
  --accent-strong: #0a5c49;
  --accent-soft: #dff3ec;
  --warning: #a65d00;
  --shadow: 0 16px 40px rgba(20, 26, 31, .08);
  --radius: 8px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Inter, "Segoe UI", Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

main {
  min-height: 60vh;
}

.wrapper,
.site-header__inner,
.site-footer__inner,
.page-wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bg);
}
header .brand {
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand__text {
  display: grid;
  line-height: 1.1;
}

.brand__text strong,
.footer-brand strong {
  font-size: 18px;
}

.brand__text small,
.footer-brand p,
.footer-note {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 650;
}

.site-nav a:hover {
  background: var(--surface-soft);
  text-decoration: none;
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #fff;
}

.site-nav .nav-cta:hover {
  background: var(--accent-strong);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  padding: 62px 0 46px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5f2 100%);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.18;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
}

.hero__lead {
  max-width: 740px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
header button {
  padding: 11px 10px;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

.button--secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button--secondary:hover {
  background: var(--surface-soft);
}

.button--compact {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 14px;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

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

.search-panel label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.search-input,
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.search-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.trust-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
}

.search-hints {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.search-hints a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.stat-card,
.feature-card,
.step-card,
.region-card,
.court-card,
.judge-card,
.info-card,
.faq-item,
.toc-card,
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-card {
  padding: 18px;
}
.feature-card:hover {
  text-decoration: none;
}

.stat-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.content-section {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 44px auto;
}

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

.section-heading p {
  max-width: 560px;
  color: var(--muted);
}

.pathway-grid,
.feature-grid,
.steps-grid,
.region-grid,
.court-grid,
.judge-grid,
.info-grid {
  display: grid;
  gap: 16px;
}

.pathway-grid,
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.steps-grid,
.info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.region-grid {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.court-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.judge-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card,
.region-card,
.court-card,
.judge-card,
.info-card,
.toc-card {
  padding: 18px;
}

.region-card,
.court-card,
.judge-card {
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.region-card:hover,
.court-card:hover,
.judge-card:hover {
  border-color: rgba(15, 122, 97, .45);
  box-shadow: 0 12px 28px rgba(20, 26, 31, .08);
  text-decoration: none;
}

.card-meta,
.muted {
  color: var(--muted);
  font-size: 14px;
}

.judge-card__snippet {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 750;
}

.page-hero {
  padding: 38px 0 34px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  margin-top: 12px;
  font-size: clamp(32px, 4vw, 50px);
}

.page-hero p {
  max-width: 820px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs__current {
  color: var(--ink);
  font-weight: 700;
}

.page-layout {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 34px auto 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

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

.content-panel {
  display: grid;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.content-card h2 {
  margin-bottom: 14px;
}

.content-card h3 {
  margin: 16px 0 8px;
}

.content-card p + p,
.textpage p + p {
  margin-top: 12px;
}

.toc-card {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 12px;
}

.toc-card a {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.toc-card a:last-child {
  border-bottom: 0;
}

.table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.table table,
.content-card > table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table table {
  width: max-content;
  min-width: 720px;
  max-width: none;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
}

.faq-item p {
  padding: 0 18px 18px;
  color: var(--muted);
}

.step-card {
  padding: 16px;
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.cta-band {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 44px auto;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.cta-band p {
  opacity: .78;
  margin-top: 6px;
}

.cta-band--info {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.cta-band--info h2,
.cta-band--info p {
  color: var(--ink);
}

.cta-band--info p {
  opacity: 1;
  color: var(--muted);
}

.site-footer {
  margin-top: 54px;
  padding: 34px 0;
  background: #121418;
  color: #fff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1fr;
  gap: 28px;
}

.site-footer .brand__mark {
  background: #fff;
  color: var(--accent-strong);
}

.footer-brand {
  align-items: flex-start;
}

.footer-brand p,
.footer-note p,
.footer-note span {
  color: rgba(255, 255, 255, .72);
}

.footer-nav {
  display: grid;
  gap: 10px;
}

.footer-nav a {
  color: #fff;
}

.textpage,
.page {
  width: 100%;
}

.textpage ul,
.content-card ul {
  padding-left: 20px;
}

.block {
  display: block;
  margin: 12px 0 22px;
}

.g {
  display: none;
}

.map {
  min-height: 260px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
}

#map {
  min-height: 260px;
}

.information {
  display: flex;
  gap: 18px;
  align-items: center;
}

.information img,
.judge-photo {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.review {
  padding: 16px;
  margin-top: 12px;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.review_text {
  margin-top: 8px;
}

.desk b,
.desk strong {
  display: block;
  margin-top: 10px;
}

.desk b:first-child,
.desk strong:first-child {
  margin-top: 0;
}

.court-contact-text {
  max-width: 760px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list div:last-child {
  border-bottom: 0;
}

.contact-list dt {
  color: var(--muted);
  font-weight: 800;
}

.contact-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

form {
  display: grid;
  gap: 14px;
}

.elem label {
  display: block;
  margin-bottom: 6px;
  font-weight: 750;
}

.stars {
  display: inline-flex;
  gap: 4px;
}

.star {
  width: 26px;
  height: 26px;
  display: inline-block;
  background: url("/css/staroff.svg") center / contain no-repeat;
  cursor: pointer;
}

.star.active {
  background-image: url("/css/star.svg");
}

form#comment .elem.error input,
form#comment .elem.error textarea {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.elem_error {
  margin-top: 14px;
}

.elem_error span {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.elem_error.error span {
  border: 1px solid rgba(180, 35, 24, 0.25);
  background: #fff1f0;
  color: #8a1f16;
}

.elem_error.good span {
  border: 1px solid rgba(8, 128, 98, 0.25);
  background: #e9f8f2;
  color: #006b52;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

@media (max-width: 920px) {
  .site-header__inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    width: 100%;
  }

  .hero__grid,
  .page-layout,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .pathway-grid,
  .feature-grid,
  .steps-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc-card {
    position: static;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .wrapper,
  .site-header__inner,
  .site-footer__inner,
  .page-wrap,
  .content-section,
  .page-layout,
  .page-hero__inner,
  .hero__grid,
  .cta-band {
    width: min(100% - 24px, var(--wrap));
  }

  .hero {
    padding: 40px 0 30px;
  }

  h1 {
    font-size: 31px;
    line-height: 1.18;
  }

  .stats-grid,
  .pathway-grid,
  .feature-grid,
  .steps-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .cta-band,
  .information {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-card,
  .hero-panel {
    padding: 18px;
  }

  .pathway-grid--two,
  .search-form,
  .contact-list div {
    grid-template-columns: 1fr;
  }

  .table table {
    min-width: 680px;
  }
}
