/* ============================================================
   LAW — bespoke layout (адвокатское бюро)
   Tone: sober, statusный, без фото людей; тёмный navy + gold,
   serif Cormorant headlines, sans Inter body, римские цифры,
   крупная статистика, выигранные дела.
   ============================================================ */

body[data-niche="law"] {
  --gold:           #B89766;
  --gold-2:         #D4B27E;
  --gold-deep:      #8E7548;
  --burgundy:       #6E1F2E;
  --navy:           #0E1726;
  --navy-2:         #131C2E;
  --navy-3:         #1A2438;
  --paper:          #F4EFE6;
  --cream:          #EBE3D2;
  --char:           #1F1B14;
  --char-2:         #2D281C;
  --slate:          #6B5F47;
  --hairline-d:     rgba(184,151,102,.18);
  --hairline-l:     #D6CCB6;

  --surface-page:   var(--navy);
  --surface-card:   var(--navy-2);
  --surface-soft:   var(--navy-3);
  --text-primary:   var(--paper);
  --text-secondary: rgba(244,239,230,.72);
  --border-soft:    var(--hairline-d);
  --accent:         var(--gold);
  --accent-dark:    var(--gold-deep);

  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-sans);
}

body[data-niche="law"] h1,
body[data-niche="law"] h2,
body[data-niche="law"] h3,
body[data-niche="law"] .display {
  font-family: 'Cormorant Garamond', 'Source Serif 4', Georgia, serif;
  font-weight: 500; letter-spacing: -0.005em; color: var(--paper); line-height: 1.08;
}

/* ---- TOPBAR ---- */
.l-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  padding: 22px 0; border-bottom: 1px solid transparent;
}
.l-topbar.scrolled {
  position: fixed; padding: 14px 0;
  background: rgba(14,23,38,.94); backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--hairline-d);
}
.l-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.l-brand { display: inline-flex; align-items: baseline; gap: 12px; }
.l-brand b {
  font-family: 'Cormorant Garamond', 'Source Serif 4', Georgia, serif;
  font-size: 24px; font-weight: 500; color: var(--paper); letter-spacing: 0;
}
.l-brand small {
  display: inline-block; padding: 3px 8px; border: 1px solid var(--gold);
  color: var(--gold); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600;
}
.l-nav { display: flex; gap: 28px; }
.l-nav a { color: rgba(244,239,230,.78); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.l-nav a:hover { color: var(--gold); }
.l-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; border: 1px solid var(--gold); color: var(--gold);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  transition: background .25s var(--ease-smooth), color .25s var(--ease-smooth);
}
.l-cta:hover { background: var(--gold); color: var(--navy); }
.l-cta.solid { background: var(--gold); color: var(--navy); }
.l-cta.solid:hover { background: var(--gold-2); }
@media (max-width: 760px) { .l-nav { display: none; } }

/* ---- HERO ---- */
.l-hero {
  position: relative; padding: clamp(140px, 16vw, 220px) 0 clamp(80px, 10vw, 140px);
  border-bottom: 1px solid var(--hairline-d);
  background:
    radial-gradient(70% 50% at 80% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, var(--burgundy) 30%, transparent), transparent 60%),
    var(--navy);
  overflow: hidden;
}
.l-hero::before {
  content: ''; position: absolute; left: 50%; top: 30%; transform: translateX(-50%);
  width: 1100px; height: 1100px; border: 1px solid var(--hairline-d); border-radius: 50%;
  pointer-events: none; opacity: .55;
}
.l-hero::after {
  content: ''; position: absolute; left: 50%; top: 30%; transform: translateX(-50%);
  width: 700px; height: 700px; border: 1px solid var(--hairline-d); border-radius: 50%;
  pointer-events: none; opacity: .35;
}
.l-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--gold); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 32px;
}
.l-hero-eyebrow::before, .l-hero-eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--gold); opacity: .8; }
.l-hero h1 {
  font-family: 'Cormorant Garamond', 'Source Serif 4', Georgia, serif;
  font-size: clamp(44px, 7.5vw, 110px); line-height: 1.02; letter-spacing: -0.012em; font-weight: 500;
  margin: 0 0 24px; color: var(--paper);
  max-width: 18ch;
}
.l-hero h1 i { font-style: italic; color: var(--gold); }
.l-hero-lead {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: rgba(244,239,230,.74);
  max-width: 60ch; margin: 0 0 40px;
}
.l-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.l-hero-actions .l-cta { padding: 16px 28px; font-size: 12px; }

.l-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--hairline-d);
  padding-top: 36px;
}
.l-hero-stat { padding-right: 24px; border-right: 1px solid var(--hairline-d); }
.l-hero-stat:last-child { border-right: 0; padding-right: 0; }
.l-hero-stat strong {
  display: block; font-family: 'Cormorant Garamond', serif; font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 500; color: var(--gold); line-height: 1.05; margin-bottom: 6px; letter-spacing: -0.005em;
}
.l-hero-stat strong span { color: var(--paper); font-style: italic; }
.l-hero-stat small {
  display: block; color: rgba(244,239,230,.62); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
}
@media (max-width: 760px) { .l-hero-stats { grid-template-columns: 1fr 1fr; gap: 32px; } .l-hero-stat { border-right: 0; padding-right: 0; padding-bottom: 24px; border-bottom: 1px solid var(--hairline-d); } }

/* ---- SECTION rhythm ---- */
.l-sec { padding: clamp(80px, 10vw, 140px) 0; }
.l-sec.bg-paper { background: var(--paper); color: var(--char); }
.l-sec.bg-paper h2, .l-sec.bg-paper h3 { color: var(--char); }
.l-sec.bg-cream { background: var(--cream); color: var(--char); }
.l-sec.bg-cream h2, .l-sec.bg-cream h3 { color: var(--char); }

.l-eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--gold); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
.l-eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; opacity: .8; }
.l-sec.bg-paper .l-eyebrow, .l-sec.bg-cream .l-eyebrow { color: var(--gold-deep); }
.l-h2 {
  font-family: 'Cormorant Garamond', 'Source Serif 4', Georgia, serif;
  font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.005em; font-weight: 500; line-height: 1.08;
  margin: 0 0 18px;
}
.l-h2 i { font-style: italic; color: var(--gold); }
.l-sec.bg-paper .l-h2 i, .l-sec.bg-cream .l-h2 i { color: var(--gold-deep); }
.l-lead { font-size: clamp(15px, 1.2vw, 17px); color: var(--text-secondary); line-height: 1.65; max-width: 60ch; }
.l-sec.bg-paper .l-lead, .l-sec.bg-cream .l-lead { color: var(--slate); }

/* ---- PRACTICE — направления практики, римские номера ---- */
.l-prac {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 40px; border-top: 1px solid var(--hairline-l);
}
.l-sec.bg-paper .l-prac { border-color: var(--hairline-l); }
.l-prac-item {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--hairline-l);
  border-bottom: 1px solid var(--hairline-l);
  display: flex; flex-direction: column; gap: 14px;
  transition: background .25s var(--ease-smooth);
}
.l-prac-item:nth-child(3n) { border-right: 0; padding-right: 0; }
.l-prac-item:hover { background: rgba(184,151,102,.05); }
.l-prac-num {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 22px; color: var(--gold-deep); font-weight: 500; letter-spacing: .04em;
}
.l-prac-title {
  font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500; line-height: 1.15; margin: 0;
  color: var(--char);
}
.l-prac-desc { color: var(--slate); font-size: 14px; line-height: 1.55; margin: 0; }
.l-prac-stat {
  margin-top: auto; padding-top: 16px; border-top: 1px dotted var(--hairline-l);
  display: flex; align-items: baseline; gap: 8px;
}
.l-prac-stat b { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--gold-deep); font-weight: 500; }
.l-prac-stat span { color: var(--slate); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 900px) { .l-prac { grid-template-columns: 1fr 1fr; } .l-prac-item:nth-child(3n) { border-right: 1px solid var(--hairline-l); padding-right: 28px; } .l-prac-item:nth-child(2n) { border-right: 0; padding-right: 0; } }
@media (max-width: 600px) { .l-prac { grid-template-columns: 1fr; } .l-prac-item, .l-prac-item:nth-child(2n) { border-right: 0; padding-right: 0; } }

/* ---- CASES — выигранные дела ---- */
.l-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.l-case {
  border: 1px solid var(--hairline-d); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .25s var(--ease-smooth), background .25s var(--ease-smooth);
  position: relative;
}
.l-case:hover { border-color: var(--gold); background: rgba(184,151,102,.04); }
.l-case-num {
  position: absolute; top: 24px; right: 28px;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 14px; color: var(--gold); letter-spacing: .04em;
}
.l-case-tag {
  display: inline-block; align-self: flex-start;
  padding: 4px 10px; border: 1px solid var(--hairline-d);
  color: var(--gold); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
}
.l-case h3 { font-size: 24px; line-height: 1.2; margin: 0; color: var(--paper); font-weight: 500; }
.l-case p { color: var(--text-secondary); margin: 0; font-size: 14px; line-height: 1.7; }
.l-case-foot {
  display: flex; align-items: baseline; gap: 24px;
  padding-top: 16px; border-top: 1px solid var(--hairline-d); margin-top: auto;
}
.l-case-result {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; color: var(--gold); font-weight: 500; letter-spacing: -0.005em;
}
.l-case-result-label { color: rgba(244,239,230,.55); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
@media (max-width: 800px) { .l-cases { grid-template-columns: 1fr; } }

/* ---- PARTNERS — партнёры списком (без фото) ---- */
.l-partners { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 40px; border-top: 1px solid var(--hairline-l); }
.l-partner {
  padding: 32px 32px 32px 0; border-bottom: 1px solid var(--hairline-l);
  display: grid; grid-template-columns: 60px 1fr; gap: 24px; align-items: start;
}
.l-partner:nth-child(odd) { border-right: 1px solid var(--hairline-l); padding-right: 32px; }
.l-partner-num {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 20px; color: var(--gold-deep); font-weight: 500;
}
.l-partner-name {
  font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500;
  margin: 0 0 6px; color: var(--char); line-height: 1.2;
}
.l-partner-role {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin: 0 0 12px;
}
.l-partner-bio { color: var(--slate); font-size: 14px; line-height: 1.6; margin: 0; }
@media (max-width: 800px) { .l-partners { grid-template-columns: 1fr; } .l-partner:nth-child(odd) { border-right: 0; padding-right: 0; } }

/* ---- CREDS — регалии bar association ---- */
.l-creds {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 36px 0; border-top: 1px solid var(--hairline-l); border-bottom: 1px solid var(--hairline-l);
}
.l-cred {
  text-align: left; padding-right: 24px; border-right: 1px solid var(--hairline-l);
}
.l-cred:last-child { border-right: 0; padding-right: 0; }
.l-cred-label { color: var(--slate); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.l-cred-name {
  font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--char); line-height: 1.2;
  margin: 0 0 4px;
}
.l-cred-detail { color: var(--slate); font-size: 13px; }
@media (max-width: 760px) { .l-creds { grid-template-columns: 1fr 1fr; } .l-cred:nth-child(2n) { border-right: 0; padding-right: 0; } .l-cred { padding-bottom: 16px; border-bottom: 1px solid var(--hairline-l); } }

/* ---- HOTLINE — тёмная плашка экстренной связи ---- */
.l-hotline {
  background:
    radial-gradient(50% 50% at 80% 0%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 60%),
    var(--navy-2);
  border-top: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
}
.l-hotline-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 56px 0;
}
.l-hotline-text {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2; color: var(--paper); margin: 0;
}
.l-hotline-text i { font-style: italic; color: var(--gold); }
.l-hotline-num a {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.4vw, 44px); color: var(--gold); font-weight: 500;
  border: 1px solid var(--gold); padding: 18px 28px;
  transition: background .25s var(--ease-smooth), color .25s var(--ease-smooth);
}
.l-hotline-num a:hover { background: var(--gold); color: var(--navy); }
.l-hotline-num small {
  display: block; font-family: var(--font-sans);
  color: rgba(244,239,230,.6); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; margin-top: 10px;
}
@media (max-width: 800px) { .l-hotline-grid { grid-template-columns: 1fr; text-align: left; } }

/* ---- OFFICES — адреса ---- */
.l-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 40px; border: 1px solid var(--hairline-l); }
.l-office {
  padding: 36px; border-right: 1px solid var(--hairline-l);
  display: flex; flex-direction: column; gap: 12px;
}
.l-office:last-child { border-right: 0; }
.l-office-city {
  font-family: 'Cormorant Garamond', serif; font-size: 28px; color: var(--char); font-weight: 500; margin: 0 0 4px;
}
.l-office-city span { font-style: italic; color: var(--gold-deep); }
.l-office-addr { color: var(--slate); font-size: 14px; line-height: 1.55; margin: 0; }
.l-office-meta { color: var(--slate); font-size: 13px; padding-top: 12px; border-top: 1px solid var(--hairline-l); }
.l-office-meta b { color: var(--char); font-weight: 600; }
@media (max-width: 800px) { .l-offices { grid-template-columns: 1fr; } .l-office { border-right: 0; border-bottom: 1px solid var(--hairline-l); } .l-office:last-child { border-bottom: 0; } }

/* ---- FAQ ---- */
.l-faq { max-width: 760px; margin: 40px auto 0; }
.l-faq details {
  border-top: 1px solid var(--hairline-l); padding: 24px 0;
}
.l-faq details:last-child { border-bottom: 1px solid var(--hairline-l); }
.l-faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--char); font-weight: 500;
}
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: '+'; color: var(--gold-deep); font-size: 28px; transition: transform .25s var(--ease-smooth); font-family: 'Cormorant Garamond', serif; line-height: 1; }
.l-faq details[open] summary::after { transform: rotate(45deg); }
.l-faq details > div { color: var(--slate); padding-top: 14px; line-height: 1.7; font-size: 16px; }

/* ---- FOOTER ---- */
.l-foot { background: var(--navy); padding: clamp(64px, 8vw, 96px) 0 32px; border-top: 1px solid var(--hairline-d); }
.l-foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.l-foot-brand b {
  font-family: 'Cormorant Garamond', serif; font-size: 32px; color: var(--paper); display: block; margin-bottom: 4px;
}
.l-foot-brand b i { color: var(--gold); font-style: italic; }
.l-foot-brand p { color: rgba(244,239,230,.55); margin: 12px 0 0; font-size: 14px; max-width: 38ch; line-height: 1.6; }
.l-foot h5 { color: var(--gold); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; margin: 0 0 16px; font-weight: 700; }
.l-foot a { color: rgba(244,239,230,.72); display: block; padding: 4px 0; font-size: 14px; }
.l-foot a:hover { color: var(--gold); }
.l-foot-bot { padding-top: 24px; border-top: 1px solid var(--hairline-d); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: rgba(244,239,230,.5); font-size: 12px; letter-spacing: .04em; }
@media (max-width: 800px) { .l-foot-top { grid-template-columns: 1fr; } }

/* Reveal */
body[data-niche="law"] .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-smooth), transform 700ms var(--ease-smooth); }
body[data-niche="law"] .reveal.in { opacity: 1; transform: none; }
