:root {
  --bg: #eee7dc;
  --bg-soft: #f4efe6;
  --text: #2f3437;
  --muted: #77736c;
  --gold: #b98a3a;
  --gold-dark: #8f6526;
  --border: rgba(185, 138, 58, 0.22);
  --glass: rgba(255, 255, 255, 0.62);
  --dark: #151617;
  --shadow: 0 22px 70px rgba(89, 67, 38, 0.12);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #111213;
  --bg-soft: #171819;
  --text: #f4efe6;
  --muted: #bcb5aa;
  --border: rgba(185, 138, 58, 0.32);
  --glass: rgba(255, 255, 255, 0.055);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

html,
body {
  transition: background-color .45s var(--ease-soft), color .45s var(--ease-soft);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 10%, rgba(185, 138, 58, 0.12), transparent 26rem),
    linear-gradient(135deg, #e7d9c8 0%, var(--bg) 34%, #e0e4e3 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

body.menu-open,
body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

a,
button,
input,
.service-card,
.why-grid article,
.benefits-bar,
.cta-card,
.office-marker,
.header,
.site-shell {
  transition-duration: .36s;
  transition-timing-function: var(--ease-out);
}

:focus-visible {
  outline: 2px solid rgba(185, 138, 58, .7);
  outline-offset: 4px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shine {
  from { transform: translateX(-130%) skewX(-18deg); }
  to { transform: translateX(180%) skewX(-18deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-visible {
  animation: fadeUp .9s var(--ease-out) both;
}

.site-shell {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,.78), rgba(255,255,255,.28)),
    var(--bg-soft);
  box-shadow: none;
}

[data-theme="dark"] .site-shell {
  border-color: rgba(255,255,255,.08);
  background: linear-gradient(120deg, rgba(255,255,255,.04), rgba(255,255,255,.02)), var(--bg-soft);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  min-height: 106px;
  padding: 22px clamp(28px, 4.5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, .24);
  background:
    linear-gradient(115deg, rgba(255,255,255,.26), rgba(255,255,255,.075) 44%, rgba(255,255,255,.18));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.52),
    inset 0 -1px 0 rgba(185,138,58,.12),
    0 16px 48px rgba(64, 49, 33, .06);
  -webkit-backdrop-filter: blur(26px) saturate(1.45) contrast(1.05);
  backdrop-filter: blur(26px) saturate(1.45) contrast(1.05);
  transform: translateY(0);
  transition:
    transform .46s var(--ease-soft),
    opacity .32s var(--ease-soft),
    background .36s var(--ease-out),
    box-shadow .36s var(--ease-out),
    border-color .36s var(--ease-out);
  will-change: transform;
}

.header.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-112%);
}

body.menu-open .header,
body.modal-open .header {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255,255,255,.44), transparent 38%),
    radial-gradient(ellipse at 88% 100%, rgba(185,138,58,.1), transparent 42%),
    linear-gradient(118deg, rgba(255,255,255,.16), rgba(255,255,255,.035) 54%, rgba(255,255,255,.12));
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.38),
    inset 0 -18px 42px rgba(255,255,255,.08),
    0 10px 30px rgba(54, 42, 28, .045);
  pointer-events: none;
}

.header::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), rgba(185,138,58,.32), transparent);
  pointer-events: none;
}

[data-theme="dark"] .header {
  border-bottom-color: rgba(255, 255, 255, .08);
  background:
    linear-gradient(115deg, rgba(255,255,255,.105), rgba(255,255,255,.035) 46%, rgba(185,138,58,.08));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(185,138,58,.16),
    0 18px 58px rgba(0, 0, 0, .26);
}

[data-theme="dark"] .header::before {
  border-color: rgba(255,255,255,.09);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255,255,255,.12), transparent 38%),
    radial-gradient(ellipse at 88% 100%, rgba(185,138,58,.1), transparent 42%),
    linear-gradient(118deg, rgba(255,255,255,.075), rgba(255,255,255,.02) 54%, rgba(255,255,255,.06));
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.1),
    inset 0 -16px 36px rgba(255,255,255,.035),
    0 10px 34px rgba(0,0,0,.22);
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 78px;
  flex: 0 0 auto;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.brand-title {
  display: block;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: .95;
  text-transform: uppercase;
}

.brand-motto,
.brand-subtitle,
.eyebrow {
  display: block;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .34em;
  line-height: 1.5;
  text-transform: uppercase;
}

.brand-subtitle { color: var(--muted); }

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 1.7vw, 30px);
}

.nav-item { position: static; }

.nav a,
.nav-item > a {
  position: relative;
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  transition: color .32s var(--ease-out);
}

.nav a::after,
.nav-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .38s var(--ease-out);
}

.nav a:hover,
.nav-item:hover > a { color: var(--gold-dark); }
.nav a:hover::after,
.nav-item:hover > a::after { transform: scaleX(1); }

.mega-menu {
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  display: grid;
  grid-template-columns: minmax(270px, 1.15fr) minmax(250px, 1fr) minmax(280px, 1.05fr);
  gap: 20px;
  width: min(1180px, calc(100vw - 56px));
  max-height: min(72vh, 680px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-soft) 86%, white 14%);
  box-shadow: 0 30px 80px rgba(56, 46, 33, .16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 0);
  transition: opacity .36s var(--ease-out), transform .36s var(--ease-out), visibility .36s var(--ease-out);
}

.mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

[data-theme="dark"] .mega-menu {
  background: rgba(21, 22, 23, .84);
  border-color: rgba(185, 138, 58, .35);
  box-shadow: 0 30px 80px rgba(0,0,0,.38);
  backdrop-filter: blur(22px);
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu,
.has-mega.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-col {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.mega-col + .mega-col {
  border-left: 1px solid rgba(185, 138, 58, .16);
  padding-left: 20px;
}

.mega-col h3 {
  margin: 0 0 6px;
  color: var(--gold-dark);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mega-col h3:not(:first-child) { margin-top: 12px; }

.mega-desc {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mega-col a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: none;
}

.mega-col a::after { display: none; }

.mega-col a:hover,
.mega-col a.active {
  color: var(--gold-dark);
}

.mega-col a.has-submenu::after {
  content: "→";
  display: inline;
  position: static;
  width: auto;
  height: auto;
  margin-left: 12px;
  background: none;
  transform: none;
  color: var(--gold);
}

.mega-subpanel {
  padding: 18px;
  border: 1px solid rgba(185, 138, 58, .18);
  border-radius: 8px;
  background: rgba(255,255,255,.42);
}

[data-theme="dark"] .mega-subpanel { background: rgba(255,255,255,.04); }

.header-actions,
.mobile-actions,
.hero-buttons,
.cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-link {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: transparent;
  color: var(--gold-dark);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  transition: transform .36s var(--ease-out), border-color .36s var(--ease-out), box-shadow .36s var(--ease-out), background .36s var(--ease-out), color .36s var(--ease-out);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -20% auto -20% -34%;
  width: 26%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  opacity: 0;
  transform: translateX(-130%) skewX(-18deg);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 138, 58, .55);
  box-shadow: 0 18px 42px rgba(185, 138, 58, .18);
}

.btn:hover::before {
  opacity: 1;
  animation: shine .9s var(--ease-out);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #c99a4d, #aa762d);
  color: #fffaf2;
}

.btn-light {
  background: rgba(255,255,255,.35);
}

[data-theme="dark"] .btn-light { background: rgba(255,255,255,.045); }

.theme-toggle,
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, .32);
  color: var(--gold-dark);
  cursor: pointer;
  transition: transform .32s var(--ease-out), border-color .32s var(--ease-out), background .32s var(--ease-out), box-shadow .32s var(--ease-out);
}

.theme-toggle:hover,
.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 138, 58, .5);
  box-shadow: 0 14px 34px rgba(185, 138, 58, .14);
}

.theme-toggle {
  position: relative;
  grid-template-columns: 1fr 1fr;
  width: 78px;
  border-radius: 999px;
}

.theme-toggle::after {
  content: "";
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #8e8a83;
  box-shadow: inset -7px -5px 0 rgba(255,255,255,.7);
  transition: transform .42s var(--ease-out), background .42s var(--ease-out), box-shadow .42s var(--ease-out);
}

[data-theme="dark"] .theme-toggle::after { transform: translateX(-32px); background: var(--gold); }
.sun, .moon { width: 18px; height: 18px; border-radius: 50%; }
.sun { border: 2px solid var(--gold); }
.moon { background: #8e8a83; }

.mobile-actions { display: none; }
.icon-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.scroll-top {
  position: fixed;
  right: clamp(20px, 3.2vw, 44px);
  bottom: clamp(20px, 3.2vw, 44px);
  z-index: 18;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(185, 138, 58, .3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,255,255,.42)),
    var(--bg-soft);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.62),
    0 18px 46px rgba(64, 49, 33, .14);
  color: var(--gold-dark);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.94);
  transition:
    opacity .32s var(--ease-soft),
    transform .36s var(--ease-soft),
    border-color .36s var(--ease-out),
    box-shadow .36s var(--ease-out),
    background .36s var(--ease-out),
    color .36s var(--ease-out);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  border-color: rgba(185, 138, 58, .52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.68),
    0 22px 54px rgba(64, 49, 33, .2);
  color: var(--gold);
  transform: translateY(-4px) scale(1);
}

.scroll-top svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="dark"] .scroll-top {
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.055)),
    var(--bg-soft);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 18px 50px rgba(0,0,0,.34);
}

.section-pad { padding: 90px clamp(28px, 7vw, 128px); }

.hero-inner,
.benefits-bar,
.services > .section-head,
.services > .service-grid,
.services > .section-action,
.why,
.consult-cta > .cta-card,
.footer-grid,
.footer-bottom,
.page-hero > *,
.section-pad > .filter-row,
.section-pad > .content-grid,
.section-pad > .service-detail,
.article-layout {
  width: min(100%, 1360px);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  position: relative;
  min-height: 840px;
  padding-top: 86px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 248, 228, .72), transparent 20rem),
    radial-gradient(circle at 78% 62%, rgba(185,138,58,.12), transparent 24rem),
    linear-gradient(105deg, #fbf8f2, #f4ede3 62%, #ebe3d8);
}

.hero::before,
.contacts::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .28;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent 0 38%, rgba(185,138,58,.12) 38.2% 38.4%, transparent 38.7%),
    radial-gradient(circle at 22% 70%, rgba(255,255,255,.85), transparent 22rem);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: min(64%, 980px);
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(251,248,242,0) 0%, rgba(251,248,242,.1) 28%, rgba(251,248,242,.72) 62%, rgba(251,248,242,1) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(244,237,227,.02) 46%, rgba(112,75,38,.06)),
    url("/assets/hero/legal-library-chambers-blur.png") 0 48% / cover no-repeat;
  filter: blur(4px) saturate(.66) contrast(.58) brightness(1.06);
  opacity: .52;
  transform: scale(1.05);
  transform-origin: left center;
}

[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 80% 38%, rgba(185,138,58,.14), transparent 27rem),
    linear-gradient(105deg, #171819, #111213 62%, #1c1b18);
}

[data-theme="dark"] .hero::before {
  opacity: .22;
  background-image:
    linear-gradient(115deg, transparent 0 38%, rgba(185,138,58,.18) 38.2% 38.4%, transparent 38.7%),
    radial-gradient(circle at 22% 70%, rgba(255,255,255,.045), transparent 22rem);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(460px, 680px) 1fr;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  position: relative;
  z-index: 5;
  animation: fadeUp .95s var(--ease-out) .08s both;
}

.hero h1,
.section-head h2,
.why h2,
.consult-cta h2,
.contacts h2,
.modal h2 {
  margin: 22px 0 0;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
  line-height: .94;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(42px, 4.4vw, 68px);
  line-height: 1.02;
}

.hero-text,
.section-head p,
.why-copy p,
.cta-card p,
.contact-info > p,
.modal-copy p {
  max-width: 620px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.42;
}

.hero-buttons {
  margin-top: 42px;
}

.why-copy .btn,
.page-hero > .btn,
.page-hero > button.btn,
.article-content article > .btn,
.footer-col .btn {
  margin-top: 34px;
}

.article-card .btn,
.case-card .btn {
  margin-top: 26px;
}

.cta-actions {
  margin-top: 30px;
}

.cta-card .cta-actions,
.contact-info .cta-actions {
  margin-top: 34px;
}

.ornament {
  width: 390px;
  height: 26px;
  margin: 34px 0 28px;
  background:
    linear-gradient(rgba(185, 138, 58, .78), rgba(185, 138, 58, .78)) left 50% / 45% 1px no-repeat,
    linear-gradient(rgba(185, 138, 58, .78), rgba(185, 138, 58, .78)) right 50% / 45% 1px no-repeat;
  position: relative;
}

.ornament::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.ornament.small { width: 98px; margin: 12px auto 14px; }

.hero-visual {
  position: relative;
  min-height: 560px;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -96px -112px -84px -132px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 68% 12%, rgba(255, 248, 224, .62), transparent 34%),
    radial-gradient(ellipse at 75% 50%, rgba(255, 255, 255, .42), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, .2), transparent 48%, rgba(88, 62, 36, .12));
  filter: blur(12px);
}

.hero-visual::after {
  content: "";
  position: absolute;
  left: 4%;
  right: -8%;
  bottom: -34px;
  z-index: 0;
  height: 38%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 70%, rgba(70, 49, 27, .3), transparent 48%),
    radial-gradient(ellipse at 44% 76%, rgba(73, 51, 30, .18), transparent 38%);
  filter: blur(30px);
  opacity: .64;
}

.hero-laurel {
  position: absolute;
  right: 1%;
  top: 12%;
  z-index: 1;
  width: clamp(300px, 34vw, 500px);
  color: #8f6526;
  opacity: .065;
  pointer-events: none;
  transform: rotate(5deg);
}

.hero-themis {
  position: absolute;
  right: -18%;
  bottom: -390px;
  z-index: 5;
  width: auto;
  height: clamp(820px, 76vw, 1040px);
  pointer-events: none;
  transform: scaleX(-1);
  transform-origin: center bottom;
  clip-path: inset(0 0 12% 0);
  filter:
    drop-shadow(0 34px 34px rgba(54, 39, 22, .24))
    drop-shadow(0 10px 16px rgba(185, 138, 58, .16))
    saturate(.88)
    contrast(.96)
    brightness(.94);
}

.hero-themis::after {
  content: "";
  position: absolute;
  inset: 6% 6% 10%;
  background: linear-gradient(112deg, transparent 0 38%, rgba(255, 238, 190, .18) 48%, transparent 62%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-themis img {
  display: block;
  width: auto;
  height: 100%;
}

.hero-column-scene {
  position: absolute;
  inset: -96px -76px -74px -132px;
  z-index: 4;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}

.hero-column-shadow {
  position: absolute;
  inset: -76px -52px -18px -4%;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 73% 18%, rgba(255, 246, 221, .42), transparent 32%),
    radial-gradient(ellipse at 78% 72%, rgba(64, 49, 33, .34), transparent 48%),
    linear-gradient(92deg, transparent 0 22%, rgba(72, 54, 32, .22) 56%, transparent 88%);
  filter: blur(40px);
  opacity: .78;
  transform: skewX(-4deg);
}

[data-theme="dark"] .hero-column-shadow {
  background:
    radial-gradient(ellipse at 76% 20%, rgba(0, 0, 0, .58), transparent 38%),
    radial-gradient(ellipse at 80% 72%, rgba(0, 0, 0, .46), transparent 46%),
    linear-gradient(92deg, transparent 0 24%, rgba(0, 0, 0, .34) 56%, transparent 86%);
  opacity: .72;
}

.hero-column-scene.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.hero-column-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}

[data-theme="dark"] .hero-column-scene canvas {
  filter: brightness(.82) contrast(1.06) saturate(.92);
}

@media (min-width: 768px) {
  .hero-visual {
    min-height: 640px;
  }
}

.benefits-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 70px;
  padding: 26px 34px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 10px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: fadeUp .95s var(--ease-out) .28s both;
}

.benefits-bar article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: center;
  padding: 0 28px;
  border-right: 1px solid rgba(119,115,108,.18);
}

.benefits-bar article:last-child { border-right: 0; }

h3 { margin: 0; color: var(--text); font-family: var(--serif); font-size: 25px; line-height: 1.1; }
p { margin: 0; }
.benefits-bar p, .service-card p, .why-grid p, .footer p { color: var(--muted); font-size: 15px; }

.line-icon {
  display: inline-block;
  width: 46px;
  height: 46px;
  color: var(--gold);
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}

.shield-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='3' d='M32 5 54 14v18c0 14-8 23-22 29C18 55 10 46 10 32V14L32 5Z'/%3E%3Cpath fill='none' stroke='black' stroke-width='3' d='m22 33 7 7 15-18'/%3E%3C/svg%3E"); }
.scales-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='3' d='M32 8v48M17 56h30M12 18h40M20 18l-9 18h18L20 18Zm24 0-9 18h18l-9-18Z'/%3E%3C/svg%3E"); }
.client-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='3' d='M32 34a12 12 0 1 0 0-24 12 12 0 0 0 0 24ZM12 58c2-13 11-19 20-19s18 6 20 19H12Z'/%3E%3C/svg%3E"); }
.court-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='3' d='M8 25h48L32 10 8 25Zm6 6v20m12-20v20m12-20v20m12-20v20M9 55h46'/%3E%3C/svg%3E"); }
.document-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='3' d='M16 8h26l10 10v38H16V8Zm25 0v12h11M24 28h20M24 38h20M24 48h12'/%3E%3C/svg%3E"); }
.contract-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='3' d='M14 8h28l8 8v40H14V8Zm9 16h18M23 34h18M23 44h10m10 8 10-10 5 5-10 10-7 2 2-7Z'/%3E%3C/svg%3E"); }
.handshake-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='3' d='M9 35 22 22l10 10 7-7 16 16-9 9-9-9-7 7-8-8-4 4-9-9Z'/%3E%3C/svg%3E"); }
.chat-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='3' d='M10 12h44v32H26L14 54V44h-4V12Zm12 12h20M22 33h14'/%3E%3C/svg%3E"); }
.briefcase-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='3' d='M10 20h44v32H10V20Zm14 0v-7h16v7M10 31h44M29 31v6h6v-6'/%3E%3C/svg%3E"); }
.family-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='3' d='M24 28a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm16 2a7 7 0 1 0 0-14 7 7 0 0 0 0 14ZM9 54c2-13 9-20 17-20s15 7 17 20H9Zm29-2h17c-1-10-6-16-13-17'/%3E%3C/svg%3E"); }

.section-head {
  max-width: 760px;
  margin: 0 auto 50px;
}

.centered { text-align: center; }
.section-head h2, .why h2, .consult-cta h2, .contacts h2, .modal h2 { font-size: clamp(42px, 4.6vw, 64px); }
.section-head p { margin: 0 auto; color: var(--text); font-size: 18px; }

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

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 222px;
  padding: 30px 28px;
  border: 1px solid rgba(185, 138, 58, .18);
  border-radius: 8px;
  background: color-mix(in srgb, var(--glass) 88%, white 12%);
  box-shadow: 0 10px 28px rgba(58, 48, 34, .045);
  backdrop-filter: blur(14px);
  transition: transform .42s var(--ease-out), border-color .42s var(--ease-out), box-shadow .42s var(--ease-out), background .42s var(--ease-out);
}

.service-card::after,
.why-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 48%, rgba(185,138,58,.05));
  opacity: 0;
  transition: opacity .42s var(--ease-out);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(185, 138, 58, .55);
  box-shadow: 0 28px 62px rgba(82, 62, 35, .14);
}

.service-card:hover::after,
.why-grid article:hover::after { opacity: 1; }

.service-card h3 { margin: 18px 0 18px; font-size: 23px; }
.service-card a { display: inline-block; margin-top: 24px; color: var(--gold-dark); font-family: var(--serif); font-weight: 700; }
.section-action { display: flex; justify-content: center; margin-top: 32px; }

.why {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(21,22,23,.04), transparent),
    var(--bg);
}

.why-copy p { margin: 24px 0 34px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.why-grid article {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  transition: transform .42s var(--ease-out), border-color .42s var(--ease-out), box-shadow .42s var(--ease-out);
}

.why-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(185, 138, 58, .48);
  box-shadow: 0 24px 54px rgba(82, 62, 35, .1);
}

.why-grid span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 32px;
}

.why-grid h3 { margin: 18px 0 12px; }

.consult-cta {
  background: linear-gradient(115deg, var(--bg-soft), var(--bg));
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 38px;
  align-items: center;
  overflow: hidden;
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 10px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cta-card h2 { margin-top: 12px; }
.cta-card p { margin-top: 12px; }
.cta-column {
  position: absolute;
  right: 32px;
  bottom: -82px;
  width: 170px;
  height: 230px;
  opacity: .18;
  background: repeating-linear-gradient(90deg, #fff 0 14px, var(--gold) 15px 18px, #fff 19px 34px);
  transform: rotate(8deg);
}

.contacts {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 540px;
  background: var(--bg-soft);
}

.page-hero {
  position: relative;
  padding: 78px clamp(28px, 7vw, 128px) 58px;
  background:
    radial-gradient(circle at 82% 20%, rgba(185,138,58,.11), transparent 24rem),
    linear-gradient(120deg, var(--bg-soft), var(--bg));
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a { color: var(--gold-dark); }
.breadcrumbs span::before { content: "/"; margin-right: 8px; color: rgba(119,115,108,.55); }

.page-hero h1,
.article-content h1 {
  max-width: 900px;
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 86px);
  font-weight: 600;
  line-height: .98;
}

.page-hero p {
  max-width: 720px;
  margin-top: 24px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 22px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 36px;
}

.filter-pill {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 600;
}

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

.article-card,
.case-card,
.info-card,
.faq-card {
  padding: 28px;
  border: 1px solid rgba(185, 138, 58, .18);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: 0 14px 38px rgba(58, 48, 34, .055);
  backdrop-filter: blur(14px);
}

.article-card time,
.article-card .category,
.case-card .category,
.article-meta {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-card h2,
.case-card h2,
.info-card h2,
.faq-card h2 {
  margin: 14px 0 12px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
}

.article-card p,
.case-card p,
.info-card p,
.faq-card p,
.article-content p,
.article-content li {
  color: var(--muted);
}

.faq-section {
  background:
    radial-gradient(circle at 18% 10%, rgba(185, 138, 58, .12), transparent 24rem),
    linear-gradient(120deg, rgba(255,255,255,.52), rgba(255,255,255,.16)),
    var(--bg-soft);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  counter-reset: faq;
}

.faq-item {
  counter-increment: faq;
  position: relative;
  border: 1px solid rgba(185, 138, 58, .2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.34)),
    rgba(255,255,255,.42);
  box-shadow: 0 14px 36px rgba(89, 67, 38, .07);
  overflow: hidden;
  transition:
    border-color .28s var(--ease-out),
    box-shadow .28s var(--ease-out),
    transform .28s var(--ease-out),
    background .28s var(--ease-out);
}

[data-theme="dark"] .faq-item {
  border-color: rgba(185, 138, 58, .26);
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    rgba(255,255,255,.035);
}

.faq-item summary {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 44px;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 18px 20px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  list-style: none;
  transition: color .28s var(--ease-out);
}

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

.faq-item summary::before {
  content: counter(faq, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(185, 138, 58, .32);
  border-radius: 50%;
  background: rgba(185, 138, 58, .08);
  color: var(--gold-dark);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.faq-item summary::after {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(185, 138, 58, .34);
  border-radius: 50%;
  background:
    linear-gradient(var(--gold-dark), var(--gold-dark)) center / 14px 2px no-repeat,
    linear-gradient(var(--gold-dark), var(--gold-dark)) center / 2px 14px no-repeat,
    rgba(255,255,255,.48);
  color: var(--gold-dark);
  transition:
    transform .3s var(--ease-out),
    background-color .28s var(--ease-out),
    border-color .28s var(--ease-out);
}

.faq-item[open] summary::after {
  background:
    linear-gradient(#fff, #fff) center / 14px 2px no-repeat,
    var(--gold-dark);
  border-color: var(--gold-dark);
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 84px 28px 86px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.faq-item[open] {
  border-color: rgba(185, 138, 58, .42);
  background:
    radial-gradient(circle at 100% 0%, rgba(185, 138, 58, .1), transparent 14rem),
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.44));
  box-shadow: 0 22px 58px rgba(89, 67, 38, .12);
  transform: translateY(-1px);
}

[data-theme="dark"] .faq-item[open] {
  background:
    radial-gradient(circle at 100% 0%, rgba(185, 138, 58, .14), transparent 14rem),
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
}

.faq-item:hover {
  border-color: rgba(185, 138, 58, .38);
  box-shadow: 0 20px 48px rgba(89, 67, 38, .11);
}

.legal-hero {
  min-height: auto;
}

.legal-content article {
  max-width: 920px;
}

.article-card .btn,
.case-card .btn { margin-top: 22px; }

.team-section > .section-head,
.team-grid,
.team-cta {
  width: min(100%, 1360px);
  margin-left: auto;
  margin-right: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
}

.team-card {
  overflow: hidden;
  border: 1px solid rgba(185, 138, 58, .18);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: 0 14px 38px rgba(58, 48, 34, .055);
  backdrop-filter: blur(14px);
  transition: transform .42s var(--ease-out), border-color .42s var(--ease-out), box-shadow .42s var(--ease-out);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(185, 138, 58, .46);
  box-shadow: 0 26px 60px rgba(82, 62, 35, .13);
}

.team-card.lead {
  grid-row: span 2;
}

.team-photo {
  min-height: 270px;
  border-bottom: 1px solid rgba(185, 138, 58, .14);
  background:
    linear-gradient(135deg, rgba(255,255,255,.64), rgba(185,138,58,.08)),
    repeating-linear-gradient(135deg, rgba(185,138,58,.12) 0 1px, transparent 1px 18px),
    var(--bg);
  position: relative;
}

.team-photo::after {
  content: "Фото";
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: rgba(143, 101, 38, .54);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.team-card.lead .team-photo {
  min-height: 420px;
}

.team-card-body {
  padding: 26px;
}

.team-card .category {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.team-card h2 {
  margin: 12px 0 8px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.02;
}

.team-role {
  margin-bottom: 14px;
  color: var(--gold-dark);
  font-weight: 600;
}

.team-card p:not(.team-role) {
  color: var(--muted);
}

.team-cta {
  margin-top: 34px;
}

.services-catalog,
.catalog-grid,
.catalog-cta {
  width: min(100%, 1360px);
  margin-left: auto;
  margin-right: auto;
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

.catalog-section {
  scroll-margin-top: 120px;
  padding: 30px;
  border: 1px solid rgba(185, 138, 58, .18);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: 0 14px 38px rgba(58, 48, 34, .055);
  backdrop-filter: blur(14px);
}

.catalog-section:first-child {
  grid-row: span 2;
}

.catalog-head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(185, 138, 58, .16);
}

.catalog-head h2 {
  margin: 6px 0 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.02;
}

.catalog-desc {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.catalog-links {
  columns: 2;
  column-gap: 28px;
}

.catalog-section:not(:first-child) .catalog-links {
  columns: 1;
}

.catalog-links a {
  display: block;
  break-inside: avoid;
  padding: 10px 0;
  border-bottom: 1px solid rgba(119, 115, 108, .13);
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  transition: color .3s var(--ease-out), padding-left .3s var(--ease-out);
}

.catalog-links a:hover {
  color: var(--gold-dark);
  padding-left: 8px;
}

.catalog-cta {
  margin-top: 28px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 42px;
  align-items: start;
}

.article-content {
  padding: 64px clamp(28px, 7vw, 128px);
}

.article-content article {
  padding: 42px;
  border: 1px solid rgba(185, 138, 58, .18);
  border-radius: 10px;
  background: var(--glass);
}

.article-content h2 {
  margin: 34px 0 14px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.05;
}

.article-content ul { padding-left: 20px; }
.article-sidebar { display: grid; gap: 18px; }

.service-detail {
  display: grid;
  gap: 22px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.steps-list {
  counter-reset: steps;
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.steps-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(185,138,58,.18);
  border-radius: 8px;
  background: var(--glass);
}

.steps-list li::before {
  content: counter(steps, decimal-leading-zero);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.contact-info {
  position: relative;
  z-index: 1;
  padding: clamp(42px, 7vw, 88px);
}

.contact-info .ornament.small { margin-left: 0; }
.contact-list { display: grid; gap: 18px; margin: 34px 0; }
.contact-list p { display: grid; grid-template-columns: 34px 1fr; color: var(--text); }
.contact-list span { color: var(--gold); font-weight: 700; }

.map-panel {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  background: #f0eadf;
}

[data-theme="dark"] .map-panel { background-color: #24211d; }

.office-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(.74) contrast(.96) brightness(1.04);
}

[data-theme="dark"] .office-map {
  filter: saturate(.62) contrast(.92) brightness(.72);
}

.map-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247,243,236,.14), transparent 32%),
    radial-gradient(circle at 72% 42%, rgba(185,138,58,.12), transparent 18rem);
}

.map-fallback {
  position: absolute;
  inset: auto 28px 28px 28px;
  z-index: 2;
  padding: 18px;
  border: 1px solid rgba(185, 138, 58, .22);
  border-radius: 8px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.map-fallback p {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
}

.map-fallback a {
  color: var(--gold-dark);
  font-weight: 700;
}

.office-map-card {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 54px;
  width: min(282px, calc(100% - 48px));
  padding: 16px 18px;
  border: 1px solid rgba(185, 138, 58, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 46px rgba(54, 40, 22, .14);
  backdrop-filter: blur(14px);
}

.office-map-card h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.05;
}

.office-map-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.office-map-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
}

.map-panel [class*="gotoymaps"],
.map-panel [class*="gototaxi"],
.map-panel [class*="gototech"] {
  display: none !important;
}

.office-marker {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50% 50% 50% 10px;
  background: linear-gradient(145deg, #d5a24a, var(--gold-dark));
  box-shadow: 0 14px 26px rgba(54, 40, 22, .28);
  transform: rotate(-45deg);
}

.office-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  width: 28px;
  height: 10px;
  border-radius: 50%;
  background: rgba(47, 52, 55, .22);
  filter: blur(4px);
  transform: translateX(-50%) rotate(45deg);
}

.office-marker-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  transform: rotate(45deg);
}

.office-marker-logo img {
  width: 25px;
  height: 29px;
  object-fit: contain;
}

[data-theme="dark"] .office-marker {
  border-color: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .42);
}

.footer {
  padding: 52px clamp(28px, 7vw, 92px) 30px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255,255,255,.09), transparent 22rem),
    #191b1d;
  color: rgba(255,255,255,.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, 1fr);
  gap: 38px;
}

.dark-brand .brand-title { color: rgba(255,255,255,.88); }
.dark-brand .brand-motto,
.dark-brand .brand-subtitle { color: rgba(255,255,255,.66); }
.footer-brand p { margin: 28px 0; max-width: 330px; color: rgba(255,255,255,.76); }
.footer a { display: block; color: rgba(255,255,255,.82); margin-bottom: 11px; }
.footer a:hover { color: #d3a75a; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}
.footer-col {
  border-left: 1px solid rgba(255,255,255,.09);
  padding-left: 34px;
}
.footer-col summary {
  margin-bottom: 24px;
  color: #fff;
  cursor: default;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  list-style: none;
}
.footer-col p { color: rgba(255,255,255,.78); margin-bottom: 18px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  font-size: 14px;
}
.footer-bottom span:last-child { display: flex; gap: 24px; align-items: center; }
.footer-bottom i { width: 1px; height: 14px; background: rgba(255,255,255,.35); }
.footer-bottom a { display: inline; color: rgba(255,255,255,.62); margin: 0; }

.mobile-menu,
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .42s var(--ease-out), visibility .42s var(--ease-out);
}

.mobile-menu.is-open,
.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu {
  background: rgba(21,22,23,.38);
  backdrop-filter: blur(10px);
}

.mobile-menu-panel {
  margin-left: auto;
  width: min(420px, 92vw);
  height: 100%;
  padding: 28px;
  background: var(--bg-soft);
  box-shadow: -30px 0 70px rgba(0,0,0,.22);
  transform: translateX(100%);
  transition: transform .56s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu-panel { transform: translateX(0); }
.close-btn { margin-left: auto; font-size: 30px; }
.mobile-menu nav { display: grid; gap: 20px; margin: 42px 0; }
.mobile-menu nav a {
  font-family: var(--serif);
  font-size: 32px;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity .46s var(--ease-out), transform .46s var(--ease-out), color .3s var(--ease-out);
}
.mobile-menu.is-open nav a { opacity: 1; transform: translateX(0); }
.mobile-menu.is-open nav a:nth-child(1) { transition-delay: .08s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .12s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .16s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .2s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .24s; }
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: .28s; }
.mobile-menu.is-open nav a:nth-child(7) { transition-delay: .32s; }

.mobile-accordion,
.mobile-accordion details {
  display: grid;
  gap: 12px;
}

.mobile-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--text);
  font-family: var(--serif);
  font-size: 32px;
  list-style: none;
}

.mobile-accordion summary::-webkit-details-marker { display: none; }
.mobile-accordion summary::after {
  content: "⌄";
  color: var(--gold);
  font-family: var(--sans);
  font-size: 18px;
  transition: transform .32s var(--ease-out);
}
.mobile-accordion details[open] > summary::after { transform: rotate(180deg); }

.mobile-accordion details {
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.mobile-accordion details summary {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
}

.mobile-accordion summary a {
  color: inherit;
  font: inherit;
}

.mobile-accordion a {
  color: var(--muted);
  font-family: var(--sans) !important;
  font-size: 15px !important;
  line-height: 1.35;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .48);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(560px, 92vw);
  max-height: calc(100dvh - 32px);
  margin: 16px auto;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 12px;
  background: var(--bg-soft);
  box-shadow: 0 35px 90px rgba(0,0,0,.28);
  transform: translateY(24px) scale(.975);
  opacity: 0;
  transition: transform .56s var(--ease-out), opacity .46s var(--ease-out);
}

.modal.is-open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--glass);
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 28px;
  transition: transform .32s var(--ease-out), border-color .32s var(--ease-out), background .32s var(--ease-out);
}

.modal-close:hover {
  transform: rotate(90deg);
  border-color: rgba(185, 138, 58, .55);
}

.modal-copy { padding: 48px 42px 34px; }
.modal-copy p { margin: 12px 0 18px; font-size: 19px; }
.lead-form { display: grid; gap: 12px; }
.lead-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255,255,255,.48);
  color: var(--text);
  font: inherit;
  transition: border-color .32s var(--ease-out), box-shadow .32s var(--ease-out), background .32s var(--ease-out);
}

.lead-form input {
  height: 48px;
  padding: 0 16px;
}

.lead-form textarea {
  min-height: 96px;
  max-height: 150px;
  padding: 13px 16px;
  line-height: 1.45;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(185, 138, 58, .65);
  box-shadow: 0 0 0 4px rgba(185, 138, 58, .1);
  outline: none;
}
.form-status {
  display: none;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: var(--gold-dark);
}

.form-status.is-error {
  color: #9c3d2f;
}

.modal-copy small { display: block; margin-top: 12px; color: var(--muted); }

@media (max-width: 1199px) {
  .header { grid-template-columns: auto auto; justify-content: space-between; }
  .nav, .header-actions { display: none; }
  .mobile-actions { display: flex; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-section:first-child { grid-row: auto; }
  .team-card.lead { grid-row: auto; grid-column: span 2; }
  .article-layout { grid-template-columns: 1fr; }
  .benefits-bar { grid-template-columns: repeat(2, 1fr); }
  .benefits-bar article:nth-child(2) { border-right: 0; }
  .benefits-bar article { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body { background: var(--bg); }
  .site-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .header {
    min-height: 132px;
    padding: 28px 24px;
  }
  .brand { gap: 12px; }
  .brand-mark { width: 76px; height: 86px; }
  .brand-title { font-size: clamp(24px, 7vw, 32px); }
  .brand-motto, .brand-subtitle, .eyebrow { font-size: 10px; letter-spacing: .32em; }
  .mobile-actions { gap: 10px; }
  .icon-btn { width: 56px; height: 56px; border-radius: 8px; }
  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
  .scroll-top svg { width: 22px; height: 22px; }
  .section-pad { padding: 58px 24px; }
  .faq-item summary {
    grid-template-columns: 38px 1fr 38px;
    gap: 12px;
    min-height: 78px;
    padding: 16px;
    font-size: 22px;
  }
  .faq-item summary::before,
  .faq-item summary::after {
    width: 38px;
    height: 38px;
  }
  .faq-item p {
    padding: 0 18px 22px 66px;
    font-size: 15px;
  }
  .hero {
    min-height: auto;
    padding-top: 64px;
    overflow: hidden;
  }
  .hero::after {
    width: 88%;
    opacity: .22;
    filter: blur(10px) saturate(.62) contrast(.5) brightness(1.08);
  }
  .hero-inner {
    display: block;
  }
  .hero-copy { position: relative; z-index: 2; max-width: 520px; }
  .hero h1 { font-size: clamp(32px, 10vw, 50px); line-height: 1.05; }
  .hero-text { max-width: 390px; font-size: 20px; line-height: 1.45; }
  .ornament { width: 330px; max-width: 92vw; }
  .hero-buttons { display: grid; align-items: stretch; max-width: 380px; margin-top: 38px; }
  .hero-buttons .btn { min-height: 74px; justify-content: space-between; padding: 0 28px; text-align: left; }
  .hero-visual {
    position: absolute;
    inset: 160px -88px auto auto;
    width: 440px;
    height: 760px;
    min-height: 0;
    z-index: 1;
    pointer-events: none;
  }
  .hero-column-scene { display: none; }
  .hero-laurel {
    right: auto;
    left: 30%;
    top: 28%;
    width: 270px;
    opacity: .045;
    transform: rotate(-4deg);
  }
  .hero-themis {
    right: auto;
    left: 42%;
    bottom: 88px;
    width: 156px;
    height: auto;
    opacity: .55;
    transform: none;
    clip-path: none;
    filter:
      drop-shadow(0 18px 22px rgba(54, 39, 22, .18))
      saturate(.82)
      brightness(.96);
  }
  .hero-themis img {
    width: 100%;
    height: auto;
  }
  .hero-column-shadow {
    inset: 250px -120px 90px 120px;
    opacity: .24;
  }
  .benefits-bar {
    grid-template-columns: 1fr;
    margin-top: 72px;
    padding: 18px 28px;
    border-radius: 14px;
  }
  .benefits-bar article {
    grid-template-columns: 64px 1fr;
    border-right: 0;
    border-bottom: 1px solid rgba(119,115,108,.18);
    padding: 24px 0;
  }
  .benefits-bar article:last-child { border-bottom: 0; }
  .benefits-bar h3 { font-size: 28px; }
  .benefits-bar p { font-size: 17px; }
  .section-head { margin-bottom: 32px; }
  .service-grid, .why, .why-grid, .contacts, .cta-card, .modal-card {
    grid-template-columns: 1fr;
  }
  .content-grid,
  .team-grid,
  .catalog-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .catalog-section { padding: 24px 20px; }
  .catalog-head { grid-template-columns: 44px 1fr; }
  .catalog-links,
  .catalog-section:not(:first-child) .catalog-links {
    columns: 1;
  }
  .team-card.lead { grid-column: auto; }
  .team-card.lead .team-photo,
  .team-photo {
    min-height: 260px;
  }
  .page-hero {
    padding: 52px 24px 44px;
  }
  .article-content {
    padding: 42px 24px;
  }
  .article-content article {
    padding: 26px 20px;
  }
  .service-card { min-height: 188px; }
  .primary-services .service-grid .service-card:nth-child(n+4) { display: none; }
  .why { gap: 34px; }
  .why-grid article { min-height: auto; }
  .cta-card { padding: 34px 24px; }
  .cta-actions { display: grid; }
  .contacts { display: flex; flex-direction: column; }
  .contact-info { padding: 58px 24px 34px; }
  .map-panel { min-height: 500px; order: 2; }
  .office-map-card {
    left: 18px;
    bottom: 44px;
    width: min(278px, calc(100% - 36px));
    padding: 14px 16px;
  }
  .footer { padding: 42px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-col {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 0 0;
  }
  .footer-col:not([open]) { padding-bottom: 14px; }
  .footer-col summary { cursor: pointer; margin-bottom: 12px; }
  .footer-bottom, .footer-bottom span:last-child { display: grid; }
  .footer-bottom i { display: none; }
  .modal-card {
    width: 90vw;
    margin: 10px auto;
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
  }
  .modal-copy { padding: 38px 24px 18px; }
  .modal h2 {
    margin-top: 16px;
    font-size: clamp(34px, 10.5vw, 42px);
    line-height: .98;
  }
  .modal-copy p {
    margin: 10px 0 14px;
    font-size: 17px;
    line-height: 1.35;
  }
  .lead-form { gap: 9px; }
  .lead-form label {
    gap: 5px;
    font-size: 11px;
    letter-spacing: .14em;
  }
  .lead-form input {
    height: 46px;
  }
  .lead-form textarea {
    min-height: 74px;
    max-height: 90px;
    padding-top: 11px;
  }
  .lead-form .btn {
    min-height: 48px;
  }
  .modal-copy small {
    margin-top: 8px;
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .brand-mark { width: 56px; height: 66px; }
  .brand-title { font-size: 23px; }
  .brand-motto, .brand-subtitle { font-size: 8px; }
  .icon-btn { width: 48px; height: 48px; }
  .hero h1 { font-size: 33px; }
  .hero-text { font-size: 19px; }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
