/* lionled.com.ua – базові стилі */
:root { --ink: #14171a; --graphite: #111417; --panel: #1b2025; --line: #dde0dc; --muted: #545b62; --bg: #f2f3f1; --amber: #ffb42e; --ok: #1d6b3a; --soft: #c9ced3; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 'IBM Plex Sans', system-ui, sans-serif; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: #8a5300; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.display { font-family: Unbounded, 'IBM Plex Sans', sans-serif; }
h1, h2, h3 { line-height: 1.2; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* шапка */
.top { background: var(--graphite); color: #f2f3f1; }
.top .wrap { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 21px; color: #f2f3f1; white-space: nowrap; }
.logo sup { color: var(--amber); font-size: .75em; line-height: 0; margin: 0 1px; }
.logo .on { color: var(--amber); }
.logo .led { font-weight: 500; color: var(--soft); margin-left: 3px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1 1 auto; }
.top nav a { color: var(--soft); padding: 8px 0; }
.top nav a:hover, .top nav a[aria-current] { color: #fff; }
.top .phone { color: #f2f3f1; }
.search { flex: 1 1 220px; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid #3a4148; border-radius: 4px; background: var(--panel); color: #f2f3f1; font: inherit; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 4px; border: 0; background: var(--graphite); color: #fff; font-weight: 600; cursor: pointer; text-align: center; }
.btn:hover { color: #fff; background: #2a2f35; }
.btn.amber { background: var(--amber); color: var(--graphite); }
.btn.amber:hover { background: #ffc35a; color: var(--graphite); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.chip { min-height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid #cfd3ce; background: #fff; color: var(--ink); cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }

/* головна */
.hero { background: var(--graphite); color: #f2f3f1; border-top: 1px solid #262c32; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 52px; padding-bottom: 60px; }
.hero h1 { margin: 0; font-family: Unbounded, sans-serif; font-size: clamp(30px, 5vw, 54px); }
.hero .lead { color: var(--soft); font-size: 17px; max-width: 460px; }
.hero .col { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.temps { display: flex; flex-wrap: wrap; gap: 8px; }
.temp { height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 8px; border-radius: 22px; border: 1px solid #3a4148; background: transparent; color: #f2f3f1; font: 500 15px 'IBM Plex Mono', monospace; cursor: pointer; }
.temp[aria-pressed="true"] { border-color: var(--amber); background: #2a2f35; }
.temp i { width: 14px; height: 14px; border-radius: 50%; display: block; }
.glow { flex: 1 1 360px; min-width: 0; border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: background .3s; }
.pick { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 6px; padding: 10px; color: var(--ink); }
.pick img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.section { padding-top: 52px; }
.section h2 { font-family: Unbounded, sans-serif; font-weight: 500; font-size: 26px; margin: 0 0 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px; min-height: 88px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.tile b { font-weight: 600; }
.tile span { font-size: 13px; color: var(--muted); }

/* картки */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.card .ph { aspect-ratio: 7 / 8; display: flex; align-items: center; justify-content: center; }
.card .ph img { max-height: 100%; object-fit: contain; }
.card .nm { font-weight: 500; flex-grow: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; }
.tags span { background: var(--bg); border-radius: 3px; padding: 1px 6px; color: #3d444a; }
.stock { font-size: 13px; color: var(--ok); }
.price { font-family: 'IBM Plex Mono', monospace; font-size: 18px; }
.card .row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }

/* каталог */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }
.page-h1 { font-family: Unbounded, sans-serif; font-size: clamp(26px, 4vw, 36px); margin: 10px 0 4px; }
.layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding: 20px 0 56px; }
.filters { flex: 1 1 240px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.filters h3 { font-size: 15px; margin: 0 0 8px; }
.filters .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); }

/* товар */
.prod { display: flex; flex-wrap: wrap; gap: 32px; padding: 20px 0 8px; }
.gallery { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery .main { background: #fff; border-radius: 6px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.gallery .main img { max-height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.thumbs button { background: #fff; border: 1px solid #cfd3ce; border-radius: 4px; padding: 3px; cursor: pointer; aspect-ratio: 1 / 1; }
.thumbs button[aria-current="true"] { border: 2px solid var(--graphite); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.buy h1 { margin: 0; font-family: Unbounded, sans-serif; font-size: clamp(22px, 3vw, 30px); }
.buy .price { font-size: 34px; }
.note { background: #fff1d6; border-radius: 4px; padding: 10px 14px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.kv div { background: #fff; border-radius: 6px; padding: 12px 14px; }
.kv small { display: block; color: var(--muted); font-size: 13px; }
.kv b { font-family: 'IBM Plex Mono', monospace; font-weight: 500; }
.cols { display: flex; flex-wrap: wrap; gap: 32px; padding: 32px 0; }
.cols > section { flex: 1 1 420px; min-width: 0; }
.cols h2, .sim h2 { font-family: Unbounded, sans-serif; font-weight: 500; font-size: 22px; margin: 0 0 12px; }
.specs { background: #fff; border-radius: 6px; padding: 4px 16px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #e6e8e5; }
.specs div:last-child { border-bottom: 0; }
.specs span:first-child { color: var(--muted); }
.specs span:last-child { text-align: right; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0; padding-left: 20px; }
.pre { white-space: pre-line; }

/* симулятор */
.sim { background: var(--graphite); color: #f2f3f1; border-radius: 8px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.sim .head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: baseline; }
.sim .head small { color: #9aa3ab; }
.sim .hint { color: var(--soft); font-size: 14px; }
.sim .body { display: flex; flex-wrap: wrap; gap: 24px; }
.stage { flex: 1 1 300px; min-width: 0; background: #050607; border-radius: 8px; min-height: 260px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.beam { border-radius: 50%; transition: width .15s, height .15s, opacity .15s; }
.stage .label { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.stage .label span { background: rgba(17,20,23,.85); border-radius: 4px; padding: 6px 10px; font-family: 'IBM Plex Mono', monospace; font-size: 17px; }
.stage .dot { width: 12px; height: 12px; border-radius: 50%; }
.ctrlcol { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ctrls { display: flex; flex-wrap: wrap; gap: 16px; }
.ctrl { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ctrl > small { color: var(--soft); }
.ebtn { width: 104px; height: 104px; border-radius: 50%; border: 3px solid var(--amber); background: var(--panel); color: #f2f3f1; cursor: pointer; padding: 10px; font-size: 13px; line-height: 1.2; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ebtn.down { background: var(--amber); color: var(--graphite); }
.cbtns { display: flex; gap: 8px; }
.cbtn { min-height: 64px; width: 116px; border: 2px solid var(--amber); border-radius: 8px; background: var(--panel); color: #f2f3f1; font-size: 13px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.cbtn.half { border-style: dashed; }
.cbtn.down { background: var(--amber); color: var(--graphite); }
.rot { display: flex; flex-wrap: wrap; gap: 4px; max-width: 380px; }
.rot button { min-height: 44px; padding: 0 12px; border-radius: 4px; border: 1px solid #4a525a; background: transparent; color: #f2f3f1; cursor: pointer; font-size: 13px; }
.rot button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--graphite); }
.status { background: var(--panel); border-radius: 6px; padding: 12px 14px; min-height: 66px; }
.status .g { font-family: 'IBM Plex Mono', monospace; color: var(--amber); font-size: 18px; min-height: 24px; }
.sim .info { font-size: 13px; color: #9aa3ab; }
.sim .reset { align-self: flex-start; min-height: 40px; padding: 0 14px; border: 1px solid #4a525a; border-radius: 4px; background: transparent; color: #f2f3f1; cursor: pointer; }
.sim details { background: var(--panel); border-radius: 6px; padding: 12px 16px; }
.sim summary { cursor: pointer; color: var(--amber); }
.sim details .pre { color: var(--soft); font-size: 14px; margin-top: 10px; }
.sim details img { margin-top: 10px; border-radius: 4px; background: #fff; }

/* підвал */
.foot { background: var(--graphite); color: var(--soft); margin-top: 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; padding-top: 36px; padding-bottom: 36px; }
.foot b { color: #f2f3f1; display: block; }
.foot a { color: var(--soft); }

@media (max-width: 560px) {
  .hero .wrap { padding-top: 32px; padding-bottom: 36px; }
  .buy .price { font-size: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ефекти світла */
@keyframes fx-strobe { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
@keyframes fx-beacon { 0%, 8% { opacity: 1 } 9%, 100% { opacity: 0 } }
@keyframes fx-bike { 0%, 10% { opacity: 1 } 11%, 100% { opacity: .35 } }
@keyframes fx-sos { 0%, 3%, 6%, 9%, 12%, 15% { opacity: 1 } 2%, 5%, 8% { opacity: 0 } 16%, 24%, 32% { opacity: 1 } 22%, 30%, 38% { opacity: 0 } 39%, 41%, 44%, 47% { opacity: 1 } 40%, 43%, 46%, 49%, 100% { opacity: 0 } }
@keyframes fx-batt { 0%, 6%, 20%, 26%, 40%, 46%, 60%, 66% { opacity: 1 } 10%, 16%, 30%, 36%, 50%, 56%, 70%, 100% { opacity: 0 } }
@keyframes fx-candle { 0% { opacity: .7 } 20% { opacity: .95 } 35% { opacity: .6 } 60% { opacity: .9 } 80% { opacity: .65 } 100% { opacity: .85 } }
@keyframes fx-lightning { 0%, 4%, 9%, 13% { opacity: 1 } 2%, 7%, 11%, 15%, 100% { opacity: .05 } }
.fx-strobe, .fx-tactstrobe { animation: fx-strobe .12s infinite; }
.fx-party { animation: fx-strobe .07s infinite; }
.fx-beacon, .fx-redflash { animation: fx-beacon 1.5s infinite; }
.fx-bike { animation: fx-bike 1s infinite; }
.fx-sos { animation: fx-sos 6s infinite; }
.fx-batt, .fx-temp { animation: fx-batt 3s infinite; }
.fx-candle { animation: fx-candle .9s infinite alternate; }
.fx-lightning { animation: fx-lightning 4s infinite; }
.fx-blink { animation: fx-strobe .6s infinite; }
@media (prefers-reduced-motion: reduce) { .beam[class*="fx-"] { animation-duration: 2s !important; } }
