/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg: #fafafa;
  --c-surface: #ffffff;
  --c-text: #0f0f0f;
  --c-text-muted: #6b7280;
  --c-accent: #1a3a5c;
  --c-accent-light: #2563a8;
  --c-gold: #b8900a;
  --c-border: #e5e7eb;
  --c-hero-bg: #0d2137;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1160px;
  --nav-h: 68px;
  --banner-h: 42px;
  --ease: cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--banner-h) + var(--nav-h) + 16px); }
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ─── Utilities ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 5vw, 40px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: .9375rem; font-weight: 600;
  letter-spacing: .01em; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: all .2s var(--ease); white-space: nowrap;
  min-height: 48px; line-height: 1;
}
.btn-primary { background: var(--c-accent-light); color: #fff; border-color: var(--c-accent-light); }
.btn-primary:hover { background: #1d4f8a; border-color: #1d4f8a; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,168,.3); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }
.btn-sm { padding: 10px 20px; font-size: .875rem; min-height: 40px; }
.btn-primary-light { background: #fff; color: var(--c-accent); border-color: #fff; }
.btn-primary-light:hover { background: #f0f4ff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--c-accent-light); border-color: var(--c-accent-light); }
.btn-outline:hover { background: #f0f4ff; }

.section-eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-light); margin-bottom: 12px; }
.section-title { font-family: var(--font-serif); font-size: clamp(1.625rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.2; color: var(--c-text); margin-bottom: 24px; }

/* ─── Emergency Banner ──────────────────────────────────────────────────────── */
.emergency-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  height: var(--banner-h);
  background: linear-gradient(180deg, #e01225 0%, #c20016 100%);
  display: flex; align-items: center;
  box-shadow: 0 2px 10px rgba(150,0,15,.35);
}
.emergency-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; width: 100%;
}
.emergency-pulse {
  flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: emgpulse 1.8s var(--ease) infinite;
}
@keyframes emgpulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.65); }
  70%  { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.emergency-text {
  font-size: .8125rem; font-weight: 600; color: #fff;
  letter-spacing: .01em; text-transform: uppercase;
}
.emergency-text-short { display: none; }
.emergency-phone {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .875rem; font-weight: 700; color: #c20016; text-decoration: none;
  letter-spacing: .02em; white-space: nowrap;
  padding: 5px 15px; border-radius: 100px;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease);
}
.emergency-phone::before {
  content: ''; width: 13px; height: 13px; flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.emergency-phone:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.28); }
@media (prefers-reduced-motion: reduce) {
  .emergency-pulse { animation: none; }
}

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: var(--banner-h); left: 0; right: 0; z-index: 100;
  height: var(--nav-h); background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled, .nav.nav-solid {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--c-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

.logo { display: flex; align-items: baseline; gap: 6px; text-decoration: none; flex-shrink: 0; }
.logo-mh { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 700; color: #fff; transition: color .3s; }
.logo-assoc { font-size: .875rem; font-weight: 400; color: rgba(255,255,255,.7); transition: color .3s; }
.nav.scrolled .logo-mh, .nav.nav-solid .logo-mh { color: var(--c-accent); }
.nav.scrolled .logo-assoc, .nav.nav-solid .logo-assoc { color: var(--c-text-muted); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn) { font-size: .9375rem; font-weight: 500; color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; padding: 4px 0; white-space: nowrap; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav.scrolled .nav-links a:not(.btn),
.nav.nav-solid .nav-links a:not(.btn) { color: var(--c-text-muted); }
.nav.scrolled .nav-links a:not(.btn):hover,
.nav.nav-solid .nav-links a:not(.btn):hover { color: var(--c-text); }
.nav.scrolled .btn-sm, .nav.nav-solid .btn-sm { background: var(--c-accent-light); color: #fff; border-color: var(--c-accent-light); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-btn {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  font-size: .9375rem; font-weight: 500; font-family: var(--font-sans);
  color: rgba(255,255,255,.85); transition: color .2s; padding: 4px 0;
  min-height: 44px; white-space: nowrap;
}
.dropdown-btn:hover { color: #fff; }
.nav.scrolled .dropdown-btn, .nav.nav-solid .dropdown-btn { color: var(--c-text-muted); }
.nav.scrolled .dropdown:hover .dropdown-btn,
.nav.nav-solid .dropdown:hover .dropdown-btn,
.dropdown:hover .dropdown-btn { color: var(--c-text); }
.chevron { transition: transform .2s var(--ease); flex-shrink: 0; }
.dropdown:hover .chevron, .dropdown.open .chevron { transform: rotate(180deg); }

.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); background: #fff;
  border-radius: var(--radius-sm); box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 230px; padding: 8px; border: 1px solid var(--c-border); z-index: 200;
}
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex; align-items: center; padding: 11px 14px;
  font-size: .9rem; color: var(--c-text-muted) !important;
  text-decoration: none; border-radius: 6px;
  transition: background .15s, color .15s;
}
.dropdown-menu a:hover { background: #f0f4ff; color: var(--c-accent-light) !important; }

.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-toggle {
  background: none; border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 20px; padding: 5px 12px; font-size: .8125rem; font-weight: 600;
  color: rgba(255,255,255,.85); cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: 4px; min-height: 36px;
}
.lang-toggle:hover { border-color: rgba(255,255,255,.8); color: #fff; }
.nav.scrolled .lang-toggle, .nav.nav-solid .lang-toggle { border-color: var(--c-border); color: var(--c-text-muted); }
.nav.scrolled .lang-toggle:hover, .nav.nav-solid .lang-toggle:hover { border-color: var(--c-accent-light); color: var(--c-accent-light); }
.lang-fr.active, .lang-en.active { font-weight: 700; }
.lang-sep { opacity: .4; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .25s; }
.nav.scrolled .hamburger span, .nav.nav-solid .hamburger span { background: var(--c-text); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--c-hero-bg);
  min-height: 100svh; min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37,99,168,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(184,144,10,.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 64px;
  padding-top: calc(var(--banner-h) + var(--nav-h) + clamp(48px, 8vh, 96px));
  padding-bottom: clamp(48px, 8vh, 96px);
  position: relative; align-self: center;
}
.hero-eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold); margin-bottom: 20px; }
.hero-title { font-family: var(--font-serif); font-size: clamp(2rem, 5.5vw, 3.75rem); font-weight: 700; line-height: 1.15; color: #fff; margin-bottom: 24px; max-width: 640px; }
.hero-sub { font-size: clamp(.9375rem, 2vw, 1.0625rem); color: rgba(255,255,255,.7); max-width: 520px; margin-bottom: 40px; line-height: 1.75; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badge {
  flex-shrink: 0; width: 140px; height: 140px;
  border: 1.5px solid rgba(255,255,255,.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.hero-badge::before { content: ''; position: absolute; inset: -10px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.badge-inner { text-align: center; }
.badge-num { font-family: var(--font-serif); font-size: 3.5rem; font-weight: 700; color: #fff; line-height: 1; }
.badge-label { font-size: .625rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-top: 4px; line-height: 1.4; }
.hero-bar { height: 4px; background: linear-gradient(90deg, var(--c-gold) 0%, var(--c-accent-light) 50%, transparent 100%); }

/* ─── Page Hero (inner pages) ───────────────────────────────────────────────── */
.page-hero {
  background: var(--c-hero-bg);
  padding: calc(var(--banner-h) + var(--nav-h) + clamp(40px, 6vw, 80px)) 0 clamp(40px, 6vw, 72px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(37,99,168,.2) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .hero-eyebrow { color: var(--c-gold); margin-bottom: 16px; }
.page-hero-title {
  font-family: var(--font-serif); font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 20px; max-width: 640px;
}
.page-hero-sub { font-size: clamp(.9rem, 2vw, 1.0625rem); color: rgba(255,255,255,.7); max-width: 580px; line-height: 1.75; }
.page-hero-bar { height: 3px; background: linear-gradient(90deg, var(--c-gold) 0%, var(--c-accent-light) 40%, transparent 100%); margin-top: clamp(32px, 4vw, 56px); }

/* ─── Services ──────────────────────────────────────────────────────────────── */
.services { padding: clamp(60px, 8vw, 100px) 0; background: var(--c-surface); }
.section-header { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.service-card {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 28px);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  display: flex; flex-direction: column;
  flex: 1 1 260px; max-width: 340px;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.08); border-color: var(--c-accent-light); }
.service-icon { width: 48px; height: 48px; color: var(--c-accent-light); margin-bottom: 20px; }
.service-icon svg { width: 100%; height: 100%; }
.service-title { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; color: var(--c-text); margin-bottom: 12px; }
.service-desc { font-size: .9375rem; color: var(--c-text-muted); line-height: 1.65; flex: 1; }
.service-link { display: inline-block; margin-top: 20px; font-size: .875rem; font-weight: 600; color: var(--c-accent-light); text-decoration: none; }
.service-link:hover { text-decoration: underline; }

/* ─── About ─────────────────────────────────────────────────────────────────── */
.about { padding: clamp(60px, 8vw, 100px) 0; background: var(--c-bg); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }

/* New about panel — replaces colored blocks */
.about-panel {
  background: var(--c-hero-bg); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3.5vw, 40px);
  display: flex; flex-direction: column; gap: 32px; height: 100%;
}
.about-panel-quote { display: flex; flex-direction: column; gap: 18px; }
.about-quote-mark {
  font-family: var(--font-serif); font-size: 5rem; line-height: .7;
  color: var(--c-gold); display: block; opacity: .75;
}
.about-panel-text {
  font-family: var(--font-serif); font-size: clamp(.975rem, 1.8vw, 1.125rem);
  font-style: italic; color: rgba(255,255,255,.9); line-height: 1.7;
}
.about-panel-sig { display: flex; align-items: center; gap: 14px; }
.about-panel-line { height: 1px; width: 36px; background: var(--c-gold); flex-shrink: 0; }
.about-panel-firm { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-gold); }
.about-panel-items { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; }
.about-panel-item { display: flex; align-items: center; gap: 12px; font-size: .875rem; color: rgba(255,255,255,.65); line-height: 1.5; }
.api-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold); flex-shrink: 0; }

.about-body { font-size: .9375rem; color: var(--c-text-muted); line-height: 1.8; margin-bottom: 20px; }
.about-values { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.value { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--c-accent); letter-spacing: .02em; }
.value-icon { color: var(--c-accent-light); line-height: 0; }
.value-icon svg { width: 26px; height: 26px; }

/* ─── Le cabinet page ───────────────────────────────────────────────────────── */
.cabinet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px) clamp(20px, 2.5vw, 24px); text-align: center; }
.value-card-icon { color: var(--c-accent-light); margin-bottom: 16px; line-height: 0; }
.value-card-icon svg { width: 40px; height: 40px; margin: 0 auto; }
.value-card-title { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; color: var(--c-text); margin-bottom: 10px; }
.value-card-desc { font-size: .875rem; color: var(--c-text-muted); line-height: 1.7; }
.remote-banner {
  background: #f0f4ff; border: 1px solid #dbeafe; border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px);
  display: flex; align-items: flex-start; gap: 20px; margin-top: 48px;
}
.remote-icon { flex-shrink: 0; width: 48px; height: 48px; background: var(--c-accent-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; }
.remote-icon svg { width: 24px; height: 24px; }
.remote-title { font-weight: 600; color: var(--c-text); margin-bottom: 6px; font-size: .9375rem; }
.remote-desc { font-size: .875rem; color: var(--c-text-muted); line-height: 1.6; }

/* ─── Page Content (service pages) ─────────────────────────────────────────── */
.page-content { padding: clamp(48px, 7vw, 80px) 0 clamp(60px, 8vw, 100px); background: var(--c-bg); }
.page-inner { display: grid; grid-template-columns: 1fr 320px; gap: clamp(40px, 5vw, 64px); align-items: start; }

.page-main .content-lead { font-size: clamp(.9375rem, 2vw, 1.125rem); color: var(--c-text); line-height: 1.8; margin-bottom: 40px; }
.content-h2 { font-family: var(--font-serif); font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; color: var(--c-text); margin-bottom: 20px; margin-top: 40px; }
.content-h2:first-child { margin-top: 0; }
.content-p { font-size: .9375rem; color: var(--c-text-muted); line-height: 1.8; margin-bottom: 16px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.check-item { display: flex; align-items: flex-start; gap: 14px; }
.check-item-icon { flex-shrink: 0; width: 22px; height: 22px; background: #e8f0fd; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.check-item-icon svg { width: 12px; height: 12px; color: var(--c-accent-light); }
.check-item-text { font-size: .9375rem; color: var(--c-text-muted); line-height: 1.65; }
.check-item-text strong { color: var(--c-text); font-weight: 600; }

.process-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.process-item { display: flex; gap: 20px; position: relative; padding-bottom: 28px; }
.process-item:last-child { padding-bottom: 0; }
.process-item::before { content: ''; position: absolute; left: 15px; top: 36px; bottom: 0; width: 1px; background: var(--c-border); }
.process-item:last-child::before { display: none; }
.process-num { flex-shrink: 0; width: 32px; height: 32px; background: var(--c-accent-light); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; margin-top: 2px; }
.process-text strong { display: block; font-size: .9375rem; font-weight: 600; color: var(--c-text); margin-bottom: 4px; }
.process-text p { font-size: .875rem; color: var(--c-text-muted); line-height: 1.6; }

/* Sidebar */
.page-sidebar { position: sticky; top: calc(var(--banner-h) + var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.sidebar-card.sidebar-contact { background: var(--c-hero-bg); border-color: transparent; }
.sidebar-card.sidebar-contact h3 { color: #fff; font-family: var(--font-serif); font-size: 1.125rem; margin-bottom: 8px; }
.sidebar-card.sidebar-contact p { color: rgba(255,255,255,.65); font-size: .875rem; margin-bottom: 20px; line-height: 1.6; }
.sidebar-card.sidebar-contact a.sidebar-phone { display: block; color: #fff; font-size: 1.125rem; font-weight: 700; text-decoration: none; margin-bottom: 6px; }
.sidebar-card.sidebar-contact a.sidebar-email { display: block; color: rgba(255,255,255,.65); font-size: .875rem; text-decoration: none; margin-bottom: 20px; }
.sidebar-card.sidebar-contact a.sidebar-email:hover { color: #fff; }
.sidebar-title { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 12px; display: block; }
.sidebar-services { display: flex; flex-direction: column; gap: 2px; }
.sidebar-services a { display: flex; align-items: center; padding: 10px 12px; border-radius: 6px; font-size: .875rem; color: var(--c-text-muted); text-decoration: none; transition: background .15s, color .15s; }
.sidebar-services a:hover { background: #f0f4ff; color: var(--c-accent-light); }

/* ─── CTA Band ──────────────────────────────────────────────────────────────── */
.cta-band { background: var(--c-accent); padding: clamp(48px, 7vw, 72px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-title { font-family: var(--font-serif); font-size: clamp(1.375rem, 3vw, 2rem); font-weight: 700; color: #fff; max-width: 560px; line-height: 1.3; }

/* ─── Contact ───────────────────────────────────────────────────────────────── */
.contact { padding: clamp(60px, 8vw, 100px) 0; background: var(--c-surface); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-sub { font-size: .9375rem; color: var(--c-text-muted); line-height: 1.75; margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { width: 42px; height: 42px; background: #f0f4ff; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--c-accent-light); flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; }
.contact-label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 4px; }
.contact-value { font-size: .9375rem; color: var(--c-text); line-height: 1.5; }
.contact-link { color: var(--c-accent-light); text-decoration: none; font-weight: 500; }
.contact-link:hover { text-decoration: underline; }
.pricing-note { margin-top: 28px; font-size: .875rem; color: #92400e; line-height: 1.6; padding: 14px 18px; background: #fefce8; border: 1px solid #fde68a; border-radius: var(--radius-sm); }

/* Contact page */
.contact-page { padding: clamp(48px, 7vw, 80px) 0 clamp(60px, 8vw, 100px); background: var(--c-surface); }
.contact-page-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 80px); }
.contact-info-full .contact-details { margin-top: 28px; }

/* Form */
.contact-form {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .8125rem; font-weight: 600; color: var(--c-text); letter-spacing: .02em; }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans); font-size: 1rem; color: var(--c-text);
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 13px 16px;
  outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
  min-height: 48px; -webkit-appearance: none; appearance: none;
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--c-accent-light); box-shadow: 0 0 0 3px rgba(37,99,168,.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { align-self: flex-start; }
.form-note { font-size: .8125rem; color: var(--c-text-muted); line-height: 1.5; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer { background: var(--c-hero-bg); padding: clamp(48px, 6vw, 64px) 0 0; }
.footer-top { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 56px); }
.footer-brand .footer-logo { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.footer-brand .logo-mh { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 700; color: #fff; }
.footer-brand .logo-assoc { font-size: .875rem; color: rgba(255,255,255,.55); }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.4); font-style: italic; line-height: 1.6; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); transition: background .2s, color .2s; }
.social-link:hover { background: rgba(255,255,255,.18); color: #fff; }
.social-link svg { width: 16px; height: 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 6px; }
.footer-col a { font-size: .875rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; padding: 2px 0; }
.footer-col a:hover { color: #fff; }
.footer-addr { font-size: .875rem; color: rgba(255,255,255,.4); line-height: 1.65; text-decoration: none; display: block; }
a.footer-addr:hover { color: rgba(255,255,255,.75); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: .8125rem; color: rgba(255,255,255,.3); }

/* ─── Scroll animations ─────────────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.fade-up.visible { opacity: 1; transform: none; }

/* ─── Responsive — 1024px ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-panel { order: -1; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .page-inner { grid-template-columns: 1fr; }
  .page-sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .cabinet-grid { grid-template-columns: 1fr; gap: 36px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .contact-page-inner { grid-template-columns: 1fr; }
}

/* ─── Responsive — 768px ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* No backdrop-filter on mobile: a filter here makes .nav the containing block
     for the fixed mobile menu, collapsing it when the page is scrolled. */
  .nav.scrolled, .nav.nav-solid {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }

  /* Nav mobile */
  .nav-links {
    display: none; position: fixed;
    top: calc(var(--banner-h) + var(--nav-h)); left: 0; right: 0; bottom: 0;
    background: var(--c-surface);
    flex-direction: column; align-items: stretch;
    padding: 16px; gap: 4px;
    overflow-y: auto;
    border-top: 1px solid var(--c-border);
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) {
    color: var(--c-text) !important; font-size: 1rem;
    padding: 14px 16px; border-radius: var(--radius-sm);
    display: block;
  }
  .nav-links a:not(.btn):hover { background: var(--c-bg); color: var(--c-accent-light) !important; }
  .nav-links .btn { margin-top: 8px; width: 100%; justify-content: center; }
  .hamburger { display: flex; }

  /* Dropdown mobile */
  .dropdown { width: 100%; }
  .dropdown-btn {
    color: var(--c-text) !important; font-size: 1rem;
    padding: 14px 16px; width: 100%; border-radius: var(--radius-sm);
    justify-content: space-between;
  }
  .dropdown-btn:hover { background: var(--c-bg); }
  .dropdown-menu {
    position: static; transform: none;
    box-shadow: none; border: none; border-radius: var(--radius-sm);
    background: var(--c-bg); margin: 4px 0 0 0; padding: 4px 8px;
  }
  .dropdown-menu a { font-size: .9375rem; padding: 12px 14px; }

  /* Emergency banner */
  .emergency-text-full { display: none; }
  .emergency-text-short { display: inline; }
  .emergency-inner { gap: 10px; padding: 0 24px; }
  .emergency-text { font-size: .75rem; letter-spacing: .02em; }
  .emergency-phone { padding: 4px 12px; font-size: .8125rem; gap: 6px; }
  .emergency-phone::before { width: 12px; height: 12px; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 0; padding-top: calc(var(--banner-h) + var(--nav-h) + 24px); padding-bottom: 48px; }
  .hero-badge { display: none; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }

  /* Services */
  .services-grid { gap: 16px; }
  .service-card { max-width: none; }

  /* About */
  .about-panel { order: -1; }
  .about-values { gap: 16px; }

  /* CTA */
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner .btn { width: 100%; max-width: 320px; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }

  /* Sidebar grid */
  .page-sidebar { grid-template-columns: 1fr; }

  /* Cabinet */
  .values-grid { grid-template-columns: 1fr; }
  .remote-banner { flex-direction: column; gap: 16px; }

  /* Footer */
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* Contact page */
  .contact-page-inner { gap: 40px; }
}

/* ─── Responsive — 480px ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.875rem; }
  .page-hero-title { font-size: 1.625rem; }
  .section-title { font-size: 1.5rem; }
  .about-values { flex-direction: row; justify-content: flex-start; }
  .pricing-note { font-size: .8125rem; }
}

/* ─── Accessibility & polish ────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--c-accent-light); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(37,99,168,.15); }
