:root {
  color-scheme: light;
  --ink: #f7f3e9;
  --navy: #142437;
  --forest: #123f35;
  --green: #1f6f5b;
  --brass: #a8792d;
  --ivory: #1b2c27;
  --paper: #0f211d;
  --muted: #60706a;
  --muted-2: #7c8982;
  --burgundy: #6b2838;
  --surface: #fffdf7;
  --surface-2: #efe9dc;
  --surface-3: #e3dac9;
  --line: rgba(27, 44, 39, 0.14);
  --line-strong: rgba(27, 44, 39, 0.26);
  --shadow: 0 28px 80px rgba(55, 43, 24, 0.14);
  --shadow-soft: 0 14px 42px rgba(55, 43, 24, 0.08);
  --shadow-lift: 0 22px 54px rgba(55, 43, 24, 0.15);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.82), rgba(247, 243, 233, 0) 360px),
    var(--ink);
  color: var(--ivory);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 12px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 8px 18px;
  border: 1px solid rgba(27, 44, 39, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 16px 42px rgba(55, 43, 24, 0.08);
  backdrop-filter: blur(22px);
}

.site-header.is-scrolled {
  border-color: rgba(27, 44, 39, 0.18);
  background: rgba(255, 253, 247, 0.95);
  box-shadow: 0 18px 48px rgba(55, 43, 24, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 88px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(18, 63, 53, 0.18);
  border-radius: 8px;
  background:
    url("assets/kylogo-mark-header.png") center / contain no-repeat,
    #d6d8d4;
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(55, 43, 24, 0.1);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  color: var(--paper);
  font-size: 0.96rem;
  line-height: 1.2;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

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

.site-nav a,
.header-cta,
.footer-links a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.site-nav a {
  padding: 13px 14px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current,
.header-cta:hover,
.header-cta:focus-visible,
.header-cta.is-current,
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a.is-current {
  background: rgba(18, 63, 53, 0.08);
  color: var(--paper);
  outline: none;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  min-width: max-content;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 243, 233, 0.72);
}

.lang-button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
}

.lang-button.is-active {
  background: var(--forest);
  color: #fff9ec;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.78);
}

.nav-toggle {
  display: none;
}

.icon-button {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  cursor: pointer;
}

.icon-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  border-radius: 99px;
  background: var(--forest);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(790px, calc(100svh - 24px));
  overflow: hidden;
  padding: 154px 0 96px;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-legal-office-light.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(247, 243, 233, 0.97) 0%,
    rgba(247, 243, 233, 0.84) 42%,
    rgba(247, 243, 233, 0.34) 72%,
    rgba(247, 243, 233, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.hero-content h1 {
  max-width: 820px;
  margin: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 5.7vw, 5.7rem);
  font-weight: 600;
  line-height: 0.98;
}

.hero-lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: #3f504a;
  font-size: 1.16rem;
  line-height: 1.75;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 158px 0 84px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(18, 63, 53, 0.08), rgba(168, 121, 45, 0.08)),
    var(--ink);
}

.page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(168, 121, 45, 0), rgba(168, 121, 45, 0.5), rgba(168, 121, 45, 0));
  content: "";
}

.page-hero-inner {
  display: grid;
  max-width: 900px;
  gap: 18px;
}

.page-hero h1 {
  margin: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 4.4vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button svg,
.contact-strip svg,
.contact-list svg,
.admin-nav svg,
.admin-tools svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.button-primary {
  background: var(--forest);
  color: #fff9ec;
  box-shadow: 0 14px 30px rgba(18, 63, 53, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #185347;
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 253, 247, 0.76);
  color: var(--paper);
}

.button-danger {
  border-color: rgba(178, 67, 82, 0.48);
  background: rgba(107, 40, 56, 0.08);
  color: var(--burgundy);
}

.trust-band {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(247, 243, 233, 0), #eee7d8 42%);
  padding: 0 0 28px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  transform: translateY(-34px);
  margin-bottom: -34px;
}

.stat-item {
  min-height: 118px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow-soft);
}

.stat-item strong {
  display: block;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.stat-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.section {
  padding: 104px 0;
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.16), rgba(18, 63, 53, 0.025)),
    #efe9dc;
}

.section-heading {
  max-width: var(--container);
  margin-bottom: 40px;
}

.section-heading h2,
.about-copy h2,
.form-copy h2,
.contact-layout h2 {
  max-width: 820px;
  margin: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 3.6vw, 3.35rem);
  font-weight: 600;
  line-height: 1.03;
}

.section-heading p:not(.eyebrow),
.about-copy p,
.form-copy p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.practice-card,
.content-card,
.empty-state,
.admin-panel,
.login-card,
.admin-card,
.teaser-card,
.info-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 253, 247, 0.92)),
    rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow-soft);
}

.practice-card::before,
.content-card::before,
.teaser-card::before,
.info-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(168, 121, 45, 0.88), rgba(18, 63, 53, 0.4));
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}

.practice-card {
  min-height: 222px;
  padding: 28px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.practice-card:hover,
.practice-card:focus-within,
.content-card:hover,
.teaser-card:hover,
.teaser-card:focus-visible,
.info-card:hover {
  border-color: rgba(18, 63, 53, 0.24);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.practice-card:hover::before,
.content-card:hover::before,
.teaser-card:hover::before,
.teaser-card:focus-visible::before,
.info-card:hover::before {
  opacity: 1;
}

.practice-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(200, 164, 93, 0.42);
  border-radius: 8px;
  background: rgba(200, 164, 93, 0.1);
  color: var(--brass);
}

.practice-icon svg {
  width: 20px;
  height: 20px;
}

.practice-card h3,
.content-card h3,
.about-panel h3,
.admin-panel h2,
.login-card h1 {
  margin: 0;
  color: var(--paper);
  font-size: 1.18rem;
  line-height: 1.25;
}

.practice-card p,
.content-card p,
.empty-state p,
.about-panel li,
.login-card p,
.admin-card p,
.teaser-card p,
.info-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.teaser-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.68), rgba(239, 233, 220, 0.72)),
    #f5efe3;
}

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

.teaser-card,
.info-card {
  display: grid;
  gap: 12px;
  min-height: 214px;
  padding: 28px;
}

.teaser-card {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.teaser-card > span,
.info-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(168, 121, 45, 0.34);
  border-radius: 8px;
  background: rgba(168, 121, 45, 0.08);
  color: var(--brass);
}

.teaser-card svg,
.info-card svg {
  width: 20px;
  height: 20px;
}

.teaser-card h3,
.info-card h3,
.info-card h2 {
  margin: 0;
  color: var(--paper);
  font-size: 1.18rem;
  line-height: 1.25;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 44px;
  align-items: start;
}

.about-panel {
  padding: 32px;
  border: 1px solid rgba(18, 63, 53, 0.12);
  border-left: 4px solid var(--brass);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.46), rgba(18, 63, 53, 0.08)),
    rgba(18, 63, 53, 0.08);
  box-shadow: var(--shadow-soft);
}

.check-list {
  display: grid;
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff9ec;
  content: "✓";
  font-size: 0.78rem;
  font-weight: 900;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.78);
  color: var(--muted);
  cursor: pointer;
}

.filter-button.is-active {
  border-color: rgba(18, 63, 53, 0.5);
  background: rgba(18, 63, 53, 0.08);
  color: var(--paper);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.content-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--brass);
  font-size: 0.82rem;
}

.content-card footer {
  align-self: end;
  color: var(--muted-2);
  font-size: 0.84rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
}

.empty-state h3 {
  margin: 0;
  color: var(--paper);
}

.form-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 44px;
  align-items: start;
}

.form-panel {
  display: grid;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 253, 247, 0.96)),
    rgba(255, 253, 247, 0.96);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffef9;
  color: var(--paper);
  padding: 12px 14px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(200, 164, 93, 0.85);
  box-shadow: 0 0 0 3px rgba(200, 164, 93, 0.12);
}

.checkbox-line {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--forest);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-strip a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(255, 253, 247, 0.78);
}

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

.contact-list a,
.contact-list div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 253, 247, 0.9)),
    rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow-soft);
}

.contact-list svg {
  grid-row: 1 / span 2;
  color: var(--brass);
}

.contact-list strong {
  color: var(--paper);
  font-size: 0.95rem;
}

.contact-list em {
  color: var(--muted);
  font-style: normal;
}

.site-footer {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(18, 63, 53, 0.08), rgba(168, 121, 45, 0.09)),
    #ebe3d4;
  padding: 0;
}

.footer-main {
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(150px, 0.75fr));
  gap: 34px;
  align-items: start;
}

.footer-brand-panel {
  display: grid;
  gap: 18px;
  max-width: 430px;
}

.footer-logo-link {
  display: inline-flex;
  width: min(100%, 280px);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 247, 0.42);
  box-shadow: 0 18px 44px rgba(55, 43, 24, 0.14);
}

.footer-logo-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  color: var(--muted-2);
  font-size: 0.95rem;
}

.footer-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-column {
  display: grid;
  gap: 14px;
}

.footer-column h2 {
  margin: 0;
  color: var(--paper);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-column ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a,
.footer-column li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.footer-column a {
  border-radius: 6px;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible,
.footer-column a.is-current {
  color: var(--paper);
  outline: none;
}

.footer-contact li:last-child {
  color: var(--muted-2);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.54);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.84rem;
}

.footer-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
  color: var(--muted-2);
  font-size: 0.84rem;
}

.footer-credits a {
  color: var(--forest);
  font-weight: 800;
}

.admin-body {
  min-height: 100vh;
  background: var(--ink);
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #fffdf7;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 12px;
  text-align: left;
}

.admin-nav button.is-active,
.admin-nav button:hover,
.admin-nav button:focus-visible {
  border-color: var(--line);
  background: rgba(18, 63, 53, 0.08);
  color: var(--paper);
  outline: none;
}

.admin-sidebar-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.admin-main {
  display: none;
  min-width: 0;
  padding: 34px;
}

.admin-main.is-authenticated {
  display: block;
}

.admin-login {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
  padding: 24px;
}

.admin-login.is-hidden {
  display: none;
}

.login-card {
  width: min(100%, 430px);
  padding: 34px;
}

.login-card h1 {
  margin-top: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.login-card form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.login-card small {
  display: block;
  margin-top: 18px;
  color: var(--muted-2);
}

.login-mark {
  width: 108px;
  height: 72px;
  background:
    url("assets/kylogo-mark-header.png") center / contain no-repeat,
    #d6d8d4;
  font-size: 1.45rem;
}

.admin-topbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.admin-topbar h1 {
  margin: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-view {
  display: none;
}

.admin-view.is-active {
  display: block;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-card {
  padding: 22px;
}

.admin-card strong {
  display: block;
  color: var(--paper);
  font-size: 2rem;
  line-height: 1;
}

.admin-panel {
  padding: 24px;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: start;
}

.editor-form {
  display: grid;
  gap: 16px;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 243, 233, 0.72);
}

.admin-item h3 {
  margin: 0;
  color: var(--paper);
  font-size: 1rem;
}

.admin-item p {
  margin: 0;
  color: var(--muted);
}

.admin-item small {
  color: var(--muted-2);
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.item-actions button,
.item-actions select {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.86rem;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brass);
  font-size: 0.78rem;
}

@media (max-width: 1160px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
    left: 14px;
    right: 14px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 92px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 247, 0.97);
    box-shadow: var(--shadow-lift);
  }

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

  .site-nav a {
    min-height: 48px;
  }

  .header-actions {
    justify-self: end;
  }

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

  .practice-grid,
  .content-grid,
  .teaser-grid,
  .info-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout,
  .form-layout,
  .contact-layout,
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-main {
    padding: 24px;
  }

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

  .footer-brand-panel {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .container,
  .hero-content {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    top: 10px;
    left: 10px;
    right: 10px;
    min-height: 68px;
    padding: 8px 14px;
    gap: 10px;
  }

  .brand-mark {
    width: 78px;
    height: 50px;
  }

  .site-header .brand-text {
    display: grid;
  }

  .brand {
    gap: 8px;
  }

  .brand-text strong {
    font-size: 0.78rem;
  }

  .brand-text small {
    font-size: 0.64rem;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    inset-block-start: 86px;
  }

  .hero {
    min-height: calc(100svh - 22px);
    padding: 116px 0 58px;
  }

  .hero::after {
    background: linear-gradient(
      90deg,
      rgba(247, 243, 233, 0.97) 0%,
      rgba(247, 243, 233, 0.88) 58%,
      rgba(247, 243, 233, 0.54) 100%
    );
  }

  .hero-content h1 {
    font-size: clamp(2.38rem, 13vw, 3.42rem);
    line-height: 0.98;
  }

  .page-hero {
    padding: 120px 0 58px;
  }

  .page-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.1rem);
    line-height: 1.02;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading h2,
  .about-copy h2,
  .form-copy h2,
  .contact-layout h2 {
    font-size: 2rem;
  }

  .split-heading {
    grid-template-columns: 1fr;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .stat-grid,
  .practice-grid,
  .content-grid,
  .teaser-grid,
  .info-grid,
  .process-grid,
  .form-grid,
  .admin-stat-grid,
  .admin-list.compact {
    grid-template-columns: 1fr;
  }

  .form-panel,
  .admin-panel,
  .login-card {
    padding: 20px;
  }

  .footer-grid,
  .footer-bottom-inner {
    grid-template-columns: 1fr;
  }

  .footer-credits {
    justify-content: flex-start;
  }

  .footer-main {
    padding: 46px 0 30px;
  }

  .footer-logo-link {
    width: min(100%, 220px);
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 370px) {
  .site-header .brand-text {
    display: none;
  }

  .brand-mark {
    width: 70px;
    height: 48px;
  }
}
