@charset "utf-8";
/* Assembled: direction "clinical" (base) + design override + components + blocks + AI design.css. Generated — do not edit. */

/* self-hosted webfonts (from spec.meta.design.fontPair — resolve-fonts) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-400-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-400-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-600-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-600-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/spectral-600-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/spectral-600-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/spectral-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/spectral-700-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/spectral-700-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/spectral-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-500-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-500-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Direction: CLINICAL — doctors, dentists, laboratories, lawyers, accountants.
   Restrained teal/slate, generous white, small radii, minimal shadow, system
   sans throughout. Light palette complete on :root; dark redefines ONLY tokens.
   Contrast target: WCAG AA (verified in pre-deploy audit). */

:root {
  --brand:        #0f766e;
  --brand-strong: #0b544e;
  --brand-soft:   #e4f2f0;
  --on-brand:     #ffffff;

  --bg:        #ffffff;
  --surface:   #ffffff;
  --surface-2: #f1f5f5;
  --border:    #dae3e3;

  --text:        #131a1a;
  --text-muted:  #46595a;
  --text-subtle: #67797a;

  --ok:     #17703c;
  --warn:   #8a5200;
  --danger: #b3231d;

  --surface-inverse:      #0a1414;
  --surface-inverse-2: #152122;
  --on-inverse:   #eaf2f2;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Noto Sans", sans-serif;
  --font-display: var(--font);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.44rem, 1.25rem + 0.95vw, 2.05rem);
  --step-3:  clamp(1.73rem, 1.4rem + 1.6vw, 2.8rem);
  --step-4:  clamp(2.07rem, 1.55rem + 2.6vw, 3.8rem);
  --leading-tight: 1.15;
  --leading: 1.6;

  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem;
  --sp-4: 1rem;    --sp-5: 1.5rem;  --sp-6: 2rem;
  --sp-7: 3rem;    --sp-8: 4rem;    --sp-9: 6rem;

  --radius: 0.375rem;
  --radius-lg: 0.625rem;
  --radius-full: 999px;

  --shadow-1: 0 1px 2px rgb(15 40 40 / 0.05), 0 1px 3px rgb(15 40 40 / 0.06);
  --shadow-2: 0 4px 12px rgb(15 40 40 / 0.08);

  --measure: 68ch;
  --container: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand:        #4fd1c5;
    --brand-strong: #7ee0d7;
    --brand-soft:   #143331;
    --on-brand:     #06201d;

    --bg:        #0c1414;
    --surface:   #121d1d;
    --surface-2: #182626;
    --border:    #2a3b3b;

    --text:        #e6f0f0;
    --text-muted:  #a7bcbc;
    --text-subtle: #869a9a;

    --ok:     #5fd08c;
    --warn:   #e5b567;
    --danger: #ff8b84;

    --surface-inverse:      #071010;
    --surface-inverse-2: #101a1a;
    --on-inverse:   #e6f0f0;

    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.5);
    --shadow-2: 0 6px 18px rgb(0 0 0 / 0.55);
  }
}


/* per-site design override (from spec.meta.design) */
:root {
  --brand: #1f3a5f;
  --brand-strong: #192e4c;
  --brand-soft: #e0e3e9;
  --on-brand: #ffffff;
  --radius: 3px;
  --radius-lg: 5px;
  --radius-full: 6px;
  --sp-7: 4.5rem;
  --sp-8: 6.5rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Spectral", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

/* Component layer — direction-agnostic. Reads only from tokens defined by the
   selected direction (templates/directions/<name>/tokens.css). Do not put colour,
   font or radius literals here; add a token to every direction instead. */

/* ---------- 2. Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p, ul, ol, dl, table, address, figure { margin: 0 0 var(--sp-4); }
p:last-child, ul:last-child, ol:last-child, table:last-child { margin-bottom: 0; }
address { font-style: normal; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); }

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

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }

strong { font-weight: 650; }
small, .small { font-size: var(--step--1); }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.center { text-align: center; }
.big { font-size: var(--step-1); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- 3. Скелет ---------- */
.wrap, .container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 40rem) { .wrap, .container { padding-inline: var(--sp-5); } }

.section { padding-block: var(--sp-7); }
@media (min-width: 48rem) { .section { padding-block: var(--sp-8); } }
.section-alt, .section--tinted { background: var(--surface-2); }
.section-lead { max-width: var(--measure); color: var(--text-muted); font-size: var(--step-1); }

.narrow { max-width: 46rem; margin-inline: auto; }
.stack > * + * { margin-top: var(--sp-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

.skip, .skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--on-brand);
  padding: var(--sp-3) var(--sp-4); border-radius: 0 0 var(--radius) 0;
}
.skip:focus, .skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 4. Глава ---------- */
.site-head {
  background: var(--surface-inverse);
  color: var(--on-inverse);
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.head-inner {
  display: flex; align-items: center; gap: var(--sp-3);
  flex-wrap: wrap;
  padding-block: var(--sp-3);
}
.brand {
  display: flex; align-items: center; gap: var(--sp-3);
  color: inherit; text-decoration: none; margin-right: auto;
}
.brand-mark {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; flex: none;
  border-radius: var(--radius);
  background: var(--brand); color: #fff;
}
.brand-text { display: grid; line-height: 1.25; }
.brand-text strong { font-size: var(--step-0); }
.brand-text small { color: rgb(255 255 255 / 0.7); font-size: var(--step--1); }

.nav-toggle, .nav__toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgb(255 255 255 / 0.08); color: inherit;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius); padding: var(--sp-2) var(--sp-3);
  font: inherit; font-size: var(--step--1); cursor: pointer;
}
.nav-toggle:hover { background: rgb(255 255 255 / 0.16); }
.nav-toggle-bars {
  width: 1.05rem; height: 2px; background: currentColor; position: relative; display: block;
}
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav { display: none; flex-basis: 100%; }
.nav-toggle[aria-expanded="true"] + .nav { display: block; }
.nav ul { list-style: none; margin: 0; padding: var(--sp-2) 0 var(--sp-3); display: grid; gap: 1px; }
.nav a, .nav__link {
  display: block; padding: var(--sp-3) var(--sp-2);
  color: inherit; text-decoration: none;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.nav a:hover { color: #fff; background: rgb(255 255 255 / 0.06); }
.nav a[aria-current="page"] { color: #fff; font-weight: 650; }

.head-call { display: none; }

@media (min-width: 60rem) {
  .nav-toggle, .nav__toggle { display: none; }
  .nav { display: block; flex-basis: auto; }
  .nav ul { display: flex; gap: var(--sp-1); padding: 0; }
  .nav a {
    border-bottom: 2px solid transparent; border-radius: var(--radius);
    padding: var(--sp-2) var(--sp-3); font-size: var(--step--1);
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--brand); }
  .head-call { display: inline-flex; }
}

/* ---------- 5. Бутони ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; line-height: 1.25;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn-call, .btn--primary {
  background: var(--brand); border-color: var(--brand); color: var(--on-brand);
  box-shadow: var(--shadow-1);
}
.btn-call:hover, .btn--primary:hover {
  background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand);
}
.btn-ghost, .btn--ghost {
  background: transparent; border-color: currentColor; color: var(--brand);
}
.btn-ghost:hover, .btn--ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn-danger, .btn--danger {
  background: transparent; border-color: var(--danger); color: var(--danger);
}
.btn-danger:hover, .btn--danger:hover { background: var(--danger); color: #fff; }
.btn-lg, .btn--lg { padding: var(--sp-4) var(--sp-6); font-size: var(--step-1); }
.btn-small { padding: var(--sp-2) var(--sp-3); font-size: var(--step--1); }

.site-head .btn-ghost { color: #fff; }

/* ---------- 6. Херо ---------- */
.hero {
  background:
    linear-gradient(180deg, var(--surface-inverse) 0%, var(--surface-inverse-2) 100%);
  color: var(--on-inverse);
  padding-block: var(--sp-7) var(--sp-8);
}
.hero-inner { max-width: 54rem; }
.hero h1 { font-size: var(--step-4); margin-bottom: var(--sp-4); }
.hero .lead { color: rgb(255 255 255 / 0.82); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: var(--step--1); font-weight: 700;
  color: var(--brand); margin-bottom: var(--sp-3);
}
.hero .eyebrow { color: #9fc0fb; }
.lead { font-size: var(--step-1); max-width: var(--measure); }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.hero-actions.center { justify-content: center; }

.badges {
  list-style: none; padding: 0; margin-top: var(--sp-6);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3);
  font-size: var(--step--1);
}
.badges li, .badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-4);
}
.badges li::before { content: "✓"; font-weight: 700; color: #9fc0fb; }
.badge {
  background: var(--brand-soft); border-color: transparent; color: var(--brand-strong);
}

/* ---------- 7. Карти ---------- */
.cards {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.card h2, .card h3 { margin: 0; font-size: var(--step-1); }
.card h2 a, .card h3 a { color: inherit; text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--brand); text-decoration: underline; }
.card p { color: var(--text-muted); margin: 0; }
.card__body { display: grid; gap: var(--sp-2); }
.card__media { border-radius: var(--radius); overflow: hidden; }
.card-urgent { border-left: 4px solid var(--danger); }
.card-more { margin-top: auto; padding-top: var(--sp-2); }
.card-more a { font-weight: 600; text-decoration: none; }
.card-more a:hover { text-decoration: underline; }

.price {
  font-weight: 700;
  background: var(--brand-soft); color: var(--brand-strong);
  display: inline-block; padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius); font-size: var(--step--1);
  align-self: flex-start;
}
.price-big { font-size: var(--step-1); padding: var(--sp-2) var(--sp-4); }

/* ---------- 8. Стъпки ---------- */
.steps-wrap { max-width: 60rem; }
.steps {
  list-style: none; counter-reset: s; padding: 0; margin: 0;
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.steps li {
  counter-increment: s;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-5);
  color: var(--text-muted);
}
.steps li::before {
  content: counter(s);
  display: grid; place-items: center;
  width: 2rem; height: 2rem; margin-bottom: var(--sp-3);
  border-radius: var(--radius-full);
  background: var(--brand); color: var(--on-brand);
  font-weight: 700; font-size: var(--step--1);
}
.steps li strong { color: var(--text); }

/* ---------- 9. Разделени секции и панели ---------- */
.about-split, .article-split, .contact-split, .two-col {
  display: grid; gap: var(--sp-6);
}
@media (min-width: 56rem) {
  .about-split { grid-template-columns: 1.4fr 1fr; }
  .article-split { grid-template-columns: minmax(0, 1.6fr) 20rem; }
  .contact-split { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
}

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-1);
}
.box h2, .box h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.box h3 + table, .box h3 + p { margin-top: 0; }
.box > * + h3 { margin-top: var(--sp-5); }

@media (min-width: 56rem) {
  .sticky { position: sticky; top: 6rem; align-self: start; }
}

.facts { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-4); margin: 0; }
.facts dt { color: var(--text-subtle); font-size: var(--step--1); }
.facts dd { margin: 0; }

.hours { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.hours th, .hours td { text-align: left; padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); }
.hours th { font-weight: 500; color: var(--text-muted); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.emergency {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border-left: 3px solid var(--danger);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step--1);
  margin-top: var(--sp-4);
}
.nap { line-height: 1.8; }
.phone-big { font-size: var(--step-2); font-weight: 700; margin-block: var(--sp-4); }
.phone-big a { text-decoration: none; }
.phone-big a:hover { text-decoration: underline; }

/* ---------- 10. Въпроси ---------- */
.faq { display: grid; gap: var(--sp-2); max-width: var(--measure); }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-3) var(--sp-4);
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
  cursor: pointer; font-weight: 600; padding: var(--sp-1) 0;
  list-style-position: outside;
}
.faq summary::marker { color: var(--brand); }
.faq details > *:not(summary) { color: var(--text-muted); margin-top: var(--sp-2); }
.faq-list { max-width: none; }

/* ---------- 11. Път, текст, призив ---------- */
.crumbs {
  padding-block: var(--sp-4) 0;
  font-size: var(--step--1); color: var(--text-subtle);
}
.crumbs a { color: var(--text-muted); }

/* Списъкът, който rich() произвежда от редове с „- “. */
.list { padding-left: 1.25em; }
.list li { color: var(--text-muted); }
.list li + li { margin-top: var(--sp-2); }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--sp-6); }
.prose h3 { margin-top: var(--sp-5); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--sp-2); }
.prose > p, .prose li { color: var(--text-muted); }
.prose .lead, .prose strong { color: var(--text); }

.cta { background: var(--brand); color: var(--on-brand); }
.cta-inner { max-width: 46rem; }
.cta h2 { color: var(--on-brand); }
.cta p { color: color-mix(in srgb, var(--on-brand) 85%, transparent); }
.cta .btn-call {
  background: var(--on-brand); border-color: var(--on-brand); color: var(--brand-strong);
}
.cta .btn-call:hover { background: #fff; color: var(--brand-strong); }
.cta .btn-ghost { color: var(--on-brand); }
.cta .btn-ghost:hover { background: rgb(255 255 255 / 0.14); color: var(--on-brand); }

/* ---------- 12. Форми ---------- */
.field { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field label, .field__label { font-weight: 600; font-size: var(--step--1); }
.req { color: var(--danger); }

input[type="text"], input[type="tel"], input[type="email"], input[type="password"],
input[type="number"], input[type="time"], input[type="url"], select, textarea,
.field__input {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  min-height: 2.75rem;
}
textarea { min-height: 8rem; resize: vertical; line-height: var(--leading); }
select { appearance: none; padding-right: var(--sp-6); background-image: none; }
input:hover, select:hover, textarea:hover { border-color: var(--text-subtle); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--danger); background: color-mix(in srgb, var(--danger) 6%, var(--bg));
}
input::placeholder, textarea::placeholder { color: var(--text-subtle); }

.err, .field__error { color: var(--danger); font-size: var(--step--1); font-weight: 600; }
.hint, .field__hint { color: var(--text-subtle); font-size: var(--step--1); }

.field-check { grid-template-columns: 1fr; }
.field-check label {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3);
  align-items: start; font-weight: 400; font-size: var(--step--1);
  line-height: var(--leading);
}
.field-check input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--brand); }

.prefix { display: flex; align-items: center; gap: var(--sp-2); }
.prefix span { color: var(--text-subtle); font-size: var(--step--1); white-space: nowrap; }

/* Приманка за ботове. CSP не позволява вграден стил, затова е тук. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-box { align-self: start; }
.form-narrow { max-width: 34rem; }
.form-wide { max-width: 60rem; }
.consent-text { color: var(--text-muted); font-size: var(--step--1); }

.hours-edit { display: grid; gap: var(--sp-4); }
.hours-edit fieldset {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-4); margin: 0;
  display: grid; gap: var(--sp-3);
}
.hours-edit legend { font-weight: 650; padding-inline: var(--sp-2); }
@media (min-width: 46rem) {
  .hours-edit fieldset { grid-template-columns: repeat(4, 1fr); align-items: end; }
}
.danger-form {
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

/* ---------- 13. Съобщения, етикети ---------- */
.alert {
  border: 1px solid var(--border); border-left-width: 4px;
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-2);
  margin-bottom: var(--sp-5);
}
.alert-good, .alert--ok {
  border-left-color: var(--ok); color: var(--ok);
  background: color-mix(in srgb, var(--ok) 8%, var(--surface));
}
.alert-bad, .alert--danger {
  border-left-color: var(--danger); color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
}
.alert--warn {
  border-left-color: var(--warn); color: var(--warn);
  background: color-mix(in srgb, var(--warn) 8%, var(--surface));
}
.msg { margin-bottom: var(--sp-4); }
.locked { color: var(--danger); font-weight: 600; }

.pill {
  display: inline-block; padding: 0.1rem var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--step--1); font-weight: 650; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted);
}
.pill-new { background: var(--brand-soft); color: var(--brand-strong); border-color: transparent; }
.pill-in_progress {
  background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--warn);
  border-color: transparent;
}
.pill-done {
  background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok);
  border-color: transparent;
}
.pill-spam {
  background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger);
  border-color: transparent;
}

.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.chip {
  display: inline-block; padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  background: var(--surface); color: var(--text-muted);
  text-decoration: none; font-size: var(--step--1); font-weight: 600;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip-on {
  background: var(--brand); border-color: var(--brand); color: var(--on-brand);
}
.chip-on:hover { color: var(--on-brand); }

/* ---------- 14. Таблици и плочки (администрация) ---------- */
.grid, .table {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: var(--sp-5);
  font-size: var(--step--1);
  display: block; overflow-x: auto;
}
.grid thead, .table thead { background: var(--surface-2); }
.grid th, .grid td, .table th, .table td {
  text-align: left; padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.grid th { font-weight: 650; white-space: nowrap; }
.grid tbody tr:last-child th, .grid tbody tr:last-child td { border-bottom: 0; }
.grid tbody tr:hover { background: var(--surface-2); }
.row-bad { background: color-mix(in srgb, var(--danger) 7%, transparent); }
.row-bad:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }

.tiles {
  display: grid; gap: var(--sp-4); margin-bottom: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}
.tile {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: var(--sp-4);
  color: inherit; text-decoration: none;
  display: grid; gap: var(--sp-1);
}
.tile:hover { background: var(--surface-2); color: inherit; }
.tile strong { font-size: var(--step-2); line-height: 1; }
.tile span { color: var(--text-muted); font-size: var(--step--1); }

/* ---------- 15. Подвал ---------- */
.site-foot {
  background: var(--surface-inverse); color: var(--on-inverse);
  padding-block: var(--sp-7) var(--sp-5);
  margin-top: var(--sp-8);
}
.site-foot a { color: #b9d0fa; }
.site-foot a:hover { color: #fff; }
.site-foot .muted { color: rgb(255 255 255 / 0.62); }
.foot-grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.foot-h {
  font-size: var(--step-0); text-transform: uppercase;
  letter-spacing: 0.06em; color: rgb(255 255 255 / 0.6);
  margin-bottom: var(--sp-3);
}
.foot-list { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.foot-list.big { gap: var(--sp-3); font-size: var(--step-0); }
.site-foot .hours th { color: rgb(255 255 255 / 0.7); }
.site-foot .hours th, .site-foot .hours td { border-bottom-color: rgb(255 255 255 / 0.12); }
.site-foot .emergency {
  background: rgb(255 255 255 / 0.08);
  border-left-color: #ff9f99;
}
.foot-bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

/* Постоянен бутон за обаждане, само на телефон. */
.call-bar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: block; text-align: center;
  background: var(--brand); color: var(--on-brand);
  padding: var(--sp-4); font-weight: 700; text-decoration: none;
  box-shadow: 0 -2px 10px rgb(0 0 0 / 0.18);
}
.call-bar:hover { background: var(--brand-strong); color: var(--on-brand); }
@media (min-width: 60rem) { .call-bar { display: none; } }
@media (max-width: 59.99rem) { body { padding-bottom: 4rem; } }

/* ---------- 16. Администрация ---------- */
body.admin { background: var(--surface-2); }
.adm-head { background: var(--surface-inverse); color: var(--on-inverse); }
.adm-head-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  padding-block: var(--sp-3);
}
.adm-brand {
  color: inherit; text-decoration: none; font-weight: 700; margin-right: auto;
}
.adm-nav { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.adm-nav a {
  color: rgb(255 255 255 / 0.82); text-decoration: none;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius);
  font-size: var(--step--1);
}
.adm-nav a:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
.adm-out { margin: 0; }
.adm-out .btn { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.2); color: #fff; }
.adm-out .btn:hover { background: rgb(255 255 255 / 0.2); color: #fff; }

.adm-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-block: var(--sp-5);
  max-width: var(--container);
}
.adm-main h1 { font-size: var(--step-2); }
.adm-main h2 { font-size: var(--step-1); margin-top: var(--sp-6); }
.adm-main h2:first-of-type { margin-top: var(--sp-4); }
.adm-main h3 { font-size: var(--step-0); margin-top: var(--sp-5); }
.adm-foot { padding-bottom: var(--sp-6); }

.login-page { display: grid; place-items: center; min-height: 70vh; padding: var(--sp-5); }
.login-card {
  width: 100%; max-width: 26rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  box-shadow: var(--shadow-2);
}
.login-card h1 { font-size: var(--step-2); }

/* ---------- 17. Движение и печат ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

@media print {
  .site-head, .call-bar, .nav-toggle, .cta, .site-foot .foot-list, .skip { display: none; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  a { text-decoration: underline; }
}

/* ============================================================================
   Section blocks — styles for app/views/blocks/*.php
   TOKEN-ONLY: reference only CSS custom properties (--brand*, --surface*, --text*,
   --sp-*, --step-*, --radius*, --shadow*, --surface-inverse*, --on-inverse).
   Name NO raw colour/size/radius literal — if a colour is genuinely new, add a
   token to every templates/directions/<name>/tokens.css instead. Reuse the
   primitives from components.css (.wrap, .section, .section-alt, .cards, .box,
   .stack, .cluster, .hero-actions) before adding a class.
   Concatenated after components.css by build-style.mjs.
   ============================================================================ */

/* ---------- hero variants ---------- */
/* Base .hero / .hero-inner / .eyebrow / .lead / .badges live in components.css.
   These modifiers only change composition, not colour. */
.hero--centered .hero-inner { text-align: center; }
.hero--centered .hero-actions,
.hero--centered .badges { justify-content: center; }
.hero--split .hero-inner { max-width: var(--measure); }
/* image hero — a photo behind the inverse band; CSP blocks inline styles, so the
   image is a real <img>, darkened by a scrim so --on-inverse text stays legible. */
.hero--image { position: relative; isolation: isolate; }
.hero--image .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero--image::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in oklab, var(--surface-inverse) 68%, transparent); }

/* ---------- services — 'list' variant ---------- */
/* Compact one-line rows (name · summary · price). The default 'cards' variant
   reuses the existing .cards grid and needs no CSS. */
.services--list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--sp-2);
  max-width: var(--measure);
}
.services--list li {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.services--list a { font-weight: 600; text-decoration: none; }
.services--list a:hover { text-decoration: underline; }
.services--list span:not(.price) {
  color: var(--text-muted); font-size: var(--step--1);
  flex: 1 1 12rem;
}
.services--list .price { margin-left: auto; }

/* ---------- process — 'timeline' variant ---------- */
/* Vertical stepped rail. The default 'numbered' variant reuses .steps unchanged. */
.process--timeline .steps {
  display: block;
  max-width: 44rem;
  margin-inline: auto;
}
.process--timeline .steps li {
  position: relative;
  margin-left: 1rem;
  padding: 0 0 var(--sp-6) var(--sp-6);
  border: 0;
  border-left: 2px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.process--timeline .steps li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.process--timeline .steps li::before {
  position: absolute;
  left: -1rem;
  top: 0;
  margin-bottom: 0;
}

/* ---------- faq — 'two-col' variant ---------- */
.faq--two-col { max-width: none; }
@media (min-width: 48rem) {
  .faq--two-col { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- emergency_cta ---------- */
.emergency-cta {
  background: color-mix(in oklab, var(--danger) 12%, var(--surface));
  color: var(--text);
  border-block: 1px solid color-mix(in oklab, var(--danger) 22%, var(--surface));
}
.emergency-cta h2 { color: var(--text); }
.emergency-cta .lead { color: var(--text-muted); max-width: var(--measure); }
/* compact strip — heading + subcopy + button on one row, wraps when narrow */
.emergency-cta--inline { padding-block: var(--sp-5); }
.emergency-cta--inline .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--sp-3) var(--sp-5);
}
.emergency-cta--inline h2 { margin: 0; font-size: var(--step-1); }
.emergency-cta--inline .lead { flex: 1 1 16rem; margin: 0; font-size: var(--step-0); }
.emergency-cta--inline .hero-actions { margin: 0; margin-left: auto; }

/* ---------- contact_cta — 'split' variant ---------- */
/* Persuasive copy left, a compact contact-details card right (.box + .facts).
   The default 'centered' variant reuses .cta and needs no CSS of its own. */
.contact-cta--split .wrap { display: grid; gap: var(--sp-6); }
@media (min-width: 56rem) {
  .contact-cta--split .wrap { grid-template-columns: 1.5fr 1fr; align-items: center; }
}
/* The .box sits on --surface but inherits color:var(--on-brand) from the .cta band;
   reset so any plain text inside it stays readable. */
.contact-cta--split .box { color: var(--text); }

/* ---------- a11y: focus ring on --brand bands ---------- */
/* The global :focus-visible outline is var(--brand); on a .cta band (background
   var(--brand)) it would be invisible. Use --on-brand there so keyboard focus on
   the primary CTA stays visible. */
.cta :focus-visible { outline-color: var(--on-brand); }

/* ---------- gallery ---------- */
.gallery { list-style: none; padding: 0; margin: 0; }
/* grid (default) — auto-fit responsive grid, mirrors the .cards pattern */
.gallery--grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.gallery-item { display: flex; flex-direction: column; gap: var(--sp-2); }
/* real photo (resolve-images filled a src); matches the placeholder frame's shape */
.gallery-item__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); background: var(--surface-2); }
.gallery--masonry .gallery-item__img { aspect-ratio: auto; height: auto; } /* natural heights */
/* Placeholder frame — swap the inner <span> for an <img> when the image
   pipeline lands; the frame wrapper, ratio and radius stay put. */
.gallery-item__frame {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 3;
  padding: var(--sp-4);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted); /* reading text (image description) — --text-muted clears AA 4.5 on --surface-2; --text-subtle did not */
  font-size: var(--step--1);
  overflow: hidden;
}
.gallery-item__caption {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--step--1);
}
/* masonry — column flow with varied frame heights */
.gallery--masonry { columns: 16rem 3; column-gap: var(--sp-4); }
.gallery--masonry .gallery-item { break-inside: avoid; margin-bottom: var(--sp-4); }
.gallery--masonry .gallery-item__frame { aspect-ratio: 3 / 4; }
.gallery--masonry .gallery-item:nth-child(3n) .gallery-item__frame { aspect-ratio: 1 / 1; }
.gallery--masonry .gallery-item:nth-child(4n) .gallery-item__frame { aspect-ratio: 4 / 3; }

/* ============================================================================
   Design axes — per-site variety from spec.meta.design.
   Colour / shape / density / fonts are TOKEN overrides emitted by build-style.
   These are the STRUCTURAL axes, applied via body classes (render-spec → body_class):
   the brand monogram, nav position, and surface treatment. Token-only, both themes.
   ============================================================================ */

/* brand monogram (header mark) — per-business initial; replaces any fixed glyph */
.brand-mark {
  display: inline-grid; place-items: center;
  width: 2.1rem; height: 2.1rem; flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--brand); color: var(--on-brand);
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-0); line-height: 1;
}

/* nav position (design.nav) */
.nav-center .head-inner .nav { margin-inline: auto; }
.nav-right .head-inner .nav  { margin-left: auto; }
.nav-left .head-inner .nav   { margin-right: auto; }

/* surface treatment (design.surface): flat = default; soft/bold = brand-infused
   gradients on the hero + CTA bands (token-composed, no raw colour). */
.surface-soft .hero {
  background: linear-gradient(160deg, var(--surface-inverse), color-mix(in oklab, var(--surface-inverse) 62%, var(--brand-strong)));
}
.surface-bold .hero {
  background: linear-gradient(155deg, var(--brand-strong), var(--surface-inverse));
}
.surface-soft .cta,
.surface-bold .cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

/* ===== AI-authored design.css (per-site visual system) ===== */
/* =============================================================================
   "СТАТУТ" / STATUTE — visual system for a Sofia corporate & commercial law firm
   -----------------------------------------------------------------------------
   Concept: a legal instrument. Warm archival paper, deep ink navy, one brass
   accent used only for rules and numerals. Everything is sharp-cornered and
   flat: no radii, no soft shadows — structure is drawn with hairlines, the way
   a deed or a balance sheet is. Content is numbered (case-file numerals in a
   monospace face). On desktop the navigation becomes a standing navy rail on
   the left edge — the spine of the document — and the content column reads as
   the page itself.

   Type: Spectral (editorial serif) for headings and running legal prose,
   Inter for interface text, JetBrains Mono for labels, numerals and hours.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* --- required palette ------------------------------------------------- */
  --bg:           #F7F5F0;   /* archival paper                              */
  --surface:      #FFFFFF;   /* the sheet                                   */
  --surface-2:    #EDE9E0;   /* deeper paper band                           */
  --text:         #14202E;   /* ink                                         */
  --text-muted:   #45535F;
  --text-subtle:  #5E6B75;
  --brand:        #1F3A5F;   /* counsel navy                                */
  --brand-strong: #132840;
  --brand-soft:   #E4E9F0;
  --on-brand:     #F7F5F0;
  --border:       #D9D3C7;   /* hairline, warm                              */
  --danger:       #A32B1E;

  /* --- extended system -------------------------------------------------- */
  --accent:       #7A5A1F;   /* brass — rules, numerals, seals              */
  --accent-line:  #B79246;
  --rail:         #132840;   /* the standing navy rail; constant in both modes */
  --rail-2:       #0E1F33;
  --on-rail:      #EFEDE7;
  --rail-muted:   #AEBCCB;
  --rail-line:    rgba(239, 237, 231, .16);
  --rail-accent:  #C9A961;
  --hairline:     1px solid var(--border);

  /* --- type ------------------------------------------------------------- */
  --font-display: "Spectral", "PT Serif", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--2: clamp(.688rem, .672rem + .08vw, .75rem);
  --step--1: clamp(.78rem,  .757rem + .11vw, .844rem);
  --step-0:  clamp(1rem,    .977rem + .12vw, 1.063rem);
  --step-1:  clamp(1.125rem, 1.08rem + .22vw, 1.25rem);
  --step-2:  clamp(1.313rem, 1.22rem + .46vw, 1.625rem);
  --step-3:  clamp(1.563rem, 1.37rem + .96vw, 2.25rem);
  --step-4:  clamp(1.875rem, 1.5rem + 1.86vw, 3.125rem);
  --step-5:  clamp(2.25rem,  1.6rem + 3.24vw, 4.5rem);

  --tracking-label: .17em;

  /* --- rhythm ----------------------------------------------------------- */
  --space-section: clamp(3.75rem, 2.2rem + 6vw, 7.5rem);
  --space-block:   clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  --rail-w: 17rem;
  --measure: 66ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0E141C;
    --surface:      #141C26;
    --surface-2:    #1B2531;
    --text:         #E8E6E0;
    --text-muted:   #A9B4BF;
    --text-subtle:  #8492A0;
    --brand:        #7FA8D9;
    --brand-strong: #A6C4E8;
    --brand-soft:   #1E2E44;
    --on-brand:     #0B1119;
    --border:       #2C3846;
    --danger:       #E8776A;

    --accent:       #C9A961;
    --accent-line:  #8A7233;
    --rail:         #0B1119;
    --rail-2:       #080D14;
    --rail-line:    rgba(239, 237, 231, .13);
  }
}

/* -----------------------------------------------------------------------------
   2. DOCUMENT
   -------------------------------------------------------------------------- */

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

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

::selection { background: var(--brand); color: var(--on-brand); }

:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.012em;
  text-wrap: balance;
  overflow-wrap: break-word;
  color: var(--text);
}

a { color: var(--brand); text-underline-offset: .18em; }

/* -----------------------------------------------------------------------------
   3. HEADER — mobile: navy band.  desktop: standing left rail.
   -------------------------------------------------------------------------- */

.site-head {
  position: relative;
  z-index: 20;
  background: var(--rail);
  background-image: linear-gradient(180deg, var(--rail) 0%, var(--rail-2) 100%);
  color: var(--on-rail);
  border-block-end: 3px solid var(--rail-accent);
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  padding-block: 1rem;
}

/* --- brand ------------------------------------------------------------- */

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: inherit;
  margin-inline-end: auto;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--rail-accent);
  border: 1px solid var(--rail-accent);
  box-shadow: inset 0 0 0 1px rgba(201, 169, 97, .22);
  background: transparent;
}

.brand-text {
  display: block;
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--on-rail);
  overflow-wrap: anywhere;
}

.brand-text small {
  display: block;
  margin-block-start: .2rem;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .04em;
  color: var(--rail-muted);
  overflow-wrap: anywhere;
}

/* --- nav --------------------------------------------------------------- */

/* NB: no `display` is set on .nav itself, so a renderer that collapses the menu
   with [hidden] / inline styles keeps working; the disclosure state below is
   honoured when a toggle is wired up, and the menu simply stays open when not. */
.nav {
  flex: 1 1 100%;
  order: 4;
  min-width: 0;
}

.site-head:has(.nav-toggle[aria-expanded="true"]) .nav { display: block; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-block-start: 1px solid var(--rail-line);
}

.nav li { display: block; }

.nav a {
  display: block;
  padding: .7rem 0;
  margin-inline-end: 1.35rem;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rail-muted);
  border-block-end: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible { color: var(--on-rail); border-block-end-color: var(--rail-accent); }

.nav a[aria-current="page"] {
  color: var(--on-rail);
  border-block-end-color: var(--rail-accent);
}

/* --- mobile toggle ----------------------------------------------------- */

.nav-toggle {
  display: inline-grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--rail-line);
  border-radius: 0;
  background: transparent;
  color: var(--on-rail);
  cursor: pointer;
  order: 2;
}

.nav-toggle:hover { border-color: var(--rail-accent); }

.nav-toggle-bars {
  display: block;
  inline-size: 1.15rem;
  block-size: 1px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  block-size: 1px;
  background: currentColor;
}

.nav-toggle-bars::before { inset-block-start: -6px; }
.nav-toggle-bars::after  { inset-block-start: 6px; }

/* header call button sits on navy — invert it */
.head-call {
  order: 3;
  border-color: var(--rail-accent);
  background: transparent;
  color: var(--rail-accent);
  min-height: 2.75rem;
  padding-inline: 1rem;
}

.head-call:hover,
.head-call:focus-visible {
  background: var(--rail-accent);
  color: var(--rail-2);
  border-color: var(--rail-accent);
}

/* -----------------------------------------------------------------------------
   4. HERO — editorial, asymmetric, ruled right margin
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  border-block-end: var(--hairline);
  padding-block: clamp(3rem, 1.6rem + 6vw, 7rem) clamp(2.75rem, 1.6rem + 5vw, 6rem);
}

/* ruled "margin" of the page on the right */
.hero::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  inline-size: min(34%, 26rem);
  background-image: repeating-linear-gradient(90deg, transparent 0 27px, var(--border) 27px 28px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 85%);
          mask-image: linear-gradient(90deg, transparent, #000 85%);
  opacity: .85;
  pointer-events: none;
  z-index: -1;
  display: none;
}

/* the hero keeps the full wrap width and lets the TYPE set the asymmetry,
   so the ruled right margin stays visible beside the text column */
.hero-inner { position: relative; }

.hero-bg {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero--image { border-block-end: 3px solid var(--rail-accent); }

.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, var(--rail) 22%, rgba(19, 40, 64, .84) 58%, rgba(19, 40, 64, .55) 100%);
}

.hero--image .hero-inner h1,
.hero--image .hero-inner .lead,
.hero--image .hero-inner .badges li { color: var(--on-rail); }
.hero--image .hero-inner .eyebrow { color: var(--rail-accent); }
.hero--image .hero-inner .badges li { border-color: var(--rail-line); background: transparent; }
.hero--image .btn-ghost { color: var(--on-rail); border-color: var(--rail-line); }
.hero--image .btn-ghost:hover { background: var(--on-rail); color: var(--rail); border-color: var(--on-rail); }

.hero--centered .hero-inner { max-width: 50rem; margin-inline: auto; text-align: center; }
.hero--centered .eyebrow { justify-content: center; }
.hero--centered.hero h1 { max-width: 20ch; margin-inline: auto; }
.hero--centered.hero .lead { margin-inline: auto; }
.hero--centered.hero .hero-actions,
.hero--centered.hero .badges { justify-content: center; max-width: none; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 clamp(1rem, .7rem + 1vw, 1.6rem);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::after {
  content: "";
  flex: 0 0 auto;
  inline-size: clamp(1.75rem, 6vw, 4rem);
  block-size: 1px;
  background: var(--accent-line);
}

.hero h1 {
  margin: 0;
  max-width: 17ch;
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -.022em;
  font-weight: 600;
}

.hero .hero-actions,
.hero .badges { max-width: 44rem; }

.hero .lead,
.lead {
  margin: clamp(1.1rem, .8rem + 1vw, 1.75rem) 0 0;
  max-width: 46ch;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-block-start: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
}

.badges {
  list-style: none;
  margin: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem) 0 0;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) 0 0;
  border-block-start: var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
}

.badges li {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: var(--hairline);
  background: var(--surface);
  padding: .45rem .75rem;
}

/* -----------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .8rem 1.5rem;
  border: 1px solid var(--brand);
  border-radius: 0;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-ghost:hover,
.btn-ghost:focus-visible { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.btn-call { position: relative; }

/* -----------------------------------------------------------------------------
   6. SECTIONS — shared rhythm
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding-block: var(--space-section);
}

.section + .section { border-block-start: var(--hairline); }

.section-alt {
  background: var(--surface-2);
  border-block: var(--hairline);
}

/* `:not(.prose)` keeps the long-form article rhythm out of the section rule */
.section .wrap > h2,
.section .wrap > *:not(.prose) > h2 {
  position: relative;
  margin: 0 0 clamp(.85rem, .6rem + .8vw, 1.25rem);
  padding-block-start: clamp(1rem, .8rem + .8vw, 1.5rem);
  font-size: var(--step-3);
  max-width: 22ch;
  text-wrap: balance;
}

.section .wrap > h2::before,
.section .wrap > *:not(.prose) > h2::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 3.25rem;
  block-size: 2px;
  background: var(--accent-line);
}

/* interior-page titles that sit outside .prose */
.section .wrap > h1,
.section .wrap > *:not(.prose) > h1 {
  position: relative;
  margin: 0 0 clamp(1rem, .7rem + 1vw, 1.6rem);
  padding-block-start: clamp(1rem, .8rem + .8vw, 1.5rem);
  font-size: var(--step-4);
  letter-spacing: -.02em;
  max-width: 24ch;
}

.section .wrap > h1::before,
.section .wrap > *:not(.prose) > h1::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 3.25rem;
  block-size: 2px;
  background: var(--accent-line);
}

.section-lead {
  margin: 0 0 clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  max-width: 58ch;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-muted);
}

/* -----------------------------------------------------------------------------
   7. CARDS — a hairline ledger grid, each entry numbered
   -------------------------------------------------------------------------- */

.cards {
  counter-reset: card;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  /* 1px gutters + a 1px shadow ring on each card collapse into one continuous
     hairline grid, and trailing empty cells stay empty instead of filling in */
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  counter-increment: card;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  padding-block-start: clamp(2.6rem, 2rem + 1.6vw, 3.4rem);
  list-style: none;
}

.card::before {
  content: counter(card, decimal-leading-zero);
  position: absolute;
  inset-block-start: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  inset-inline-start: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .14em;
  color: var(--accent);
}

.card::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 2px;
  background: var(--accent-line);
  transform: scaleX(0);
  transform-origin: left;
}

.card:hover { background: var(--surface-2); }
.card:hover::after,
.card:focus-within::after { transform: scaleX(1); }

.card h3 {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.2;
}

.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--brand); text-decoration: underline; }

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--step--1);
  line-height: 1.7;
}

.card .price,
.price {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-block-start: auto;
  padding-block-start: .85rem;
  border-block-start: var(--hairline);
}

/* list variant of the services block */
.services--list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-block-start: var(--hairline);
}

.services--list li {
  border-block-end: var(--hairline);
  padding-block: 1.15rem;
}

.services--list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-decoration: none;
  color: var(--text);
}

.services--list a:hover { color: var(--brand); }
.services--list a::after { content: "→"; margin-inline-start: auto; color: var(--accent); }

/* -----------------------------------------------------------------------------
   8. PROCESS / STEPS — a numbered schedule against a rule
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 54rem;
  border-block-start: var(--hairline);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: clamp(1.25rem, 1rem + .8vw, 1.85rem) 0 clamp(1.25rem, 1rem + .8vw, 1.85rem) 4.25rem;
  border-block-end: var(--hairline);
  color: var(--text-muted);
  font-family: var(--font-display);
  line-height: 1.65;
}

.steps li strong,
.steps li b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--text);
  margin-block-end: .3rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: clamp(1.4rem, 1.1rem + .8vw, 2rem);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .12em;
  color: var(--accent);
}

.steps li::after {
  content: "";
  position: absolute;
  inset-inline-start: 2.6rem;
  inset-block: 0;
  inline-size: 1px;
  background: var(--border);
}

.process--timeline .steps li::after { background: var(--accent-line); opacity: .5; }

/* -----------------------------------------------------------------------------
   9. ABOUT SPLIT — a section mark in the left margin
   -------------------------------------------------------------------------- */

.about-split {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}

.about-split::before {
  content: "§";
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 2rem + 6vw, 7rem);
  line-height: .78;
  color: var(--accent);
  opacity: .5;
  border-block-start: 2px solid var(--accent-line);
  padding-block-start: clamp(.75rem, .5rem + 1vw, 1.5rem);
  align-self: start;
}

.about-split > div { min-width: 0; }

.about-split p {
  max-width: var(--measure);
  font-family: var(--font-display);
  color: var(--text-muted);
  line-height: 1.75;
}

.about-split .btn { margin-block-start: 1.75rem; }

.list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: var(--measure);
  display: grid;
  gap: 0;
  border-block-start: var(--hairline);
}

.list li {
  position: relative;
  padding: .75rem 0 .75rem 1.85rem;
  border-block-end: var(--hairline);
  color: var(--text-muted);
  font-size: var(--step--1);
}

.list li::before {
  content: "—";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
}

/* -----------------------------------------------------------------------------
   10. FAQ — a register of questions
   -------------------------------------------------------------------------- */

.faq {
  counter-reset: faq;
  border-block-start: var(--hairline);
  max-width: 62rem;
}

.faq h3 {
  counter-increment: faq;
  position: relative;
  margin: 0;
  padding: clamp(1.25rem, 1rem + .8vw, 1.75rem) 0 .5rem 3.25rem;
  font-size: var(--step-1);
  line-height: 1.3;
  break-after: avoid;
}

.faq h3::before {
  content: counter(faq, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: calc(clamp(1.25rem, 1rem + .8vw, 1.75rem) + .4rem);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--accent);
}

.faq > div {
  padding: 0 0 clamp(1.25rem, 1rem + .8vw, 1.75rem) 3.25rem;
  border-block-end: var(--hairline);
  color: var(--text-muted);
  font-family: var(--font-display);
  line-height: 1.75;
  max-width: 68ch;
  break-inside: avoid;
}

.faq > div p { margin: 0; }

.section .faq + .btn { margin-block-start: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); }

/* -----------------------------------------------------------------------------
   11. GALLERY
   -------------------------------------------------------------------------- */

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1px;
}

.gallery--grid { grid-auto-rows: 1fr; }

.gallery-item {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.gallery-item__img,
.gallery-item__frame {
  display: block;
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-2);
  border: var(--hairline);
}

.gallery-item__frame {
  position: relative;
}

.gallery-item__frame::after {
  content: "§";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-subtle);
}

.gallery-item__caption {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .06em;
  color: var(--text-subtle);
  line-height: 1.5;
}

.gallery--masonry {
  display: block;
  columns: 1;
  column-gap: 1rem;
}

.gallery--masonry .gallery-item {
  break-inside: avoid;
  margin-block-end: 1rem;
}

.gallery--masonry .gallery-item__img { aspect-ratio: auto; }

/* -----------------------------------------------------------------------------
   12. CTA BANDS
   -------------------------------------------------------------------------- */

.cta,
.emergency-cta {
  position: relative;
  background: var(--rail);
  background-image:
    linear-gradient(180deg, var(--rail) 0%, var(--rail-2) 100%);
  color: var(--on-rail);
  border-block: 0;
  border-block-start: 3px solid var(--rail-accent);
}

.section.cta + .section,
.section.emergency-cta + .section { border-block-start: 0; }

.cta::after,
.emergency-cta::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  background-image: repeating-linear-gradient(90deg, transparent 0 63px, var(--rail-line) 63px 64px);
  opacity: .8;
  pointer-events: none;
}

.cta .wrap,
.emergency-cta .wrap { position: relative; z-index: 1; }

.section.cta .wrap > h2,
.section.emergency-cta .wrap > h2,
.section.cta .wrap > * > h2,
.section.emergency-cta .wrap > * > h2 {
  color: var(--on-rail);
  font-size: var(--step-4);
  max-width: 20ch;
}

.section.cta .wrap > h2::before,
.section.emergency-cta .wrap > h2::before,
.section.cta .wrap > * > h2::before,
.section.emergency-cta .wrap > * > h2::before { background: var(--rail-accent); }

.cta p,
.emergency-cta p,
.emergency-cta .lead { color: var(--rail-muted); max-width: 52ch; }

.cta .btn-call,
.emergency-cta .btn-call {
  background: var(--rail-accent);
  border-color: var(--rail-accent);
  color: var(--rail-2);
}

.cta .btn-call:hover,
.emergency-cta .btn-call:hover {
  background: var(--on-rail);
  border-color: var(--on-rail);
  color: var(--rail-2);
}

.cta .btn-ghost,
.emergency-cta .btn-ghost {
  color: var(--on-rail);
  border-color: rgba(239, 237, 231, .38);
  background: transparent;
}

.cta .btn-ghost:hover,
.emergency-cta .btn-ghost:hover {
  background: var(--on-rail);
  color: var(--rail-2);
  border-color: var(--on-rail);
}

.cta.contact-cta--centered .cta-inner { text-align: center; max-width: 46rem; margin-inline: auto; }
.cta.contact-cta--centered .cta-inner > h2 { max-width: 24ch; margin-inline: auto; }
.cta.contact-cta--centered .cta-inner > p { margin-inline: auto; }
.cta.contact-cta--centered .hero-actions { justify-content: center; }

.cta.contact-cta--centered .cta-inner > h2::before { inset-inline-start: 50%; transform: translateX(-50%); }

.emergency-cta--inline {
  background: var(--surface);
  background-image: none;
  color: var(--text);
  border-block: var(--hairline);
  border-inline-start: 3px solid var(--danger);
}

.emergency-cta--inline::after { display: none; }

.section.emergency-cta--inline .wrap > h2,
.section.emergency-cta--inline .wrap > * > h2 { color: var(--text); }

.emergency-cta--inline p,
.emergency-cta--inline .lead { color: var(--text-muted); }
.emergency-cta--inline .btn-call { background: var(--danger); border-color: var(--danger); color: var(--on-brand); }
.emergency-cta--inline .btn-call:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.emergency-cta--inline .btn-ghost { color: var(--brand); border-color: var(--brand); }
.emergency-cta--inline .btn-ghost:hover { background: var(--brand); color: var(--on-brand); }
.section.emergency-cta--inline .wrap > h2::before,
.section.emergency-cta--inline .wrap > * > h2::before { background: var(--danger); }

/* -----------------------------------------------------------------------------
   13. INTERIOR PAGE PRIMITIVES
   -------------------------------------------------------------------------- */

/* --- breadcrumbs -------------------------------------------------------- */

.crumbs {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding-block: 1rem;
  border-block-end: var(--hairline);
  overflow-wrap: anywhere;
}

.crumbs ol,
.crumbs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .6rem;
  margin: 0;
  padding: 0;
}

.crumbs li { display: flex; align-items: center; gap: .6rem; }
.crumbs li + li::before { content: "/"; color: var(--accent); }
.crumbs a { color: var(--text-subtle); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text-muted); }

/* --- prose -------------------------------------------------------------- */

.prose {
  max-width: var(--measure);
  font-family: var(--font-display);
  font-size: var(--step-0);
  line-height: 1.78;
  color: var(--text-muted);
}

.prose > * + * { margin-block-start: 1.15em; }

.prose h1 {
  font-size: var(--step-4);
  color: var(--text);
  margin-block-end: .35em;
  letter-spacing: -.02em;
}

.prose h2 {
  position: relative;
  color: var(--text);
  font-size: var(--step-2);
  margin-block-start: 2.2em;
  padding-block-start: 1.1rem;
  border-block-start: var(--hairline);
}

.prose h2::before {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline-start: 0;
  inline-size: 3.25rem;
  block-size: 2px;
  background: var(--accent-line);
}

.prose h3 {
  color: var(--text);
  font-size: var(--step-1);
  margin-block-start: 1.9em;
}

.prose h4 {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-block-start: 1.8em;
}

.prose p { margin-block: 0; }

.prose strong { color: var(--text); font-weight: 600; }

.prose a { color: var(--brand); text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent); }

.prose ul,
.prose ol { padding-inline-start: 0; list-style: none; margin-block: 1.4em; }

.prose li { position: relative; padding-inline-start: 1.85rem; margin-block: .5em; }

.prose ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .75em;
  inline-size: .7rem;
  block-size: 1px;
  background: var(--accent-line);
}

.prose ol { counter-reset: p-ol; }
.prose ol > li { counter-increment: p-ol; }
.prose ol > li::before {
  content: counter(p-ol, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--accent);
}

.prose blockquote {
  margin-inline: 0;
  padding: 1.1rem 1.35rem;
  background: var(--brand-soft);
  border-inline-start: 2px solid var(--accent-line);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text);
}

.prose blockquote > :first-child { margin-block-start: 0; }

.prose hr { border: 0; border-block-start: var(--hairline); margin-block: 2.5em; }

.prose code,
code {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--surface-2);
  border: var(--hairline);
  padding: .1em .35em;
}

.prose img { border: var(--hairline); }

.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: var(--step--1); }
.prose th, .prose td { text-align: start; padding: .75rem .5rem; border-block-end: var(--hairline); }
.prose th { font-family: var(--font-mono); font-size: var(--step--2); text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle); font-weight: 500; }

/* --- box ---------------------------------------------------------------- */

.box {
  background: var(--surface);
  border: var(--hairline);
  border-inline-start: 3px solid var(--accent-line);
  padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  margin-block: var(--space-block);
}

.box > :first-child { margin-block-start: 0; }
.box > :last-child { margin-block-end: 0; }

.box h2,
.box h3 {
  font-size: var(--step-1);
  margin-block: 0 .65rem;
  border: 0;
  padding: 0;
}

.box h2::before, .box h3::before { display: none; }

.box p { color: var(--text-muted); margin-block: 0 .75rem; }
.box .btn { margin-block-start: .5rem; }

/* --- facts (a ledger of key/value rows) --------------------------------- */

.facts {
  margin: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem) 0;
  padding: 0;
  list-style: none;
  border-block-start: var(--hairline);
  font-size: var(--step--1);
}

.facts > div,
.facts > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1rem;
  padding-block: .8rem;
  border-block-end: var(--hairline);
}

.facts > li { color: var(--text); overflow-wrap: anywhere; }

.facts dt,
.facts > li > strong,
.facts > div > strong {
  flex: 0 0 auto;
  min-inline-size: 10rem;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.facts dd {
  margin: 0;
  color: var(--text);
  min-width: 0;
  overflow-wrap: anywhere;
}

/* a bare <dl class="facts"> becomes a two-column ledger of its own */
.facts dt { padding-block: .8rem .2rem; }
.facts dd { padding-block: 0 .8rem; border-block-end: var(--hairline); }

@media (min-width: 40em) {
  .facts {
    display: grid;
    grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr);
    align-items: baseline;
  }
  .facts > div,
  .facts > li { grid-column: 1 / -1; }
  .facts dt { padding-block: .8rem; border-block-end: var(--hairline); }
  .facts dd { padding-block: .8rem; }
}

/* --- contact form ------------------------------------------------------- */

.form-box {
  background: var(--surface);
  border: var(--hairline);
  border-block-start: 3px solid var(--brand);
  padding: clamp(1.25rem, 1rem + 1.6vw, 2.5rem);
  max-width: 42rem;
}

.form-box > :first-child { margin-block-start: 0; }

.form-box h2,
.form-box h3 {
  font-size: var(--step-2);
  margin-block: 0 1.25rem;
  padding: 0;
  border: 0;
}

.form-box h2::before, .form-box h3::before { display: none; }

.form-box p { color: var(--text-muted); font-size: var(--step--1); }

.form-box .btn { width: 100%; }

@media (min-width: 30em) {
  .form-box .btn { width: auto; }
}

/* -----------------------------------------------------------------------------
   14. FOOTER — the colophon
   -------------------------------------------------------------------------- */

.site-foot {
  position: relative;
  margin-block-start: 0;
  background: var(--rail);
  background-image: linear-gradient(180deg, var(--rail) 0%, var(--rail-2) 100%);
  color: var(--rail-muted);
  border-block-start: 3px solid var(--rail-accent);
  font-size: var(--step--1);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 1.4rem + 2vw, 3rem) clamp(1.5rem, 1rem + 2vw, 3rem);
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem) clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
}

.foot-grid > div { min-width: 0; }

.foot-h {
  margin: 0 0 1rem;
  padding-block-end: .75rem;
  border-block-end: 1px solid var(--rail-line);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--rail-accent);
}

.site-foot p { margin: 0 0 .65rem; }

.nap {
  line-height: 1.8;
  color: var(--rail-muted);
  overflow-wrap: anywhere;
}

.nap strong { display: block; color: var(--on-rail); font-family: var(--font-display); font-size: var(--step-0); font-weight: 600; margin-block-end: .35rem; }

.site-foot a { color: var(--rail-muted); text-decoration: none; }
.site-foot a:hover,
.site-foot a:focus-visible { color: var(--on-rail); text-decoration: underline; text-underline-offset: .2em; }

.hours {
  inline-size: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .02em;
}

.hours tr { border-block-end: 1px solid var(--rail-line); }
.hours tr:last-child { border-block-end: 0; }

.hours th {
  text-align: start;
  font-weight: 400;
  color: var(--rail-muted);
  padding-block: .5rem;
  padding-inline-end: .5rem;
}

.hours td {
  text-align: end;
  color: var(--on-rail);
  padding-block: .5rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .1rem;
}

.foot-list li { line-height: 1.55; }

.foot-list a {
  display: block;
  padding-block: .4rem;
  border-block-end: 1px solid transparent;
}

.foot-list a:hover { border-block-end-color: var(--rail-line); text-decoration: none; }

.site-foot .muted { color: var(--rail-muted); }
.site-foot .small,
.small { font-size: var(--step--2); line-height: 1.6; }

.muted { color: var(--text-muted); }

.foot-bottom {
  padding-block: 1.25rem 1.5rem;
  border-block-start: 1px solid var(--rail-line);
}

.foot-bottom p { margin: 0; color: var(--rail-muted); font-family: var(--font-mono); letter-spacing: .04em; }

/* -----------------------------------------------------------------------------
   15. STICKY MOBILE CALL BAR
   -------------------------------------------------------------------------- */

.call-bar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.5rem;
  padding: .75rem 1rem;
  background: var(--rail-accent);
  color: #12202E;
  border-block-start: 1px solid rgba(0, 0, 0, .25);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}

.call-bar:hover,
.call-bar:focus-visible { background: #DCC084; color: #12202E; }

/* keep the footer clear of the bar */
body:has(.call-bar) .site-foot { padding-block-end: 4rem; }

/* -----------------------------------------------------------------------------
   16. BREAKPOINTS
   -------------------------------------------------------------------------- */

/* --- 30em: hero decoration + two-up footer ------------------------------ */

@media (min-width: 34em) {
  .hero::after { display: block; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--masonry { columns: 2; }
}

/* --- 48em: about split, faq columns ------------------------------------- */

@media (min-width: 48em) {
  .about-split {
    grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr);
    align-items: start;
  }

  .faq--two-col {
    columns: 2;
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }

  .faq--two-col h3 { margin-block-start: 0; }

  .contact-cta--split .cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
  }

  .contact-cta--split .cta-inner h2 { grid-column: 1; margin-block-end: .75rem; }
  .contact-cta--split .cta-inner p { grid-column: 1; }
  .contact-cta--split .cta-inner .hero-actions { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; margin-block-start: 0; }

  .emergency-cta--band .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
  }

  .emergency-cta--band .wrap > h2 { grid-column: 1; grid-row: 1; margin-block-end: .5rem; }
  .emergency-cta--band .wrap > .lead { grid-column: 1; grid-row: 2; margin-block-start: 0; }
  .emergency-cta--band .wrap > .hero-actions { grid-column: 2; grid-row: 1 / span 2; margin-block-start: 0; }
}

/* --- 64em: four-up footer, roomier heroes ------------------------------- */

@media (min-width: 64em) {
  .foot-grid { grid-template-columns: 1.3fr .95fr 1fr 1fr; }
  .gallery--masonry { columns: 3; }
  .section .wrap > h2,
  .section .wrap > *:not(.prose) > h2 { font-size: var(--step-4); }

  /* the split hero drops its eyebrow into a true left margin, the way a
     statute prints its article number beside the article */
  .hero--split .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }

  .hero--split .hero-inner > * { grid-column: 2; }
  .hero--split .hero-inner > h1 { grid-row: 1; }

  .hero--split .hero-inner > .eyebrow {
    grid-column: 1;
    grid-row: 1;
    display: block;
    margin: 0;
    padding-block-start: .7rem;
    border-block-start: 2px solid var(--accent-line);
    line-height: 1.6;
  }

  .hero--split .hero-inner > .eyebrow::after { display: none; }

  /* the process block reads as a schedule pinned beside its heading */
  .steps-wrap {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }

  .steps-wrap > h2,
  .steps-wrap > .section-lead { grid-column: 1; }
  .steps-wrap > .section-lead { margin-block-end: 0; }

  .steps-wrap > .steps {
    grid-column: 2;
    grid-row: 1 / span 6;
    max-width: none;
  }
}

/* --- 72em: the standing rail -------------------------------------------- */

@media (min-width: 72em) {
  body:has(.site-head) { padding-inline-start: var(--rail-w); }

  .site-head {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    inline-size: var(--rail-w);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-block-end: 0;
    border-inline-end: 1px solid var(--rail-line);
    box-shadow: inset -3px 0 0 0 var(--rail-accent);
  }

  .head-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-block-size: 100%;
    max-width: none;
    inline-size: 100%;
    padding-block: 2.5rem 2rem;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-inline-end: 0;
    margin-block-end: 2.25rem;
  }

  .brand-mark { inline-size: 3.25rem; block-size: 3.25rem; font-size: 1.5rem; }
  .brand-text strong { font-size: var(--step-1); line-height: 1.25; }
  .brand-text small { margin-block-start: .5rem; }

  .nav { flex: 1 1 auto; order: 0; }

  .nav ul {
    flex-direction: column;
    gap: 0;
    border-block-start: 1px solid var(--rail-line);
  }

  .nav li { border-block-end: 1px solid var(--rail-line); }

  .nav a {
    position: relative;
    padding: .95rem 0 .95rem 1.1rem;
    margin-inline-end: 0;
    border-block-end: 0;
    border-inline-start: 2px solid transparent;
    font-size: var(--step--2);
    letter-spacing: .13em;
  }

  .nav a:hover,
  .nav a:focus-visible,
  .nav a[aria-current="page"] {
    border-block-end-color: transparent;
    border-inline-start-color: var(--rail-accent);
    background: rgba(239, 237, 231, .05);
  }

  .nav-toggle { display: none; }

  .head-call {
    order: 0;
    margin-block-start: 2rem;
    inline-size: 100%;
  }

  /* the fixed rail replaces the sticky call bar */
  .call-bar { display: none; }
  body:has(.call-bar) .site-foot { padding-block-end: 0; }

  .hero { padding-block: clamp(5rem, 3rem + 6vw, 9rem) clamp(4rem, 2.5rem + 5vw, 7rem); }
}

/* -----------------------------------------------------------------------------
   17. MOTION (opt-in only)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .card,
  .nav a,
  .site-foot a,
  .foot-list a,
  .services--list a,
  .call-bar,
  .head-call { transition: background-color .22s ease, color .22s ease, border-color .22s ease; }

  .card::after { transition: transform .32s cubic-bezier(.2, .7, .2, 1); }

  .services--list a::after { transition: transform .22s ease; }
  .services--list a:hover::after { transform: translateX(.3rem); }

  .btn:hover { transform: translateY(-1px); }
  .btn { transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease; }
}

/* -----------------------------------------------------------------------------
   18. PRINT
   -------------------------------------------------------------------------- */

@media print {
  body:has(.site-head) { padding-inline-start: 0; }
  .site-head, .call-bar, .hero-actions, .cta, .emergency-cta { display: none !important; }
  body::before { display: none; }
  .site-foot { background: none; color: #000; border-block-start: 1px solid #000; }
}

