:root {
  --ink: #1f2328;
  --muted: #5c6370;
  --line: #ded8cc;
  --paper: #ffffff;
  --soft: #f6f4ef;
  --brand: #7c1622;
  --brand-strong: #5f111b;
  --gold: #b6894b;
  --green: #315f5a;
  --shadow: 0 18px 45px rgba(31, 35, 40, 0.12);
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.65;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--brand);
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(182, 137, 75, 0.65);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--brand);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(31, 35, 40, 0.12);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
}

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


.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 760;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 17px;
  font-size: 14px;
  white-space: nowrap;
}

.primary-nav a {
  padding: 24px 0 21px;
  border-bottom: 3px solid transparent;
  color: #2d3239;
}

.primary-nav a[aria-current="page"] {
  color: var(--brand);
  border-color: var(--gold);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: #595959;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 22, 20, 0.82), rgba(24, 22, 20, 0.48) 48%, rgba(24, 22, 20, 0.16));
}

.hero-content {
  position: relative;
  padding: 92px 0 110px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: 52px;
  line-height: 1.12;
  font-weight: 780;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-lede {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 21px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-actions,
.cta-actions,
.section-action,
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 36px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px 18px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-strong);
  color: #fff;
}

.btn-secondary {
  background: var(--paper);
  color: var(--brand);
  border-color: var(--line);
}

.btn-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.trust-strip {
  background: var(--brand-strong);
  color: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust-grid div {
  min-height: 130px;
  padding: 26px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-grid div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  font-size: 20px;
  line-height: 1.35;
}

.trust-grid span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.section {
  padding: 78px 0;
}

.soft-section {
  background: var(--soft);
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header h2,
.contact-band h2,
.contact-panel h2,
.aside-panel h2,
.prose h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.25;
}

.section-header p:last-child {
  margin: 0;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 46px;
  align-items: center;
}

.media-frame,
.wide-media {
  margin: 0;
}

.media-frame img,
.wide-media img,
.profile-photo img,
.lawyer-photo img {
  width: 100%;
  object-fit: cover;
}

.media-frame img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 18px;
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
}

.card h3,
.news-row h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.35;
}

.card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.card-kicker,
.meta-line {
  display: block;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--brand);
  font-weight: 700;
}

.lawyer-card {
  padding: 0;
  overflow: hidden;
}

.lawyer-photo {
  background: var(--soft);
}

.lawyer-photo img {
  height: 260px;
  object-position: center 34%;
}

.lawyer-body {
  padding: 22px;
}

.avatar-placeholder {
  height: 260px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f2eee7, #e6ded1);
  color: var(--brand);
  font-weight: 780;
}

.avatar-large {
  height: 360px;
  border-radius: 8px;
}

.page-hero {
  padding: 86px 0 78px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.page-hero--image {
  color: #fff;
  background-size: cover;
  background-position: center;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.page-hero--image p:last-child {
  color: rgba(255, 255, 255, 0.86);
}

.prose {
  max-width: 920px;
}

.prose p,
.prose li {
  color: #333942;
  font-size: 16px;
}

.prose p {
  margin: 0 0 18px;
}

.prose h2 {
  margin-top: 34px;
}

.prose h2:first-child {
  margin-top: 0;
}

.wide-media {
  margin: 34px 0;
}

.wide-media img {
  aspect-ratio: 16 / 8;
  border-radius: 8px;
}

.info-table {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.info-table div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-table strong,
.info-table span {
  padding: 14px 16px;
}

.info-table strong {
  background: var(--soft);
}

.info-table.compact div {
  grid-template-columns: 160px minmax(0, 1fr);
}

.detail-layout,
.article-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: start;
}

.detail-aside {
  position: sticky;
  top: 96px;
}

.aside-panel,
.contact-panel,
.map-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
}

.map-panel {
  padding: 0;
  overflow: hidden;
}

.map-panel iframe {

  width: 100%;
  height: 420px;
  border: 0;
}

.map-caption {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.map-caption strong,
.map-caption span {
  display: block;
}

.map-caption span {
  color: var(--muted);
  font-size: 14px;
}

.notice {

  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  background: #fbf8f2;
  color: #343a40;
}

.link-list {
  margin-top: 26px;
}

.site-footer {
  background: #17191d;
  color: #fff;
  padding: 46px 0;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand strong,
.footer-brand span,
.footer-contact span,
.footer-contact a {
  display: block;
}

.footer-brand span,
.footer-brand p,
.footer-contact,
.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-logo {
  width: min(220px, 100%);
  height: auto;
  object-fit: contain;
  margin: 0 0 16px;
}

.footer-brand p {
  margin: 14px 0 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

[hidden] {
  display: none !important;
}

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

  .primary-nav {
    gap: 12px;
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    inset: 68px 0 auto 0;
    display: none;
    width: 100%;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    white-space: normal;
  }

  .primary-nav.is-open {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .primary-nav a {
    padding: 12px 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-column,
  .detail-layout,
  .article-layout,
  .contact-grid,
  .contact-band-inner {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

  .profile-header {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 340px;
  }


  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .hero {
    min-height: 560px;
    background-position: 42% center;
  }

  .hero-content {
    padding: 72px 0 88px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 32px;
  }

  .hero-lede,
  .page-hero p:last-child {
    font-size: 16px;
    max-width: calc(100vw - 28px);
    word-break: break-all;
  }

  .section,
  .page-hero {
    padding: 54px 0;
  }

  .section-header h2,
  .contact-band h2,
  .contact-panel h2,
  .aside-panel h2,
  .prose h2 {
    font-size: 24px;
  }

  .trust-grid,
  .cards-grid,
  .lawyer-grid,
  .primary-nav.is-open {
    grid-template-columns: 1fr;
  }

  .trust-grid div,
  .trust-grid div:last-child {
    min-height: 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .news-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .info-table div,
  .info-table.compact div {
    grid-template-columns: 1fr;
  }

  .wide-media img {
    aspect-ratio: 4 / 3;
  }
}
