/* ══════════════════════════════════════════════════════════════
   CEPL — Cabinet d'Expertise en Psychiatrie Légale
   Feuille de style principale
   ══════════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --clr-navy:      #0d1b2a;
  --clr-navy-mid:  #1b2d42;
  --clr-navy-soft: #253a52;
  --clr-gold:      #b8974a;
  --clr-gold-light:#d4b06a;
  --clr-white:     #ffffff;
  --clr-off-white: #f5f4f0;
  --clr-text:      #2e3a47;
  --clr-muted:     #6b7a8d;
  --clr-border:    #dde3ea;
  --clr-error:     #c0392b;
  --clr-success:   #1a7f4b;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm:  0 1px 4px rgba(13,27,42,.08);
  --shadow-md:  0 4px 20px rgba(13,27,42,.12);
  --shadow-lg:  0 8px 40px rgba(13,27,42,.18);

  --max-width: 1160px;
  --header-h: 72px;
}

/* ─── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }
h1,h2,h3 { font-family: var(--font-serif); line-height: 1.2; }

/* ─── Utilities ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 96px;
}

.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--clr-navy);
}

/* ─── Fade-in animation ─────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background .2s, color .2s, box-shadow .2s, transform .15s;
}

.btn:focus-visible {
  outline: 3px solid var(--clr-gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--clr-gold);
  color: var(--clr-navy);
}

.btn-primary:hover {
  background: var(--clr-gold-light);
  box-shadow: 0 4px 20px rgba(184,151,74,.35);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.5);
  color: var(--clr-white);
}

.btn-ghost:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.btn-full { width: 100%; justify-content: center; }

/* ════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════ */
#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background .3s, box-shadow .3s;
}

#header.scrolled {
  background: var(--clr-navy);
  box-shadow: var(--shadow-md);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}

.logo-acronym {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-gold);
  letter-spacing: .05em;
}

.logo-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  max-width: 200px;
  line-height: 1.3;
}

/* Nav */
#nav ul {
  display: flex;
  gap: 8px;
}

#nav a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  letter-spacing: .03em;
  transition: color .2s, background .2s;
}

#nav a:hover,
#nav a.active {
  color: var(--clr-white);
  background: rgba(255,255,255,.1);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* Gradient background — remplacer par background-image avec une vraie photo */
  background: linear-gradient(135deg, var(--clr-navy) 0%, #162436 50%, #1e3349 100%);
  overflow: hidden;
}

/* Motif géométrique discret */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 40%, rgba(184,151,74,.08) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,.012) 40px,
      rgba(255,255,255,.012) 41px
    );
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,27,42,.7) 0%, transparent 100%);
}

/* Lueur dorée pulsante côté stat */
.hero::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(184,151,74,.09) 0%, transparent 68%);
  border-radius: 50%;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  animation: hero-glow 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes hero-glow {
  0%, 100% { opacity: 1;   transform: translateY(-50%) scale(1); }
  50%       { opacity: .45; transform: translateY(-50%) scale(1.18); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-block: calc(var(--header-h) + 40px) 80px;
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-text {
  flex: 1;
  position: relative;
  padding-left: 20px;
}

/* Ligne dorée verticale animée */
.hero-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--clr-gold), rgba(184,151,74,0));
  transform-origin: top center;
  transform: scaleY(0);
  animation: heroLineGrow .9s cubic-bezier(0.25, 0.46, 0.45, 0.94) .1s forwards;
}

@keyframes heroLineGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 20px;
  animation: heroFadeUp .7s cubic-bezier(0.25, 0.46, 0.45, 0.94) .35s both;
}

.hero h1 {
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  color: var(--clr-white);
  margin-bottom: 24px;
  line-height: 1.1;
  white-space: nowrap;
  animation: heroFadeUp .7s cubic-bezier(0.25, 0.46, 0.45, 0.94) .6s both;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
  max-width: 500px;
  animation: heroFadeUp .7s cubic-bezier(0.25, 0.46, 0.45, 0.94) .82s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: heroFadeUp .7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.05s both;
}

/* Indicateur de défilement */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero-scroll span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--clr-gold);
  border-radius: 2px;
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ════════════════════════════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════════════════════════════ */
.hero-stat-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-left: 48px;
  border-left: 1px solid rgba(184,151,74,.35);
  flex-shrink: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ── Anneau animé ────────────────────────────────────────────── */
.stat-ring-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* démarre en haut */
  pointer-events: none;
}

.stat-ring-track {
  fill: none;
  stroke: rgba(184,151,74,.18);
  stroke-width: 1.5;
}

.stat-ring-fill {
  fill: none;
  stroke: var(--clr-gold);
  stroke-width: 2;
  stroke-linecap: round;
  /* 2π × 72 ≈ 452.4 */
  stroke-dasharray: 452.4;
  stroke-dashoffset: 452.4; /* vide au départ */
  transition: stroke-dashoffset 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 0 4px rgba(184,151,74,.45));
}

.stat-ring-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--clr-gold);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--clr-gold-light);
  line-height: 1.2;
}

.stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════
   PRÉSENTATION
   ════════════════════════════════════════════════════════════════ */
.presentation {
  background: var(--clr-off-white);
}

.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: center;
}

.presentation-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--clr-navy);
  margin-bottom: 20px;
}

.presentation-text p {
  color: var(--clr-muted);
  margin-bottom: 16px;
}

.check-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--clr-text);
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23b8974a' opacity='.15'/%3E%3Cpath d='M5 9l3 3 5-5' stroke='%23b8974a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Image card */
.image-card {
  position: relative;
}

.presentation-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lg);
}

.image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--clr-gold);
  color: var(--clr-navy);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
}

.image-badge svg {
  width: 18px;
  height: 18px;
}

/* ════════════════════════════════════════════════════════════════
   DOMAINES D'INTERVENTION
   ════════════════════════════════════════════════════════════════ */
.domains {
  background: var(--clr-white);
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.domain-card {
  background: var(--clr-off-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}

.domain-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--clr-gold);
}

.domain-icon {
  width: 52px;
  height: 52px;
  background: rgba(184,151,74,.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--clr-gold);
}

.domain-icon svg {
  width: 26px;
  height: 26px;
}

.domain-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 10px;
}

.domain-card p {
  font-size: .88rem;
  color: var(--clr-muted);
  line-height: 1.65;
}

/* ════════════════════════════════════════════════════════════════
   ÉQUIPE
   ════════════════════════════════════════════════════════════════ */
.equipe {
  background: var(--clr-off-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.team-photo {
  height: 220px;
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder {
  color: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder svg {
  width: 80px;
  height: 80px;
}

.team-info {
  padding: 28px;
}

.team-info h3 {
  font-size: 1.25rem;
  color: var(--clr-navy);
  margin-bottom: 4px;
}

.team-title {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 14px;
}

.team-bio {
  font-size: .88rem;
  color: var(--clr-muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-tags li {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(184,151,74,.1);
  color: var(--clr-gold);
  border: 1px solid rgba(184,151,74,.25);
  border-radius: 100px;
  padding: 4px 12px;
}

/* ════════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════════ */
.contact {
  background: var(--clr-navy);
  color: var(--clr-white);
}

.contact .section-eyebrow { color: var(--clr-gold); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--clr-white);
  margin-bottom: 20px;
}

.contact-info > p {
  color: rgba(255,255,255,.65);
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-details li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--clr-gold);
  margin-top: 2px;
}

.contact-details li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-details strong {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

.contact-details span {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
}

.contact-note {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
}

/* Form */
.contact-form-wrap {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--clr-navy);
  letter-spacing: .03em;
}

.form-group label span { color: var(--clr-gold); }

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--clr-text);
  background: var(--clr-white);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7a8d' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px rgba(184,151,74,.12);
}

.form-group input:not([type="checkbox"]).invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--clr-error);
}

.field-error {
  font-size: .78rem;
  color: var(--clr-error);
  min-height: 1.1em;
}

/* RGPD */
.form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.form-check input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--clr-gold);
  cursor: pointer;
}

.form-check label {
  font-size: .82rem;
  font-weight: 400;
  color: var(--clr-muted);
  cursor: pointer;
}

.form-check label a { color: var(--clr-gold); text-decoration: underline; }

/* Success */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-captcha {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-captcha .captcha-error {
  font-size: .8rem;
  color: #c0392b;
}

.form-success {
  background: rgba(26,127,75,.08);
  border: 1px solid rgba(26,127,75,.3);
  color: var(--clr-success);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .88rem;
  text-align: center;
}

.form-error {
  background: rgba(192,57,43,.08);
  border: 1px solid rgba(192,57,43,.3);
  color: var(--clr-error);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .88rem;
  text-align: center;
}

.form-error a {
  color: var(--clr-error);
  text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--clr-navy-mid);
  padding-block: 40px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.footer-brand .logo-acronym {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-gold);
  display: block;
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}

.footer-nav a:hover { color: var(--clr-gold); }

.footer-legal {
  font-size: .72rem;
  color: rgba(255,255,255,.3);
  text-align: right;
  max-width: 300px;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
  .presentation-grid { grid-template-columns: 1fr; gap: 48px; }
  .presentation-image { order: -1; max-width: 420px; }
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-legal { text-align: center; max-width: 100%; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .section { padding-block: 64px; }

  #nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--clr-navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 99;
  }

  #nav.open { transform: none; }

  #nav ul {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  #nav a {
    font-size: 1.1rem;
    padding: 12px 32px;
  }

  .burger { display: flex; }

  .team-grid { grid-template-columns: 1fr; }
  .domains-grid { grid-template-columns: 1fr; }

  .hero h1 { font-size: 1.4rem; white-space: normal; }
  .hero-actions { flex-direction: column; }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero-text { padding-left: 0; }
  .hero-text::before { display: none; }
  .hero-stat-block { padding-left: 0; border-left: none; padding-top: 24px; border-top: 1px solid rgba(184,151,74,.35); }
  .hero-actions .btn { text-align: center; justify-content: center; }

  .contact-form-wrap { padding: 28px 20px; }
  .image-badge { bottom: -12px; right: -12px; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .logo-label { display: none; }
}
