/* Lingéo — feuille de style application */
:root {
  --navy: #0B2545;
  --navy-2: #12345F;
  --blue: #1D6FE0;
  --blue-dark: #1559B8;
  --blue-soft: #E8F1FE;
  --ink: #111318;
  --ink-2: #4A5160;
  --ink-3: #7C8494;
  --line: #E6E9EE;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;
  --green: #12805C;
  --green-soft: #E4F5EE;
  --amber: #A86400;
  --amber-soft: #FDF2DF;
  --red: #B42318;
  --red-soft: #FDECEA;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 4px 16px rgba(11, 37, 69, .07);
  --shadow-lg: 0 14px 40px rgba(11, 37, 69, .14);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 66px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + 46px + env(safe-area-inset-bottom));
}
[hidden] { display: none !important; }
img { max-width: 100%; }
button { font-family: inherit; font-size: inherit; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

/* ---------- Splash ---------- */
#app-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--navy);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}
#app-splash.show { display: flex; animation: splashOut .4s ease 1.2s forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* ---------- Menu lateral ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 34, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 900;
}
.drawer-backdrop.on { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: #fff;
  border-radius: 0 24px 24px 0;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.3, .8, .3, 1), visibility .28s;
  z-index: 901;
  display: flex;
  flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top)) 0 22px;
  box-shadow: var(--shadow-lg);
}
.drawer.on { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 0 18px 18px; border-bottom: 1px solid var(--line); }
.drawer-head img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.drawer-head .dn { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.drawer-head .ds { font-size: 12px; color: var(--ink-3); }
.drawer-close { margin-left: auto; background: var(--bg-soft); border: 0; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.drawer-links { padding: 12px 8px; overflow-y: auto; flex: 1; }
.drawer-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.drawer-links a:active { background: var(--bg-soft); }
.drawer-links a svg { width: 20px; height: 20px; stroke: var(--ink-2); fill: none; stroke-width: 1.7; flex: 0 0 auto; }
.drawer-foot { padding: 10px 20px 0; border-top: 1px solid var(--line); }

/* ---------- Barre du haut reduite au menu ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  padding: calc(6px + env(safe-area-inset-top)) 12px 6px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.menu-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--navy);
}
.menu-btn:active { background: var(--bg-soft); }
.menu-btn svg { width: 24px; height: 24px; stroke: var(--navy); stroke-width: 2; fill: none; stroke-linecap: round; }

.main { padding: 0 16px 24px; max-width: 100%; }

/* ---------- Identite en haut de l accueil ---------- */
.brand-head { display: flex; align-items: center; gap: 10px; padding: 4px 0 16px; }
.brand-head img { width: 36px; height: 36px; border-radius: 10px; }
.brand-head .bt { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.02; color: var(--navy); }
.brand-head .bs { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Galerie du haut ---------- */
.gallery {
  position: relative;
  margin-bottom: 14px;
}
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; overflow: hidden; border-radius: 20px; }
.gallery-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: min(66vh, 520px);
  object-fit: cover;
  display: block;
  transition: transform 6s ease-out;
}
.gallery-slide.is-active img { transform: scale(1.08); }
.gallery-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(to top, rgba(6, 18, 36, .82), rgba(6, 18, 36, 0));
  pointer-events: none;
}
.gallery-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}
.gallery-caption .gt { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.gallery-caption .gs { font-size: 13px; opacity: .9; margin-top: 4px; }
.gallery-dots { position: absolute; top: 14px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; z-index: 3; pointer-events: none; }
.gallery-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .55); transition: width .3s, background .3s; }
.gallery-dots i.on { width: 20px; background: #fff; }

.hero-cta { display: flex; gap: 10px; margin: 12px 0 26px; }
@media (min-width: 768px) { .gallery-slide img { aspect-ratio: 21 / 9; max-height: 460px; } .gallery-caption .gt { font-size: 34px; } }

/* ---------- Blocs de texte ---------- */
.lead { font-size: 15px; color: var(--ink-2); margin-bottom: 18px; max-width: 62ch; }
.section { margin-bottom: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.section-link { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }

/* ---------- Fonctions (liste compacte) ---------- */
.func-list { border-top: 1px solid var(--line); }
.func-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.func-item svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.7; flex: 0 0 auto; margin-top: 2px; }
.func-item .ft { font-weight: 650; font-size: 15px; }
.func-item .fd { font-size: 13.5px; color: var(--ink-2); }

/* ---------- Cartes ---------- */
.band {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.band::-webkit-scrollbar { display: none; }
.band > * { flex: 0 0 78%; scroll-snap-align: start; }

.card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  border: 1px solid rgba(11, 37, 69, .05);
}
.card img.cover { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--bg-soft); }
.card .cbody { padding: 14px 16px 16px; }
.card .ctitle { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.card .cmeta { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.card .crow { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 99px;
  background: var(--bg-soft);
  color: var(--ink-2);
  white-space: nowrap;
}
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.faible { background: var(--amber-soft); color: var(--amber); }
.badge.rupture { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--blue-soft); color: var(--blue-dark); }

/* ---------- Statistiques ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.stat { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 16px; }
.stat .sv { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1.1; }
.stat .sl { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.stat.warn .sv { color: var(--amber); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 99px;
  border: 1px solid transparent;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
  transition: transform .12s ease, background .15s, opacity .15s;
  text-align: center;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:active { background: var(--blue-dark); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--navy);
  flex: 0 0 auto;
  transition: transform .12s;
}
.icon-btn:active { transform: scale(.93); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.icon-btn.danger { color: var(--red); border-color: #F3D3CF; }

/* ---------- Selecteur de logement ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 9px 15px;
  border-radius: 99px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.chip.on { background: var(--navy); color: #fff; }

/* ---------- Rubriques de stock ---------- */
.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; margin-bottom: 16px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 15px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h3 { font-size: 16px; font-weight: 750; letter-spacing: -.01em; color: var(--navy); }
.panel-head .count { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.panel-body { padding: 4px 0; }

.row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.row-item:last-child { border-bottom: 0; }
.row-item .ri-main { min-width: 0; flex: 1; }
.row-item .ri-name { font-weight: 600; font-size: 14.5px; }
.row-item .ri-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; flex: 0 0 auto; }
.qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: #fff;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.qty button:active { background: var(--bg-soft); }
.qty input {
  width: 46px;
  height: 34px;
  border: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  padding: 7px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.seg button.on { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }

.group-title { padding: 14px 16px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.empty { padding: 22px 16px; text-align: center; color: var(--ink-3); font-size: 13.5px; }

/* ---------- Barre du bas flottante ---------- */
.tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  height: var(--tabbar-h);
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  box-shadow: 0 8px 30px rgba(11, 37, 69, .16);
  border: 1px solid rgba(11, 37, 69, .06);
  padding: 0 6px;
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 650;
  border-radius: 22px;
  margin: 6px 2px;
  position: relative;
  transition: transform .12s;
}
.tabbar a:active { transform: scale(.97); }
.tabbar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.tabbar a.on { color: var(--blue); background: var(--blue-soft); }
.tabbar .pill-count {
  position: absolute;
  top: 2px;
  right: 16px;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* ---------- Pied de page ---------- */
.footer {
  margin: 34px 0 0;
  background: var(--bg-soft);
  border-radius: 24px 24px 0 0;
  padding: 26px 20px 22px;
  color: var(--ink-2);
  font-size: 13.5px;
}
.footer .fbrand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer .fbrand img { width: 40px; height: 40px; border-radius: 12px; }
.footer .fbrand .fn { font-weight: 800; color: var(--navy); font-size: 16px; letter-spacing: -.01em; }
.footer .fline { display: flex; align-items: flex-start; gap: 9px; margin-top: 9px; }
.footer .fline svg { width: 16px; height: 16px; stroke: var(--ink-3); fill: none; stroke-width: 1.7; flex: 0 0 auto; margin-top: 2px; }
.footer .flinks { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer .flinks a { color: var(--ink-2); font-size: 13px; }
.footer .flinks a.small { color: var(--ink-3); font-size: 12px; }
.footer .fcopy { margin-top: 14px; font-size: 11.5px; color: var(--ink-3); }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .qty input:focus {
  outline: 2px solid rgba(29, 111, 224, .35);
  outline-offset: 1px;
  border-color: var(--blue);
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.error-msg { background: var(--red-soft); color: var(--red); padding: 11px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.ok-msg { background: var(--green-soft); color: var(--green); padding: 11px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }

.upload-btn { display: inline-flex; }
.upload-preview { margin-top: 10px; }
.upload-preview img { width: 100%; max-width: 220px; border-radius: 12px; display: block; }

/* ---------- Feuille modale ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 34, .45);
  z-index: 950;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, visibility .22s;
}
.sheet-backdrop.on { opacity: 1; visibility: visible; }
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  z-index: 951;
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.3, .8, .3, 1), visibility .3s;
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
}
.sheet.on { transform: translateY(0); visibility: visible; pointer-events: auto; }
.sheet h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; color: var(--navy); }
@media (min-width: 700px) {
  .sheet { left: 50%; right: auto; bottom: 50%; transform: translate(-50%, 60%); width: 560px; border-radius: 24px; max-height: 88vh; }
  .sheet.on { transform: translate(-50%, 50%); }
}

/* ---------- Divers ---------- */
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.muted { color: var(--ink-3); font-size: 13px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.two-cols { display: grid; grid-template-columns: 1fr; gap: 14px; }
.qr-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px; }
.qr-box img { width: 120px; height: 120px; background: #fff; border-radius: 10px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 26px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 980;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  max-width: 90vw;
  text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); visibility: visible; }

.drawer-foot a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; color: var(--navy); font-weight: 650; font-size: 14.5px; }
.drawer-foot a svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.desktop-sidebar .ds-foot svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; flex: 0 0 19px; }
.loader { padding: 30px; text-align: center; color: var(--ink-3); font-size: 13.5px; }

/* ---------- Colonne ordinateur (application uniquement) ---------- */
.desktop-sidebar { display: none; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .topbar, .tabbar, .drawer, .drawer-backdrop { display: none !important; }
  .app-wrap { display: flex; align-items: flex-start; }
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    width: 260px;
    flex: 0 0 260px;
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 24px 16px;
  }
  .desktop-sidebar .ds-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 0 6px; }
  .desktop-sidebar .ds-brand img { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px; }
  .desktop-sidebar .ds-brand span { font-weight: 800; font-size: 17px; color: var(--navy); letter-spacing: -.01em; }
  .desktop-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .desktop-sidebar nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px; border-radius: 11px;
    color: var(--ink-2); font-weight: 600; font-size: 14px;
  }
  .desktop-sidebar nav a svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; }
  .desktop-sidebar nav a.on, .desktop-sidebar nav a:hover { background: var(--blue-soft); color: var(--blue-dark); }
  .desktop-sidebar .ds-foot { margin-top: auto; padding: 0 6px; }
  .main { flex: 1; min-width: 0; max-width: 1100px; margin: 0 auto; padding: 34px 40px 60px; }
  .brand-head .bt { font-size: 40px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .band { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 18px; }
  .band > * { flex: none; }
  .two-cols { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .footer { border-radius: 24px; }
}
@media (min-width: 1400px) {
  .band { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 430px) {
  .row-item { gap: 8px; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 16px; height: 16px; }
  .qty button { width: 30px; height: 32px; }
  .qty input { width: 40px; height: 32px; }
  .brand-head .bt { font-size: 30px; }
  .section-title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
