/* ==========================================================================
   Boucherie Migross — Variante 3 « Immersif 3D »
   Bleu nuit / ardoise · rouge vif · blanc — Anton (+ Oswald pour le cyrillique) & Inter
   ========================================================================== */

:root {
  --navy: #0b1326;
  --navy-2: #101a30;
  --slate: #172238;
  --slate-2: #22304b;
  --slate-3: #34445f;
  --line: rgba(233, 238, 248, 0.12);
  --line-2: rgba(233, 238, 248, 0.22);
  --red: #ec1c2f;
  --red-2: #ff3347;
  --red-deep: #8e0c1b;
  --white: #f5f2ec;
  --muted: #a3aec4;
  --muted-2: #6f7b93;

  --f-display: "Anton", "Oswald", "Impact", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ru"] body { --f-display: "Oswald", "Anton", "Arial Narrow", sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 4px; }

.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;
}
.sr-svg { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--red); color: #fff;
  padding: 10px 16px; border-radius: 8px; transition: top .2s;
}
.skip:focus { top: 12px; }

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

.kicker {
  font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--red-2); margin: 0 0 18px;
}
.h2 {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(44px, 7.4vw, 124px); line-height: .9; letter-spacing: -.005em; margin: 0;
}
html[lang="ru"] .h2 { font-weight: 700; letter-spacing: -.01em; }

/* ---------- Boutons ---------- */
.btn {
  --bg: transparent;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  background: var(--bg); overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--white); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--red { --bg: var(--red); color: #fff; }
.btn--red:hover { color: var(--navy); }
.btn--ghost { border-color: var(--line-2); color: var(--white); backdrop-filter: blur(6px); background: rgba(10,16,32,.35); }
.btn--ghost:hover { color: var(--navy); border-color: var(--white); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150; background: var(--navy);
  display: grid; place-content: center; justify-items: center; gap: 22px;
}
.loader__word { display: flex; font-family: "Anton", sans-serif; font-size: clamp(56px, 12vw, 160px); line-height: 1; overflow: hidden; }
.loader__word span { display: inline-block; transform: translateY(110%); }
.loader__bar { width: min(320px, 60vw); height: 2px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.loader__pct { font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .3em; color: var(--muted); }
.no-js .loader, .loader.is-done { display: none; }

/* ---------- Canvas WebGL / grain / curseur ---------- */
#gl {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block;
  pointer-events: none; transition: opacity .6s var(--ease);
}
.no-webgl #gl { display: none; }
#gl.is-hidden { opacity: 0; }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; } 25% { background-position: -37px 21px; }
  50% { background-position: 23px -41px; } 75% { background-position: -19px -13px; } 100% { background-position: 0 0; }
}

.cursor { display: none; }
.cursor:not(.is-on) { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 120; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--red-2); }
  .cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(245,242,236,.45);
    display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
  }
  .cursor__ring em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity .25s; }
  .cursor.is-view .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--red); border-color: var(--red); }
  .cursor.is-view .cursor__ring em { opacity: 1; }
  .cursor.is-link .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--red-2); }
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  transition: background .4s var(--ease), border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(10, 16, 32, .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--red); border-radius: 10px; color: #fff; }
.brand__mark svg { width: 26px; height: 26px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt strong { font-family: "Anton", sans-serif; font-weight: 400; font-size: 24px; letter-spacing: .04em; }
.brand__txt small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--white); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__right { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; display: flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang__btn {
  position: relative; z-index: 1; width: 42px; height: 32px; border: 0; background: none; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); transition: color .3s;
}
.lang__btn[aria-pressed="true"] { color: #fff; }
.lang__pill {
  position: absolute; top: 4px; left: 4px; width: 42px; height: 32px; border-radius: 999px; background: var(--red);
  transition: transform .45s var(--ease);
}
html[lang="ru"] .lang__pill { transform: translateX(42px); }

.quote-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--white); color: var(--red); font-size: 12px; font-weight: 800;
}
.quote-count[hidden] { display: none; }
.quote-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10,16,32,.5); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--white); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:nth-of-type(1) { top: 18px; }
.burger i:nth-of-type(2) { top: 26px; }
.burger[aria-expanded="true"] i:nth-of-type(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-of-type(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95; background: var(--navy); padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a { display: block; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(44px, 13vw, 72px); line-height: 1.08; }
.mobile-menu li a:hover { color: var(--red); }
.mobile-menu__foot { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); padding-bottom: 72px; }
.mobile-menu__foot a { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
main { position: relative; z-index: 1; }

.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 32px) var(--gutter) 120px; overflow: hidden;
}
.hero__fallback {
  display: none; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(236, 28, 47, .28), transparent 60%),
    linear-gradient(100deg, var(--navy) 30%, rgba(10,16,32,.55) 70%, rgba(10,16,32,.85)),
    url("https://images.unsplash.com/photo-1588347818036-558601350947?w=1600&q=70&auto=format&fit=crop") center/cover no-repeat;
}
.no-webgl .hero__fallback { display: block; }

.hero__inner { position: relative; max-width: 980px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 14px; border: 1px solid var(--line-2);
  border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--white);
  background: rgba(10,16,32,.4); backdrop-filter: blur(6px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(236,28,47,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(236,28,47,.6); } 70% { box-shadow: 0 0 0 12px rgba(236,28,47,0); } 100% { box-shadow: 0 0 0 0 rgba(236,28,47,0); } }

.hero__title {
  margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 13.2vw, 232px); line-height: .84; letter-spacing: -.01em;
}
html[lang="ru"] .hero__title { font-weight: 700; font-size: clamp(52px, 10.4vw, 188px); line-height: .9; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .split { display: inline-block; }
.hero__title .ch { display: inline-block; will-change: transform; }
.line--outline { color: transparent; -webkit-text-stroke: 2px var(--white); }
.line--red { color: var(--red); }

.hero__sub { max-width: 520px; margin: 28px 0 34px; font-size: clamp(16px, 1.4vw, 19px); color: #d5dbe8; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__badge {
  position: absolute; right: clamp(16px, 6vw, 110px); bottom: 130px; width: 150px; height: 150px;
  display: grid; place-items: center;
}
.hero__badge svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.hero__badge text { font-size: 15px; font-weight: 700; letter-spacing: .1em; fill: var(--white); font-family: var(--f-body); }
.hero__badge > span {
  width: 74px; height: 74px; border-radius: 50%; background: var(--red); display: grid; place-items: center;
  font-size: 22px; font-weight: 700; color: #fff; box-shadow: 0 10px 40px rgba(236,28,47,.45);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll i { width: 1px; height: 54px; background: linear-gradient(var(--white), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--red-2); animation: drip 1.8s var(--ease) infinite; }
.hero__scroll em { font-style: normal; }
@keyframes drip { to { top: 110%; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 2; overflow: hidden; background: var(--red); color: #fff;
  transform: rotate(-1.6deg) scale(1.04); margin: -10px 0 0; padding: 18px 0; border-block: 1px solid rgba(255,255,255,.2);
}
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span {
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(26px, 3.4vw, 46px); line-height: 1; padding-right: 1.2em; white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* ---------- Galerie / présentoir 3D ---------- */
.gallery { position: relative; }
.gallery__pin {
  position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 36px) var(--gutter) 40px;
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
}
.gallery__head { max-width: 760px; position: relative; z-index: 2; }
.gallery__head .h2 { font-size: clamp(40px, 6vw, 96px); }
.gallery__sub { color: var(--muted); max-width: 440px; margin: 16px 0 0; }

.gallery__label {
  position: absolute; left: var(--gutter); bottom: 48px; z-index: 2; max-width: 520px; pointer-events: none;
}
.gallery__label a { pointer-events: auto; }
.gallery__num { font-family: "Anton", sans-serif; font-size: 18px; color: var(--red-2); letter-spacing: .1em; }
.gallery__name {
  margin: 4px 0 6px; font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(56px, 9vw, 150px); line-height: .88; text-shadow: 0 10px 50px rgba(0,0,0,.45);
}
html[lang="ru"] .gallery__name { font-weight: 700; }
.gallery__tag { margin: 0 0 18px; color: #d5dbe8; font-size: 16px; }
.gallery__count { font-weight: 800; opacity: .85; }

.gallery__index {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 2;
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: gi;
}
.gallery__index button {
  display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 6px 0; text-align: right; justify-content: flex-end;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); transition: color .3s;
}
.gallery__index button::after { content: ""; width: 22px; height: 2px; background: currentColor; transition: width .4s var(--ease), background .3s; }
.gallery__index button.is-active { color: var(--white); }
.gallery__index button.is-active::after { width: 54px; background: var(--red); }
.gallery__index button:hover { color: var(--white); }

/* Mode WebGL : la galerie est un écran épinglé, le cylindre 3D est rendu dans #gl */
.gallery__cards { display: none; }
.gl-gallery .gallery__pin::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,19,38,.88) 0%, rgba(11,19,38,.35) 32%, transparent 50%),
              linear-gradient(0deg, rgba(11,19,38,.75) 0%, transparent 28%),
              linear-gradient(180deg, rgba(11,19,38,.7) 0%, transparent 26%);
}

/* Fallback (pas de WebGL, mobile, mouvement réduit) : carrousel CSS */
.no-gl-gallery .gallery__label, .no-gl-gallery .gallery__index { display: none; }
.no-gl-gallery .gallery__pin { min-height: 0; grid-template-rows: auto auto; padding-bottom: 72px; background: linear-gradient(180deg, transparent, var(--navy) 30%); }
.no-gl-gallery .gallery__cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 34%); gap: 16px; margin: 36px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain;
}
.cat-card {
  position: relative; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; padding: 22px; isolation: isolate; border: 1px solid var(--line);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,19,38,0) 25%, rgba(11,19,38,.78) 55%, rgba(11,19,38,.96)); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card__n { font-family: "Anton", sans-serif; color: var(--red-2); font-size: 15px; letter-spacing: .1em; }
.cat-card h3 { margin: 2px 0 4px; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 4vw, 52px); line-height: .95; }
html[lang="ru"] .cat-card h3 { font-weight: 700; }
.cat-card p { margin: 0; color: #d5dbe8; font-size: 14px; }
.cat-card span.more { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--red-2); letter-spacing: .06em; }

/* ---------- Bord « dissolve » entre sections (canvas 2D bruité) ---------- */
.dissolve {
  position: absolute; left: 0; top: -119px; width: 100%; height: 120px; pointer-events: none; z-index: 3; display: block;
}

/* ---------- Engagements ---------- */
.values { position: relative; z-index: 2; background: var(--navy-2); padding: clamp(80px, 12vw, 170px) 0; }
.values .h2 { max-width: 900px; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(48px, 7vw, 90px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.value { position: relative; background: var(--navy-2); padding: 34px 28px 38px; min-height: 320px; display: flex; flex-direction: column; overflow: hidden; transition: background .5s var(--ease); }
.value::before { content: ""; position: absolute; inset: auto 0 0 0; height: 0; background: var(--red); transition: height .6s var(--ease); z-index: 0; }
.value:hover::before { height: 100%; }
.value > * { position: relative; z-index: 1; }
.value__n { font-family: "Anton", sans-serif; font-size: 14px; color: var(--muted-2); letter-spacing: .12em; transition: color .4s; }
.value__ico { width: 52px; height: 52px; color: var(--red-2); margin: 32px 0 auto; transition: color .4s, transform .6s var(--ease); }
.value h3 { margin: 32px 0 10px; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 2.3vw, 34px); line-height: 1; }
html[lang="ru"] .value h3 { font-weight: 700; }
.value p { margin: 0; color: var(--muted); font-size: 15px; transition: color .4s; }
.value:hover .value__ico { color: #fff; transform: rotate(-8deg) scale(1.08); }
.value:hover p, .value:hover .value__n { color: #fff; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(56px, 8vw, 110px); }
.stat { border-top: 1px solid var(--line-2); padding-top: 18px; }
.stat b { display: block; font-family: "Anton", sans-serif; font-weight: 400; font-size: clamp(64px, 10vw, 160px); line-height: .9; color: var(--white); font-variant-numeric: tabular-nums; }
.stat:nth-child(3) b { color: var(--red); }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Catalogue ---------- */
.catalog { position: relative; z-index: 2; background: var(--navy); padding: clamp(80px, 11vw, 160px) 0; }
.catalog__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.catalog__sub { margin: 0; color: var(--muted); max-width: 440px; justify-self: end; }
.catalog__bar {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; margin-top: 48px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 10px; border-radius: 28px; background: rgba(15, 23, 41, .82); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid transparent; background: none; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s, background .3s, border-color .3s;
}
.filter sup { font-size: 11px; color: var(--muted-2); }
.filter:hover { color: var(--white); border-color: var(--line-2); }
.filter[aria-selected="true"] { background: var(--red); color: #fff; }
.filter[aria-selected="true"] sup { color: rgba(255,255,255,.75); }
.search { position: relative; display: flex; align-items: center; flex: 0 1 300px; }
.search svg { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 42px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--navy);
  outline: none; transition: border-color .3s;
}
.search input:focus { border-color: var(--red); }
.catalog__count { margin: 22px 4px 0; color: var(--muted); font-size: 14px; }
.catalog__count b { color: var(--white); }

.group { margin-top: 56px; }
.group[hidden] { display: none; }
.group__head { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 24px; }
.group__head h3 { margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 5.4vw, 84px); line-height: .9; }
html[lang="ru"] .group__head h3 { font-weight: 700; }
.group__head span { font-family: "Anton", sans-serif; color: var(--red-2); font-size: 18px; letter-spacing: .08em; }
.group__head em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--slate); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease), box-shadow .5s;
}
.card[hidden] { display: none; }
.card:hover { border-color: rgba(236,28,47,.55); transform: translateY(-4px); box-shadow: 0 24px 60px -24px rgba(236,28,47,.45); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--slate-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.92) contrast(1.05); }
.card:hover .card__media img { transform: scale(1.09); filter: saturate(1.1) contrast(1.08); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(23,34,56,.85)); pointer-events: none; }
.card__n { position: absolute; top: 12px; left: 14px; z-index: 1; font-family: "Anton", sans-serif; font-size: 14px; letter-spacing: .1em; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.card__price {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: var(--red);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff;
}
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.card__cat { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red-2); }
.card__title { margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 28px; line-height: 1; letter-spacing: .005em; }
html[lang="ru"] .card__title { font-weight: 700; font-size: 24px; line-height: 1.05; }
.card__short { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__more { font-size: 14px; color: var(--muted); }
.card__more summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--white); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.card__more summary::-webkit-details-marker { display: none; }
.card__more summary::after { content: "+"; color: var(--red-2); font-size: 16px; transition: transform .3s; }
.card__more[open] summary::after { transform: rotate(45deg); }
.card__more p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.6; }
.card__more small { display: block; margin-top: 10px; color: var(--muted-2); font-size: 12px; }
.card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.card__actions .btn { flex: 1; justify-content: center; min-height: 44px; padding: 0 14px; font-size: 13.5px; }
.card__actions .btn.is-added { --bg: var(--white); color: var(--navy); }
.card__wa {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2);
  transition: background .3s, border-color .3s, color .3s;
}
.card__wa svg { width: 20px; height: 20px; }
.card__wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.catalog__empty { margin: 48px 0 0; color: var(--muted); text-align: center; font-size: 18px; }
.noscript { color: var(--muted); }

/* ---------- Contact / devis ---------- */
.contact { position: relative; z-index: 2; background: var(--navy-2); padding: clamp(80px, 11vw, 160px) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__sub { color: var(--muted); max-width: 480px; margin: 22px 0 34px; }
.channels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.channel {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--slate);
  transition: border-color .3s, background .3s, transform .4s var(--ease); height: 100%;
}
.channel:hover { border-color: var(--red); transform: translateY(-2px); }
.channel svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--red); color: #fff; }
.channel span { display: flex; flex-direction: column; min-width: 0; }
.channel small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.channel b { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.map { margin-top: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--slate); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) invert(.9) hue-rotate(185deg) contrast(.9); }

.quote {
  position: sticky; top: calc(var(--header-h) + 20px);
  display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 40px); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, var(--slate) 0%, var(--navy) 100%); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.6);
}
.quote__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10,16,32,.6);
  outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(236,28,47,.18); }
.field input.is-invalid { border-color: var(--red-2); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option, .field select optgroup { background: var(--navy); }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--red); color: #fff; font-size: 13.5px; font-weight: 600; }
.chip button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 15px; line-height: 1; }
.chip button:hover { background: #fff; color: var(--red); }
.chips__empty { margin: 0; color: var(--muted-2); font-size: 14px; }
.chips__empty[hidden] { display: none; }
.field--mode { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.field--mode legend { width: 100%; margin-bottom: 8px; }
.radio { position: relative; flex: 1 1 180px; }
.radio input { position: absolute; opacity: 0; }
.radio span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .3s; text-align: center; }
.radio input:checked + span { background: var(--white); color: var(--navy); border-color: var(--white); }
.radio input:focus-visible + span { outline: 2px solid var(--red-2); outline-offset: 2px; }
.quote__error { margin: 0; color: var(--red-2); font-weight: 600; font-size: 14px; }
.quote__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quote__actions .btn { flex: 1 1 200px; justify-content: center; }
.quote__note { margin: 0; color: var(--muted-2); font-size: 12.5px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; background: var(--navy); border-top: 1px solid var(--line); overflow: hidden; padding: 0 0 28px; }
.footer__giant {
  font-family: "Anton", sans-serif; font-size: 26vw; line-height: .78; text-align: center; letter-spacing: -.02em; color: transparent;
  -webkit-text-stroke: 1px rgba(245,242,236,.14); margin: 40px 0 0; user-select: none; white-space: nowrap;
  background: linear-gradient(180deg, rgba(236,28,47,.85), rgba(236,28,47,0) 85%); -webkit-background-clip: text; background-clip: text;
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 48px; color: var(--muted); font-size: 14.5px; }
.footer__brand { font-family: "Anton", sans-serif; font-size: 28px; color: var(--white); margin: 0 0 10px; }
.footer__h { color: var(--white); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted-2); font-size: 13px; }
.credit { opacity: .7; }
.credit:hover { opacity: 1; color: var(--white); }

/* ---------- Barre mobile ---------- */
.mbar { display: none; }

/* ---------- Révélations (état initial posé par JS uniquement) ---------- */
.js.anim .reveal { opacity: 0; transform: translateY(40px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery__index { display: none; }
}

@media (max-width: 820px) {
  :root { --header-h: 66px; }
  .header__cta { display: none; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__txt strong { font-size: 21px; }
  .hero { align-items: flex-end; padding-bottom: 104px; }
  .hero__badge { width: 104px; height: 104px; right: 16px; top: calc(var(--header-h) + 24px); bottom: auto; }
  .hero__badge text { font-size: 15px; }
  .hero__badge > span { width: 50px; height: 50px; font-size: 15px; }
  .hero__meta { display: none; }
  .line--outline { -webkit-text-stroke-width: 1.5px; }
  .no-gl-gallery .gallery__cards { grid-auto-columns: 78%; }
  .catalog__head, .contact__grid { grid-template-columns: 1fr; }
  .catalog__sub { justify-self: start; }
  .catalog__bar { border-radius: 22px; flex-direction: column; align-items: stretch; top: calc(var(--header-h) + 6px); padding: 8px; }
  .search { flex: 1 1 auto; }
  .channels { grid-template-columns: 1fr; }
  .quote { position: static; }
  .quote__row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 8px; }
  .footer__grid { grid-template-columns: 1fr; }
  .dissolve { height: 70px; top: -69px; }

  .mbar {
    display: grid; grid-template-columns: auto auto 1fr; gap: 8px; position: fixed; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 98; padding: 8px; border-radius: 999px;
    background: rgba(15,23,41,.88); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: transform .5s var(--ease);
  }
  .mbar.is-hidden { transform: translateY(150%); }
  .mbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; white-space: nowrap; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid var(--line-2); }
  .mbar a svg { width: 18px; height: 18px; }
  .mbar a:first-child span { display: none; }
  .mbar__quote { font-size: 13px !important; }
  .mbar__quote { background: var(--red); border-color: var(--red) !important; color: #fff; }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 480px) {
  .values__grid { grid-template-columns: 1fr; }
  .value { min-height: 0; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { display: grid; grid-template-columns: 112px 1fr; }
  .card__media { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .card__price { left: 8px; right: 8px; bottom: 8px; text-align: center; font-size: 10.5px; padding: 5px 6px; }
  .card__body { padding: 14px 14px 14px; gap: 6px; }
  .card__cat { font-size: 10px; }
  .card__title { font-size: 22px; }
  html[lang="ru"] .card__title { font-size: 19px; }
  .card__short { -webkit-line-clamp: 2; font-size: 13px; }
  .card__actions .btn { min-height: 40px; font-size: 12.5px; padding: 0 10px; }
  .card__wa { width: 40px; height: 40px; }
  .lang__btn { width: 38px; }
  .lang__pill { width: 38px; }
  html[lang="ru"] .lang__pill { transform: translateX(38px); }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
}

/* ==========================================================================
   Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
  .marquee__track { animation: none; }
  .hero__badge svg { animation: none; }
  .js.anim .reveal { opacity: 1; transform: none; }
}
