/* ============================================================
   Reactor G Uzbekistan — КАРТА-РЕЕСТР (map-first).
   Самостоятельный app-shell. Тёплая аграрная палитра v2,
   карта — главный объект. Desktop: карта + фикс-панель.
   Mobile: карта сверху, чипсы слоёв, bottom-sheet карточки.
   ============================================================ */

:root {
  --sand-0:#F8F3E9; --sand-1:#F1E7D4; --sand-2:#E7D8BC; --sand-3:#DBC8A4;
  --hair:#CBB389; --hair-soft:#E0CEA9;
  --ink:#2A2017; --ink-soft:#4A3A29; --muted:#7A6549; --muted-2:#9C8765;
  --gold:#B5831F; --gold-deep:#8F6712; --gold-soft:#EBD6A0;
  --flame:#C2571E; --flame-deep:#9E4514;
  --green:#4E7A2E; --green-deep:#3A5C20;
  --steel:#3E6B86; --steel-deep:#2C5168;
  --violet:#5B4B8A; --violet-deep:#473A6E;
  --red:#A93423; --red-deep:#842417;
  --espresso:#221810; --espresso-2:#2E2114;
  --r-sm:7px; --r:12px; --r-lg:18px; --r-xl:24px;
  --sh-1:0 1px 2px rgba(42,32,23,.06),0 2px 6px rgba(42,32,23,.05);
  --sh-2:0 4px 14px rgba(42,32,23,.09),0 1px 3px rgba(42,32,23,.07);
  --sh-3:0 18px 48px rgba(42,32,23,.16),0 4px 12px rgba(42,32,23,.10);
  --font-display:"Spectral",Georgia,serif;
  --font-body:"Golos Text","IBM Plex Sans",sans-serif;
  --head-h:60px;
  --c-working:#C2571E; --c-fuel:#4E7A2E; --c-welder:#3E6B86;
  --c-engine:#5B4B8A; --c-demand:#B5831F; --c-law:#A93423;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body); color: var(--ink);
  background:
    radial-gradient(1100px 560px at 84% -10%, #FBF6EC 0%, transparent 60%),
    var(--sand-0);
  line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
#root { min-height: 100%; }

/* ---------- Типографика ---------- */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; color: var(--ink); text-wrap: pretty; }
.kicker { font-family: var(--font-body); font-weight: 600; font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-deep); }

/* ============================================================
   HEADER
   ============================================================ */
.app-head {
  position: sticky; top: 0; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; gap: 14px; padding: 0 clamp(14px, 3vw, 26px);
  background: rgba(248,243,233,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair-soft);
}
.ah-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ah-brand .logo { flex: none; }
.ah-bname { display: flex; flex-direction: column; line-height: 1.08; min-width: 0; }
.ah-bname b { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--ink); white-space: nowrap; }
.ah-bname span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-spacer { flex: 1; }
.ah-nav { display: flex; align-items: center; gap: 4px; }
.ah-link { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); background: none; border: 0; padding: 8px 11px; border-radius: 8px; transition: background .14s, color .14s; white-space: nowrap; }
.ah-link:hover { background: rgba(181,131,31,.12); color: var(--gold-deep); }
.ah-pill { display: none; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--green-deep); background: rgba(78,122,46,.1); border: 1px solid rgba(78,122,46,.3); padding: 6px 12px; border-radius: 999px; }
.ah-pill .d { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(78,122,46,.2); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 18px; border-radius: var(--r); border: 1px solid transparent;
  min-height: 48px; white-space: nowrap; transition: transform .14s, box-shadow .18s, background .18s;
}
.btn:active { transform: translateY(1px); }
.btn .tg { width: 17px; height: 17px; flex: none; }
.btn--tg { background: linear-gradient(180deg, #2AA3DE, #2487C0); color: #fff; border-color: #1f76aa; box-shadow: var(--sh-2); }
.btn--tg:hover { box-shadow: var(--sh-3); transform: translateY(-1px); }
.btn--flame { background: linear-gradient(180deg, var(--flame), var(--flame-deep)); color: #fff7ec; border-color: var(--flame-deep); box-shadow: var(--sh-2); }
.btn--flame:hover { transform: translateY(-1px); box-shadow: var(--sh-3); }
.btn--dark { background: var(--espresso); color: var(--sand-0); border-color: #000; }
.btn--dark:hover { background: var(--espresso-2); }
.btn--ghost { background: rgba(255,255,255,.6); color: var(--ink); border-color: var(--hair); }
.btn--ghost:hover { background: #fff; border-color: var(--gold); }
.btn--sm { min-height: 42px; padding: 10px 14px; font-size: 14px; }
.btn--block { width: 100%; }

/* ============================================================
   HERO — боль → решение (первый экран)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% -8%, #FBF4E7 0%, transparent 55%),
    linear-gradient(177deg, #FBF6EC 0%, #F1E5CE 100%);
  border-bottom: 1px solid var(--hair);
}
.hero-glow {
  position: absolute; left: -8%; bottom: -40%; width: 60%; height: 130%;
  background: radial-gradient(closest-side, rgba(169,52,35,.10), transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative; max-width: 980px; margin: 0 auto;
  padding: clamp(40px, 7vh, 84px) clamp(20px, 5vw, 48px) clamp(28px, 4vh, 44px);
  text-align: left;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--red-deep); background: rgba(169,52,35,.09); border: 1px solid rgba(169,52,35,.24);
  padding: 7px 13px; border-radius: 999px;
}
.hero-kicker svg { width: 15px; height: 15px; }
.hero-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.018em;
  font-size: clamp(32px, 5.4vw, 60px); line-height: 1.04; color: var(--ink);
  margin: 18px 0 0; text-wrap: balance; max-width: 18ch;
}
.hero-title .ht-risk { color: var(--red-deep); }
.hero-sub {
  font-size: clamp(15px, 1.8vw, 19px); line-height: 1.55; color: var(--ink-soft);
  margin: 18px 0 0; max-width: 60ch; text-wrap: pretty;
}
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hfact {
  flex: 1 1 200px; min-width: 180px; background: rgba(255,255,255,.7); border: 1px solid var(--hair-soft);
  border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh-1); position: relative;
}
.hfact::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; }
.hfact--risk::before { background: var(--red); }
.hfact--good::before { background: var(--flame); }
.hfact { padding-left: 20px; }
.hfact b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.05; color: var(--ink); }
.hfact--risk b { color: var(--red-deep); }
.hfact--good b { color: var(--flame-deep); }
.hfact span { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn svg:not(.tg) { width: 18px; height: 18px; }
.hero-scroll {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
  background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 13px; font-weight: 600;
}
.hero-scroll svg { width: 17px; height: 17px; animation: heroBob 1.8s ease-in-out infinite; }
.hero-scroll:hover { color: var(--gold-deep); }
@keyframes heroBob { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(4px) } }

.map-anchor { position: relative; top: 0; height: 0; }

/* ============================================================
   APP BODY — карта + панель
   ============================================================ */
.app-body {
  display: grid; grid-template-columns: 1fr clamp(370px, 31vw, 446px);
  gap: clamp(20px, 2.4vw, 36px); align-items: start;
  max-width: 1380px; margin: 0 auto;
  padding: clamp(22px, 3.4vw, 44px) clamp(18px, 4vw, 40px) clamp(8px, 2vw, 20px);
}

/* ---------- Карта ---------- */
.mapwrap {
  position: sticky; top: calc(var(--head-h) + 18px);
  overflow: visible; background: transparent; border: 0; box-shadow: none;
}
.mapstage { position: relative; display: grid; place-items: center; padding: clamp(8px, 1.6vw, 20px); }
.mapinner { position: relative; width: 100%; max-width: 880px; }
.mapimg { width: 100%; height: auto; filter: drop-shadow(0 18px 32px rgba(42,32,23,.22)); user-select: none; -webkit-user-drag: none; }

/* маркеры */
.mk {
  position: absolute; transform: translate(-50%, -50%); z-index: 4;
  display: grid; place-items: center; width: 38px; height: 38px;
  background: none; border: 0; padding: 0; transition: transform .15s;
}
.mk:hover { transform: translate(-50%, -50%) scale(1.12); z-index: 8; }
.mk.is-active { z-index: 9; }
.mk.is-dim { opacity: .26; filter: grayscale(.5); }
.mk-shape {
  width: 30px; height: 30px; display: grid; place-items: center; color: #fff;
  box-shadow: 0 5px 14px rgba(42,32,23,.4), inset 0 1px 0 rgba(255,255,255,.3);
  border: 1.5px solid rgba(255,255,255,.85);
}
.mk-shape svg { width: 16px; height: 16px; }
.mk.is-active .mk-shape { outline: 3px solid rgba(255,255,255,.95); outline-offset: 2px; }
/* формы */
.mk-shape--circle  { border-radius: 50%; }
.mk-shape--rounded { border-radius: 9px; }
.mk-shape--diamond { clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); border: 0; width: 34px; height: 34px; }
.mk-shape--triangle{ clip-path: polygon(50% 4%,96% 94%,4% 94%); border: 0; width: 34px; height: 34px; }
.mk-shape--triangle svg { margin-top: 5px; width: 14px; height: 14px; }
.mk-shape--pin     { clip-path: polygon(50% 0,100% 36%,82% 100%,18% 100%,0 36%); border: 0; width: 34px; height: 34px; }
.mk-shape--ring    { border-radius: 50%; background: #fff !important; border: 3px dashed currentColor; box-shadow: 0 5px 14px rgba(42,32,23,.38), 0 0 0 4px rgba(181,131,31,.16); }
/* цвета по слою */
.mk--working .mk-shape { background: var(--c-working); }
.mk--fuel    .mk-shape { background: var(--c-fuel); }
.mk--welder  .mk-shape { background: var(--c-welder); }
.mk--engine  .mk-shape { background: var(--c-engine); }
.mk--demand  .mk-shape { color: var(--c-demand); }
.mk--demand  .mk-shape svg { color: var(--c-demand); }
.mk--law     .mk-shape { background: var(--c-law); }
/* пульс у рабочей точки */
.mk--working .mk-pulse {
  position: absolute; inset: 4px; border-radius: 50%; z-index: -1;
  background: var(--c-working); opacity: .45; animation: mkpulse 2.4s ease-out infinite;
}
@keyframes mkpulse { 0%{transform:scale(.7);opacity:.5} 100%{transform:scale(2.3);opacity:0} }

/* подпись маркера */
.mk-label {
  position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; color: var(--ink); background: rgba(248,243,233,.92);
  border: 1px solid var(--hair-soft); padding: 2px 7px; border-radius: 6px; white-space: nowrap;
  box-shadow: var(--sh-1); pointer-events: none;
}
.mk.is-dim .mk-label { display: none; }

/* плашка-статус карты */
.map-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 6; max-width: 60%;
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500;
  color: var(--ink-soft); background: rgba(248,243,233,.92); border: 1px solid var(--hair-soft);
  padding: 8px 13px; border-radius: 999px; box-shadow: var(--sh-1); backdrop-filter: blur(4px);
}
.map-tag .d { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

/* легенда */
.map-empty {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7;
  width: min(86%, 340px); text-align: center; background: rgba(248,243,233,.97);
  border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--sh-3);
}
.map-empty .me-ic { width: 48px; height: 48px; border-radius: 13px; margin: 0 auto 11px; display: grid; place-items: center; background: rgba(110,99,84,.08); }
.map-empty .me-ic svg { width: 26px; height: 26px; }
.map-empty b { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); display: block; }
.map-empty p { margin: 7px 0 0; font-size: 13px; color: var(--muted); text-wrap: pretty; }

/* легенда */
.map-legend {
  position: absolute; right: 16px; top: 16px; z-index: 6;
  background: rgba(248,243,233,.94); border: 1px solid var(--hair-soft); border-radius: var(--r);
  padding: 11px 14px; box-shadow: var(--sh-2); backdrop-filter: blur(4px);
}
.map-legend h5 { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mlrow { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--ink-soft); padding: 3px 0; white-space: nowrap; }
.mlrow b { font-weight: 600; }
.mlmk { width: 17px; height: 17px; flex: none; display: grid; place-items: center; }
.mlmk i { width: 13px; height: 13px; display: block; }
.mlmk--circle i { border-radius: 50%; }
.mlmk--rounded i { border-radius: 4px; }
.mlmk--diamond i { clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.mlmk--triangle i { clip-path: polygon(50% 0,100% 100%,0 100%); }
.mlmk--pin i { clip-path: polygon(50% 0,100% 36%,82% 100%,18% 100%,0 36%); }
.mlmk--ring i { border-radius: 50%; background: transparent !important; border: 2.5px dashed currentColor; }

/* ============================================================
   ПРАВАЯ ПАНЕЛЬ
   ============================================================ */
.panel {
  background: linear-gradient(180deg, #FBF6EC, var(--sand-0));
  border: 1px solid var(--hair-soft); border-radius: var(--r-xl); box-shadow: var(--sh-1);
  display: flex; flex-direction: column; overflow: hidden;
}
.panel-scroll { padding: clamp(18px, 1.8vw, 24px); display: flex; flex-direction: column; gap: 18px; }

.p-intro { }
.p-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.1vw, 25px); line-height: 1.12; margin: 0; letter-spacing: -.01em; color: var(--ink); }
.p-sub { font-size: 13.5px; color: var(--muted); margin: 7px 0 0; text-wrap: pretty; }

/* секции панели */
.p-sec-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; }
.p-sec-label .clear { font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--gold-deep); background: none; border: 0; padding: 0; }

/* слои */
.layers { display: flex; flex-direction: column; gap: 8px; }
.layer {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: rgba(255,255,255,.55); border: 1px solid var(--hair-soft); border-radius: var(--r);
  padding: 10px 12px; transition: border-color .14s, background .14s, box-shadow .14s;
}
.layer:hover { border-color: var(--hair); background: #fff; }
.layer.is-on { background: #fff; box-shadow: var(--sh-1); }
.layer.is-on.l-working { border-color: var(--c-working); }
.layer.is-on.l-fuel { border-color: var(--c-fuel); }
.layer.is-on.l-welder { border-color: var(--c-welder); }
.layer.is-on.l-engine { border-color: var(--c-engine); }
.layer.is-on.l-demand { border-color: var(--c-demand); }
.layer.is-on.l-law { border-color: var(--c-law); }
.layer-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; color: #fff; border-radius: 9px; }
.layer-ic svg { width: 18px; height: 18px; }
.l-working .layer-ic { background: var(--c-working); border-radius: 50%; }
.l-fuel .layer-ic { background: var(--c-fuel); border-radius: 9px; }
.l-welder .layer-ic { background: var(--c-welder); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); border-radius: 0; }
.l-engine .layer-ic { background: var(--c-engine); clip-path: polygon(50% 0,100% 36%,82% 100%,18% 100%,0 36%); }
.l-demand .layer-ic { background: #fff; color: var(--c-demand); border: 2.5px dashed var(--c-demand); }
.l-law .layer-ic { background: var(--c-law); clip-path: polygon(50% 6%,96% 94%,4% 94%); }
.l-law .layer-ic svg { margin-top: 3px; width: 15px; height: 15px; }
.layer-tx { min-width: 0; flex: 1; }
.layer-tx b { font-size: 14px; font-weight: 600; color: var(--ink); display: block; line-height: 1.2; }
.layer-status { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; margin-top: 3px; }
.layer-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; background: currentColor; }
.ls-confirmed { color: var(--c-working); }
.ls-open { color: var(--gold-deep); }
.ls-risk { color: var(--red); }
.ls-collecting { color: var(--muted-2); }
.layer .check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--hair); flex: none; display: grid; place-items: center; color: #fff; }
.layer.is-on .check { background: var(--ink); border-color: var(--ink); }
.layer:not(.is-on) .check svg { display: none; }
.layer .check svg { width: 12px; height: 12px; }

/* область — select-чипсы */
.regions { display: flex; flex-wrap: wrap; gap: 7px; }
.rchip { font-size: 13px; font-weight: 600; color: var(--ink-soft); background: rgba(255,255,255,.6); border: 1px solid var(--hair-soft); border-radius: 999px; padding: 7px 13px; min-height: 38px; transition: .14s; }
.rchip:hover { border-color: var(--gold); }
.rchip.is-on { background: var(--espresso); color: var(--sand-0); border-color: #000; }

/* ---------- Карточка (start / point / region / empty) ---------- */
.card { background: #fff; border: 1px solid var(--hair-soft); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.card-pad { padding: 16px 17px; }

.card-type { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 7px; }
.t-working { color: var(--c-working); background: rgba(194,87,30,.1); }
.t-fuel { color: var(--c-fuel); background: rgba(78,122,46,.1); }
.t-welder { color: var(--c-welder); background: rgba(62,107,134,.1); }
.t-engine { color: var(--c-engine); background: rgba(91,75,138,.12); }
.t-demand { color: var(--c-demand); background: rgba(181,131,31,.12); }
.t-law { color: var(--c-law); background: rgba(169,52,35,.1); }

.card-region { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 12px; }
.card-region svg { width: 15px; height: 15px; color: var(--flame-deep); }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.18; color: var(--ink); margin: 6px 0 0; }
.card-desc { font-size: 13.5px; color: var(--ink-soft); margin: 9px 0 0; text-wrap: pretty; }

.card-media { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg,#3a2c1d,#221810 75%); }
.card-media image-slot { display: block; width: 100%; height: 100%; }
.cm-ov { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.3)); pointer-events: none; }
.cm-play { width: 54px; height: 54px; border-radius: 50%; background: rgba(194,87,30,.95); color: #fff; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.6); box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.cm-play svg { width: 21px; height: 21px; margin-left: 2px; }
.cm-badge { position: absolute; left: 11px; top: 11px; display: inline-flex; align-items: center; gap: 6px; background: rgba(34,24,16,.74); color: #f1e3c8; border: 1px solid rgba(78,122,46,.5); padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.cm-badge .d { width: 7px; height: 7px; border-radius: 50%; background: #7fc24a; box-shadow: 0 0 0 3px rgba(127,194,74,.3); }

.status-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: var(--r); font-size: 12.5px; font-weight: 500; }
.status-line svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.sl-confirmed { background: rgba(78,122,46,.1); color: var(--green-deep); }
.sl-law { background: rgba(169,52,35,.08); color: var(--red-deep); }
.sl-demand { background: rgba(181,131,31,.1); color: var(--gold-deep); }
.sl-open { background: rgba(181,131,31,.1); color: var(--gold-deep); }
.sl-collecting { background: rgba(110,99,84,.1); color: var(--muted); }

.kh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.kh { border: 1px solid var(--hair-soft); border-radius: var(--r); padding: 11px 12px; background: var(--sand-1); }
.kh h6 { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kh ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.kh li { display: flex; gap: 7px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }
.kh li .kdot { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.kh--known li .kdot { color: var(--green); }
.kh--hidden { background: rgba(110,99,84,.06); }
.kh--hidden li { color: var(--muted); }
.kh--hidden li .kdot { color: var(--muted-2); }

.card-cta { padding: 0 17px 17px; display: flex; flex-direction: column; gap: 9px; }
.hidden-note { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; display: flex; gap: 7px; align-items: flex-start; }
.hidden-note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--gold-deep); }

/* start / empty */
.card-start, .card-empty { padding: 20px 18px; text-align: center; }
.cs-ic { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 12px; display: grid; place-items: center; background: rgba(181,131,31,.13); color: var(--gold-deep); }
.cs-ic svg { width: 28px; height: 28px; }
.card-empty .cs-ic { background: rgba(110,99,84,.1); color: var(--steel); }
.card-start h3, .card-empty h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); margin: 0; }
.card-start p, .card-empty p { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; text-wrap: pretty; }
.card-empty .btn { margin-top: 14px; }

/* region card */
.region-stat { display: flex; gap: 10px; margin-top: 14px; }
.rstat { flex: 1; background: var(--sand-1); border: 1px solid var(--hair-soft); border-radius: var(--r); padding: 11px; text-align: center; }
.rstat b { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); display: block; }
.rstat span { font-size: 11px; color: var(--muted); }
.region-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rtype { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; border: 1px solid; }

/* доп. кнопки под картой */
.panel-foot { padding: 14px clamp(18px,1.8vw,24px) 16px; border-top: 1px solid var(--hair-soft); background: rgba(248,243,233,.7); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.panel-foot .btn { width: 100%; }
.foot-link { font-size: 12.5px; font-weight: 600; color: var(--gold-deep); }
.foot-link:hover { color: var(--flame-deep); text-decoration: underline; }

/* ============================================================
   ВТОРИЧНЫЕ СЕКЦИИ (ниже карты)
   ============================================================ */
.below { background: var(--sand-0); border-top: 1px solid var(--hair); }
.wrap { max-width: 1180px; margin: 0 auto; padding: clamp(36px,5vw,64px) clamp(18px,5vw,40px); }
.sec-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px,3vw,32px); line-height: 1.12; color: var(--ink); }
.sec-lede { font-size: clamp(14px,1.6vw,16.5px); color: var(--ink-soft); margin-top: 10px; max-width: 56ch; text-wrap: pretty; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.eyebrow .line { flex: 1; height: 1px; background: var(--hair); }

.below-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px,4vw,56px); align-items: start; }

/* как работает */
.how-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.how-step { display: flex; gap: 14px; align-items: flex-start; }
.how-n { width: 34px; height: 34px; border-radius: 50%; background: var(--espresso); color: var(--gold-soft); font-family: var(--font-display); font-weight: 700; font-size: 16px; display: grid; place-items: center; flex: none; }
.how-step b { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--ink); display: block; }
.how-step p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }

/* что добавить */
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.add-card { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--hair-soft); border-radius: var(--r); padding: 12px; box-shadow: var(--sh-1); }
.add-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.add-ic svg { width: 19px; height: 19px; }
.add-card b { font-size: 14px; font-weight: 600; color: var(--ink); display: block; }
.add-card span { font-size: 12px; color: var(--muted); }

/* закон/уголь */
.coal-sec { background: linear-gradient(180deg,#fbf4ef,#f7ece6); border-top: 1px solid var(--red-soft, #E7C0B7); }
.coal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 8px; }
.coal-card { background: #fff; border: 1px solid #E7C0B7; border-top: 3px solid var(--red); border-radius: var(--r); padding: 15px; }
.coal-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px,3vw,30px); color: var(--red-deep); line-height: 1; }
.coal-big span { display: block; font-family: var(--font-body); font-weight: 600; font-size: 12px; color: var(--red); margin-top: 6px; }
.coal-card p { margin: 11px 0 0; font-size: 13px; color: var(--ink-soft); }
.coal-solution { display: flex; gap: 13px; align-items: flex-start; margin-top: 18px; background: linear-gradient(180deg,#fbfdf5,#eef5e2); border: 1px solid #CFDCB6; border-left: 4px solid var(--green); border-radius: var(--r); padding: 16px 18px; }
.coal-solution svg { width: 26px; height: 26px; color: var(--green-deep); flex: none; }
.coal-solution p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.cite { font-size: 11.5px; color: var(--muted); margin-top: 12px; }

/* топливо под ногами */
.fuel-sec { background: linear-gradient(180deg, #FBFDF5, #F1F4E7); border-top: 1px solid #D6E0BE; }
.fuel-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 22px; }
.fuel-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 11px; background: #fff; border: 1px solid #D6E0BE; border-radius: var(--r-lg); padding: 20px 12px; box-shadow: var(--sh-1); transition: transform .15s, box-shadow .18s; }
.fuel-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.fuel-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(78,122,46,.12); color: var(--green-deep); }
.fuel-ic svg { width: 28px; height: 28px; }
.fuel-card b { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.25; text-wrap: balance; }
.fuel-body { margin-top: 22px; font-size: clamp(14px,1.6vw,16.5px); color: var(--ink-soft); max-width: 64ch; text-wrap: pretty; }

/* Фергана — доказательство */
.fergana-sec { background: linear-gradient(180deg, #FBF6EC, #F6EAD7); border-top: 1px solid var(--hair); }
.fergana-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.fergana-tx .sec-lede { margin-top: 14px; }
.fergana-card { background: #fff; border: 1px solid var(--hair-soft); border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden; }
.fc-media { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg,#3a2c1d,#221810 75%); }
.fc-media image-slot { display: block; width: 100%; height: 100%; }
.fc-badge { position: absolute; left: 13px; top: 13px; display: inline-flex; align-items: center; gap: 7px; background: rgba(34,24,16,.78); color: #f1e3c8; border: 1px solid rgba(78,122,46,.5); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.fc-badge .d { width: 7px; height: 7px; border-radius: 50%; background: #7fc24a; box-shadow: 0 0 0 3px rgba(127,194,74,.3); }
.fc-facts { padding: 6px 18px 14px; }
.fc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair-soft); }
.fc-row:last-child { border-bottom: 0; }
.fc-k { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fc-v { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.fc-v svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* почему скрыто */
.hide-band { display: flex; gap: 16px; align-items: flex-start; background: linear-gradient(180deg,#fffdf7,var(--sand-1)); border: 1px solid var(--hair); border-left: 4px solid var(--gold); border-radius: var(--r-lg); padding: 20px 22px; }
.hide-band .hb-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(181,131,31,.14); color: var(--gold-deep); display: grid; place-items: center; flex: none; }
.hide-band .hb-ic svg { width: 24px; height: 24px; }
.hide-band h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px,2.2vw,22px); margin: 0; color: var(--ink); }
.hide-band p { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }

/* финальный CTA */
.final { background: var(--espresso); color: var(--sand-0); position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 10%, rgba(181,131,31,.16), transparent 60%); }
.final .wrap { position: relative; text-align: center; }
.final h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px,3.4vw,38px); color: #fff; margin: 0; }
.final p { font-size: clamp(14px,1.7vw,17px); color: rgba(248,243,233,.82); margin: 14px auto 0; max-width: 56ch; }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.final-fine { font-size: 12px; color: rgba(248,243,233,.6); margin-top: 18px; }

.foot { background: var(--espresso-2); color: rgba(248,243,233,.66); font-size: 12.5px; text-align: center; padding: 22px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.foot a { color: var(--gold-soft); }
.foot .safety { display: block; max-width: 70ch; margin: 8px auto 0; color: rgba(248,243,233,.5); font-size: 11.5px; }

/* ============================================================
   МОБИЛЬНЫЕ КОМПОНЕНТЫ (видны только на телефоне/планшете)
   ============================================================ */
.mob-only { display: none; }

/* короткий смысл */
.mob-intro { padding: 16px clamp(14px, 4vw, 20px) 4px; }
.mob-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 6vw, 26px); line-height: 1.16; letter-spacing: -.01em; color: var(--ink); margin: 0; text-wrap: balance; }
.mob-honest-strip { display: flex; align-items: flex-start; gap: 8px; margin-top: 11px; font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); background: rgba(78,122,46,.08); border: 1px solid rgba(78,122,46,.22); border-radius: var(--r); padding: 9px 12px; }
.mhs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(78,122,46,.18); flex: none; margin-top: 4px; }

/* слои — одна строка */
.mob-layers { position: sticky; top: var(--head-h); z-index: 30; background: rgba(248,243,233,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair-soft); padding: 10px 0 11px; }
.mob-layers-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 clamp(14px, 4vw, 20px) 8px; }
.mob-layers-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mob-layers-hint { font-size: 11px; color: var(--muted-2); }
.mob-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 clamp(14px, 4vw, 20px); -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x proximity; }
.mob-chips::-webkit-scrollbar { display: none; }
.mchip { display: inline-flex; align-items: center; gap: 8px; flex: none; scroll-snap-align: start; font-size: 13px; font-weight: 600; color: var(--ink-soft); background: #fff; border: 1.5px solid var(--hair-soft); border-radius: 999px; padding: 8px 14px 8px 8px; min-height: 44px; white-space: nowrap; transition: border-color .14s, box-shadow .14s; }
.mchip .mci { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.mchip .mci svg { width: 15px; height: 15px; }
.mchip-n { font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.mchip.is-on { border-color: var(--ink); box-shadow: 0 2px 8px rgba(42,32,23,.14); }
.mchip--working.is-on { border-color: var(--c-working); }
.mchip--fuel.is-on { border-color: var(--c-fuel); }
.mchip--welder.is-on { border-color: var(--c-welder); }
.mchip--engine.is-on { border-color: var(--c-engine); }
.mchip--demand.is-on { border-color: var(--c-demand); }
.mchip--law.is-on { border-color: var(--c-law); }

/* секции мобильного потока */
.mob-below { background: var(--sand-0); }
.mob-block { padding: 18px clamp(14px, 4vw, 20px); border-top: 1px solid var(--hair-soft); }
.mob-sec-label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.mob-sec-label svg { width: 15px; height: 15px; color: var(--gold-deep); }
.msl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 3px rgba(194,87,30,.18); }
.mob-sec-label--risk { color: var(--red-deep); }
.msl-tri { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 11px solid var(--red); }
.mob-tap-hint { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 12px 2px 0; }
.mob-tap-hint svg { width: 16px; height: 16px; color: var(--gold-deep); flex: none; }
.mob-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 5.4vw, 24px); line-height: 1.18; color: var(--ink); margin: 0 0 14px; text-wrap: balance; }

.mob-regions .rchip { min-height: 40px; }

/* почему telegram */
.mob-why { display: flex; gap: 13px; background: linear-gradient(180deg,#fffdf7,var(--sand-1)); border: 1px solid var(--hair); border-left: 4px solid var(--gold); border-radius: var(--r-lg); padding: 16px 17px; }
.mob-why .mw-ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(181,131,31,.14); color: var(--gold-deep); display: grid; place-items: center; flex: none; }
.mob-why .mw-ic svg { width: 22px; height: 22px; }
.mob-why h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0; color: var(--ink); }
.mob-why p { margin: 7px 0 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.mw-steps { list-style: none; margin: 13px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mw-steps li { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); }
.mw-steps li b { width: 21px; height: 21px; border-radius: 50%; background: var(--espresso); color: var(--gold-soft); font-family: var(--font-display); font-size: 12px; display: grid; place-items: center; flex: none; }

/* закон */
.mob-law-list { display: flex; flex-direction: column; gap: 10px; }
.mob-law-card { display: flex; align-items: baseline; gap: 12px; background: #fff; border: 1px solid #E7C0B7; border-left: 3px solid var(--red); border-radius: var(--r); padding: 13px 15px; }
.mlc-big { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--red-deep); line-height: 1; flex: none; min-width: 92px; }
.mlc-big span { display: block; font-family: var(--font-body); font-weight: 600; font-size: 10.5px; color: var(--red); margin-top: 5px; }
.mob-law-card p { margin: 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.mob-solution { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; background: linear-gradient(180deg,#fbfdf5,#eef5e2); border: 1px solid #CFDCB6; border-left: 4px solid var(--green); border-radius: var(--r); padding: 14px 15px; }
.ms-ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(78,122,46,.12); color: var(--green-deep); display: grid; place-items: center; flex: none; }
.ms-ic svg { width: 21px; height: 21px; }
.mob-solution p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.mob-cite { font-size: 11px; color: var(--muted); margin-top: 12px; }

/* честный футер */
.mob-foot { background: var(--espresso-2); color: rgba(248,243,233,.7); padding: 22px clamp(14px,4vw,20px) calc(26px + env(safe-area-inset-bottom)); }
.mf-line { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: rgba(248,243,233,.92); }
.mf-dot { width: 8px; height: 8px; border-radius: 50%; background: #7fc24a; box-shadow: 0 0 0 3px rgba(127,194,74,.2); flex: none; margin-top: 4px; }
.mf-safety { font-size: 11.5px; color: rgba(248,243,233,.5); margin: 12px 0 0; line-height: 1.45; }
.mf-copy { display: block; font-size: 11.5px; color: rgba(248,243,233,.4); margin-top: 14px; }

/* sticky CTA (появляется после карточки) */
.mob-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(248,243,233,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--hair-soft); transform: translateY(120%); transition: transform .26s cubic-bezier(.4,0,.2,1); }
.mob-cta.show { transform: translateY(0); }

/* ============================================================
   MOBILE / TABLET — раскладка
   ============================================================ */
@media (max-width: 980px) {
  :root { --head-h: 56px; }
  .ah-nav { display: none; }
  .mob-only { display: block; }

  /* header — компактный, без overflow */
  .app-head { gap: 10px; padding: 0 14px; }
  .ah-brand .logo { width: 32px; height: 32px; }
  .ah-bname { min-width: 0; flex: 0 1 auto; margin-right: auto; }
  .ah-bname b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
  .ah-bname span { display: none; }
  .ah-spacer { display: none; }
  .app-head .btn { flex: none; }
  .btn--sm { min-height: 40px; padding: 9px 13px; font-size: 13.5px; }

  /* карта в потоке, fit-to-width, без обрезки и правого вылета */
  .app-body { display: block; max-width: none; margin: 0; padding: 0; }
  .mapwrap { position: relative; top: auto; border-radius: 0; border: 0; border-bottom: 0; box-shadow: none; background: transparent; }
  .mapstage { padding: 10px clamp(10px, 4vw, 16px) 4px; }
  .mapinner { max-width: 560px; margin: 0 auto; }
  .map-legend { display: none; }
  .map-tag { display: none; }            /* честный текст уже в intro-плашке над картой */
  .mk-label { display: none; }              /* подпись маркера → перенесена в карточку */
  .mk { width: 34px; height: 34px; }
  .mk-shape { width: 27px; height: 27px; }
  .mk-shape svg { width: 14px; height: 14px; }
  .mk-shape--diamond, .mk-shape--triangle, .mk-shape--pin { width: 31px; height: 31px; }

  /* десктоп-панель скрыта на мобайле */
  .panel { display: none; }

  /* контент мобильного потока — центрированная колонка (на телефоне = во всю ширину) */
  .mob-intro,
  .mob-layers-head,
  .mob-chips,
  .mob-block,
  .mf-line, .mf-safety, .mf-copy { max-width: 600px; margin-left: auto; margin-right: auto; }
  .mob-cta .btn { max-width: 600px; margin-left: auto; margin-right: auto; }

  /* карточка точки в инлайне */
  .mob-block .card { box-shadow: var(--sh-2); }
  .kh-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .kh-grid { grid-template-columns: 1fr; }
  .mlc-big { min-width: 80px; font-size: 20px; }
  .mob-chips { gap: 7px; }
}

@media (min-width: 981px) {
  .mob-only, .mob-cta { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .mk--working .mk-pulse { animation: none; }
  .mob-cta { transition: none; }
}

