/* ============================================================
   PAC-MAISON.FR — Design system maison
   Identité : pétrole profond / teal énergie / ambre chaleur
   ============================================================ */

/* --- POLICES (auto-hébergées, RGPD-friendly) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/spacegrotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/spacegrotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #10382B;
  --ink-2: #15503C;
  --dark: #0A2A20;
  --brand: #1E6B45;
  --brand-2: #3E9C6B;
  --brand-soft: #E7F2EC;
  --heat: #2E86C1;
  --heat-2: #6FB0DC;
  --heat-soft: #E8F2FA;
  --leaf: #2E7D32;
  --sand: #F6F7F5;
  --paper: #FFFFFF;
  --line: #E3E7E3;
  --line-2: #DCE6E0;
  --text: #182B27;
  --muted: #5F6F6A;
  --muted-2: #8B9994;

  --font-head: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --sh-sm: 0 1px 2px rgba(11,43,47,.06), 0 2px 8px rgba(11,43,47,.05);
  --sh-md: 0 10px 30px rgba(11,43,47,.10);
  --sh-lg: 0 24px 60px rgba(11,43,47,.16);

  --wrap: 1180px;
  --read: 760px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
p { margin: 0 0 1rem; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-sm);
  font-weight: 700;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- TOP BAR ---------- */
.topbar { background: var(--dark); color: rgba(255,255,255,.82); font-size: .82rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; padding: 9px 24px; }
.topbar b { color: #fff; font-weight: 600; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--heat); display: inline-block; margin-right: 8px; vertical-align: middle; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(247,244,239,.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(11,43,47,.06); }
.head { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 88px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { height: 60px; width: auto; }

.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 15px; border-radius: 999px; color: var(--text); font-weight: 500; font-size: .94rem; transition: background .2s, color .2s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--brand-soft); color: var(--ink); }
.nav a.nav-cta { background: var(--brand); color: #fff; }
.nav a.nav-cta:hover { background: var(--ink); color: #fff; }

.head-actions { display: flex; align-items: center; gap: 12px; }
.head-phone { font-weight: 700; color: var(--ink); font-size: .95rem; white-space: nowrap; }
.head-phone:hover { color: var(--brand); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 11px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: .3s var(--ease); }
.burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-family: var(--font-body);
  font-weight: 700; font-size: .96rem; line-height: 1; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; box-shadow: var(--sh-md); }
.btn-heat { background: var(--heat); color: #fff; }
.btn-heat:hover { background: #1F6FA6; color: #fff; box-shadow: 0 12px 30px rgba(46,134,193,.32); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(62,156,107,.30), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(46,134,193,.22), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; padding-top: 78px; padding-bottom: 78px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--heat-2); margin-bottom: 20px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--heat); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--heat-2); }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-facts li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: rgba(255,255,255,.82); }
.hero-facts svg { width: 16px; height: 16px; flex: none; color: var(--brand-2); }

.hero-media { position: relative; }
.hero-media .shot {
  border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1 / 1;
  box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,.14);
}
.hero-media .shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: #fff; color: var(--ink);
  border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--sh-lg); display: flex; align-items: center; gap: 12px;
}
.hero-badge .hb-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.hero-badge b { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1; }
.hero-badge span { font-size: .76rem; color: var(--muted); }
.hero-chip {
  position: absolute; right: -12px; top: 22px; background: var(--heat); color: #fff;
  border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: .82rem; box-shadow: var(--sh-md);
}

/* ---------- SECTIONS ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.section.paper { background: var(--paper); }
.section.ink { background: var(--dark); color: rgba(255,255,255,.82); }
.section.ink h2, .section.ink h3 { color: #fff; }

.sec-head { max-width: 640px; margin-bottom: 46px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .eyebrow { color: var(--brand); margin-bottom: 14px; }
.sec-head .eyebrow::before { background: var(--brand); }
.sec-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section.ink .sec-head p { color: rgba(255,255,255,.72); }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.5rem; line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat i { display: block; width: 34px; height: 3px; background: var(--heat); border-radius: 3px; margin-bottom: 16px; }

/* ---------- BENTO SERVICES ---------- */
.bento { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.bcard { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.bcard .bimg { aspect-ratio: 16 / 10; overflow: hidden; }
.bcard .bimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bcard:hover .bimg img { transform: scale(1.05); }
.bcard .bbody { padding: 26px 28px 30px; }
.bcard h3 { margin-bottom: 8px; }
.bcard p { color: var(--muted); margin: 0 0 14px; }
.bcard .tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.bcard.feature { grid-row: span 2; }
.bcard.feature .bimg { aspect-ratio: 4 / 5; flex: 1; }

/* ---------- SPLIT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media .frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); aspect-ratio: 1/1; }
.split-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.split-media .float {
  position: absolute; right: -16px; bottom: -16px; background: var(--ink); color: #fff;
  border-radius: var(--r-md); padding: 16px 18px; max-width: 210px; box-shadow: var(--sh-lg);
}
.split-media .float b { font-family: var(--font-head); display: block; font-size: 1.05rem; }
.split-media .float span { font-size: .8rem; color: rgba(255,255,255,.72); }
.split-copy h2 { margin-bottom: 16px; }
.split-copy p { color: var(--muted); }
.tick-list { display: grid; gap: 14px; margin-top: 22px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.tick svg { width: 14px; height: 14px; }
.tick-list b { color: var(--ink); }
.tick-list p { margin: 0; font-size: .92rem; }

/* ---------- PROCESS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 24px; }
.step .num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--brand); }
.step h3 { font-size: 1.1rem; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
.step::after { content: ''; position: absolute; top: 38px; right: -11px; width: 12px; height: 12px; border-top: 2px solid var(--line); border-right: 2px solid var(--line); transform: rotate(45deg); }
.step:last-child::after { display: none; }

/* ---------- FEATURES ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; }
.feat .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feat .ico svg { width: 24px; height: 24px; }
.feat h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- GALLERY ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1/1; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }

/* ---------- ZONE PILLS ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: .9rem; color: var(--text); }
.pills li.home { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- BLOG ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.post .thumb { aspect-ratio: 16/11; overflow: hidden; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .thumb img { transform: scale(1.05); }
.post .pbody { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.post .meta { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 10px; }
.post h3 { font-size: 1.16rem; margin-bottom: 8px; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--brand); }
.post p { color: var(--muted); font-size: .92rem; margin: 0 0 16px; flex: 1; }
.post .more, .more { font-weight: 700; font-size: .9rem; color: var(--brand); }
.more:hover { color: var(--ink); }
.post.wide { grid-column: span 1; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--read); margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.faq-q .pm { flex: none; width: 22px; height: 22px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ''; position: absolute; background: var(--brand); border-radius: 2px; }
.faq-q .pm::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq-q .pm::after { left: 10px; top: 0; width: 2px; height: 22px; transition: transform .3s var(--ease); }
.faq-item.open .faq-q .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-item.open .faq-a { max-height: 640px; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); margin: 0; }

/* ---------- CTA BAND ---------- */
.cta-band { position: relative; background: var(--ink); border-radius: var(--r-xl); padding: 56px; color: #fff; overflow: hidden; display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 320px at 90% 10%, rgba(62,156,107,.35), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; max-width: 520px; }
.cta-band .acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- CONTACT / FORM ---------- */
.contact-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.crow { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; gap: 14px; }
.crow .ci { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.crow h3 { font-size: .95rem; margin: 0 0 2px; }
.crow p, .crow a { color: var(--muted); font-size: .92rem; margin: 0; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 34px; box-shadow: var(--sh-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: .76rem; color: var(--muted-2); margin-top: 5px; }
.field input, .field select, .field textarea {
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: .98rem; background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14,124,107,.12); }
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.consent input { margin-top: 4px; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); font-weight: 600; font-size: .92rem; }
.form-status.success { display: block; background: var(--brand-soft); color: var(--ink); border: 1px solid var(--brand-2); }
.form-status.error { display: block; background: #FDE7E7; color: #9B1C1C; border: 1px solid #F3B4B4; }

/* ---------- PAGE HERO (interne) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 44px 0 40px; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 680px; margin: 0; }

/* ---------- BREADCRUMB ---------- */
.crumbs { font-size: .82rem; margin-bottom: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li { color: rgba(255,255,255,.7); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: rgba(255,255,255,.4); }
.crumbs a { color: rgba(255,255,255,.9); }
.crumbs a:hover { color: #fff; }
.section .crumbs li, .section .crumbs a { color: var(--muted); }

/* ---------- ARTICLE ---------- */
.article-head { background: var(--ink); color: #fff; padding: 44px 0 40px; }
.article-head .eyebrow { color: var(--heat-2); }
.article-head .eyebrow::before { background: var(--heat); }
.article-head h1 { color: #fff; max-width: 900px; }
.article-meta { color: rgba(255,255,255,.72); font-size: .88rem; }
.article-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; padding: 46px 0 10px; }
.article-body { padding: 0 0 20px; }
.article-body h2 { margin: 2.4rem 0 1rem; scroll-margin-top: 112px; }
.article-body h3 { margin: 1.8rem 0 .6rem; scroll-margin-top: 112px; }
.article-body p, .article-body li { color: #2A3A3D; font-size: 1.06rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem; padding-left: 1.3rem; }
.article-body ul { list-style: none; }
.article-body ul li { position: relative; padding-left: 22px; margin-bottom: .5rem; }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
.article-body ol { list-style: decimal; }
.article-body ol li { margin-bottom: .5rem; }
.article-body figure { margin: 2rem 0; }
.article-body figure img { border-radius: var(--r-md); width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
.article-body figcaption { text-align: center; font-size: .82rem; color: var(--muted-2); margin-top: 10px; }
.article-body blockquote { margin: 1.6rem 0; padding: 20px 24px; background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 var(--r-md) var(--r-md) 0; font-style: italic; color: var(--ink); }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.article-body th, .article-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.article-body th { background: var(--brand-soft); color: var(--ink); font-family: var(--font-head); }
.article-body tr:last-child td { border-bottom: 0; }
.article-side { min-width: 0; }
.toc {
  position: sticky; top: 112px;
  background: linear-gradient(160deg, var(--ink) 0%, #0F4A38 65%, #145C46 100%);
  border-radius: var(--r-lg); padding: 24px 20px; color: #fff; box-shadow: var(--sh-md);
}
.toc h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); margin: 0 0 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin-bottom: 2px; counter-increment: toc; }
.toc a { display: flex; gap: 10px; align-items: baseline; color: rgba(255,255,255,.8); font-size: .9rem; padding: 8px 10px; border-radius: 9px; transition: background .2s var(--ease), color .2s var(--ease); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-head); font-size: .72rem; font-weight: 700; color: var(--brand-2); }
.toc a:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 1040px) {
  .article-layout { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .toc { position: static; top: auto; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
}
.article-foot { max-width: var(--read); margin: 0 auto 30px; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.article-foot .by { color: var(--muted); font-size: .88rem; }
.article-foot .sh a { font-weight: 600; font-size: .88rem; margin-left: 12px; }

/* ---------- VALUES / TEAM ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.vcard .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--heat-soft); color: var(--heat); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.vcard h3 { font-size: 1.05rem; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 66px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand { color: #fff; }
.site-footer .brand img { background: #fff; padding: 9px 14px; border-radius: 14px; height: 64px; }
.site-footer .about { margin-top: 16px; font-size: .9rem; max-width: 320px; }
.foot-col h4 { color: #fff; font-family: var(--font-head); font-size: .95rem; margin: 0 0 14px; }
.foot-col a, .foot-col .ft { display: block; color: rgba(255,255,255,.66); padding: 5px 0; font-size: .9rem; }
.foot-col a:hover { color: var(--brand-2); }
.foot-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.foot-badges span { font-size: .72rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 4px 11px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; font-size: .84rem; }
.foot-bottom a { color: rgba(255,255,255,.6); }
.foot-bottom a:hover { color: #fff; }

/* ---------- COOKIES ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000; background: rgba(7,28,31,.98); color: #fff; border-top: 2px solid var(--brand-2); padding: 20px; transform: translateY(110%); transition: transform .45s var(--ease); }
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.cookie-txt { flex: 1; min-width: 260px; }
.cookie-txt strong { display: block; font-family: var(--font-head); margin-bottom: 5px; }
.cookie-txt p { margin: 0; font-size: .86rem; color: rgba(255,255,255,.78); }
.cookie-txt a { color: var(--brand-2); text-decoration: underline; }
.cookie-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.cbtn { padding: 11px 18px; border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: .86rem; cursor: pointer; border: 1px solid transparent; }
.cbtn.accept { background: var(--heat); color: #fff; }
.cbtn.accept:hover { background: #1F6FA6; }
.cbtn.refuse { background: transparent; color: rgba(255,255,255,.82); border-color: rgba(255,255,255,.32); }
.cbtn.refuse:hover { background: rgba(255,255,255,.1); color: #fff; }
.cbtn.custom { background: transparent; color: var(--brand-2); border-color: var(--brand-2); }
.cbtn.custom:hover { background: rgba(18,165,148,.14); }

.cookie-modal { display: none; position: fixed; inset: 0; z-index: 3100; background: rgba(7,28,31,.6); align-items: center; justify-content: center; padding: 18px; }
.cookie-modal.show { display: flex; }
.cookie-modal .box { background: #fff; border-radius: var(--r-lg); padding: 28px; width: 100%; max-width: 540px; max-height: 86vh; overflow: auto; }
.cookie-modal h2 { font-size: 1.3rem; margin-bottom: 6px; }
.cookie-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cookie-row b { color: var(--ink); }
.cookie-row p { margin: 2px 0 0; font-size: .82rem; color: var(--muted-2); }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #CBD5D3; border-radius: 999px; cursor: pointer; transition: .25s; }
.switch .slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { opacity: .55; cursor: not-allowed; }
.cookie-modal .acts { display: flex; gap: 10px; margin-top: 22px; }
.cookie-reopen { position: fixed; left: 16px; bottom: 16px; z-index: 900; display: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--ink); cursor: pointer; box-shadow: var(--sh-md); }
.cookie-reopen.show { display: inline-flex; align-items: center; gap: 7px; }
.cookie-reopen svg { width: 15px; height: 15px; color: var(--brand); }

/* ---------- CALL BAR (mobile) ---------- */
.callbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; background: var(--heat); color: #fff; text-align: center; padding: 13px; font-weight: 700; }
.callbar a { color: #fff; }

/* ---------- LEGAL ---------- */
.legal { max-width: 840px; margin: 0 auto; }
.legal h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.legal h3 { margin-top: 1.3rem; font-size: 1.08rem; }
.legal p, .legal li { color: #33454A; }
.legal ul { list-style: none; padding-left: 0; margin: 0 0 1rem; }
.legal ul li { position: relative; padding-left: 22px; margin-bottom: .45rem; }
.legal ul li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); }
.legal .updated { color: var(--muted-2); font-size: .86rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--brand-soft); }

/* ---------- ANIM ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1040px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 460px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bcard.feature { grid-column: span 2; grid-row: auto; }
  .bcard.feature .bimg { aspect-ratio: 16/9; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .blog-grid, .features, .cards-3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: var(--paper); padding: 104px 22px 30px; transform: translateX(105%); transition: transform .35s var(--ease); box-shadow: var(--sh-lg); overflow-y: auto; z-index: 1001; }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { padding: 14px 16px; font-size: 1.02rem; border-radius: var(--r-sm); }
  .head-phone { display: none; }
  .callbar { display: block; }
  body { padding-bottom: 50px; }
  .section { padding: 60px 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .split-media { order: 0; }
  .cta-band { grid-template-columns: 1fr; padding: 38px 26px; }
  .contact-rows { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .article-body p, .article-body li { font-size: 1rem; }
}
@media (max-width: 560px) {
  .bento, .blog-grid, .features, .cards-3, .steps, .form-grid, .contact-rows { grid-template-columns: 1fr; }
  .bcard.feature { grid-column: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .hero-badge { left: 10px; }
  .hero-chip { right: 10px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cookie-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-acts { justify-content: center; }
}

/* ---------- PRINT ---------- */
@media print {
  .topbar, .site-header, .site-footer, .cookie-banner, .cookie-modal, .callbar, .cookie-reopen, .hero-cta { display: none !important; }
  body { background: #fff; }
}
