:root {
  --ink: #172022;
  --ink-soft: #344044;
  --wine: #7a2030;
  --wine-deep: #4f121d;
  --gold: #b78a3d;
  --gold-light: #dfbd78;
  --paper: #f5f2eb;
  --paper-warm: #ebe5da;
  --white: #ffffff;
  --line: rgba(23, 32, 34, 0.14);
  --muted: #667175;
  --success: #2f7051;
  --shadow-sm: 0 10px 30px rgba(25, 20, 18, 0.08);
  --shadow-lg: 0 24px 70px rgba(30, 20, 20, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --header-height: 82px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--wine);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--wine-deep);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.65rem, 6vw, 5.7rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.75rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
}

p,
ul,
ol,
blockquote {
  margin-top: 0;
}

::selection {
  background: var(--gold-light);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow--light {
  color: var(--gold-light);
}

[data-site-header] {
  /* The render mount must not limit the header's sticky scroll range. */
  display: contents;
}

.topbar {
  position: relative;
  z-index: 31;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.topbar__inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar a {
  color: var(--white);
  text-decoration: none;
}

.topbar a:hover {
  color: var(--gold-light);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(23, 32, 34, 0.08);
}

.site-header__inner {
  display: grid;
  min-height: var(--header-height);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 64px;
  height: 42px;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 1px;
}

.brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: 0.075em;
  line-height: 1;
}

.brand__caption {
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-nav {
  justify-self: center;
}

.site-nav__list,
.site-nav__submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__item {
  position: relative;
}

.site-nav__link,
.site-nav__toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.site-nav__link:hover,
.site-nav__toggle:hover,
.site-nav__link[aria-current="page"] {
  color: var(--wine);
}

.site-nav__link[aria-current="page"]::after {
  position: absolute;
  right: 11px;
  bottom: 2px;
  left: 11px;
  height: 2px;
  background: var(--gold);
  content: "";
}

.site-nav__chevron {
  width: 13px;
  transition: transform 0.2s ease;
}

.site-nav__submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 260px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@media (min-width: 861px) {
  .site-nav__submenu::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 10px;
    content: "";
  }
}

.site-nav__submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav__submenu a:hover {
  background: var(--paper);
  color: var(--wine);
}

.site-nav__item:hover .site-nav__submenu,
.site-nav__item:focus-within .site-nav__submenu,
.site-nav__item.is-open .site-nav__submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.site-nav__item.is-open .site-nav__chevron {
  transform: rotate(180deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-button svg {
  width: 22px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--wine);
  color: var(--white);
  font-size: 0.91rem;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: var(--wine-deep);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(122, 32, 48, 0.2);
  transform: translateY(-2px);
}

.button--small {
  min-height: 42px;
  padding: 10px 17px;
  font-size: 0.82rem;
}

.button--gold {
  background: var(--gold);
  color: #1d1811;
}

.button--gold:hover {
  background: var(--gold-light);
  color: #1d1811;
}

.button--outline {
  border-color: rgba(255, 255, 255, 0.48);
  background: transparent;
  color: var(--white);
}

.button--outline:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.button--outline-dark {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button--outline-dark:hover {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wine);
  font-weight: 720;
  text-decoration: none;
}

.text-link::after {
  content: "\2192";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.home-hero {
  position: relative;
  min-height: clamp(620px, 78vh, 780px);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-carousel,
.hero-carousel__track,
.hero-carousel__slide {
  position: absolute;
  inset: 0;
}

.hero-carousel__slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-carousel__slide[data-hero-image="court"] {
  background-position: 72% center;
}

.hero-carousel__slide[data-hero-image="documents"] {
  background-position: 68% center;
}

.hero-carousel__slide[data-hero-image="consumer"] {
  background-position: 60% center;
}

.hero-carousel__slide::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 16, 18, 0.94) 0%, rgba(11, 16, 18, 0.78) 42%, rgba(11, 16, 18, 0.2) 74%, rgba(11, 16, 18, 0.38) 100%),
    linear-gradient(0deg, rgba(11, 16, 18, 0.28), transparent 48%);
  content: "";
}

.hero-carousel__slide.is-active {
  opacity: 1;
}

.home-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: clamp(620px, 78vh, 780px);
  align-items: center;
  padding-block: 96px 130px;
}

.home-hero__copy {
  max-width: 770px;
}

.home-hero h1 {
  max-width: 800px;
  color: var(--white);
}

.home-hero__lead {
  max-width: 650px;
  margin: 26px 0 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 42px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-meta li::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 5px rgba(223, 189, 120, 0.14);
  content: "";
}

.hero-carousel__controls {
  position: absolute;
  z-index: 5;
  right: max(20px, calc((100vw - var(--container)) / 2));
  bottom: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-carousel__button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(18, 23, 24, 0.38);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-carousel__button:hover {
  border-color: var(--gold-light);
  background: rgba(183, 138, 61, 0.86);
}

.hero-carousel__status {
  min-width: 58px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  text-align: center;
}

.trust-bar {
  position: relative;
  z-index: 4;
  margin-top: -24px;
}

.trust-bar__inner {
  display: grid;
  min-height: 100px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.trust-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  padding: 24px 30px;
}

.trust-item > span:last-child {
  min-width: 0;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item__icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--wine);
}

.trust-item__icon svg {
  width: 22px;
}

.trust-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.94rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.8rem;
}

.section {
  padding-block: clamp(76px, 10vw, 126px);
}

.section--tight {
  padding-block: clamp(58px, 7vw, 86px);
}

.section--white {
  background: var(--white);
}

.section--dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section-heading {
  display: grid;
  margin-bottom: 46px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.5fr);
  align-items: end;
  gap: 42px;
}

.section-heading__copy {
  margin: 0;
  color: var(--muted);
}

.section--dark .section-heading__copy {
  color: rgba(255, 255, 255, 0.62);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card::after {
  position: absolute;
  right: -34px;
  bottom: -52px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(183, 138, 61, 0.22);
  border-radius: 50%;
  content: "";
  transition: transform 0.35s ease;
}

.service-card:hover {
  border-color: rgba(122, 32, 48, 0.32);
  box-shadow: 0 18px 44px rgba(48, 31, 25, 0.12);
  color: var(--ink);
  transform: translateY(-5px);
}

.service-card:hover::after {
  transform: scale(1.25);
}

.service-card__number {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
}

.service-card h3 {
  margin: 48px 0 16px;
}

.service-card p {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-card__more {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--wine);
  font-size: 0.84rem;
  font-weight: 720;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(54px, 7vw, 96px);
}

.about-section {
  position: relative;
  overflow: hidden;
}

.portrait-composition {
  position: relative;
  isolation: isolate;
  padding: 34px 52px 64px 0;
}

.portrait-composition::before {
  position: absolute;
  z-index: -2;
  inset: 0 0 54px 21%;
  border-radius: 34px 190px 34px 34px;
  background:
    radial-gradient(circle at 74% 24%, rgba(223, 189, 120, 0.18), transparent 32%),
    linear-gradient(145deg, var(--wine-deep), #2f1118 78%);
  content: "";
}

.portrait-composition::after {
  position: absolute;
  z-index: -1;
  top: 18px;
  right: 24px;
  width: 72%;
  height: calc(100% - 92px);
  border: 1px solid rgba(223, 189, 120, 0.54);
  border-radius: 28px 174px 28px 28px;
  content: "";
}

.portrait-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 8px solid var(--white);
  border-radius: 210px 210px 26px 26px;
  background: var(--paper-warm);
  box-shadow: var(--shadow-lg);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
}

.portrait-frame__label {
  position: absolute;
  z-index: 3;
  top: 26px;
  left: 26px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(23, 32, 34, 0.62);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.portrait-caption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 7px;
  padding: 102px 28px 27px;
  background: linear-gradient(0deg, rgba(16, 21, 23, 0.96), rgba(16, 21, 23, 0.72) 52%, transparent);
  color: var(--white);
}

.portrait-caption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.32rem, 2vw, 1.62rem);
  font-weight: 500;
  line-height: 1.15;
}

.portrait-caption span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  letter-spacing: 0.025em;
  line-height: 1.45;
}

.portrait-credential {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 14px;
  width: min(320px, 78%);
  padding: 17px 18px;
  border: 1px solid rgba(183, 138, 61, 0.46);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 46px rgba(29, 18, 18, 0.2);
}

.portrait-credential__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.portrait-credential__copy {
  display: grid;
  gap: 3px;
}

.portrait-credential__copy > span {
  color: var(--gold);
  font-size: 0.67rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.portrait-credential__copy strong {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.4;
}

.about-copy h2 {
  margin-bottom: 24px;
}

.about-copy__lead {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-facts {
  display: grid;
  gap: 11px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.about-facts li {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

.about-facts li::before {
  width: 7px;
  height: 7px;
  margin-top: 0.48em;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(183, 138, 61, 0.13);
  content: "";
}

.quote-card {
  position: relative;
  margin: 0 0 30px;
  padding: 27px 28px 24px 72px;
  border-top: 1px solid rgba(183, 138, 61, 0.42);
  border-bottom: 1px solid rgba(183, 138, 61, 0.42);
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.quote-card__mark {
  position: absolute;
  top: 14px;
  left: 17px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.7rem;
  line-height: 1;
}

.quote-card p {
  margin-bottom: 12px;
  font-style: italic;
}

.quote-card footer {
  color: var(--muted);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.practice-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.practice-feature {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #1d2d2d;
}

.practice-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.practice-feature::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 22, 23, 0.94), rgba(16, 22, 23, 0.02) 72%);
  content: "";
}

.practice-feature__copy {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px;
  color: rgba(255, 255, 255, 0.76);
}

.practice-feature h3 {
  max-width: 540px;
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.practice-stack {
  display: grid;
  gap: 18px;
}

.result-card {
  display: grid;
  min-height: 170px;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.result-card__mark {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.result-card h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.result-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.contact-ribbon {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--wine);
  color: var(--white);
}

.contact-ribbon__inner {
  position: relative;
  display: grid;
  min-height: 310px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: clamp(38px, 7vw, 76px);
}

.contact-ribbon__inner::after {
  position: absolute;
  top: -180px;
  right: -80px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.contact-ribbon h2 {
  max-width: 720px;
  color: var(--white);
}

.contact-ribbon p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.contact-ribbon__actions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.page-hero::before {
  position: absolute;
  top: -280px;
  right: -90px;
  width: 640px;
  height: 640px;
  border: 1px solid rgba(223, 189, 120, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(223, 189, 120, 0.025), 0 0 0 160px rgba(223, 189, 120, 0.02);
  content: "";
}

.page-hero--image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 28, 29, 0.97) 0%, rgba(18, 28, 29, 0.8) 55%, rgba(18, 28, 29, 0.2) 100%);
  content: "";
}

.page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding-block: clamp(84px, 11vw, 142px);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.page-hero__lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

.page-hero .hero-actions {
  margin-top: 32px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--gold-light);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: clamp(44px, 7vw, 90px);
}

.prose {
  min-width: 0;
  color: var(--ink-soft);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 2.1em 0 0.7em;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.prose h3 {
  margin: 1.8em 0 0.65em;
}

.prose h4 {
  margin: 1.6em 0 0.55em;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  max-width: 76ch;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.15em;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li + li {
  margin-top: 0.55em;
}

.prose blockquote {
  margin: 2.2em 0;
  padding: 26px 28px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.prose table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--white);
}

.prose th,
.prose td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  width: 30%;
  background: var(--paper-warm);
}

.lead-paragraph {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.55;
}

.sidebar-card {
  position: sticky;
  top: 120px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  margin-bottom: 14px;
}

.sidebar-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.sidebar-card__contact {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.sidebar-card__contact a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.sidebar-card__contact a:hover {
  color: var(--wine);
}

.sidebar-card .footer-links a {
  color: var(--ink-soft);
}

.sidebar-card .footer-links a:hover {
  color: var(--wine);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  max-width: none;
  min-height: 132px;
  margin: 0;
  padding: 24px 22px 22px 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink-soft);
}

.service-list li::before {
  position: absolute;
  top: 27px;
  left: 22px;
  width: 15px;
  height: 8px;
  border-bottom: 2px solid var(--wine);
  border-left: 2px solid var(--wine);
  content: "";
  transform: rotate(-45deg);
}

.service-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  counter-reset: service-directory;
  list-style: none;
}

.service-directory li {
  min-width: 0;
  margin: 0;
  counter-increment: service-directory;
}

.service-directory a {
  position: relative;
  display: flex;
  min-height: 210px;
  height: 100%;
  flex-direction: column;
  padding: 64px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-directory a::before {
  position: absolute;
  top: 22px;
  left: 24px;
  color: var(--wine);
  content: counter(service-directory, decimal-leading-zero);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.service-directory a:hover {
  border-color: rgba(183, 138, 61, 0.52);
  box-shadow: 0 18px 45px rgba(25, 20, 18, 0.12);
  color: var(--ink-soft);
  transform: translateY(-3px);
}

.service-directory strong {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
}

.service-directory a > span:not(.service-directory__more) {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.service-directory__more {
  margin-top: auto;
  padding-top: 20px;
  color: var(--wine);
  font-size: 0.8rem;
  font-weight: 750;
}

.service-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  counter-reset: service-step;
  list-style: none;
}

.service-process li {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  counter-increment: service-step;
}

.service-process li::before {
  display: block;
  margin-bottom: 36px;
  color: var(--wine);
  content: counter(service-step, decimal-leading-zero);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.service-process strong,
.service-process span {
  display: block;
}

.service-process strong {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
}

.service-process span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.related-services .service-card {
  min-height: 250px;
}

.related-services .service-card h3 {
  margin-top: 34px;
}

.filter-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 30px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select,
.filter-input,
.map-select {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(23, 32, 34, 0.2);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.filter-input:focus,
.map-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(183, 138, 61, 0.15);
}

.library-grid,
.news-grid,
.download-list {
  display: grid;
  gap: 14px;
}

.library-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.library-card,
.news-card,
.download-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.library-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
}

.library-card[hidden],
.court-card[hidden] {
  display: none !important;
}

.library-card h2,
.library-card h3,
.news-card h2,
.news-card h3 {
  margin-bottom: 13px;
  font-size: 1.28rem;
}

.library-card p,
.news-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.library-card .text-link {
  margin-top: auto;
}

.badge {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 5px 9px;
  border-radius: 99px;
  background: var(--paper-warm);
  color: var(--wine);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice {
  padding: 18px 20px;
  border: 1px solid rgba(183, 138, 61, 0.34);
  border-radius: 12px;
  background: #fff9ed;
  color: #604d27;
  font-size: 0.9rem;
}

.download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.download-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: var(--paper-warm);
  color: var(--wine);
  font-size: 0.875rem;
  font-weight: 800;
}

.download-card h2,
.download-card h3 {
  margin-bottom: 3px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.download-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  align-items: start;
  gap: 24px;
}

.map-panel {
  position: sticky;
  top: 118px;
}

.map-frame,
.map-placeholder {
  width: 100%;
  min-height: 520px;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper-warm);
  box-shadow: var(--shadow-sm);
}

.map-placeholder {
  display: grid;
  place-items: center;
  padding: 34px;
  text-align: center;
}

.map-placeholder__inner {
  max-width: 390px;
}

.map-placeholder__icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
}

.map-placeholder__icon svg {
  width: 28px;
}

.court-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.court-list {
  display: grid;
  max-height: 700px;
  gap: 10px;
  overflow: auto;
  padding-right: 6px;
  scrollbar-color: var(--gold) transparent;
}

.court-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.court-card:hover,
.court-card.is-active {
  border-color: var(--gold);
  background: #fffaf1;
}

.court-card h3 {
  margin-bottom: 7px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 750;
}

.court-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.court-card__type {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--wine);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 24px;
}

.contact-panel,
.form-panel {
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.contact-panel {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}

.contact-panel h2,
.contact-panel h3 {
  color: var(--white);
}

.contact-methods {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.contact-method {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
}

.contact-method__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--gold-light);
}

.contact-method__icon svg {
  width: 19px;
}

.contact-method small {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.74rem;
}

.contact-method a,
.contact-method strong {
  color: var(--white);
  font-size: 0.94rem;
  font-style: normal;
  text-decoration: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field--full {
  grid-column: 1 / -1;
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--wine);
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.office-map {
  margin-top: 24px;
}

.office-map .map-placeholder,
.office-map iframe {
  min-height: 390px;
}

.case-list {
  display: grid;
  gap: 18px;
  margin: 36px 0;
}

.case-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.case-card__category {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-warm);
  color: var(--wine);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-card h2,
.case-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.case-card__result {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #edf6f0;
  color: var(--success);
  font-weight: 700;
}

.case-card__source {
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.pagination-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.86rem;
}

.policy-nav {
  display: grid;
  gap: 6px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.policy-nav a {
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-decoration: none;
}

.policy-nav a:hover {
  color: var(--wine);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.8rem;
}

.article-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--paper-warm);
}

.site-footer {
  background: #101718;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.3fr 0.75fr 0.75fr 1fr;
  gap: 48px;
  padding-block: 68px 54px;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand__mark {
  opacity: 0.86;
  filter: brightness(0) invert(1);
}

.site-footer .brand__caption {
  color: rgba(255, 255, 255, 0.48);
}

.footer-about {
  max-width: 330px;
  margin-top: 20px;
  font-size: 0.86rem;
}

.footer-title {
  margin-bottom: 18px;
  color: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-contact {
  display: grid;
  gap: 10px;
  font-size: 0.86rem;
}

.footer-contact a {
  color: var(--white);
  text-decoration: none;
}

.site-footer__bottom {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
}

.site-footer__bottom a {
  color: rgba(255, 255, 255, 0.62);
}

.consult-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.consult-dialog::backdrop {
  background: rgba(7, 12, 13, 0.72);
  backdrop-filter: blur(5px);
}

.consult-dialog__inner {
  padding: clamp(28px, 6vw, 48px);
}

.consult-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

.consult-dialog h2 {
  max-width: 440px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.consult-dialog__lead {
  margin-bottom: 26px;
  color: var(--muted);
}

.consult-dialog__alternatives {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.cookie-notice {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(460px, calc(100% - 40px));
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #172022;
  box-shadow: var(--shadow-lg);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice a {
  color: var(--gold-light);
}

.cookie-notice button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #1e180d;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.mobile-contact-bar {
  position: fixed;
  z-index: 26;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(23, 32, 34, 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.mobile-contact-bar a,
.mobile-contact-bar button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--wine);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.mobile-contact-bar a {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
}

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(23, 32, 34, 0.25);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.not-found {
  display: grid;
  min-height: 65vh;
  place-items: center;
  padding-block: 80px;
  text-align: center;
}

.not-found__code {
  margin-bottom: 12px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 0.8;
}

.not-found p {
  max-width: 560px;
  margin: 20px auto 28px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .site-header__inner {
    gap: 14px;
  }

  .brand__caption,
  .header-phone {
    display: none;
  }

  .site-nav__link,
  .site-nav__toggle {
    padding-inline: 8px;
    font-size: 0.8rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__main {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .site-footer__column:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 72px;
  }

  .topbar__inner > span,
  .header-actions .button {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
  }

  .topbar__links {
    width: 100%;
    justify-content: space-between;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    justify-self: stretch;
    max-height: calc(100vh - var(--header-height) - 38px - var(--agmera-admin-bar-height, 0px));
    max-height: calc(100dvh - var(--header-height) - 38px - var(--agmera-admin-bar-height, 0px));
    overflow: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav__list {
    display: grid;
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
    padding: 18px 0 28px;
  }

  .site-nav__link,
  .site-nav__toggle {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 0.96rem;
  }

  .site-nav__link[aria-current="page"]::after {
    display: none;
  }

  .site-nav__submenu {
    position: static;
    width: 100%;
    max-height: 0;
    padding: 0 0 0 14px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }

  .site-nav__item:hover .site-nav__submenu,
  .site-nav__item:focus-within .site-nav__submenu {
    transform: none;
  }

  .site-nav__item.is-open .site-nav__submenu {
    max-height: 360px;
    padding-block: 8px 14px;
  }

  .home-hero,
  .home-hero__inner {
    min-height: 680px;
  }

  .home-hero__inner {
    padding-bottom: 150px;
  }

  .hero-carousel__controls {
    right: 20px;
    bottom: 64px;
  }

  .trust-bar {
    margin-top: -24px;
  }

  .trust-bar__inner {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item {
    padding: 20px 22px;
  }

  .trust-item:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-carousel__slide::after {
    background: linear-gradient(90deg, rgba(11, 16, 18, 0.94), rgba(11, 16, 18, 0.62));
  }

  .section-heading,
  .about-grid,
  .practice-grid,
  .content-grid,
  .map-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 20px;
  }

  .about-grid {
    max-width: 680px;
    margin-inline: auto;
    gap: 58px;
  }

  .portrait-composition {
    width: min(100%, 600px);
    margin-inline: auto;
  }

  .sidebar-card,
  .map-panel {
    position: static;
  }

  .map-layout {
    display: flex;
    flex-direction: column;
  }

  .map-panel,
  .court-directory {
    width: 100%;
  }

  .map-panel {
    order: 2;
  }

  .court-list {
    max-height: 520px;
  }

  .contact-ribbon__inner {
    grid-template-columns: 1fr;
  }

  .contact-ribbon__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__column:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .topbar__links {
    gap: 10px;
    font-size: 0.74rem;
  }

  .brand {
    gap: 9px;
  }

  .brand__mark {
    width: 53px;
    height: 34px;
  }

  .brand__name {
    font-size: 1.08rem;
  }

  .home-hero,
  .home-hero__inner {
    min-height: 690px;
  }

  .home-hero__inner {
    align-items: flex-end;
    padding-block: 80px 156px;
  }

  .home-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .home-hero__lead {
    margin-block: 20px 26px;
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    display: none;
  }

  .hero-carousel__controls {
    right: auto;
    bottom: 68px;
    left: 50%;
    gap: 8px;
    transform: translateX(-50%);
  }

  .hero-carousel__button {
    width: 44px;
    height: 44px;
  }

  .hero-carousel__status {
    min-width: 54px;
  }

  .trust-bar {
    margin-top: -18px;
  }

  .trust-bar .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .trust-bar__inner {
    grid-template-columns: 1fr;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }

  .trust-item {
    padding: 18px 20px;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .trust-item:nth-child(3) {
    grid-column: auto;
  }

  .services-grid,
  .service-list,
  .service-directory,
  .library-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .page-hero .hero-actions {
    display: grid;
  }

  .page-hero .hero-actions .button {
    width: 100%;
  }

  .service-process {
    grid-template-columns: 1fr;
  }

  .service-process li {
    min-height: 0;
  }

  .service-card {
    min-height: 250px;
    padding: 24px;
  }

  .service-card h3 {
    margin-top: 34px;
  }

  .portrait-composition {
    width: min(100%, 540px);
    padding: 18px 12px 0;
  }

  .portrait-composition::before {
    inset: 0 0 112px 18%;
    border-radius: 26px 130px 26px 26px;
  }

  .portrait-composition::after {
    top: 10px;
    right: 6px;
    width: 76%;
    height: calc(100% - 132px);
    border-radius: 22px 118px 22px 22px;
  }

  .portrait-frame {
    border-width: 6px;
    border-radius: 170px 170px 22px 22px;
  }

  .portrait-frame__label {
    top: 20px;
    left: 20px;
    font-size: 0.68rem;
  }

  .portrait-caption {
    padding: 86px 22px 22px;
  }

  .portrait-credential {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 14px;
  }

  .quote-card {
    padding: 25px 18px 22px 58px;
  }

  .quote-card__mark {
    left: 10px;
  }

  .result-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .practice-feature {
    min-height: 470px;
  }

  .practice-feature__copy {
    padding: 24px;
  }

  .contact-ribbon__actions {
    grid-template-columns: 1fr;
  }

  .page-hero__inner {
    padding-block: 70px 82px;
  }

  .download-card {
    grid-template-columns: auto 1fr;
  }

  .download-card .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .map-frame,
  .map-placeholder {
    min-height: 410px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 22px 96px;
  }

  .cookie-notice {
    right: 12px;
    bottom: 78px;
    left: 12px;
    width: auto;
    grid-template-columns: 1fr;
  }

  .cookie-notice button {
    width: 100%;
  }

  .mobile-contact-bar {
    display: grid;
  }

  .prose table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .topbar,
  .site-header,
  .site-footer,
  .cookie-notice,
  .mobile-contact-bar,
  .button,
  .sidebar-card {
    display: none !important;
  }

  body {
    background: var(--white);
  }

  .section,
  .section--tight {
    padding-block: 24px;
  }

  .page-hero {
    background: var(--white);
    color: var(--ink);
  }

  .page-hero h1,
  .page-hero__lead,
  .breadcrumbs,
  .breadcrumbs a {
    color: var(--ink);
  }

  .content-grid {
    display: block;
  }
}
