@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ink: #071426;
  --navy: #0a1729;
  --forest: #102a3d;
  --green: #7fa9a3;
  --brass: #c1a46b;
  --ivory: #c9d2d7;
  --paper: #dce3e6;
  --muted: #a7b2ba;
  --muted-2: #8795a0;
  --burgundy: #c88999;
  --surface: #101e32;
  --surface-2: #14263e;
  --surface-3: #1c314d;
  --line: rgba(210, 222, 229, 0.14);
  --line-strong: rgba(210, 222, 229, 0.28);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 42px rgba(0, 0, 0, 0.22);
  --shadow-lift: 0 24px 64px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes header-drop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 4%, rgba(64, 91, 122, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(18, 38, 63, 0.84), rgba(7, 20, 38, 0) 420px),
    var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
  text-transform: uppercase;
}

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 var(--line);
  border-radius: 8px;
  background: rgba(8, 20, 37, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px);
  animation: header-drop 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.site-header.is-scrolled {
  border-color: rgba(210, 222, 229, 0.2);
  background: rgba(7, 17, 32, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.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: var(--font-display);
  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.9rem;
  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(193, 164, 107, 0.1);
  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(14, 30, 50, 0.78);
}

.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(--brass);
  color: #071426;
}

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

.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(16, 30, 50, 0.9);
  cursor: pointer;
}

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

.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;
  filter: saturate(0.78) contrast(0.9);
  opacity: 0.48;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(7, 20, 38, 0.98) 0%,
    rgba(7, 20, 38, 0.88) 44%,
    rgba(7, 20, 38, 0.56) 74%,
    rgba(7, 20, 38, 0.28) 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: var(--font-display);
  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: var(--muted);
  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:
    radial-gradient(circle at 88% 0%, rgba(193, 164, 107, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(16, 42, 61, 0.78), rgba(10, 23, 41, 0.96)),
    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: var(--font-display);
  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;
  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(--brass);
  color: #071426;
  box-shadow: 0 14px 34px rgba(193, 164, 107, 0.2);
}

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

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(16, 30, 50, 0.74);
  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(7, 20, 38, 0), rgba(13, 28, 48, 0.96) 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: linear-gradient(180deg, rgba(20, 38, 62, 0.95), rgba(12, 26, 45, 0.95));
  box-shadow: var(--shadow-soft);
  animation: fade-up 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stat-item strong {
  display: block;
  color: var(--paper);
  font-family: var(--font-display);
  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(25, 45, 70, 0.84), rgba(9, 22, 40, 0.92)),
    var(--surface-2);
}

.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: var(--font-display);
  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(24, 45, 72, 0.9), rgba(12, 26, 45, 0.96)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  animation: fade-up 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.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(193, 164, 107, 0.92), rgba(127, 169, 163, 0.5));
  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(193, 164, 107, 0.34);
  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(11, 26, 46, 0.92), rgba(18, 35, 57, 0.92)),
    var(--surface);
}

.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 var(--line);
  border-left: 4px solid var(--brass);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(28, 49, 77, 0.78), rgba(13, 28, 48, 0.9)),
    var(--surface-2);
  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(--brass);
  color: #071426;
  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(16, 30, 50, 0.84);
  color: var(--muted);
  cursor: pointer;
}

.filter-button.is-active {
  border-color: rgba(193, 164, 107, 0.58);
  background: rgba(193, 164, 107, 0.12);
  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-details {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.content-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(193, 164, 107, 0.1);
  color: var(--paper);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.content-body {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  color: var(--muted);
  text-transform: none;
}

.content-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.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(24, 45, 72, 0.9), rgba(11, 24, 42, 0.96)),
    var(--surface);
  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: rgba(7, 20, 38, 0.84);
  color: var(--paper);
  padding: 12px 14px;
  outline: none;
  text-transform: uppercase;
  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(--brass);
}

.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(16, 30, 50, 0.84);
}

.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(24, 45, 72, 0.88), rgba(12, 26, 45, 0.95)),
    var(--surface);
  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;
}

.contact-list em,
.contact-strip a[href^="mailto:"],
.footer-contact a[href^="mailto:"] {
  text-transform: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(16, 42, 61, 0.88), rgba(9, 21, 39, 0.96)),
    var(--navy);
  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 var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

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

.footer-brand-title {
  display: block;
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.25;
}

.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;
  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(5, 14, 27, 0.52);
  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(--brass);
  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: var(--surface);
}

.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(193, 164, 107, 0.1);
  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: var(--font-display);
  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: var(--font-display);
  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;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-lead,
.hero-actions,
.section-heading,
.about-copy,
.about-panel,
.form-copy,
.form-panel,
.contact-list a,
.contact-list div,
.footer-brand-panel,
.footer-column {
  animation: fade-up 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-content h1 {
  animation-delay: 80ms;
}

.hero-lead {
  animation-delay: 160ms;
}

.hero-actions {
  animation-delay: 240ms;
}

.stat-item:nth-child(2),
.practice-card:nth-child(2),
.teaser-card:nth-child(2),
.info-card:nth-child(2),
.footer-column:nth-child(2) {
  animation-delay: 80ms;
}

.stat-item:nth-child(3),
.practice-card:nth-child(3),
.teaser-card:nth-child(3),
.info-card:nth-child(3),
.footer-column:nth-child(3) {
  animation-delay: 140ms;
}

.stat-item:nth-child(4),
.practice-card:nth-child(4),
.info-card:nth-child(4),
.footer-column:nth-child(4) {
  animation-delay: 200ms;
}

.button,
.lang-button,
.filter-button,
.brand-mark,
.footer-logo-link {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.brand:hover .brand-mark,
.footer-logo-link:hover,
.footer-logo-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.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(8, 20, 37, 0.98);
    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: none;
  }

  .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(7, 20, 38, 0.98) 0%,
      rgba(7, 20, 38, 0.9) 58%,
      rgba(7, 20, 38, 0.76) 100%
    );
  }

  .hero-content h1 {
    font-size: 2.55rem;
    line-height: 0.98;
  }

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

  .page-hero h1 {
    font-size: 2.05rem;
    line-height: 1.02;
  }

  .page-hero h1,
  .page-hero p,
  .section-heading h2,
  .practice-card h3,
  .content-card h3,
  .teaser-card h3,
  .info-card h3 {
    overflow-wrap: anywhere;
  }

  .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;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
