/* ============================================================================
   home.css : nouvelle page d'accueil (maquette storybook, aout 2026).
   Charge uniquement par cgi-bin/home.pl, toujours avec ?v=<version>.
   Toutes les classes sont prefixees .cmh- : aucune collision avec Bootstrap 3
   ni avec style.css. Ne rien ajouter ici qui cible autre chose que .cmh-*.
   ========================================================================== */

.cmh-home { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; color: #1F2328; line-height: 1.5; }
.cmh-home * { box-sizing: border-box; }
.cmh-home img { max-width: 100%; }
.cmh-home a { text-decoration: none; color: inherit; }
.cmh-home h1, .cmh-home h2, .cmh-home h3 { font-family: inherit; }
.cmh-home svg { vertical-align: -2px; }

/* La page masque les doublons apportes par le gabarit : le bloc bot sous le
   contenu (le bandeau final le remplace) et les avis du footer (repris dans
   la section dediee). Sans :has, les deux blocs restent visibles : sans gravite. */
body:has(.cmh-home) main.content + section.content { display: none; }
body:has(.cmh-home) footer .rating { display: none; }

/* ---------------- hero ---------------- */
.cmh-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  margin: 22px auto 10px; max-width: 1290px; padding: 0; border-radius: 16px;
  overflow: hidden; background: #17191C; }
.cmh-hero .hleft { padding: 34px 40px 28px; }
.cmh-hero h1 { color: #fff; font-size: 33px; line-height: 1.12; margin: 0 0 8px;
  font-weight: 700; letter-spacing: -.015em; }
.cmh-hero .tag { color: #C9CDD1; font-size: 13.5px; line-height: 1.55; margin-bottom: 20px; }
.cmh-hero .tag b { color: #F5A45B; }
.cmh-hero .selllink { margin-top: 12px; font-size: 12.5px; color: #98A1A8; }
.cmh-hero .selllink a { color: #F5A45B; font-weight: 600; }
.cmh-hero .trust { display: flex; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.cmh-hero .trust span { color: #C9CDD1; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.cmh-hero .trust svg { color: #F5A45B; }
.cmh-hero .hright { position: relative; margin: 18px 18px 18px 0; border-radius: 12px;
  overflow: hidden; min-height: 420px; }
.cmh-hero .hright img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmh-hero .cap { position: absolute; left: 12px; bottom: 12px; background: rgba(16,18,20,.78);
  color: #fff; border-radius: 9px; padding: 8px 12px; font-size: 12px; }
.cmh-hero .cap b { font-weight: 650; }

/* ---- carte de recherche : memes champs que la liste, GET data.pl ---- */
.cmh-search { background: #fff; border-radius: 14px; padding: 16px;
  box-shadow: 0 18px 44px rgba(10,12,14,.35); display: flex; flex-direction: column; gap: 10px; }
.cmh-search .cmh-search-t { font-size: 13.5px; font-weight: 700; }
/* champs du formulaire : blindes en !important, le style.css du site impose
   sinon ses hauteurs, paddings et coins carres aux input/select */
.cmh-field { position: relative; display: flex; align-items: center; flex: 1; }
.cmh-field > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #E8720C; pointer-events: none; z-index: 1; }
#cmh-search .cmh-field select, #cmh-search .cmh-field input {
  width: 100% !important; min-width: 0; border: 1px solid #DFE3E7 !important;
  border-radius: 10px !important; padding: 0 12px 0 34px !important;
  font-size: 12.5px !important; color: #1F2328 !important; background: #fff !important;
  font-family: inherit !important; height: 42px !important; min-height: 0 !important;
  line-height: 40px !important; margin: 0 !important; box-shadow: none !important; }
#cmh-search .cmh-field select {
  -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
  cursor: pointer; padding-right: 30px !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236E767E' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center !important; }
#cmh-search .cmh-field input::-webkit-outer-spin-button,
#cmh-search .cmh-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#cmh-search .cmh-field input[type="number"] { -moz-appearance: textfield !important; }
#cmh-search .cmh-field input::placeholder { color: #98A1A8; }
#cmh-search .cmh-field.big select { font-weight: 600 !important; font-size: 13.5px !important;
  height: 46px !important; line-height: 44px !important; }
#cmh-search .cmh-field select:focus, #cmh-search .cmh-field input:focus {
  outline: 2px solid #F0B27D !important; border-color: #E8720C !important; }
/* menus deroulants dessines (v2.js) : le bouton prend le gabarit du champ */
#cmh-search .cmh-field .v2dd { width: 100%; }
#cmh-search .cmh-field .v2dd-btn { width: 100%; height: 42px; border-radius: 10px;
  padding: 0 12px 0 34px; font-size: 12.5px; }
#cmh-search .cmh-field.big .v2dd-btn { height: 46px; font-size: 13.5px; font-weight: 600; }
#cmh-search .cmh-field .v2dd-pop { min-width: 100%; max-width: none; }
.cmh-frow { display: flex; gap: 8px; }
.cmh-range { display: flex; flex-direction: column; gap: 4px; padding: 2px 2px 4px; }
.cmh-range .lab { display: flex; justify-content: space-between; font-size: 12px; color: #6E767E; }
.cmh-range .lab i { font-style: normal; }
.cmh-range .lab b { color: #1F2328; font-weight: 650; font-variant-numeric: tabular-nums; }
.cmh-range .track { position: relative; height: 22px; margin: 2px 7px 0; touch-action: none; }
.cmh-range .track::before { content: ""; position: absolute; top: 9px; left: 0; right: 0;
  height: 4px; border-radius: 2px; background: #E8EBEE; }
.cmh-range .fill { position: absolute; top: 9px; height: 4px; background: #F5A45B; border-radius: 2px; }
.cmh-range input[type="range"] { position: absolute; inset: 0; width: 100%; margin: 0;
  background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none; }
.cmh-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto;
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #E8720C;
  box-shadow: 0 1px 3px rgba(10,12,14,.25); cursor: pointer; }
.cmh-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid #E8720C; cursor: pointer; }
.cmh-go { background: #E8720C; color: #fff; border: none; border-radius: 10px; font-size: 13.5px;
  font-weight: 600; padding: 12px 0; display: flex; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; font-family: inherit; }
.cmh-go:hover { background: #D9640A; }

/* ---------------- bande de chiffres ---------------- */
.cmh-kpis { display: flex; align-items: center; flex-wrap: wrap; margin: 0 auto;
  max-width: 1290px; padding: 42px 14px 34px; background: #fff; border-bottom: 1px solid #E8EBEE; }
.cmh-kpis .lead { display: flex; align-items: baseline; gap: 16px; flex: 0 0 auto; padding-right: 34px; }
.cmh-kpis .lead .big { font-size: 54px; font-weight: 750; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums; }
.cmh-kpis .leadtxt b { display: block; font-size: 14.5px; font-weight: 700; }
.cmh-kpis .leadtxt p { margin: 3px 0 0; font-size: 12px; color: #6E767E; }
.cmh-kpis .kpi { flex: 1 1 0; min-width: 150px; padding-left: 26px; border-left: 1px solid #E8EBEE; }
.cmh-kpis .kpi b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.015em;
  font-variant-numeric: tabular-nums; }
.cmh-kpis .kpi span { font-size: 11px; color: #98A1A8; text-transform: uppercase; letter-spacing: .07em; }

/* ---------------- titres de section ---------------- */
.cmh-h2row { display: flex; align-items: baseline; justify-content: space-between;
  max-width: 1290px; margin: 0 auto; padding: 56px 28px 20px; }
.cmh-h2row h2 { font-size: 21px; font-weight: 650; margin: 0; }
.cmh-h2row a { font-size: 13px; color: #D9640A; }
.cmh-h2row.tl { padding-bottom: 10px; }
.cmh-h2row.tl span { font-size: 12px; color: #98A1A8; }

/* ---------------- derniers arrivages ---------------- */
.cmh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 1290px; margin: 0 auto; padding: 0 28px 10px; }
.cmh-card { background: #fff; border: 1px solid #E8EBEE; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.cmh-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(10,12,14,.10); }
.cmh-card .ph { position: relative; display: block; }
.cmh-card .ph img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.cmh-badge { position: absolute; top: 10px; left: 10px; background: #E8720C; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 4px 9px; border-radius: 7px; }
.cmh-badge.arr { background: #1F2328; }
.cmh-card .bd { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 13px; flex: 1; }
.cmh-card b { font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.cmh-card .f { font-size: 12px; color: #6E767E; }
.cmh-card .prow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; }
.cmh-card .p { font-size: 17px; font-weight: 700; color: #D9640A; }
.cmh-card .p.pod { font-size: 13px; }
.cmh-card .p small { font-size: 10.5px; color: #98A1A8; font-weight: 600; }
.cmh-card .lock { font-size: 11.5px; color: #8A4B12; background: #FDF8F1; border: 1px dashed #E3C9A8;
  border-radius: 8px; padding: 5px 9px; line-height: 1.35; }
.cmh-card .rem { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 99px; flex: none; }
.cmh-card .rem.ok { background: #EAF3E4; color: #3E7A2C; }
.cmh-card .rem.warn { background: #FBF3E2; color: #8F5E08; }
.cmh-card .chips { display: flex; gap: 6px; margin-top: 4px; }
.cmh-card .chips i { font-style: normal; font-size: 11px; font-weight: 600; color: #C25E05;
  background: #FCF1E4; border-radius: 7px; padding: 4px 9px; display: inline-flex; align-items: center; gap: 5px; }
.cmh-card .ref { margin-top: 6px; font-size: 10.5px; color: #98A1A8;
  font-family: ui-monospace, Menlo, Consolas, monospace; }

/* ---------------- marques en stock ---------------- */
.cmh-marquee { border-top: 1px solid #E8EBEE; border-bottom: 1px solid #E8EBEE;
  overflow: hidden; padding: 34px 0 36px; background: #fff; margin-top: 34px; }
.cmh-marquee .kick { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #98A1A8; margin-bottom: 12px; }
.cmh-marquee .wrap { overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%); }
.cmh-marquee .piste { display: flex; gap: 14px; width: max-content; animation: cmh-defile 60s linear infinite; }
.cmh-marquee .wrap:hover .piste { animation-play-state: paused; }
.cmh-marquee .mq { flex: none; width: 116px; height: 56px; border: 1px solid #E8EBEE; border-radius: 12px;
  background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px 16px;
  transition: border-color .2s ease, box-shadow .2s ease; }
.cmh-marquee .mq:hover { border-color: #EFC79A; box-shadow: 0 4px 14px rgba(232,114,12,.12); }
.cmh-marquee .mq img { max-height: 34px; max-width: 84px; object-fit: contain; }
@keyframes cmh-defile { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes cmh-defile-inv { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* ---------------- atelier (fond anthracite) ---------------- */
.cmh-dark { background: #0F1113; color: #E8EAEC; padding: 60px 28px 64px; margin-top: 44px; }
.cmh-dark h2 { font-size: 32px; line-height: 1.12; margin: 0 auto 24px; color: #fff;
  font-weight: 700; letter-spacing: -.02em; max-width: 1234px; }
.cmh-dark .dgrid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px;
  max-width: 1234px; margin: 0 auto; }
.cmh-dark .bx:nth-child(1) { grid-row: span 2; }
.cmh-dark .bx:nth-child(4) { grid-column: span 2; }
.cmh-dark .bx { display: flex; flex-direction: column; background: #17191C; border: 1px solid #26292D;
  border-radius: 14px; padding: 18px; transition: border-color .2s ease, background .2s ease; }
.cmh-dark .bx:hover { border-color: #3A3F45; background: #1B1E22; }
.cmh-dark .hd { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.cmh-dark .ic { width: 32px; height: 32px; border-radius: 9px; background: #22262A;
  display: inline-flex; align-items: center; justify-content: center; color: #F5A45B; flex: none; }
.cmh-dark .bx b { font-size: 14.5px; color: #fff; font-weight: 650; line-height: 1.25; }
.cmh-dark .bx > p { font-size: 12.5px; line-height: 1.6; color: #98A1A8; margin: 0 0 14px; }
.cmh-dark .pied { margin-top: auto; }
.cmh-dark .bx:nth-child(1) .pied { flex: 1; display: flex; }
.cmh-dark .shotwrap { position: relative; display: block; width: 100%; min-height: 190px;
  border-radius: 10px; overflow: hidden; }
.cmh-dark .shot { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.cmh-dark .tagshot { position: absolute; left: 8px; bottom: 8px; background: rgba(15,17,19,.85);
  color: #fff; font-size: 10.5px; padding: 4px 8px; border-radius: 6px; }
.cmh-dark .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cmh-dark .chips .ck { display: inline-flex; align-items: center; gap: 5px; font-size: 11px;
  color: #C9CDD1; background: #1F2327; border: 1px solid #2C3035; border-radius: 7px; padding: 5px 8px; }
.cmh-dark .chips .ck svg path { fill: #4FA03A; }
.cmh-dark .chips .pay { font-size: 11px; color: #C9CDD1; background: #1F2327; border: 1px solid #2C3035;
  border-radius: 7px; padding: 5px 8px; }
.cmh-dark .chips .pay.plus { color: #F5A45B; border-color: #4A3A28; }
.cmh-dark .team { display: flex; }
.cmh-dark .team .a { width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  border: 2px solid #17191C; margin-left: -9px; background: #2A2E33; flex: none; }
.cmh-dark .team .a:first-child { margin-left: 0; }
.cmh-dark .team img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- timeline ---------------- */
.cmh-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; position: relative;
  max-width: 1234px; margin: 0 auto; padding: 30px 28px 8px; }
.cmh-timeline .base { position: absolute; top: 55px; left: 54px; right: 4%; height: 3px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #E4E7EA 0 10px, transparent 10px 18px); }
.cmh-timeline .fill { position: absolute; top: 55px; left: 54px; height: 3px; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, #FF9838, #E8720C); transition: width 1.8s cubic-bezier(.22,.9,.3,1); z-index: 1; }
.cmh-timeline.go .fill { width: calc(96% - 54px); }
.cmh-timeline .chariot { position: absolute; top: 27px; left: 54px; height: 28px; width: auto; z-index: 3;
  transition: left 1.8s cubic-bezier(.22,.9,.3,1); }
.cmh-timeline.go .chariot { left: calc(96% - 30px); }
.cmh-timeline .node { position: relative; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; border: 2.5px solid #E4E7EA; color: #B4BAC0; display: flex; align-items: center;
  justify-content: center; transition: border-color .45s ease, color .45s ease, box-shadow .45s ease; }
.cmh-timeline .node .num { position: absolute; top: -7px; right: -7px; width: 21px; height: 21px;
  border-radius: 50%; background: #1F2328; color: #fff; font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.cmh-timeline.go .node { border-color: #E8720C; color: #C25E05; box-shadow: 0 0 0 5px #FCF1E4; }
.cmh-timeline.go .step:nth-child(4) .node { transition-delay: 0s; }
.cmh-timeline.go .step:nth-child(5) .node { transition-delay: .5s; }
.cmh-timeline.go .step:nth-child(6) .node { transition-delay: 1s; }
.cmh-timeline.go .step:nth-child(7) .node { transition-delay: 1.5s; }
.cmh-timeline .card { margin-top: 20px; }
.cmh-timeline .card b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 7px; }
.cmh-timeline .card p { margin: 0; font-size: 13px; color: #6E767E; line-height: 1.7; padding-right: 18px; }

/* ---------------- deux publics ---------------- */
.cmh-publics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  max-width: 1290px; margin: 0 auto; padding: 40px 28px 0; }
.cmh-publics .pub { display: flex; flex-direction: column; border: 1px solid #E8EBEE;
  border-radius: 16px; background: #fff; overflow: hidden; }
.cmh-publics .pub.pro { border-color: #EFC79A; box-shadow: 0 6px 22px rgba(232,114,12,.07); }
.cmh-publics .ph { padding: 22px 24px 16px; border-bottom: 1px solid #F1F3F5; }
.cmh-publics .pub.pro .ph { background: #FDF8F1; }
.cmh-publics .tagp { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #6E767E; background: #F1F3F5; border-radius: 99px; padding: 4px 11px; }
.cmh-publics .pub.pro .tagp { color: #C25E05; background: #FCF1E4; }
.cmh-publics h3 { font-size: 18px; font-weight: 650; margin: 12px 0 6px; }
.cmh-publics .ph p { margin: 0; font-size: 12.5px; color: #6E767E; line-height: 1.6; }
.cmh-publics ul { list-style: none; margin: 0; padding: 14px 24px 8px; flex: 1; }
.cmh-publics li { display: flex; gap: 9px; align-items: baseline; font-size: 13px; padding: 6px 0; }
.cmh-publics .ck { color: #3E7A2C; display: inline-flex; flex: none; transform: translateY(2px); }
.cmh-publics .ck svg path { fill: #4FA03A; }
.cmh-publics .cta { display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 10px 24px 22px; padding: 12px 0; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  background: #E8720C; color: #fff; }
.cmh-publics .pub.pro .cta:hover { background: #D9640A; }
.cmh-publics .cta.mail { background: #fff; border: 1.5px solid #E8720C; color: #C25E05; }
.cmh-publics .cta.mail:hover { background: #FCF1E4; }

/* ---------------- avis ---------------- */
.cmh-avismq { overflow: hidden; padding: 6px 0 10px; max-width: 1290px; margin: 0 auto 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%); }
.cmh-avismq .piste { display: flex; gap: 16px; width: max-content; animation: cmh-defile 110s linear infinite; }
.cmh-avismq:hover .piste { animation-play-state: paused; }
.cmh-avis { flex: none; width: 330px; border: 1px solid #E8EBEE; border-radius: 16px;
  padding: 20px 22px; background: #F6F7F8; display: flex; flex-direction: column; }
.cmh-avis .stars { color: #F0A02C; font-size: 14px; letter-spacing: 1px; margin-bottom: 8px; }
.cmh-avis p { margin: 0 0 16px; font-size: 13px; color: #31363B; line-height: 1.65; flex: 1; }
.cmh-avis .who b { display: block; font-size: 12.5px; font-weight: 650; }
.cmh-avis .who span { font-size: 11px; color: #98A1A8; }

/* ---------------- bandeau CTA final ---------------- */
.cmh-band { display: grid; grid-template-columns: 1.02fr 1fr; gap: 0; max-width: 1290px;
  margin: 0 auto 52px; border-radius: 16px; overflow: hidden; background: #0F1113; align-items: center; }
.cmh-band .txt { padding: 42px 40px; color: #E5E7E9; }
.cmh-band .kick { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #F5A45B; margin-bottom: 12px; }
.cmh-band h2 { color: #fff; font-size: 26px; line-height: 1.15; margin: 0 0 12px; font-weight: 700;
  letter-spacing: -.02em; }
.cmh-band p { font-size: 13.5px; color: #98A1A8; margin: 0 0 22px; line-height: 1.65; max-width: 420px; }
.cmh-band .cta { display: inline-flex; align-items: center; gap: 8px; background: #E8720C; color: #fff;
  font-size: 13.5px; font-weight: 600; border-radius: 10px; padding: 12px 20px; }
.cmh-band .cta:hover { background: #D9640A; }
.cmh-band .bandmq { display: flex; flex-direction: column; gap: 12px; padding: 26px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 100%); }
.cmh-band .cmh-mrow { overflow: hidden; }
.cmh-band .pist { display: flex; gap: 12px; width: max-content; animation: cmh-defile 64s linear infinite; }
.cmh-band .cmh-mrow.inv .pist { animation: cmh-defile-inv 78s linear infinite; }
.cmh-band:hover .pist { animation-play-state: paused; }
.cmh-band .tu { flex: none; width: 168px; height: 104px; border-radius: 10px; overflow: hidden; background: #17191C; }
.cmh-band .tu img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- accessibilite ---------------- */
@media (prefers-reduced-motion: reduce) {
  .cmh-marquee .piste, .cmh-avismq .piste, .cmh-band .pist { animation: none; }
  .cmh-timeline .fill, .cmh-timeline .chariot, .cmh-card { transition: none; }
}

/* ---------------- tablette ---------------- */
@media (max-width: 1024px) {
  .cmh-hero { margin: 14px 14px 8px; grid-template-columns: 1fr; }
  .cmh-hero .hright { order: -1; margin: 0; min-height: 230px; border-radius: 0; }
  .cmh-grid { grid-template-columns: repeat(2, 1fr); }
  .cmh-dark .dgrid { grid-template-columns: 1fr 1fr; }
  .cmh-dark .bx:nth-child(1) { grid-row: auto; }
  .cmh-dark .bx:nth-child(4) { grid-column: span 2; }
  .cmh-timeline { grid-template-columns: repeat(2, 1fr); }
  .cmh-timeline .base, .cmh-timeline .fill, .cmh-timeline .chariot { display: none; }
}

/* ---------------- mobile ---------------- */
@media (max-width: 560px) {
  .cmh-hero { margin: 10px 10px 0; border-radius: 14px; }
  .cmh-hero .hright { height: 172px; min-height: 0; }
  .cmh-hero .cap { left: 10px; bottom: 10px; padding: 6px 10px; font-size: 11px; }
  .cmh-hero .hleft { padding: 18px 14px 20px; }
  .cmh-hero h1 { font-size: 26px; line-height: 1.14; }
  .cmh-hero .tag { font-size: 12.5px; margin-bottom: 16px; }
  .cmh-hero .trust { gap: 8px 16px; margin-top: 16px; }
  .cmh-search { padding: 13px; gap: 9px; }
  .cmh-frow { flex-direction: column; gap: 9px; }

  .cmh-kpis { margin: 0 10px; padding: 26px 4px 0; }
  .cmh-kpis .lead { flex: 1 1 100%; padding: 0 0 16px; gap: 12px; }
  .cmh-kpis .lead .big { font-size: 40px; }
  .cmh-kpis .kpi { min-width: 0; padding: 14px 0 18px 10px; border-top: 1px solid #E8EBEE; }
  .cmh-kpis .kpi:first-of-type { padding-left: 0; border-left: none; }
  .cmh-kpis .kpi b { font-size: 20px; }
  .cmh-kpis .kpi span { font-size: 9.5px; letter-spacing: .05em; }

  .cmh-h2row { padding: 38px 14px 14px; flex-wrap: wrap; gap: 3px 12px; }
  .cmh-h2row h2 { font-size: 18px; }
  .cmh-grid { grid-template-columns: 1fr; gap: 14px; padding: 2px 14px 10px; }

  .cmh-marquee { padding: 24px 0 26px; margin-top: 24px; }
  .cmh-marquee .wrap {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%); }

  .cmh-dark { padding: 36px 14px 38px; margin-top: 30px; }
  .cmh-dark h2 { font-size: 23px; margin-bottom: 18px; }
  .cmh-dark .dgrid { grid-template-columns: 1fr; gap: 12px; }
  .cmh-dark .bx:nth-child(4) { grid-column: auto; }
  .cmh-dark .shotwrap { min-height: 168px; }

  .cmh-timeline { grid-template-columns: 1fr; gap: 20px; padding: 16px 14px 6px; }
  .cmh-timeline .step { display: grid; grid-template-columns: 52px 1fr; gap: 15px; align-items: start; }
  .cmh-timeline .card { margin-top: 0; padding-top: 2px; }
  .cmh-timeline .card b { font-size: 15px; margin-bottom: 5px; }
  .cmh-timeline .card p { font-size: 12.5px; line-height: 1.6; padding-right: 0; }

  .cmh-publics { grid-template-columns: 1fr; gap: 14px; padding: 26px 14px 0; }

  .cmh-avismq { margin: 0 0 30px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
  .cmh-avis { width: 268px; padding: 17px 18px; }

  .cmh-band { grid-template-columns: 1fr; margin: 0 10px 36px; }
  .cmh-band .txt { padding: 26px 18px 4px; }
  .cmh-band h2 { font-size: 22px; }
  .cmh-band p { font-size: 12.5px; margin-bottom: 18px; }
  .cmh-band .bandmq { padding: 22px 0 24px; gap: 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
  .cmh-band .tu { width: 132px; height: 82px; }
}
