/* =============================================================================
   Рента Адвокат — Design System
   Ink navy · Brass · Cool stone (Product OS 2026)
   ============================================================================= */

:root {
  /* Color */
  --ink: #0B1C2C;
  --ink-deep: #061018;
  --ink-soft: #132536;
  --brass: #C4A35A;
  --brass-bright: #D4B86E;
  --brass-dim: #9A7E3F;
  --stone: #D9D4CB;
  --stone-cool: #C5C9CE;
  --paper: #F7F3EB;
  --paper-bright: #FBF9F5;
  --mist: #E8ECF0;
  --text: #1A2430;
  --text-muted: #5A6570;
  --text-on-ink: #F2EEE6;
  --text-on-ink-muted: rgba(242, 238, 230, 0.72);
  --line: rgba(11, 28, 44, 0.12);
  --line-on-ink: rgba(196, 163, 90, 0.28);
  --focus: #C4A35A;
  --danger: #9B3A3A;
  --success: #2F5D4A;

  /* Type */
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;

  /* Space & layout */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 2px;
  --header-h: 4.25rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.55s;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brass-dim);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 0.75em;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 38rem;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin-bottom: var(--space-3);
}

.section {
  padding: var(--space-8) 0;
}

.section--ink {
  background: linear-gradient(165deg, var(--ink) 0%, var(--ink-soft) 55%, #0E2436 100%);
  color: var(--text-on-ink);
}

.section--ink h2,
.section--ink h3 {
  color: var(--text-on-ink);
}

.section--ink .lead,
.section--ink p {
  color: var(--text-on-ink-muted);
}

.section--paper {
  background:
    linear-gradient(180deg, rgba(247, 243, 235, 0.92), rgba(247, 243, 235, 0.98)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(11, 28, 44, 0.015) 11px,
      rgba(11, 28, 44, 0.015) 12px
    );
  background-color: var(--paper);
}

.section--stone {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(196, 163, 90, 0.08), transparent 50%),
    linear-gradient(180deg, #EEF1F4, var(--mist));
}

.section-head {
  max-width: 40rem;
  margin-bottom: var(--space-7);
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

/* Buttons / CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn:hover {
  color: inherit;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.btn--primary:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--text-on-ink);
  border-color: rgba(242, 238, 230, 0.35);
}

.btn--ghost:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(11, 28, 44, 0.28);
}

.btn--outline:hover {
  border-color: var(--brass-dim);
  color: var(--brass-dim);
}

.btn--block {
  width: 100%;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(6, 16, 24, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(196, 163, 90, 0.15);
  transition: background-color 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(6, 16, 24, 0.92);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-on-ink);
  min-width: 0;
}

.logo:hover { color: var(--brass-bright); }

.logo__mark {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  opacity: 0.95;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav > a,
.nav__item > a,
.nav__trigger {
  position: relative;
  font-size: 0.875rem;
  font-weight: 450;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text-on-ink-muted);
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.nav > a::after,
.nav__item > a::after,
.nav__trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.35s var(--ease-out);
}

.nav > a:hover,
.nav > a[aria-current="page"],
.nav__item > a:hover,
.nav__item > a[aria-current="page"],
.nav__trigger:hover,
.nav__trigger[aria-expanded="true"],
.nav__trigger[aria-current="page"] {
  color: var(--text-on-ink);
}

.nav > a:hover::after,
.nav > a[aria-current="page"]::after,
.nav__item > a:hover::after,
.nav__item > a[aria-current="page"]::after,
.nav__trigger:hover::after,
.nav__trigger[aria-expanded="true"]::after,
.nav__trigger[aria-current="page"]::after {
  width: 100%;
}

.nav__item--dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 22rem;
  max-width: min(28rem, 90vw);
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.65rem 0 0.75rem;
  margin-top: 0;
  background: var(--ink-deep);
  border: 1px solid var(--line-on-ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  z-index: 120;
  /* Hover bridge: keep panel open while moving from trigger to menu */
  padding-top: 0.85rem;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -0.85rem;
  left: 0;
  right: 0;
  height: 0.85rem;
}

.nav-dropdown[hidden] {
  display: none;
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text-on-ink-muted);
}

.nav-dropdown a:hover,
.nav-dropdown a:focus {
  color: var(--brass-bright);
  background: rgba(196, 163, 90, 0.08);
  outline: none;
}

.nav-dropdown a:first-child {
  color: var(--brass);
  font-weight: 600;
  border-bottom: 1px solid var(--line-on-ink);
  margin-bottom: 0.35rem;
  padding-bottom: 0.75rem;
}

.header-cta {
  display: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--brass);
  white-space: nowrap;
}

.header-cta:hover { color: var(--brass-bright); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(242, 238, 230, 0.25);
  background: transparent;
  color: var(--text-on-ink);
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle__bars {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav panel */
.nav-panel {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 99;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line-on-ink);
  padding: var(--space-5) var(--gutter) var(--space-6);
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out), visibility 0.4s;
}

.nav-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-panel nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-panel > nav > a,
.nav-panel__accordion {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--text-on-ink);
  letter-spacing: 0.04em;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.nav-panel > nav > a:hover,
.nav-panel__accordion:hover {
  color: var(--brass);
}

.nav-panel__group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nav-panel__accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-panel__accordion::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--brass);
}

.nav-panel__group.is-open .nav-panel__accordion::after {
  content: "–";
}

.nav-panel__article-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.35rem 0 0.5rem 0.85rem;
  border-left: 1px solid var(--line-on-ink);
  max-height: min(50vh, 22rem);
  overflow-y: auto;
}

.nav-panel__article-list[hidden] {
  display: none;
}

.nav-panel__article-list a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--text-on-ink-muted);
  letter-spacing: 0.01em;
}

.nav-panel__article-list a:hover,
.nav-panel__article-list a[aria-current="page"] {
  color: var(--brass);
}

.nav-panel__phone {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-on-ink);
}

body.nav-open {
  overflow: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  color: var(--text-on-ink);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: hero-drift 28s var(--ease-out) infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(6, 16, 24, 0.92) 0%, rgba(11, 28, 44, 0.78) 42%, rgba(11, 28, 44, 0.45) 100%),
    linear-gradient(0deg, rgba(6, 16, 24, 0.88) 0%, transparent 45%);
}

.hero__content {
  max-width: 40rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
  color: var(--text-on-ink);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.hero__brand span {
  display: block;
  color: var(--brass);
}

.hero__headline {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 0 0 0.85rem;
  color: var(--text-on-ink);
  max-width: 28rem;
}

.hero__support {
  margin: 0 0 1.75rem;
  color: var(--text-on-ink-muted);
  max-width: 30rem;
  font-size: 1.05rem;
}

.hero__meta {
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.5);
}

/* Reveal motions */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.reveal.is-in,
.reveal--visible,
.reveal:has(.article-grid),
.reveal:has(.lawyer-grid),
.reveal:has(.search-results) {
  opacity: 1;
  transform: none;
}

.hero .reveal-delay-1 { transition-delay: 0.08s; }
.hero .reveal-delay-2 { transition-delay: 0.18s; }
.hero .reveal-delay-3 { transition-delay: 0.28s; }
.hero .reveal-delay-4 { transition-delay: 0.4s; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(196, 163, 90, 0.12), transparent 55%),
    linear-gradient(160deg, var(--ink-deep), var(--ink) 60%, #123048);
  color: var(--text-on-ink);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.45;
}

.page-hero h1 {
  color: var(--text-on-ink);
  margin-bottom: 0.5em;
}

.page-hero .lead {
  color: var(--text-on-ink-muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(242, 238, 230, 0.5);
  list-style: none;
  padding: 0;
}

.breadcrumbs a {
  color: rgba(242, 238, 230, 0.65);
  text-decoration: none;
}

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

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  opacity: 0.5;
}

.page-hero--article {
  padding-bottom: 2.75rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text-on-ink-muted);
}

.article-meta time {
  color: var(--brass);
}

/* Article listings — interactive cards (not in hero) */
.article-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(165deg, rgba(251, 249, 245, 0.95), rgba(247, 243, 235, 0.88)),
    var(--paper-bright);
  border: 1px solid rgba(11, 28, 44, 0.1);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  min-height: 100%;
  overflow: hidden;
}

.article-card__link {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  padding-bottom: 1.25rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.article-card[hidden] {
  display: none !important;
}

.article-card__media {
  display: block;
  margin: 0 0 0.15rem;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--ink);
}

.article-card__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-card__date,
.article-card__title,
.article-card__desc,
.article-card__more {
  padding-inline: 1.25rem;
}

.article-card__date {
  margin-top: 0.85rem;
}

.article-card:hover {
  color: inherit;
  border-color: rgba(196, 163, 90, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(11, 28, 44, 0.08);
}

.article-card__date {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-dim);
}

.article-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--ink);
}

.article-card__desc {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__more {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-dim);
}

.article-card:hover .article-card__more {
  color: var(--brass-dim);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Long-form article typography */
.article-body {
  padding-top: var(--space-7);
}

.article-cover {
  margin: 0 0 2rem;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ink);
}

.article-cover img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  margin: 2.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(196, 163, 90, 0.35);
  max-width: 44rem;
  margin-inline: auto;
}

.article-pager a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.4;
  transition: color 0.2s var(--ease-out);
}

.article-pager a:hover {
  color: var(--brass-dim);
}

.article-pager span {
  display: inline;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.article-pager__prev {
  text-align: left;
  justify-self: start;
}

.article-pager__next {
  text-align: right;
  justify-self: end;
}

.article-pager__all {
  justify-self: center;
  align-self: center;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--brass-dim);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
}

.article-pager__all:hover {
  border-bottom-color: rgba(196, 163, 90, 0.55);
}

.article-pager__prev--empty,
.article-pager__next--empty {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 640px) {
  .article-pager {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .article-pager__prev,
  .article-pager__next,
  .article-pager__all {
    justify-self: stretch;
    text-align: center;
  }

  .article-pager__prev--empty,
  .article-pager__next--empty {
    display: none;
  }
}

.article-prose {
  max-width: 44rem;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}

.article-prose h2 {
  margin-top: 2.25em;
  margin-bottom: 0.65em;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.article-prose p {
  margin: 0 0 1.15em;
}

.article-prose ul {
  margin: 0 0 1.35em;
  padding-left: 1.2rem;
  color: var(--text);
}

.article-prose li + li {
  margin-top: 0.5rem;
}

.article-prose li::marker {
  color: var(--brass-dim);
}

/* Service list (home + uslugi) — no cards in hero; lists elsewhere are flat */
.service-rail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-rail__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.35s var(--ease-out);
}

.service-rail__item:hover {
  padding-left: 0.5rem;
  color: inherit;
}

.service-rail__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--brass-dim);
}

.service-rail__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  margin: 0 0 0.35rem;
}

.service-rail__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.section--ink .service-rail {
  border-top-color: var(--line-on-ink);
}

.section--ink .service-rail__item {
  border-bottom-color: var(--line-on-ink);
}

.section--ink .service-rail__desc {
  color: var(--text-on-ink-muted);
}

/* Split / about teaser */
.split {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 840px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.portrait-stack {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 560px) {
  .portrait-stack {
    grid-template-columns: 1fr 1fr;
  }
}

.portrait {
  position: relative;
}

.portrait__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
  border: 1px solid rgba(11, 28, 44, 0.12);
}

.portrait__caption {
  margin-top: 0.85rem;
}

.portrait__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  margin: 0 0 0.25rem;
}

.portrait__role {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Stats strip — restrained, not dashboard */
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem 0 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line-on-ink);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.55);
}

.trust-line strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--brass);
  margin-bottom: 0.2rem;
}

/* FAQ */
.faq {
  max-width: 44rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  color: var(--brass-dim);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 0.85rem;
  color: var(--text-muted);
}

/* Price table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 1.1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table th {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
}

.price-note {
  margin-top: var(--space-5);
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 40rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 840px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-8);
  }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-list a {
  text-decoration: none;
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--brass-dim);
  text-decoration: underline;
}

/* Form */
.form {
  display: grid;
  gap: var(--space-4);
}

.form__row {
  display: grid;
  gap: var(--space-2);
}

.form label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--paper-bright);
  border: 1px solid rgba(11, 28, 44, 0.18);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--brass);
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.2);
}

.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.form__error {
  font-size: 0.8125rem;
  color: var(--danger);
  display: none;
}

.form__error.is-visible {
  display: block;
}

.form__status {
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  display: none;
}

.form__status.is-visible {
  display: block;
}

.form__status--ok {
  border-color: var(--success);
  color: var(--success);
  background: rgba(47, 93, 74, 0.06);
}

.form__status--err {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(155, 58, 58, 0.06);
}

.form__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Lawyer profiles (about) */
.lawyer {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--line);
}

.lawyer:last-child {
  border-bottom: 0;
}

@media (min-width: 800px) {
  .lawyer {
    grid-template-columns: minmax(12rem, 18rem) 1fr;
    gap: var(--space-7);
    align-items: start;
  }
}

.lawyer__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
  border: 1px solid rgba(11, 28, 44, 0.1);
}

.lawyer__meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.lawyer ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.lawyer li + li {
  margin-top: 0.4rem;
}

/* CTA band */
.cta-band {
  padding: var(--space-8) 0;
  background:
    linear-gradient(135deg, rgba(196, 163, 90, 0.12), transparent 40%),
    linear-gradient(180deg, var(--ink), var(--ink-deep));
  color: var(--text-on-ink);
  text-align: center;
}

.cta-band h2 {
  color: var(--text-on-ink);
  margin-bottom: 0.5em;
}

.cta-band p {
  color: var(--text-on-ink-muted);
  max-width: 32rem;
  margin: 0 auto 1.75rem;
}

.cta-band .cta-group {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--ink-deep);
  color: var(--text-on-ink-muted);
  padding: var(--space-8) 0 var(--space-6);
  font-size: 0.925rem;
}

.site-footer a {
  color: var(--text-on-ink);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brass);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--text-on-ink);
  margin: 0 0 0.75rem;
}

.footer-brand span { color: var(--brass); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav__title {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.45);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(196, 163, 90, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8125rem;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2em;
}

.prose ul {
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.prose li + li {
  margin-top: 0.45rem;
}

/* Legal notice block */
.legal-bits {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

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

/* Lawyer portal search + filter (77-style) */
.lawyer-portal .lead {
  color: var(--text-on-ink-muted);
}

.lawyer-search {
  margin-top: 1.75rem;
}

.lawyer-search__row {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr auto;
  gap: 0.75rem;
  align-items: stretch;
}

@media (max-width: 720px) {
  .lawyer-search__row {
    grid-template-columns: 1fr;
  }
}

.lawyer-search__field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.9rem;
  background: rgba(247, 243, 235, 0.06);
  border: 1px solid var(--line-on-ink);
  min-height: 3.1rem;
}

.lawyer-search__field select,
.lawyer-search__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-on-ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

.lawyer-search__field select option {
  color: var(--text);
  background: var(--paper);
}

.lawyer-search__icon {
  color: var(--brass);
  font-size: 1rem;
  line-height: 1;
}

.lawyer-search__hint {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: var(--text-on-ink-muted);
  min-height: 1.25em;
}

.lawyer-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .lawyer-filters {
    grid-template-columns: 1fr;
  }
}

.lawyer-filters__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lawyer-filters__item select {
  appearance: none;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--paper-bright);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.lawyer-filters__status {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lawyer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .lawyer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lawyer-grid {
    grid-template-columns: 1fr;
  }
}

.lawyer-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  overflow: hidden;
}

.lawyer-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  background: var(--mist);
}

.lawyer-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
}

.lawyer-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.lawyer-card__role,
.lawyer-card__exp {
  margin: 0;
  font-size: 0.85rem;
  color: var(--brass-dim);
}

.lawyer-card__short,
.lawyer-card__bio {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.lawyer-card__link {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.lawyer-card__link:hover {
  color: var(--brass-dim);
}

/* Blog search */
.blog-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  align-items: stretch;
}

@media (max-width: 640px) {
  .blog-search {
    grid-template-columns: 1fr;
  }
}

.blog-search__field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.9rem;
  min-height: 3.1rem;
  background: var(--paper-bright);
  border: 1px solid var(--line);
}

.blog-search__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  outline: none;
}

.blog-search__icon {
  color: var(--brass-dim);
}

.blog-search__status {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.25em;
}

.search-results {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.search-results[hidden] {
  display: none !important;
}

.search-results__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
}

.search-results__status {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-grid--compact .article-card__desc {
  -webkit-line-clamp: 2;
}

/* —— Brand extensions: hubs, steps, FAQ accordion, forms —— */
.hero--fullbleed {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + var(--space-7)) 0 var(--space-8);
  color: var(--text-on-ink);
  overflow: hidden;
}

.hero--fullbleed .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero--fullbleed .hero__media img,
.hero--fullbleed .bm-parallax__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--fullbleed .hero__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero--fullbleed h1 {
  color: var(--text-on-ink);
  margin-bottom: 0.6em;
}

.hero--fullbleed .lead {
  color: var(--text-on-ink-muted);
}

.page-hero {
  padding: calc(var(--header-h) + var(--space-7)) 0 var(--space-7);
}

.page-hero__inner {
  max-width: 42rem;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-link {
  margin: 0;
}

.card-link a {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  padding: 1.35rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  background: rgba(247, 243, 235, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.card-link a:hover {
  border-color: var(--brass);
  color: var(--ink);
  transform: translateY(-2px);
}

.card-link strong {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
}

.card-link span {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 840px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
}

.steps__num {
  font-family: var(--font-display);
  color: var(--brass-dim);
  font-size: 1.25rem;
  line-height: 1;
}

.steps__item p {
  margin: 0;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.faq__q::after {
  content: "+";
  color: var(--brass-dim);
  flex-shrink: 0;
}

.faq__item.is-open .faq__q::after,
.faq__item[aria-expanded="true"] .faq__q::after {
  content: "–";
}

.faq__a {
  padding: 0 0 1.1rem;
  color: var(--text-muted);
}

.faq__a[hidden] {
  display: none;
}

.check-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.65rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--brass);
}

.stat-row {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.stat-row span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--ink);
  line-height: 1.1;
}

.stat-row small {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  background: rgba(247, 243, 235, 0.85);
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--text);
  background: #fff;
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-7) 0 var(--space-5);
}

@media (min-width: 840px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
  color: var(--text-on-ink);
}

.site-footer__legal {
  margin: 0 0 0.5rem;
  color: var(--brass);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__bottom {
  padding-bottom: var(--space-6);
  font-size: 0.85rem;
  color: var(--text-on-ink-muted);
}

.muted {
  color: var(--text-on-ink-muted);
  font-size: 0.9rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: calc(var(--header-h) + 1rem) 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

main > .breadcrumbs + .page-hero {
  padding-top: var(--space-5);
}

.split {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.2fr 1fr;
  }
}

