/* Візуальна мова моду (KozakTheme): нічна шапка з жовтою «вкладкою», хаккі-тло з камуфляжем, темні панелі,
   жовтий акцент, зелена «Купити», Manrope ExtraBold, кольори рангів «Буржуїв». */
:root {
  --night: #141213; --bar: #221f1f; --bar-soft: #3a3536; --panel: #262223; --panel-2: #2f2a2b; --line: #3d3738;
  --khaki: #5b6344; --khaki-dark: #3e4430;
  --paper: #f2f3f5; --ink: #221f1f; --ink-muted: #7a7676;
  --text: #f4f1ee; --muted: #a9a3a4;
  --accent: #ffd500; --accent-soft: #fff6c2; --buy: #00a046; --buy-dark: #008a3c; --danger: #e53935; --link: #ffd500;
  --r: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden; color: var(--text); font: 16px/1.6 Manrope, system-ui, sans-serif;
  background: var(--khaki-dark) url(/assets/img/camo.webp) center top / 1600px auto repeat;
}
body::before { content: ""; position: fixed; inset: 0; background: linear-gradient(180deg, rgba(20,18,19,.55), rgba(20,18,19,.82)); z-index: -1; }
a { color: var(--link); }
img { max-width: 100%; }
code { background: rgba(255,213,0,.14); color: var(--accent); padding: 1px 7px; border-radius: 6px; font: 700 .9em Manrope, monospace; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.block { margin-top: 40px; }
.sec-h { font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.sec-h::before { content: ""; width: 6px; height: 26px; background: var(--accent); border-radius: 3px; }
.sub-h { font-size: 20px; font-weight: 800; margin: 32px 0 12px; }
.sub-h span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.bee-i { vertical-align: -4px; }

/* Шапка: як Hub — нічна смуга, активна вкладка жовта зі скосом, під нею «hazard»-пунктир. */
.top { background: var(--bar); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.nav { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav a { display: flex; align-items: center; gap: 8px; color: #d8d2d2; text-decoration: none; font-weight: 700; padding: 0 18px; min-height: 64px; }
.nav a img { opacity: .8; }
.nav a:hover { color: #fff; background: var(--bar-soft); }
.nav a.on { background: var(--accent); color: var(--ink); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding: 0 24px; }
.nav a.on img { filter: brightness(0); opacity: .85; }
.lang { display: flex; align-items: center; margin-left: 10px; }
.nav .lang a { min-height: 0; padding: 4px 10px !important; font-size: 13px; border-radius: 999px; clip-path: none !important; }
.nav .lang a.on { background: var(--accent); color: var(--ink); }
.hazard { height: 6px; background: repeating-linear-gradient(135deg, var(--accent) 0 12px, var(--bar) 12px 24px); opacity: .9; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 10px; font: 800 17px/1.2 Manrope, sans-serif; text-decoration: none; border: 0; cursor: pointer; width: auto; transition: transform .08s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 28px; font-size: 19px; }
.btn-buy { background: var(--buy); color: #fff; box-shadow: 0 4px 0 #006b2f; }
.btn-buy:hover { background: var(--buy-dark); }
.btn-dark { background: var(--bar); color: #fff; border: 1px solid var(--line); }
.btn-dark:hover { background: var(--bar-soft); }
.btn-ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }

/* Hero — сцена «нічна вежа» (app/hero.php): SVG-ліс і вежа, промінь прожектора, контур блискавки з лого, іскри.
   Одна анімація — прожектор (+ іскри); prefers-reduced-motion вимикає. */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(86vh, 760px); display: flex; align-items: center;
  background: radial-gradient(120% 80% at 75% 10%, #2b3324 0%, rgba(20,18,19,0) 60%), linear-gradient(180deg, #0f0e12 0%, #171a16 55%, #0c0e0c 100%); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.beam-wrap { transform-box: fill-box; }
.beam { transform-box: fill-box; transform-origin: 50% 100%; animation: sweep 11s ease-in-out infinite alternate; mix-blend-mode: screen; }
@keyframes sweep { from { transform: rotate(-14deg); } to { transform: rotate(22deg); } }
.bolt { opacity: .85; filter: drop-shadow(0 0 18px rgba(255,213,0,.35)); }
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.embers i { position: absolute; bottom: 12%; width: 4px; height: 4px; background: #ffd500; opacity: 0; animation: ember 7s linear infinite; }
.embers i:nth-child(1) { left: 62%; animation-delay: 0s; } .embers i:nth-child(2) { left: 70%; animation-delay: 1.2s; }
.embers i:nth-child(3) { left: 78%; animation-delay: 2.5s; width: 3px; height: 3px; } .embers i:nth-child(4) { left: 84%; animation-delay: 3.4s; }
.embers i:nth-child(5) { left: 66%; animation-delay: 4.6s; width: 3px; height: 3px; } .embers i:nth-child(6) { left: 90%; animation-delay: 5.3s; }
.embers i:nth-child(7) { left: 74%; animation-delay: 6.1s; } .embers i:nth-child(8) { left: 58%; animation-delay: 2s; width: 3px; height: 3px; }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(-40px, -46vh); opacity: 0; } }
.hero-in { width: 100%; padding-top: 72px; padding-bottom: 180px; }
.hero h1 { font: 700 clamp(40px, 6.4vw, 92px)/1.02 Unbounded, Manrope, sans-serif; letter-spacing: -.02em; margin: 0 0 22px; max-width: 12ch;
  text-shadow: 0 4px 0 #000, 0 0 40px rgba(0,0,0,.6); text-wrap: balance; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #e9e3de; max-width: 44ch; margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn:focus-visible, .copy:focus-visible, .chip:focus-visible, .step:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .beam, .embers i { animation: none; }
  .embers { display: none; }
  html { scroll-behavior: auto; }
}

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.feat { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.feat b { display: block; font-size: 17px; }
.feat span { color: var(--muted); font-size: 14px; }

.feats-x { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fx { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fx-art { height: 300px; display: grid; place-items: center; border-bottom: 4px solid var(--accent); overflow: hidden;
  background: radial-gradient(80% 90% at 50% 100%, rgba(255,213,0,.10), transparent 70%), linear-gradient(180deg, #141318, #1d1b1c); }
.f-events .fx-art { background: radial-gradient(60% 60% at 62% 38%, rgba(255,233,163,.12), transparent 70%), linear-gradient(180deg, #0f1016, #191a1f); }
.fx-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.fx h3 { margin: 0 0 6px; font: 700 22px/1.15 Unbounded, Manrope, sans-serif; }
.fx p { margin: 0 0 16px; color: #ddd6d2; font-size: 15px; flex: 1; }
.fx-cta { align-self: flex-start; background: var(--buy); color: #fff; text-decoration: none; font-weight: 800; border-radius: 10px; padding: 9px 18px; box-shadow: 0 3px 0 #006b2f; }
.fx-cta:hover { background: var(--buy-dark); }
.fx-cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.scene-svg { width: 100%; height: 100%; }
.scene-svg text { font: 700 11px Manrope, sans-serif; fill: #cfc8c4; }
.scene-svg text.top { fill: #ffd500; }
.loot-tag text { font: 800 10.5px Manrope, sans-serif; fill: #141213; }
.w5 { filter: url(#glow); }
.wall { animation: rise .6s cubic-bezier(.2,.8,.3,1.2) backwards; }
.w2 { animation-delay: .08s; } .w3 { animation-delay: .16s; } .w4 { animation-delay: .24s; } .w5 { animation-delay: .32s; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.fx:hover .w5 { animation: charge 1.2s ease-in-out infinite alternate; }
@keyframes charge { to { filter: url(#glow) brightness(1.3); } }
.flash { opacity: 0; animation: shot 1.4s steps(1) infinite; }
.f2 { animation-delay: .45s; } .f3 { animation-delay: .9s; }
.fx:hover .flash { animation-duration: .6s; }
@keyframes shot { 0% { opacity: 1; } 18% { opacity: 0; } }
.zl { animation: shuffle-l 2.4s ease-in-out infinite alternate; } .zr { animation: shuffle-r 2.4s ease-in-out infinite alternate; }
.z1 { animation-delay: .5s; } .z2 { animation-delay: 1s; } .z3 { animation-delay: 1.5s; }
@keyframes shuffle-l { to { transform: translate(6px, -3px); } }
@keyframes shuffle-r { to { transform: translate(-6px, -3px); } }

/* Фрагменти UI моду: Manrope, нічні панелі, жовтий акцент, хакі-преміум у смужку (PotuzhnyiBuilder.Pass.cs) */
.ui { width: calc(100% - 36px); max-width: 520px; font-family: Manrope, sans-serif; color: #f4f1ee; }
.ui-pass { background: #3e4430 url(/assets/img/camo.webp) center / cover; border-radius: 12px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.bp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.bp-shield { width: 46px; height: 52px; background: #ffd500; clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); display: grid; place-items: center; }
.bp-shield span { background: #2a2721; color: #ffd500; font: 800 17px Manrope, sans-serif; width: 38px; height: 44px; display: grid; place-items: center; clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); margin-top: -2px; }
.bp-xp { flex: 1; }
.bp-xp small { color: #ffd500; font-weight: 800; font-size: 12px; }
.bp-bullets { display: flex; gap: 4px; margin-top: 4px; }
.bp-bullets i { flex: 1; height: 12px; border-radius: 3px 3px 1px 1px; background: rgba(0,0,0,.45); }
.bp-bullets i:nth-child(-n+8) { background: #ffd500; animation: fill .5s backwards; }
.bp-bullets i:nth-child(2) { animation-delay: .06s; } .bp-bullets i:nth-child(3) { animation-delay: .12s; } .bp-bullets i:nth-child(4) { animation-delay: .18s; }
.bp-bullets i:nth-child(5) { animation-delay: .24s; } .bp-bullets i:nth-child(6) { animation-delay: .3s; } .bp-bullets i:nth-child(7) { animation-delay: .36s; } .bp-bullets i:nth-child(8) { animation-delay: .42s; }
@keyframes fill { from { background: rgba(0,0,0,.45); } }
.bp-cols { display: grid; grid-template-columns: 34px 1fr 1fr; gap: 6px; font-size: 11px; font-weight: 800; color: #e9e3de; text-align: center; }
.bp-cols span:first-child { grid-column: 2; }
.bp-row { display: grid; grid-template-columns: 34px 1fr 1fr; gap: 6px; margin-top: 5px; }
.bp-lvl { background: #f2e9c8; color: #2a2721; border-radius: 8px; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.bp-cell { position: relative; display: flex; align-items: center; gap: 6px; background: #5b6344; border-radius: 8px; padding: 4px 8px; font-size: 12px; min-height: 40px; }
.bp-cell img { width: 28px; height: 28px; object-fit: contain; }
.bp-cell b { font-weight: 800; }
.bp-cell.prem { background: repeating-linear-gradient(135deg, #8a7a3a 0 6px, #7a6b30 6px 12px); }
.bp-row.cur .bp-cell:not(.prem) { outline: 3px solid #ffd500; outline-offset: -3px; background: #6a7350; }
.bp-row.lock .bp-cell { opacity: .7; }
.bp-cell em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 800; color: #ffd500; }
.bp-ok, .bp-lock, .bp-crown { margin-left: auto; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.bp-ok { background: #00a046; }
.bp-lock { background: #2a2721; }
.bp-crown { background: #ffd500; }
.bp-quest { margin-top: 10px; background: #f2e9c8; color: #2a2721; border-left: 5px solid #00a046; border-radius: 8px; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 13px; }
.bp-quest small { color: #c0392b; font-weight: 800; }
.bp-chip { background: #ffe680; border-radius: 6px; padding: 2px 8px; font-weight: 800; font-size: 12px; }
.bp-bar { grid-column: 1 / -1; height: 6px; background: #d9cfa8; border-radius: 3px; overflow: hidden; }
.bp-bar i { display: block; height: 100%; width: 70%; background: #00a046; animation: grow 1.2s ease-out .3s backwards; }
@keyframes grow { from { width: 0; } }
.ui-shop { display: flex; align-items: flex-end; gap: 14px; }
.sh-grid { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sh-card { background: #fff; color: #221f1f; border-radius: 10px; padding: 8px; display: grid; justify-items: center; gap: 2px; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .15s; }
.fx:hover .sh-card:first-child { transform: translateY(-3px); }
.sh-card img { width: 64px; height: 44px; object-fit: contain; background: #f5f6f8; border-radius: 6px; padding: 2px 8px; box-sizing: content-box; }
.sh-card b { font-size: 12px; font-weight: 800; }
.sh-price { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; }
.coin { width: 15px; height: 15px; }
.sh-buy { background: #00a046; color: #fff; font-weight: 800; font-size: 11px; border-radius: 6px; padding: 3px 12px; }
.atm { width: 96px; flex: none; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); }
.atm-coin { animation: drop 2.4s ease-in infinite; }
@keyframes drop { 0%, 30% { transform: translateY(-12px); opacity: 0; } 50% { opacity: 1; transform: translateY(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .wall, .flash, .zl, .zr, .bp-bullets i, .bp-bar i, .atm-coin, .fx:hover .w5 { animation: none !important; }
  .flash { opacity: 1; }
}
@media (max-width: 860px) {
  .feats-x { grid-template-columns: 1fr; }
  .fx-art { height: auto; padding: 16px 0; }
  .f-events .fx-art { height: 240px; padding: 0; }
  .f-build .scene-svg { height: auto; }
  .bp-cell em { display: none; }
  .bp-cell { font-size: 11px; padding: 4px 6px; }
}

.steps { counter-reset: s; list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 12px 58px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--ink); font-weight: 800; display: grid; place-items: center; }

/* Сервери */
.servers { display: grid; gap: 14px; }
.srv { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--muted); border-radius: var(--r); padding: 18px 20px; }
.srv.on { border-left-color: var(--buy); }
.srv-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.srv-head h3 { margin: 0; font-size: 21px; flex: 1; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.srv.on .dot { background: #2fd36f; box-shadow: 0 0 0 4px rgba(47,211,111,.2); }
.srv-online { font-weight: 800; background: var(--bar); border-radius: 999px; padding: 4px 14px; }
.srv.on .srv-online { color: #2fd36f; }
.srv-meta { margin: 4px 0 12px; color: var(--muted); font-weight: 600; }
.srv-connect { display: flex; flex-wrap: wrap; gap: 10px; }
.field { display: flex; align-items: center; flex-wrap: wrap; max-width: 100%; gap: 6px 10px; background: var(--bar); border-radius: 10px; padding: 6px 6px 6px 14px; }
.field-l { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.field-v { word-break: break-all; background: none; color: #fff; font-size: 17px; padding: 0; letter-spacing: .03em; }
.copy { background: var(--accent); color: var(--ink); border: 0; border-radius: 8px; font: 800 14px Manrope, sans-serif; padding: 7px 14px; cursor: pointer; }
.copy.done { background: var(--buy); color: #fff; }
.srv-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.srv-hint { color: var(--muted); font-size: 14px; }

/* Банери «на що витрачаються бджілки» (той самий каркас .fx) */
.price { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 18px; border-radius: 10px; padding: 6px 14px; }
.fx-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.tier { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: 10px; padding: 10px 14px; display: grid; gap: 1px; }
.tier-name { color: var(--c); font-size: 20px; font-weight: 800; }
.tier-price { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; }
.tier-perk { font-weight: 700; font-size: 14px; }
.tier-meta { color: var(--muted); font-size: 13px; }

.ui-status { background: #1d1a1b; border-radius: 12px; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); display: grid; gap: 10px; }
.st-card { display: flex; align-items: center; gap: 12px; background: #221d2b; border: 3px solid var(--c); border-radius: 12px; padding: 10px 12px; }
.st-ava { width: 46px; height: 46px; border-radius: 50%; background: #3a3536; display: grid; place-items: center; flex: none; }
.st-ava svg { width: 30px; height: 30px; }
.st-card div { flex: 1; display: grid; line-height: 1.25; }
.st-nick { color: var(--c); font-size: 18px; font-weight: 800; }
.st-card small { color: var(--c); font-weight: 700; font-size: 12px; opacity: .85; }
.st-card em { color: #cfc8c4; font-size: 12px; }
.st-badge { width: 30px; height: 30px; border-radius: 50%; background: var(--c); display: grid; place-items: center; flex: none; }
.st-badge svg { width: 18px; height: 18px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chips span { background: #2f2a2b; border: 1px solid #3d3738; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.st-store { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; }
.st-grid { background-image: linear-gradient(#5a5556 1px, transparent 1px), linear-gradient(90deg, #5a5556 1px, transparent 1px); border: 1px solid #5a5556; }
.st-grid.s1 { width: 45px; height: 40px; background-size: 5px 5px; background-color: #2a2627; }
.st-grid.s2 { width: 70px; height: 60px; background-size: 5px 5px; background-color: color-mix(in srgb, var(--c) 55%, #1d1a1b); }
.st-store span { color: #ffd500; font-weight: 800; }
.st-store small { grid-column: 1 / -1; color: var(--c); font-weight: 700; font-size: 12px; }
.st-tiers { display: flex; gap: 5px; }
.st-tiers i { flex: 1; height: 8px; border-radius: 3px; background: var(--c); }

.pop { animation: pop 2.6s ease-in-out infinite alternate; }
.p1 { animation-delay: .4s; } .p2 { animation-delay: .8s; } .p3 { animation-delay: 1.2s; }
@keyframes pop { to { transform: translateY(-6px); } }
.spark { animation: twinkle 1.6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .2; } }
.car { animation: idle .25s steps(2) infinite; }
@keyframes idle { 50% { transform: translateY(-.6px); } }

.ui-prem { display: grid; gap: 0; }
.pr-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #ffd500; color: #141213; font-weight: 800; font-size: 16px; border-radius: 10px; padding: 10px; margin-bottom: 6px; box-shadow: 0 3px 0 #b08a00; }
.pr-btn svg { width: 20px; height: 20px; }
.ui-prem .bp-row { grid-template-columns: 34px 1fr; }
.bp-cell.wide { font-size: 13px; }

.srv { display: grid; grid-template-columns: 1fr minmax(240px, 300px); column-gap: 20px; }
.srv > * { grid-column: 1; }
.srv > .ui-connect { grid-column: 2; grid-row: 1 / span 4; align-self: center; width: 100%; }
.ui-connect { background: #2b2d31; border: 1px solid #45484e; border-radius: 6px; padding: 12px 14px; font-family: Manrope, sans-serif; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.cn-title { color: #e8e8e8; font-weight: 800; font-size: 14px; border-bottom: 1px solid #45484e; padding-bottom: 6px; margin-bottom: 8px; }
.ui-connect label { color: #a9adb3; font-size: 12px; font-weight: 700; }
.cn-field { background: #1d1f22; border: 1px solid #5a5e65; border-radius: 4px; padding: 6px 8px; color: #fff; font-weight: 700; letter-spacing: .03em; margin: 4px 0 10px; display: flex; align-items: center; word-break: break-all; }
.cn-caret { width: 2px; height: 16px; background: #ffd500; margin-left: 2px; animation: caret 1s steps(1) infinite; flex: none; }
@keyframes caret { 50% { opacity: 0; } }
.cn-btn { background: #3f434a; border: 1px solid #5a5e65; color: #fff; text-align: center; font-weight: 800; border-radius: 4px; padding: 6px; }
@media (prefers-reduced-motion: reduce) {
  .pop, .spark, .car, .cn-caret { animation: none !important; }
}
@media (max-width: 860px) {
  .srv { grid-template-columns: 1fr; }
  .srv > .ui-connect { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .ui-status, .ui-prem { width: calc(100% - 24px); }
}

.center .btn-lg { margin-top: 24px; }

/* Купівля */
.page-h { display: flex; align-items: center; gap: 12px; margin: 32px 0 16px; text-transform: uppercase; font-weight: 800; }
.alert { background: #4a1c1c; color: #ffd0cc; border: 1px solid #7a2a2a; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 700; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.buy { display: flex; flex-direction: column; gap: 10px; }
.lbl { font-weight: 800; }
.inp { font: 700 18px Manrope, sans-serif; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; width: 100%; background: var(--bar); color: #fff; }
.inp:focus { outline: 2px solid var(--accent); border-color: transparent; }
.who { margin: 0; min-height: 1.6em; font-weight: 700; }
.who.ok { color: #2fd36f; }
.who.warn { color: var(--muted); font-weight: 600; }
.who.bad { color: #ff7a6e; }
.help summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.help p { margin: 6px 0 0; color: var(--muted); }
.pick { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 6px 0; text-align: center; }
.pick-head { font-weight: 800; font-size: 20px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 8px 0; }
.step { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: var(--bar); font: 800 26px Manrope, sans-serif; cursor: pointer; color: #fff; }
.step:hover { background: var(--bar-soft); }
.count { display: flex; align-items: center; gap: 8px; font-size: 56px; font-weight: 800; min-width: 150px; justify-content: center; }
input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip { padding: 6px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bar); color: #fff; font: 800 15px Manrope, sans-serif; cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.hint { margin: 10px 0 0; font-weight: 700; min-height: 1.6em; color: var(--accent); }
.limit { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.agree input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--buy); flex: none; }
.btn-pay { align-self: center; font-size: 21px; padding: 15px 34px; }
.btn-pay s { font-weight: 600; opacity: .7; font-size: 16px; }
.fine { font-size: 14px; color: var(--muted); margin: 0; text-align: center; }

/* Документи — світлий «папір» для читабельності */
.doc { background: var(--paper); color: var(--ink); border-radius: 16px; padding: 8px 32px 32px; margin-top: 32px; margin-bottom: 8px; }
.doc a { color: #1565c0; }
.doc code { color: var(--ink); background: var(--accent-soft); }
.doc .muted { color: var(--ink-muted); }
.doc h1 { margin-top: 24px; text-transform: uppercase; }
.doc h2 { margin-top: 28px; font-size: 20px; }
.form-doc { background: #fff; border: 1px solid #e3e5e8; border-radius: var(--r); padding: 8px 24px 20px; margin-top: 24px; }
.center-page { text-align: center; padding: 40px 16px; }

.foot { background: var(--bar); color: #cfc9c9; padding: 24px 0; font-size: 14px; margin-top: 56px; border-top: 6px solid var(--accent); }
.foot a { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; font-weight: 700; }
.req { margin: 4px 0; }
.foot .muted { color: #8f8888; }

@media (max-width: 860px) {
  .nav a { min-height: 48px; padding: 0 12px; }
  .nav a.on { padding: 0 16px; }
}
@media (max-width: 720px) {
  .hero { min-height: 640px; align-items: flex-start; }
  .hero-in { padding-top: 40px; padding-bottom: 220px; }
  .bolt { opacity: .28; }
  .count { font-size: 44px; }
  .doc { padding: 4px 18px 24px; }
}
@media print {
  .top, .foot, .noprint, .hazard { display: none; }
  body { background: #fff; }
  body::before { display: none; }
  .form-doc { border: 0; }
}
