/* ============================================================
   Salut62 — CYBERPUNK HUD
   ============================================================ */

:root {
  --bg: #05070f;
  --bg-soft: #0a0f1c;
  --card: #0d1424;
  --card-2: #121c32;
  --line: #1e3a5f;
  --line-soft: #152238;
  --txt: #e6f7ff;
  --muted: #7d9bb8;
  --dim: #4a6480;
  --acc: #00f0ff;
  --acc-2: #ff2d95;
  --acc-3: #f0ff3d;
  --acc-txt: #05070f;
  --danger: #ff2d95;
  --radius: 4px;
  --radius-sm: 2px;
  --nav-h: 64px;
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-text: 'Rajdhani', system-ui, sans-serif;
  --font-mono: 'Share Tech Mono', ui-monospace, monospace;
  --neon: 0 0 8px rgba(0, 240, 255, 0.55), 0 0 24px rgba(0, 240, 255, 0.25);
  --neon-hot: 0 0 8px rgba(255, 45, 149, 0.6), 0 0 22px rgba(255, 45, 149, 0.3);
  --clip-btn: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --clip-card: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));

  --glass-shadow:
      inset 0 0 0 1px rgba(0, 240, 255, 0.12),
      inset 1px 1px 0 0 rgba(0, 240, 255, 0.18),
      0 0 20px rgba(0, 240, 255, 0.06),
      0 8px 28px rgba(0, 0, 0, 0.45);
  --glass-bg: rgba(8, 14, 28, 0.78);
  --glass-bg-elev: rgba(12, 22, 42, 0.9);
  --glass-filter: blur(16px) saturate(160%);
  --glass-filter-heavy: blur(26px) saturate(170%);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  overscroll-behavior: none;
}

body { user-select: none; -webkit-user-select: none; }

.cyber-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(0, 240, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 15%, rgba(255, 45, 149, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 110%, rgba(240, 255, 61, 0.08), transparent 55%),
    linear-gradient(180deg, #0a1020 0%, #070b16 50%, #05070f 100%);
}
.cyber-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}
.cyber-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  opacity: 0.25;
  animation: scanDrift 12s linear infinite;
  pointer-events: none;
}
.cyber-bg .cyber-fireworks {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  filter: none;
}
@keyframes scanDrift {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

#app {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100%;
  position: relative;
  z-index: 1;
}

.hidden { display: none !important; }

::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- Шапка ---------- */

#topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
  background: linear-gradient(to bottom, var(--bg) 75%, transparent);
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand-mark {
  width: 40px; height: 40px;
  clip-path: var(--clip-btn);
  border-radius: 0;
  background: linear-gradient(135deg, var(--acc) 0%, #0090aa 100%);
  color: var(--acc-txt);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--neon);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px; letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
}

.brand-tag {
  font-size: 11px; color: var(--acc-2);
  text-transform: uppercase; letter-spacing: 0.18em;
  font-family: var(--font-mono);
}

.topbar-btn {
  width: 40px; height: 40px;
  clip-path: var(--clip-btn);
  border-radius: 0;
  background: var(--glass-bg); border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  flex-shrink: 0;
  box-shadow: var(--glass-shadow);
}
.topbar-btn:active { transform: scale(0.92); box-shadow: var(--neon); }

.lang-switch {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 8px;
  padding: 3px;
  border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  background: var(--card);
  border: 1px solid rgba(0, 240, 255, 0.25);
  flex-shrink: 0;
}
.lang-switch button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 9px;
  border-radius: 0;
  cursor: pointer;
  line-height: 1;
  transition: background .15s, color .15s, text-shadow .15s;
}
.lang-switch button.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--acc);
  text-shadow: var(--neon);
}

#topbar .brand { min-width: 0; flex: 1; }

/* ---------- Бегущая строка ---------- */

.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 7px 0; margin-bottom: 4px;
}

.marquee-track {
  display: inline-block;
  animation: marquee 22s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--acc);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Поиск ---------- */

.search-bar { padding: 4px 16px 10px; }

.search-inner {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 14px;
}

.search-inner input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--txt); font-family: var(--font-text); font-size: 15px;
}
.search-inner input::placeholder { color: var(--dim); }

.search-clear {
  background: none; border: none; color: var(--muted);
  font-size: 15px; cursor: pointer; padding: 2px 6px;
}

/* ---------- Экраны ---------- */

#views { padding-bottom: calc(var(--nav-h) + 28px); }

.view { display: none; padding: 4px 16px 0; animation: fadeUp .25s ease; }
.view.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--acc);
  margin: 22px 2px 12px;
  display: flex; align-items: center; gap: 8px;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.45), transparent);
}

/* ---------- Категории ---------- */

.chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 2px 2px 4px; scrollbar-width: none;
}

.chip {
  flex-shrink: 0; display: flex; align-items: center; gap: 7px;
  padding: 9px 15px;
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: var(--glass-bg);
  color: var(--txt); font-size: 14px; font-weight: 600;
  font-family: var(--font-text);
  cursor: pointer; transition: all .18s; white-space: nowrap;
  box-shadow: var(--glass-shadow);
}
.chip .count { color: var(--dim); font-size: 12px; font-family: var(--font-mono); }
.chip.active {
  background: rgba(0, 240, 255, 0.18);
  color: var(--acc);
  border-color: var(--acc);
  box-shadow: var(--neon);
}
.chip.active .count { color: var(--acc); }
.chip:active { transform: scale(0.95); }

/* ---------- Сетка товаров ---------- */

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.p-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 0;
  clip-path: var(--clip-card);
  padding: 14px;
  cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  box-shadow: var(--glass-shadow);
}
.p-card:active { transform: scale(0.97); border-color: var(--acc); box-shadow: var(--neon); }

.p-icon,
.p-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.p-media { max-height: 140px; }
.p-photo, .pd-photo, .ci-photo, .ar-icon.media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.pd-media {
  width: 88px; height: 88px; border-radius: 18px; flex-shrink: 0;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}

.ci-media {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}

.ar-icon.media {
  padding: 0; overflow: hidden;
}
.ar-icon.media img { border-radius: inherit; }

.photo-upload { display: flex; flex-direction: column; gap: 10px; }
.photo-preview {
  width: 100%; aspect-ratio: 1.2; max-height: 220px;
  border-radius: 16px; border: 1px solid var(--line);
  background: var(--bg-soft); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--dim); font-size: 12px;
}
.photo-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.p-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--acc-2); color: #fff;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 8px; border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  text-transform: uppercase;
  box-shadow: var(--neon-hot);
}

.p-name { font-weight: 700; font-size: 15px; line-height: 1.3; font-family: var(--font-display); letter-spacing: 0.04em; }
.p-sub { font-size: 12px; color: var(--muted); line-height: 1.35; min-height: 30px; }

.p-bottom { display: flex; align-items: baseline; gap: 7px; margin-top: auto; }
.p-price { font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--acc); text-shadow: 0 0 12px rgba(0, 240, 255, 0.4); }
.p-old { font-size: 12px; color: var(--dim); text-decoration: line-through; }

.p-stock { font-size: 11px; color: var(--dim); letter-spacing: 0.06em; font-family: var(--font-mono); }
.p-stock.out { color: var(--acc-2); font-weight: 600; }

/* ---------- Кнопки ---------- */

.btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 15px 18px;
  background: linear-gradient(90deg, var(--acc) 0%, #00c2d1 100%);
  color: var(--acc-txt);
  border: none; border-radius: 0;
  clip-path: var(--clip-btn);
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: transform .15s, opacity .15s, box-shadow .15s;
  box-shadow: var(--neon);
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.35; pointer-events: none; }

.btn-ghost {
  background: transparent; color: var(--acc);
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: none;
}
.btn-ghost:hover { box-shadow: var(--neon); }

.btn-sm {
  width: auto; padding: 9px 14px; font-size: 11.5px; border-radius: 10px;
}

.btn-row { display: flex; gap: 9px; }
.btn-row .btn { flex: 1; }

/* ---------- Шторка (bottom sheet) ---------- */

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(3px);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  max-width: 560px; margin: 0 auto;
  background: var(--bg-soft);
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 24px 24px 0 0;
  max-height: 88vh; display: flex; flex-direction: column;
  animation: slideUp .28s cubic-bezier(.22,.9,.3,1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.sheet-grip {
  width: 42px; height: 4px; border-radius: 4px;
  background: var(--line); margin: 10px auto 2px; flex-shrink: 0;
}

.sheet-content { overflow-y: auto; padding: 14px 18px calc(20px + env(safe-area-inset-bottom)); }

.sheet-title {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  margin-bottom: 4px; letter-spacing: 0.01em;
}

/* ---------- Карточка товара в шторке ---------- */

.pd-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pd-icon {
  width: 68px; height: 68px; border-radius: 20px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.pd-cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 3px; }

.pd-price-row { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.pd-price { font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.pd-old { color: var(--dim); text-decoration: line-through; font-size: 15px; }
.pd-save {
  background: var(--acc); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; letter-spacing: 0.05em;
}

.pd-desc {
  font-size: 13.5px; color: #c9c9c9; line-height: 1.55;
  white-space: pre-line; margin-bottom: 16px;
  border-top: 1px solid var(--line-soft); padding-top: 14px;
}

.qty-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 12px; margin-bottom: 12px;
}
.qty-controls { display: flex; align-items: center; gap: 16px; }
.qty-btn {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--txt); font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.qty-val { font-family: var(--font-display); font-weight: 700; font-size: 17px; min-width: 22px; text-align: center; }

/* ---------- Корзина ---------- */

.cart-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; margin-bottom: 9px;
}
.ci-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
}
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-price { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ci-actions { display: flex; align-items: center; gap: 10px; }
.ci-qty { font-family: var(--font-display); font-weight: 600; font-size: 14px; min-width: 16px; text-align: center; }
.ci-btn {
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--txt); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

.promo-row { display: flex; gap: 8px; margin: 14px 0; }
.promo-row input {
  flex: 1; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; color: var(--txt);
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; outline: none;
}
.promo-row input:focus { border-color: #444; }

.totals {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px;
}
.t-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); padding: 3px 0; }
.t-row.total { color: var(--txt); font-family: var(--font-display); font-weight: 700; font-size: 18px; padding-top: 8px; margin-top: 6px; border-top: 1px dashed var(--line); }

/* ---------- Профиль ---------- */

.profile-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-top: 8px;
}
.avatar {
  width: 56px; height: 56px; border-radius: 18px;
  background: var(--acc); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.profile-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.order-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
}
.oc-head { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.oc-id { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.oc-total { font-family: var(--font-display); font-weight: 700; }
.oc-items { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.status {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 9px; border-radius: 7px; text-transform: uppercase;
}
.status.paid, .status.confirmed { background: var(--acc); color: #fff; }
.status.new { border: 1px solid var(--acc); color: #ffb4b6; }
.status.shipped, .status.done { background: #1d4a32; color: #b8f0c8; }
.status.pending { border: 1px solid var(--line); color: var(--muted); }
.status.expired { border: 1px solid var(--line-soft); color: var(--dim); text-decoration: line-through; }

.method-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.method-tab {
  flex: 1; min-width: 90px; padding: 10px 8px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  font-family: var(--font-text); font-size: 12px; font-weight: 600; cursor: pointer;
  text-align: center;
}
.method-tab.active { background: rgba(0, 240, 255, 0.18); color: var(--acc); border-color: var(--acc); box-shadow: var(--neon); }
.fulfill-fields .field { margin-bottom: 10px; }
.pickup-option {
  display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 6px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--txt); font-size: 13px; cursor: pointer;
}
.pickup-option.active { border-color: var(--acc); background: var(--card-2); }


.ship-line {
  font-size: 13px; line-height: 1.45; color: var(--text);
  margin-top: 4px;
}
.ship-line.muted { color: var(--muted); }

.delivery-box {
  margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px;
}
.dl-name { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.dl-key {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 12px;
  word-break: break-all; user-select: text; -webkit-user-select: text;
  white-space: pre-line;
}
.dl-copy {
  flex-shrink: 0; background: var(--card-2); border: 1px solid var(--line);
  border-radius: 8px; width: 30px; height: 30px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Пустые состояния ---------- */

.empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 56px 20px; text-align: center; color: var(--muted);
}
.empty-icon {
  width: 84px; height: 84px; border-radius: 26px;
  background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  opacity: 0.85;
}
.empty-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--txt); }
.empty-text { font-size: 13px; max-width: 260px; }

/* ---------- Нижняя навигация ---------- */

#bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  max-width: 560px; margin: 0 auto;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(5,5,5,0.88); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: stretch;
}

.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  color: var(--dim); position: relative;
  transition: color .15s;
}
.nav-item span { font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-display); }
.nav-item.active { color: var(--txt); }
.nav-item .ic { opacity: 0.55; transition: opacity .15s; }
.nav-item.active .ic { opacity: 1; }

.nav-dot {
  position: absolute; top: 8px; right: calc(50% - 16px);
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--acc); color: #fff; border-radius: 9px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Тосты ---------- */

#toasts {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; padding: 0 16px;
}

.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--acc); color: #fff;
  border-radius: 13px; padding: 11px 16px;
  font-size: 13px; font-weight: 600;
  max-width: 100%;
  animation: toastIn .25s cubic-bezier(.2,.9,.3,1.2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.toast.dark { background: var(--card-2); color: var(--txt); border: 1px solid var(--line); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.95); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .2s forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- Сплэш ---------- */

#splash {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity .4s;
}
#splash.done { opacity: 0; pointer-events: none; }

.splash-logo {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; letter-spacing: 0.08em;
}
.splash-logo span { color: var(--acc); margin: 0 2px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.splash-bar {
  width: 160px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.splash-bar i {
  display: block; height: 100%; width: 40%;
  background: var(--acc);
  animation: loadbar 1.1s ease-in-out infinite;
}
@keyframes loadbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }

/* ---------- Фатальный экран ---------- */

#fatal {
  position: fixed; inset: 0; z-index: 250; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 30px; text-align: center;
}
.fatal-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.fatal-text { color: var(--muted); font-size: 14px; max-width: 300px; }

/* ---------- Скелетоны ---------- */

.skeleton {
  background: linear-gradient(100deg, var(--card) 40%, var(--card-2) 50%, var(--card) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: var(--radius); border: 1px solid var(--line-soft);
}
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-card { height: 170px; }

/* ---------- Формы ---------- */

.field { margin-bottom: 13px; }
.field label {
  display: block; font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
  color: var(--txt); font-family: var(--font-text); font-size: 14px; outline: none;
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: #4a4a4a; }
.field textarea { resize: vertical; min-height: 84px; font-family: var(--font-mono); font-size: 12.5px; }
.field select { appearance: none; }
.field .hint { font-size: 11px; color: var(--dim); margin-top: 5px; line-height: 1.4; }

.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 13px;
}
.switch-row span { font-size: 13.5px; font-weight: 500; }

.switch { position: relative; width: 46px; height: 26px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line); transition: .2s;
}
.switch i::before {
  content: ''; position: absolute; width: 18px; height: 18px;
  left: 3px; top: 3px; border-radius: 50%;
  background: var(--muted); transition: .2s;
}
.switch input:checked + i { background: var(--acc); border-color: var(--acc); }
.switch input:checked + i::before { transform: translateX(20px); background: #000; }

/* ---------- Админ ---------- */

.admin-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 8px 2px 12px; scrollbar-width: none;
  position: sticky; top: 62px; z-index: 30;
  background: var(--bg);
}

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px;
}
.stat-label { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; display: flex; align-items: center; gap: 6px; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 23px; margin-top: 7px; }
.stat-sub { font-size: 11px; color: var(--dim); margin-top: 2px; }

.admin-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 9px;
}
.ar-icon {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
}
.ar-main { flex: 1; min-width: 0; }
.ar-title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ar-side { text-align: right; flex-shrink: 0; }
.ar-actions { display: flex; gap: 7px; flex-shrink: 0; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--card-2); border: 1px solid var(--line);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .12s;
}
.icon-btn:active { transform: scale(0.9); }

.inactive-row { opacity: 0.45; }

.icon-preview {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px dashed var(--line);
  border-radius: 12px; padding: 10px 12px; margin-top: 7px;
}
.icon-preview .txt { font-size: 11px; color: var(--dim); }

.add-fab {
  position: fixed; right: max(16px, calc(50% - 264px));
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
  z-index: 45;
  width: 54px; height: 54px; border-radius: 18px;
  background: var(--acc); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(255,255,255,0.14);
  transition: transform .15s;
}
.add-fab:active { transform: scale(0.9); }

/* ---------- Оплата / успех ---------- */

.pay-wait { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 6px; text-align: center; }
.spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--acc);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.success-burst {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--acc); color: #fff;
  display: flex; align-items: center; justify-content: center;
  animation: pop .45s cubic-bezier(.2,1.4,.4,1);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }

@media (min-width: 561px) {
  html.in-tg #app,
  html:not(.is-web) #app {
    border-left: 1px solid var(--line-soft);
    border-right: 1px solid var(--line-soft);
  }
}

/* ============================================================
   LIQUID GLASS — стеклянный слой поверх ч/б темы
   Рецепт --glass-shadow как в getgems v2. Backdrop-blur только
   на плавающих элементах (шапка, навигация, шторка, тосты) —
   карточкам в потоке хватает полупрозрачности и inset-бликов,
   так WebView не проседает по FPS.
   ============================================================ */

/* ---------- шапка: стекло над прокруткой ---------- */

#topbar {
  background: rgba(5, 5, 5, 0.55);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
}

.topbar-btn,
.search-inner {
  background: var(--glass-bg);
  border-color: transparent;
  box-shadow: var(--glass-shadow);
}

/* ---------- чипы категорий ---------- */

.chip {
  background: var(--glass-bg);
  border-color: transparent;
  box-shadow: var(--glass-shadow);
}
.chip.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--acc);
  color: var(--acc);
  box-shadow: var(--neon);
}

/* липкая полоса админ-табов — контент проезжает под стеклом */
.admin-tabs {
  background: rgba(5, 5, 5, 0.6);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
}

/* ---------- карточки и плашки ---------- */

.p-card,
.cart-item,
.order-card,
.profile-card,
.stat-card,
.admin-row,
.totals,
.qty-row,
.switch-row,
.icon-preview,
.empty-icon {
  background: var(--glass-bg);
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow: var(--glass-shadow);
}

/* внутренние «камешки» с иконками */
.p-icon,
.p-media,
.pd-icon,
.pd-media,
.ci-icon,
.ci-media,
.ar-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: transparent;
  box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.03),
      inset 1px 1px 0 0 rgba(255, 255, 255, 0.12),
      inset -1px -1px 0 0 rgba(255, 255, 255, 0.06);
}

/* ---------- кнопки и поля ввода ---------- */

.btn:not(.btn-ghost) {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.btn-ghost,
.qty-btn,
.ci-btn,
.icon-btn,
.dl-copy,
.dl-key,
.promo-row input,
.field input,
.field textarea,
.field select {
  background: var(--glass-bg);
  border-color: transparent;
  box-shadow: var(--glass-shadow);
}
.qty-btn:active,
.ci-btn:active,
.icon-btn:active {
  background: var(--glass-bg-elev);
}

/* ---------- шторка: тяжёлое стекло ---------- */

.sheet {
  background: rgba(12, 12, 14, 0.72);
  border-color: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: var(--glass-filter-heavy);
  backdrop-filter: var(--glass-filter-heavy);
  box-shadow: var(--glass-shadow), 0 -10px 40px rgba(0, 0, 0, 0.4);
}

.sheet-backdrop {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ---------- тосты ---------- */

.toast.dark {
  background: rgba(24, 24, 26, 0.6);
  border-color: transparent;
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  box-shadow: var(--glass-shadow);
}

/* ---------- нижняя навигация: плавающая стеклянная пилюля ---------- */

#bottomnav {
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  max-width: 536px;
  height: var(--nav-h);
  padding: 5px;
  gap: 4px;
  border-top: none;
  border-radius: 0;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  background: rgba(5, 8, 16, 0.82);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  box-shadow: var(--neon), var(--glass-shadow);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.nav-item {
  border-radius: 0;
}
.nav-item.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--acc);
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.35);
}
.nav-item.active span { color: var(--acc); }

.nav-dot {
  background: var(--acc-2);
  color: #fff;
  box-shadow: var(--neon-hot);
}

.toast {
  background: var(--acc);
  color: var(--acc-txt);
  border-radius: 0;
  clip-path: var(--clip-btn);
  box-shadow: var(--neon);
}
.toast.dark {
  background: rgba(8, 14, 28, 0.9);
  color: var(--txt);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.splash-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: var(--neon);
}
.splash-logo span {
  color: var(--acc-2);
  text-shadow: var(--neon-hot);
  animation: blink 1.2s infinite;
}
.splash-bar {
  background: rgba(0, 240, 255, 0.15);
}
.splash-bar i {
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  box-shadow: var(--neon);
}

html.is-web .topnav {
  border-radius: 0;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  background: rgba(5, 8, 16, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.22);
}
html.is-web .topnav .nav-item.active {
  background: rgba(0, 240, 255, 0.16);
  color: var(--acc);
  box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.12);
}
html.is-web .p-card:hover {
  border-color: var(--acc);
  box-shadow: var(--neon);
}

/* плавающая навигация стала выше — сдвигаем контент и FAB */
#views {
  padding-bottom: calc(var(--nav-h) + 48px);
}
.add-fab {
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 30px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), var(--glass-shadow);
}

/* ---------- Топ-навигация (веб) ---------- */

.topnav { display: none; }

/* ============================================================
   WEB DESKTOP — на всю ширину страницы
   Mini App (in-tg) остаётся узкой колонкой.
   ============================================================ */

html.is-web #app {
  max-width: none;
  width: 100%;
  margin: 0;
  border: none;
}

html.is-web #topbar {
  padding: 14px clamp(16px, 3vw, 40px) 12px;
  gap: 12px;
}

html.is-web .topnav {
  display: none;
}

html.is-web #bottomnav {
  max-width: min(560px, calc(100% - 24px));
}

html.is-web .view {
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}

html.is-web .search-bar {
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}

html.is-web .chips {
  margin-left: 0;
  padding-left: 0;
}

@media (min-width: 900px) {
  html.is-web body {
    font-size: 15px;
    user-select: text;
    -webkit-user-select: text;
  }

  html.is-web #topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: minmax(200px, 1.1fr) auto auto auto;
    align-items: center;
    gap: 16px 20px;
    padding: 16px clamp(24px, 4vw, 56px);
    background: rgba(10, 22, 40, 0.82);
    border-bottom: 1px solid var(--line-soft);
  }

  html.is-web .brand-name { font-size: 18px; letter-spacing: 0.04em; }
  html.is-web .brand-tag { font-size: 11px; }

  html.is-web .topnav {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
    padding: 4px;
    border-radius: 999px;
    background: rgba(10, 10, 12, 0.45);
    box-shadow: var(--glass-shadow);
  }

  html.is-web .topnav .nav-item {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 8px;
    padding: 10px 16px;
    color: var(--muted);
    border-radius: 999px;
  }
  html.is-web .topnav .nav-item span {
    font-size: 11px;
  }
  html.is-web .topnav .nav-item.active {
    color: var(--txt);
    background: rgba(0, 240, 255, 0.18);
  }
  html.is-web .topnav .nav-dot {
    position: static;
    margin-left: 2px;
  }

  html.is-web #bottomnav { display: none; }

  html.is-web #views {
    padding-bottom: 48px;
    max-width: 1440px;
    margin: 0 auto;
  }

  html.is-web .view {
    padding-left: clamp(24px, 4vw, 56px);
    padding-right: clamp(24px, 4vw, 56px);
  }

  html.is-web .search-bar {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: clamp(24px, 4vw, 56px);
    padding-right: clamp(24px, 4vw, 56px);
  }

  html.is-web .marquee {
    margin-bottom: 8px;
  }

  html.is-web .section-title {
    font-size: 22px;
    margin: 18px 0 16px;
  }

  html.is-web .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  html.is-web .p-card {
    cursor: pointer;
    transition: transform .15s, border-color .15s, box-shadow .15s;
  }
  html.is-web .p-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 240, 255, 0.45);
  }

  html.is-web .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html.is-web .sheet {
    max-width: 520px;
    left: 50%;
    right: auto;
    margin: 0;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
    animation: slideUpWeb .28s cubic-bezier(.22,.9,.3,1);
  }
  @keyframes slideUpWeb {
    from { transform: translate(-50%, 100%); }
    to { transform: translate(-50%, 0); }
  }

  html.is-web .add-fab {
    bottom: 28px;
    right: clamp(24px, 4vw, 56px);
  }
}

@media (min-width: 1200px) {
  html.is-web .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1500px) {
  html.is-web .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Telegram Mini App — узкая колонка */
html.in-tg #app {
  max-width: 560px;
}
html.in-tg .topnav { display: none !important; }

/* ---------- Главная страница ---------- */

.home-hero {
  position: relative;
  margin: 4px 0 8px;
  padding: 28px 20px 26px;
  border-radius: 0;
  overflow: visible;
  isolation: isolate;
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow:
    inset 0 0 40px rgba(0, 240, 255, 0.06),
    0 0 24px rgba(0, 240, 255, 0.2);
}
.home-hero > * {
  position: relative;
  z-index: 1;
}
.home-hero::before {
  content: 'SYS://SALUT62';
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(0, 240, 255, 0.55);
}
.home-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, var(--acc), var(--acc-2), var(--acc-3), var(--acc));
  background-size: 200% 100%;
  animation: neonBar 4s linear infinite;
}
@keyframes neonBar {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}

.home-hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 10px;
  text-shadow: var(--neon);
}

.home-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 4.5vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  max-width: 18ch;
  color: #fff;
  text-shadow:
    0 0 12px rgba(0, 240, 255, 0.7),
    0 2px 18px rgba(0, 0, 0, 0.95);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.home-discount-row b {
  color: var(--acc-2);
  font-family: var(--font-mono);
  font-size: 15px;
  text-shadow: var(--neon-hot);
}

.home-cat-icon {
  width: 34px; height: 34px; border-radius: 0;
  clip-path: var(--clip-btn);
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 240, 255, 0.12);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.25);
}

.home-phone:hover { color: var(--acc); text-shadow: var(--neon); }

.home-hero-text {
  color: #c5d8ea;
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 42ch;
  margin-bottom: 20px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-hero-actions .btn,
.home-hero-actions .btn-ghost {
  width: auto;
  min-width: 0;
  padding: 12px 18px;
}

.home-block { margin-top: 8px; }

.home-discount-list {
  background: rgba(5, 7, 15, 0.35);
  border-radius: 0;
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 6px 16px 14px;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.home-discount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--muted);
}
.home-discount-row:last-of-type { border-bottom: none; }
.home-discount-row b {
  color: var(--acc-2);
  font-family: var(--font-mono);
  font-size: 15px;
  text-shadow: var(--neon-hot);
}
.home-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.45;
}

.home-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.home-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 14px 12px;
  border-radius: 0;
  clip-path: var(--clip-card);
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: rgba(5, 7, 15, 0.4);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--txt);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.home-cat:active { transform: scale(0.97); }
.home-cat-icon {
  width: 34px; height: 34px; border-radius: 0;
  clip-path: var(--clip-btn);
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 240, 255, 0.12);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.25);
}
.home-cat-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.home-cat-count {
  font-size: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
}

.home-services {
  display: grid;
  gap: 10px;
}
.home-service {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
}
.home-service-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.home-service h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.home-service p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.home-about-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.home-contact-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--txt);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.home-phone:hover { color: var(--acc); text-shadow: var(--neon); }
.home-addr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.home-featured-grid { margin-bottom: 4px; }

@media (min-width: 900px) {
  html.is-web .home-hero {
    padding: 48px 40px 44px;
  }
  html.is-web .home-hero-actions .btn { font-size: 13px; }
  html.is-web .home-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  html.is-web .home-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  html.is-web .home-featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  html.is-web .home-cat:hover {
    background: var(--glass-bg-elev);
  }
}

/* 5 пунктов в нижней навигации — чуть компактнее */
#bottomnav .nav-item span { font-size: 8.5px; letter-spacing: 0.04em; }
html.is-web .topnav .nav-item { padding: 10px 12px; }
