:root {
  --navy-950: #0f2740;
  --navy-900: #163a5d;
  --navy-800: #1f4f79;
  --blue-700: #2b6e91;
  --gold-700: #a97832;
  --gold-600: #bd8c46;
  --gold-500: #d2a761;
  --gold-200: #ead6af;
  --ivory-50: #fbfaf7;
  --ivory-100: #f6f2ea;
  --paper: #ffffff;
  --ink: #20262d;
  --muted: #65707b;
  --line: #e6e0d6;
  --success: #3b8065;
  --shadow-sm: 0 10px 30px rgba(26, 47, 65, .08);
  --shadow-md: 0 24px 70px rgba(24, 42, 57, .13);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --container: 1248px;
  --section-space: 128px;
  --header-h: 88px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --font-display: Georgia, 'Times New Roman', serif;
  --font-sans: Inter, Manrope, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory-50); font-family: var(--font-sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(var(--container), calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 18px; background: var(--navy-900); color: #fff; transition: top .2s; }
.skip-link:focus { top: 16px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); border-bottom: 1px solid transparent; transition: background .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s; }
.site-header.is-scrolled { background: rgba(251,250,247,.92); backdrop-filter: blur(18px); border-color: rgba(208,196,177,.6); box-shadow: 0 10px 30px rgba(23,49,69,.06); }
.header-inner { height: 100%; display: grid; grid-template-columns: 280px 1fr auto; align-items: center; gap: 32px; }
.brand img { width: 272px; height: 54px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; justify-content: center; gap: 28px; font-size: 14px; }
.desktop-nav a { position: relative; padding: 10px 0; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 3px; height: 1px; background: var(--gold-600); transition: right .25s var(--ease-out); }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.phone { font-size: 14px; font-weight: 650; white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--gold-500); background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.menu-toggle span { width: 20px; height: 1px; background: var(--navy-900); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { display: none; }

/* Buttons */
.button { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 650; font-size: 14px; letter-spacing: .01em; cursor: pointer; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s, color .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.985); }
.button:focus-visible { outline: 3px solid rgba(43,110,145,.28); outline-offset: 3px; }
.button--small { min-height: 42px; padding-inline: 18px; }
.button--primary { color: #fff; background: var(--navy-900); box-shadow: 0 12px 25px rgba(22,58,93,.16); }
.button--primary:hover { background: var(--navy-800); box-shadow: 0 16px 32px rgba(22,58,93,.22); }
.button--outline { border-color: var(--gold-600); color: var(--navy-950); background: rgba(255,255,255,.65); }
.button--outline:hover { background: var(--gold-600); color: #fff; }
.button--ghost { border-color: var(--line); background: rgba(255,255,255,.6); }
.button--ghost:hover { border-color: var(--navy-900); }
.button--gold { background: var(--gold-500); color: var(--navy-950); }
.button--gold:hover { background: #e0ba75; box-shadow: 0 16px 32px rgba(210,167,97,.2); }
.button[disabled], .button.is-disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Hero */
.hero { min-height: 930px; padding-top: calc(var(--header-h) + 70px); position: relative; overflow: hidden; background: radial-gradient(circle at 78% 20%, rgba(210,167,97,.12), transparent 27%), linear-gradient(180deg, #fff 0%, var(--ivory-50) 78%); }
.hero::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(50% + 120px); width: 1px; background: linear-gradient(transparent, var(--line), transparent); }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; min-height: 680px; }
.hero-copy { grid-column: 1 / span 7; padding-right: 56px; }
.eyebrow, .section-index { display: inline-block; color: var(--gold-700); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 750; }
.hero h1 { max-width: 820px; margin: 22px 0 24px; font-family: var(--font-display); font-size: clamp(58px, 5.2vw, 82px); line-height: .99; letter-spacing: -.045em; font-weight: 500; color: var(--navy-950); }
.hero h1 em { display: block; color: var(--blue-700); font-style: normal; }
.hero-lead { max-width: 660px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.72; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(59,128,101,.12); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 680px; margin: 44px 0 0; }
.hero-stats div { padding: 0 28px; border-left: 1px solid var(--line); }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { color: var(--navy-900); font-family: var(--font-display); font-size: 42px; line-height: 1; }
.hero-stats dt small { font-family: var(--font-sans); font-size: 13px; }
.hero-stats dd { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.hero-visual { grid-column: 8 / -1; position: relative; height: 660px; }
.portrait-frame { position: absolute; inset: 0 0 0 24px; overflow: hidden; border-radius: 220px 220px 10px 10px; background: #c7aa91; box-shadow: var(--shadow-md); }
.portrait-frame::before { content: ''; position: absolute; z-index: 2; inset: 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 205px 205px 5px 5px; pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; filter: brightness(1.10) contrast(.90) saturate(.72) sepia(.05); }
.portrait-wash { position: absolute; inset: 0; background: linear-gradient(140deg, rgba(255,255,255,.20), transparent 45%, rgba(22,58,93,.10)); mix-blend-mode: screen; pointer-events: none; }
.floating-card { position: absolute; z-index: 3; width: 240px; padding: 20px; background: rgba(255,255,255,.91); border: 1px solid rgba(208,196,177,.7); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); }
.floating-card--top { top: 84px; left: -52px; }
.floating-card--bottom { right: -38px; bottom: 48px; }
.floating-card__label { display: block; color: var(--gold-700); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 750; }
.floating-card strong { display: block; margin-top: 5px; color: var(--navy-950); font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.floating-card p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.trust-line { display: flex; align-items: center; gap: 18px; max-width: 640px; color: var(--muted); font-size: 13px; }
.stars { color: var(--gold-600); letter-spacing: .14em; }
.scroll-cue { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .16em; }

/* Sections */
.section { padding: var(--section-space) 0; }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; margin-bottom: 56px; }
.section-heading--inline { grid-template-columns: 1fr auto; align-items: center; }
.section-heading h2, .approach-intro h2, .about-copy h2, .faq-heading h2, .contact-copy h2 { margin: 10px 0 0; font-family: var(--font-display); color: var(--navy-950); font-size: clamp(42px, 4vw, 62px); line-height: 1.05; font-weight: 500; letter-spacing: -.035em; }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); font-size: 16px; }
.section--practice { background: var(--paper); }
.practice-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 16px; }
.practice-card { grid-column: span 2; position: relative; min-height: 420px; padding: 32px 26px; border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fdfbf7); transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.practice-card:hover { transform: translateY(-8px); border-color: var(--gold-200); box-shadow: var(--shadow-md); }
.practice-card__number { position: absolute; top: 18px; right: 18px; color: #b5aea4; font-size: 11px; }
.practice-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--gold-500); color: var(--gold-700); font-size: 24px; }
.practice-card h3 { margin: 50px 0 20px; font-family: var(--font-display); font-size: 25px; line-height: 1.15; color: var(--navy-950); font-weight: 500; }
.practice-card ul { padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 13px; }
.practice-card li { position: relative; padding-left: 14px; margin: 10px 0; }
.practice-card li::before { content: ''; position: absolute; left: 0; top: .65em; width: 4px; height: 4px; background: var(--gold-500); }
.practice-card a { position: absolute; left: 26px; bottom: 28px; color: var(--navy-900); font-size: 13px; font-weight: 650; }
.practice-card a:hover { color: var(--gold-700); }
.practice-related { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.practice-related span { color: var(--muted); }
.practice-related a { color: var(--navy-900); font-weight: 650; border-bottom: 1px solid var(--gold-500); padding-bottom: 3px; }
.practice-related a:hover { color: var(--gold-700); }

.section--cases { background: var(--ivory-100); overflow: hidden; }
.case-controls { display: flex; gap: 8px; }
.case-controls button { width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .2s; }
.case-controls button:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.cases-viewport { overflow: hidden; }
.cases-track { display: flex; gap: 20px; transition: transform .55s var(--ease-out); }
.case-card { flex: 0 0 calc((100% - 40px) / 3); position: relative; min-height: 480px; padding: 34px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.case-card--blue { color: #fff; background: var(--navy-900); border-color: var(--navy-900); }
.case-card__meta { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 2; }
.case-card__meta span { padding: 6px 9px; border: 1px solid currentColor; opacity: .65; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.case-card__result { display: block; position: relative; z-index: 2; margin-top: 58px; font-family: var(--font-display); color: var(--gold-600); font-size: 54px; font-weight: 500; line-height: 1; }
.case-card__result--text { max-width: 330px; font-size: 39px; line-height: 1.05; }
.case-card h3 { position: relative; z-index: 2; margin: 22px 0 16px; max-width: 430px; font-family: var(--font-display); font-size: 27px; line-height: 1.13; font-weight: 500; }
.case-card p { position: relative; z-index: 2; max-width: 390px; margin: 0; color: var(--muted); font-size: 13px; }
.case-card--blue p { color: rgba(255,255,255,.67); }
.case-card a { position: absolute; z-index: 2; left: 34px; bottom: 34px; color: var(--gold-600); font-size: 13px; font-weight: 650; }
.document-art { position: absolute; right: -55px; bottom: -65px; width: 220px; height: 270px; transform: rotate(-8deg); opacity: .28; }
.document-art i { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 15px, currentColor 16px 17px), #e9e4dc; border: 1px solid rgba(0,0,0,.14); box-shadow: var(--shadow-sm); }
.document-art i:nth-child(2) { transform: translate(-16px, -14px); opacity: .65; }
.document-art i:nth-child(3) { transform: translate(-32px, -28px); opacity: .35; }

.section--approach { background: #fff; }
.approach-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 110px; }
.approach-intro { position: sticky; top: 130px; align-self: start; }
.approach-intro p { margin: 28px 0; color: var(--muted); font-size: 16px; }
.text-link { color: var(--navy-900); font-weight: 650; font-size: 14px; border-bottom: 1px solid var(--gold-500); padding-bottom: 4px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 84px 1fr; gap: 30px; padding: 36px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps > li > span { color: var(--gold-600); font-family: var(--font-display); font-size: 34px; }
.steps h3 { margin: 0 0 8px; color: var(--navy-950); font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.results-band { padding: 80px 0; color: #fff; background: linear-gradient(105deg, var(--navy-950), var(--navy-800)); position: relative; overflow: hidden; }
.results-band::after { content: ''; position: absolute; right: -8%; top: -60%; width: 520px; height: 520px; border: 1px solid rgba(210,167,97,.25); border-radius: 50%; box-shadow: 0 0 0 80px rgba(210,167,97,.04), 0 0 0 160px rgba(210,167,97,.025); }
.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 48px; }
.results-heading span { color: var(--gold-500); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.results-heading p { max-width: 540px; margin: 0; color: rgba(255,255,255,.55); font-size: 12px; }
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; position: relative; z-index: 2; }
.results-grid div { padding: 0 34px; border-left: 1px solid rgba(255,255,255,.18); }
.results-grid div:first-child { padding-left: 0; border-left: none; }
.results-grid dt { font-family: var(--font-display); color: var(--gold-500); font-size: 54px; line-height: 1; }
.results-grid dt small { font-family: var(--font-sans); font-size: 13px; }
.results-grid dd { margin: 14px 0 0; max-width: 180px; color: rgba(255,255,255,.75); font-size: 13px; }

.section--expertise { background: var(--ivory-50); }
.expertise-layout { display: grid; grid-template-columns: 4fr 7fr; gap: 80px; align-items: stretch; }
.expertise-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.expertise-tab { padding: 24px 4px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; transition: color .2s, padding-left .2s, background .2s; }
.expertise-tab:hover { color: var(--navy-900); padding-left: 12px; }
.expertise-tab.is-active { color: var(--navy-900); padding-left: 18px; background: linear-gradient(90deg, rgba(210,167,97,.13), transparent 70%); font-weight: 700; }
.expertise-panel { min-height: 500px; padding: 60px; color: #fff; background: var(--navy-900); box-shadow: var(--shadow-md); }
.expertise-panel h2 { margin: 16px 0 24px; font-family: var(--font-display); font-size: 54px; line-height: 1.04; font-weight: 500; }
.expertise-panel > p { max-width: 680px; color: rgba(255,255,255,.68); font-size: 16px; }
.expertise-details { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 44px; }
.expertise-details span { padding: 10px 14px; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.84); font-size: 12px; }

.section--about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 100px; align-items: center; }
.about-photo { position: relative; height: 720px; overflow: hidden; background: #b7977a; }
.about-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(22,58,93,.08)); pointer-events: none; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; filter: brightness(1.08) contrast(.92) saturate(.77); }
.about-copy blockquote { margin: 34px 0; padding-left: 28px; border-left: 2px solid var(--gold-500); font-family: var(--font-display); color: var(--navy-900); font-size: 26px; line-height: 1.35; }
.about-copy > p { color: var(--muted); font-size: 15px; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0; }
.about-facts div { padding-top: 18px; border-top: 1px solid var(--line); }
.about-facts strong { display: block; color: var(--navy-900); font-family: var(--font-display); font-size: 23px; font-weight: 500; }
.about-facts span { color: var(--muted); font-size: 11px; }

.section--insights { background: var(--ivory-100); }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight-card { background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease-out), box-shadow .3s; }
.insight-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.insight-card > *:not(.insight-visual) { margin-left: 28px; margin-right: 28px; }
.insight-visual { height: 230px; display: grid; place-items: center; position: relative; overflow: hidden; background: linear-gradient(135deg, #eae3d7, #fff); }
.insight-visual::before, .insight-visual::after { content: ''; position: absolute; width: 170px; height: 210px; background: #fff; border: 1px solid #d8d1c6; box-shadow: var(--shadow-sm); transform: rotate(-7deg) translate(-26px, 22px); }
.insight-visual::after { transform: rotate(7deg) translate(38px, -5px); }
.insight-visual span { position: relative; z-index: 2; color: var(--navy-900); font-family: var(--font-display); font-size: 28px; letter-spacing: .08em; }
.insight-visual--crane { background: linear-gradient(135deg, #d9e4e8, #f8f6f0); }
.insight-visual--lease { background: linear-gradient(135deg, #efe2ce, #fff); }
.insight-meta { margin-top: 24px; color: var(--gold-700); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.insight-card h3 { margin-top: 14px; margin-bottom: 14px; color: var(--navy-950); font-family: var(--font-display); font-size: 27px; line-height: 1.15; font-weight: 500; }
.insight-card p { min-height: 65px; color: var(--muted); font-size: 13px; }
.insight-card a { display: block; margin-top: 24px; margin-bottom: 28px; color: var(--navy-900); font-size: 13px; font-weight: 650; }

.section--faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 100px; }
.faq-heading p { color: var(--muted); }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; color: var(--navy-950); font-family: var(--font-display); font-size: 23px; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { color: var(--gold-700); font-family: var(--font-sans); font-size: 24px; transition: transform .2s; }
.accordion details[open] summary span { transform: rotate(45deg); }
.accordion details p { margin: -8px 0 28px; max-width: 700px; color: var(--muted); font-size: 14px; }

.contact-section { padding: 120px 0; color: #fff; background: var(--navy-950); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: center; }
.section-index--light { color: var(--gold-500); }
.contact-copy h2 { color: #fff; }
.contact-copy > p { max-width: 580px; color: rgba(255,255,255,.65); font-size: 16px; }
.contact-list { display: grid; gap: 8px; margin-top: 34px; }
.contact-list a { font-family: var(--font-display); color: var(--gold-500); font-size: 24px; }
.contact-list span { color: rgba(255,255,255,.55); font-size: 13px; }
.contact-form { padding: 42px; background: #fff; color: var(--ink); box-shadow: var(--shadow-md); }
.contact-form label { display: block; margin-bottom: 18px; color: var(--navy-950); font-size: 12px; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 8px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); outline: none; background: transparent; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue-700); box-shadow: 0 2px 0 var(--blue-700); }
.contact-form .button { width: 100%; margin-top: 8px; }
.contact-form small { display: block; margin-top: 14px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.site-footer { padding: 54px 0; background: var(--ivory-100); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; align-items: start; }
.footer-grid > img { width: 300px; height: 70px; object-fit: contain; object-position: left center; }
.footer-grid > div { display: grid; gap: 9px; font-size: 13px; }
.footer-grid a:hover { color: var(--gold-700); }
.footer-grid p { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

/* Motion */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease-out), transform .75s var(--ease-out); }
.reveal--delay-1 { transition-delay: .08s; }
.reveal--delay-2 { transition-delay: .16s; }
.reveal--delay-3 { transition-delay: .24s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Figma-like grid overlay */
.grid-overlay { display: none; position: fixed; z-index: 999; inset: 0; width: min(var(--container), calc(100% - 96px)); margin-inline: auto; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(43,110,145,.10) 0, rgba(43,110,145,.10) calc((100% - 264px)/12), transparent calc((100% - 264px)/12), transparent calc((100% - 264px)/12 + 24px)); mix-blend-mode: multiply; }
body.show-grid .grid-overlay { display: block; }
.spec-toggle { position: fixed; z-index: 1000; right: 18px; bottom: 18px; height: 34px; padding: 0 12px; color: #fff; border: 0; background: rgba(15,39,64,.88); font-size: 10px; letter-spacing: .08em; cursor: pointer; }

@media (max-width: 1180px) {
  :root { --container: 928px; --section-space: 104px; }
  .container { width: min(var(--container), calc(100% - 64px)); }
  .header-inner { grid-template-columns: 220px 1fr auto; gap: 16px; }
  .brand img { width: 210px; }
  .desktop-nav { gap: 16px; font-size: 12px; }
  .phone { display: none; }
  .hero { min-height: 850px; padding-top: calc(var(--header-h) + 40px); }
  .hero-copy { grid-column: 1 / span 7; padding-right: 15px; }
  .hero-visual { grid-column: 8 / -1; height: 560px; }
  .floating-card { width: 210px; }
  .floating-card--top { left: -70px; }
  .practice-grid { grid-template-columns: repeat(6, 1fr); }
  .practice-card { grid-column: span 2; }
  .practice-card:nth-child(4) { grid-column: 2 / span 2; }
  .case-card { flex-basis: calc((100% - 20px) / 2); }
  .approach-grid, .expertise-layout, .faq-grid { gap: 60px; }
  .about-grid { gap: 60px; }
  .about-photo { height: 620px; }
  .grid-overlay { width: min(var(--container), calc(100% - 64px)); background: repeating-linear-gradient(90deg, rgba(43,110,145,.10) 0, rgba(43,110,145,.10) calc((100% - 168px)/8), transparent calc((100% - 168px)/8), transparent calc((100% - 168px)/8 + 24px)); }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; --section-space: 88px; }
  .container { width: min(100% - 40px, 720px); }
  .desktop-nav, .header-actions .button { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand img { width: 220px; height: 46px; }
  .menu-toggle { display: flex; }
  .mobile-menu { position: fixed; inset: var(--header-h) 0 0; display: block; background: rgba(251,250,247,.98); transform: translateX(100%); transition: transform .35s var(--ease-out); }
  .mobile-menu.is-open { transform: none; }
  .mobile-menu-inner { display: grid; gap: 0; padding-top: 28px; }
  .mobile-menu a:not(.button) { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 28px; }
  .mobile-menu .button { margin-top: 28px; }
  .hero { min-height: auto; padding: 124px 0 70px; }
  .hero::before { display: none; }
  .hero-grid { grid-template-columns: repeat(8, 1fr); min-height: auto; }
  .hero-copy { grid-column: 1 / -1; padding: 0; }
  .hero h1 { max-width: 760px; font-size: 66px; }
  .hero-visual { grid-column: 1 / -1; height: 650px; margin-top: 48px; }
  .portrait-frame { inset: 0 40px; border-radius: 260px 260px 8px 8px; }
  .floating-card--top { left: 0; }
  .floating-card--bottom { right: 0; }
  .hero-bottom { margin-top: 46px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-card { grid-column: auto !important; }
  .practice-card:last-child { grid-column: 1 / -1 !important; min-height: 350px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .section-heading--inline { grid-template-columns: 1fr auto; }
  .case-card { flex-basis: calc((100% - 20px) / 2); }
  .approach-grid, .expertise-layout, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .approach-intro { position: static; }
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: 42px 0; }
  .results-grid div:nth-child(3) { padding-left: 0; border-left: 0; }
  .expertise-tabs { display: grid; grid-template-columns: repeat(2, 1fr); }
  .expertise-tab { padding: 18px 12px; border-right: 1px solid var(--line); }
  .about-photo { height: 760px; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .insight-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 12px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > img { grid-column: 1 / -1; }
  .grid-overlay { width: min(100% - 40px, 720px); background: repeating-linear-gradient(90deg, rgba(43,110,145,.10) 0, rgba(43,110,145,.10) calc((100% - 168px)/8), transparent calc((100% - 168px)/8), transparent calc((100% - 168px)/8 + 24px)); }
}

@media (max-width: 560px) {
  :root { --section-space: 72px; }
  .container { width: calc(100% - 40px); }
  .brand img { width: 190px; }
  .hero { padding-top: 110px; }
  .hero h1 { font-size: clamp(45px, 13vw, 58px); }
  .hero-lead { font-size: 16px; }
  .hero-cta { flex-direction: column; }
  .button { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; gap: 22px; }
  .hero-stats div { padding: 0 0 0 18px; border-left: 1px solid var(--line); }
  .hero-stats div:first-child { padding-left: 18px; border-left: 1px solid var(--line); }
  .hero-visual { height: auto; display: grid; grid-template-columns: 1fr; gap: 12px; }
  .portrait-frame { position: relative; inset: auto; height: 520px; border-radius: 180px 180px 6px 6px; overflow: hidden; }
  .portrait-frame img { object-position: center 20%; }
  .floating-card { position: relative; inset: auto; width: 100%; padding: 16px 18px; box-shadow: none; backdrop-filter: none; }
  .floating-card--top, .floating-card--bottom { top: auto; right: auto; bottom: auto; left: auto; }
  .floating-card strong { font-size: 20px; }
  .floating-card p { font-size: 13px; }
  .hero-bottom { align-items: flex-end; }
  .trust-line { flex-direction: column; align-items: flex-start; gap: 5px; }
  .scroll-cue { display: none; }
  .section-heading--inline { grid-template-columns: 1fr; }
  .section-heading h2, .approach-intro h2, .about-copy h2, .faq-heading h2, .contact-copy h2 { font-size: 42px; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card, .practice-card:last-child { grid-column: auto !important; min-height: 365px; }
  .case-controls { display: none; }
  .cases-viewport { overflow: visible; }
  .cases-track { display: grid; transform: none !important; }
  .case-card { min-height: 450px; }
  .steps li { grid-template-columns: 58px 1fr; gap: 20px; }
  .results-heading { display: block; }
  .results-heading p { margin-top: 18px; }
  .results-grid { grid-template-columns: 1fr; gap: 34px; }
  .results-grid div, .results-grid div:nth-child(3) { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.18); }
  .expertise-tabs { grid-template-columns: 1fr; }
  .expertise-panel { padding: 36px 24px; }
  .expertise-panel h2 { font-size: 42px; }
  .about-photo { height: 550px; }
  .about-facts { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card:last-child { grid-column: auto; max-width: none; }
  .contact-form { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > img { width: 260px; }
  .grid-overlay { width: calc(100% - 40px); background: repeating-linear-gradient(90deg, rgba(43,110,145,.10) 0, rgba(43,110,145,.10) calc((100% - 60px)/4), transparent calc((100% - 60px)/4), transparent calc((100% - 60px)/4 + 20px)); }
  .spec-toggle { display: none; }
}

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


/* WordPress integration */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mobile-menu { top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .mobile-menu { top: calc(var(--header-h) + 46px); }
}
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link img { width: 272px; height: 54px; object-fit: contain; object-position: left center; }
.notice-form { margin: 0 0 18px; padding: 13px 16px; border: 1px solid rgba(59,128,101,.35); background: rgba(59,128,101,.08); color: #245642; font-size: 13px; }
.notice-form--error { border-color: rgba(164,60,60,.35); background: rgba(164,60,60,.08); color: #7d2929; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.content-shell { padding: calc(var(--header-h) + 72px) 0 96px; min-height: 70vh; background: #fff; }
.content-shell__inner { max-width: 850px; }
.content-shell h1 { color: var(--navy-950); font-family: var(--font-display); font-size: clamp(44px, 5vw, 70px); line-height: 1.05; font-weight: 500; }
.content-shell h2, .content-shell h3 { color: var(--navy-950); font-family: var(--font-display); font-weight: 500; }
.content-shell a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.post-list { display: grid; gap: 24px; margin-top: 40px; }
.post-card { padding: 28px; border: 1px solid var(--line); background: var(--paper); }
.post-card h2 { margin: 0 0 12px; font-size: 32px; }
.post-card p { color: var(--muted); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1180px) { .custom-logo-link img { width: 210px; } }
@media (max-width: 860px) { .custom-logo-link img { width: 220px; height: 46px; } }
@media (max-width: 560px) { .custom-logo-link img { width: 190px; } }


/* v1.3: меню услуг и динамические кейсы */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown__toggle span { margin-left: 4px; font-size: 11px; }
.nav-dropdown__menu { position: absolute; top: calc(100% + 10px); left: -24px; z-index: 50; min-width: 290px; padding: 12px; background: rgba(255,255,255,.99); border: 1px solid var(--line); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.nav-dropdown:hover .nav-dropdown__menu, .nav-dropdown:focus-within .nav-dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.desktop-nav .nav-dropdown__menu a { display: block; padding: 11px 12px; font-size: 13px; line-height: 1.25; }
.desktop-nav .nav-dropdown__menu a::after { display: none; }
.desktop-nav .nav-dropdown__menu a:hover { background: var(--cream-100, #f7f3eb); color: var(--gold-700); }
.case-heading-actions { display: flex; align-items: center; gap: 22px; }
.case-card--empty { min-width: 100%; }
.mobile-services { display: none; }

@media (max-width: 900px) {
  .mobile-services { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; padding: 4px 0 16px 18px; border-bottom: 1px solid var(--line); }
  .mobile-menu .mobile-services a { padding: 9px 0; border: 0; font-family: var(--font-body); font-size: 14px; color: var(--muted); }
  .case-heading-actions { gap: 12px; }
  .case-heading-actions > .text-link { display: none; }
}

@media (max-width: 560px) {
  .mobile-services { grid-template-columns: 1fr; }
}


/* v1.4: прямая ссылка на лендинг строительного подряда и новая страница 404 */
.error-page { background: var(--paper, #f8f5ef); }
.error-hero { padding: calc(var(--header-h) + 86px) 0 92px; min-height: 74vh; display: flex; align-items: center; }
.error-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: clamp(52px, 8vw, 120px); align-items: center; }
.error-code { margin: 8px 0 2px; font-family: var(--font-display); font-size: clamp(118px, 18vw, 250px); line-height: .72; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px rgba(14,45,67,.20); user-select: none; }
.error-hero h1 { max-width: 780px; margin: 34px 0 22px; color: var(--navy-950); font-family: var(--font-display); font-size: clamp(42px, 5vw, 72px); line-height: 1.02; font-weight: 500; letter-spacing: -.035em; }
.error-lead { max-width: 660px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.error-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.error-hero__panel { position: relative; padding: 42px; border: 1px solid var(--line); background: rgba(255,255,255,.76); box-shadow: 0 28px 70px rgba(14,45,67,.08); overflow: hidden; }
.error-panel__number { position: absolute; top: -18px; right: 18px; color: rgba(14,45,67,.055); font-family: var(--font-display); font-size: 132px; line-height: 1; }
.error-hero__panel h2 { position: relative; margin: 12px 0 26px; color: var(--navy-950); font-family: var(--font-display); font-size: 36px; line-height: 1.08; font-weight: 500; }
.error-hero__panel .search-form { position: relative; display: grid; gap: 12px; }
.error-hero__panel .search-form label { display: block; }
.error-hero__panel .search-field { width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--navy-950); font: inherit; }
.error-hero__panel .search-submit { min-height: 54px; padding: 0 22px; border: 1px solid var(--navy-950); background: var(--navy-950); color: #fff; font: 600 13px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.error-panel__note { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.error-directions { padding: 86px 0 112px; background: #fff; border-top: 1px solid var(--line); }
.error-links { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.error-link-card { min-height: 170px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--navy-950); text-decoration: none; transition: background .2s, transform .2s; }
.error-link-card:hover { background: var(--paper, #f8f5ef); transform: translateY(-2px); }
.error-link-card span { color: var(--gold-700); font-size: 12px; letter-spacing: .1em; }
.error-link-card strong { max-width: 210px; font-family: var(--font-display); font-size: 25px; line-height: 1.15; font-weight: 500; }
.error-link-card em { color: var(--gold-700); font-size: 18px; font-style: normal; }
@media (max-width: 900px) {
  .error-hero { padding-top: calc(var(--header-h) + 54px); }
  .error-hero__grid { grid-template-columns: 1fr; gap: 46px; }
  .error-code { font-size: clamp(105px, 30vw, 180px); }
  .error-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .error-hero { padding-bottom: 70px; }
  .error-hero h1 { margin-top: 28px; font-size: 43px; }
  .error-lead { font-size: 16px; }
  .error-actions { flex-direction: column; }
  .error-hero__panel { padding: 30px 22px; }
  .error-directions { padding: 68px 0 84px; }
  .error-links { grid-template-columns: 1fr; }
  .error-link-card { min-height: 136px; }
}

/* v1.5: надежное применение фирменной страницы 404 */
body.lawpractik-custom-404 .error-page,
body.error404 .error-page { min-height: 100vh; }
body.lawpractik-custom-404 .site-main,
body.error404 .site-main { padding: 0; }


/* v1.6: навигация по разделам юридического блога */
.blog-hub { padding-bottom: 110px; background: #fff; }
.blog-hub__heading { max-width: none; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.blog-hub__heading h1 { max-width: 850px; margin-top: 8px; }
.blog-hub__lead { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.blog-hub__lead p { margin: 0; }
.blog-hub__layout { max-width: none; display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: clamp(44px, 6vw, 86px); align-items: start; padding-top: 48px; }
.blog-sidebar { position: relative; }
.blog-sidebar__inner { position: sticky; top: calc(var(--header-h) + 26px); padding: 28px 0 0; border-top: 1px solid var(--navy-950); }
.blog-sidebar__eyebrow { margin-bottom: 8px; }
.blog-sidebar__title { margin: 0; color: var(--navy-950); font-family: var(--font-display); font-size: 32px!important; line-height: 1.08; font-weight: 500; }
.blog-sidebar__intro { margin: 13px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.blog-sections { border-top: 1px solid var(--line); }
.blog-section-link { display: grid; grid-template-columns: 30px minmax(0,1fr) 18px; gap: 11px; align-items: start; padding: 16px 2px; border-bottom: 1px solid var(--line); color: var(--navy-950)!important; text-decoration: none!important; transition: background .18s ease, padding .18s ease, color .18s ease; }
.blog-section-link:hover { padding-left: 8px; background: var(--paper); }
.blog-section-link.is-active { padding-left: 8px; background: var(--paper); color: var(--blue-700)!important; }
.blog-section-link__number { padding-top: 2px; color: var(--gold-700); font-size: 10px; letter-spacing: .08em; }
.blog-section-link__copy strong { display: block; font-size: 14px; line-height: 1.25; }
.blog-section-link__copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.blog-section-link__arrow { color: var(--gold-700); font-size: 14px; transition: transform .18s ease; }
.blog-section-link:hover .blog-section-link__arrow { transform: translateX(3px); }
.blog-sidebar__help { margin-top: 30px; padding: 22px; background: var(--paper); border: 1px solid var(--line); }
.blog-sidebar__help strong { display: block; color: var(--navy-950); font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.blog-sidebar__help > span { display: block; margin: 8px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.blog-sidebar__help .search-form { display: grid; grid-template-columns: 1fr auto; gap: 0; }
.blog-sidebar__help .search-field { width: 100%; min-width: 0; height: 42px; padding: 0 11px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 12px; }
.blog-sidebar__help .search-submit { min-width: 48px; padding: 0 10px; border: 1px solid var(--navy-950); background: var(--navy-950); color: #fff; font-size: 0; cursor: pointer; }
.blog-sidebar__help .search-submit::after { content: '→'; font-size: 15px; }
.blog-feed { min-width: 0; }
.blog-feed__topline { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.blog-feed__topline a { color: var(--gold-700); text-decoration: none; font-weight: 600; }
.blog-feed .post-list { gap: 0; margin-top: 0; }
.post-card--blog { padding: 32px 0 34px; border: 0; border-bottom: 1px solid var(--line); background: #fff; }
.post-card--blog:first-child { padding-top: 28px; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 11px; color: var(--muted); font-size: 11px; }
.post-card__meta span { position: relative; color: var(--gold-700); }
.post-card__meta span::before { content: ''; position: absolute; left: -10px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--line); transform: translateY(-50%); }
.post-card--blog h2 { max-width: 800px; margin: 0 0 12px; font-size: clamp(27px, 2.5vw, 38px); line-height: 1.12; }
.post-card--blog h2 a { color: var(--navy-950); text-decoration: none; }
.post-card--blog h2 a:hover { color: var(--blue-700); }
.post-card__excerpt { max-width: 840px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.post-card__excerpt p { margin: 0; }
.post-card__read { display: inline-flex; gap: 8px; align-items: center; margin-top: 17px; color: var(--navy-950)!important; font-size: 12px; font-weight: 700; text-decoration: none!important; }
.post-card__read span { color: var(--gold-700); transition: transform .18s ease; }
.post-card__read:hover span { transform: translateX(4px); }
.blog-feed .navigation.pagination { margin-top: 42px; }
.blog-feed .nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.blog-feed .page-numbers { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); color: var(--navy-950); text-decoration: none; font-size: 12px; }
.blog-feed .page-numbers.current { border-color: var(--navy-950); background: var(--navy-950); color: #fff; }

@media (max-width: 980px) {
  .blog-hub__layout { grid-template-columns: 240px minmax(0,1fr); gap: 36px; }
  .blog-section-link__copy small { display: none; }
}
@media (max-width: 760px) {
  .blog-hub__heading { padding-bottom: 32px; }
  .blog-hub__layout { display: block; padding-top: 30px; }
  .blog-sidebar__inner { position: static; padding-top: 0; border-top: 0; }
  .blog-sidebar__title { font-size: 28px!important; }
  .blog-sidebar__intro { max-width: 520px; }
  .blog-sections { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 13px; border-top: 0; scrollbar-width: thin; }
  .blog-section-link { flex: 0 0 auto; display: block; min-width: auto; padding: 10px 14px!important; border: 1px solid var(--line); background: #fff; white-space: nowrap; }
  .blog-section-link.is-active { border-color: var(--navy-950); background: var(--navy-950); color: #fff!important; }
  .blog-section-link__number,.blog-section-link__copy small,.blog-section-link__arrow { display: none; }
  .blog-section-link__copy strong { font-size: 12px; }
  .blog-sidebar__help { display: none; }
  .blog-feed { margin-top: 24px; }
}
@media (max-width: 560px) {
  .blog-hub__heading h1 { font-size: 43px; }
  .blog-hub__lead { font-size: 15px; }
  .post-card--blog { padding: 25px 0 27px; }
  .post-card--blog h2 { font-size: 29px; }
}
