/* ============================================================
   Parik24 — Mobile-First Theme
   ============================================================ */

:root {
  --hdr-h: 56px;

  /* Палітра — глибокий індіго з теплим золотим акцентом */
  --bg-1: #0f1128;
  --bg-2: #161a3a;
  --bg-surface: rgba(22, 26, 58, .65);
  --deep: #080a1a;

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.56);
  --dim: rgba(255,255,255,.36);

  --stroke: rgba(255,255,255,.09);
  --stroke2: rgba(255,255,255,.05);

  /* Акцент — тепле золото замість фіолетового */
  --accent: #f0b932;
  --accent2: #e09a18;
  --accent-rgb: 240,185,50;
  --accent-glow: 0 0 0 1px rgba(var(--accent-rgb),.25), 0 0 20px rgba(var(--accent-rgb),.15);
  --accent-glow-sm: 0 0 0 1px rgba(var(--accent-rgb),.18), 0 0 12px rgba(var(--accent-rgb),.10);

  /* Другий акцент — холодний блакитний для посилань */
  --link: #6cb4ff;
  --link-rgb: 108,180,255;

  --r8: 8px;
  --r12: 12px;
  --r14: 14px;
  --r16: 16px;
  --r20: 20px;

  /* Відступи контейнера */
  --pad: 16px;

  /* Bottom bar */
  --bbar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--deep);
  background: #0a0a1a;
  -webkit-font-smoothing: antialiased;
}

.bg-parallax {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(75,0,130,.45) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(123,104,238,.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255,0,255,.08) 0%, transparent 70%),
    linear-gradient(160deg, #0a0314 0%, #0f0a2a 40%, #0a0a1a 70%, #050010 100%);
}
.bg-parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='46'%3E%3Cpolygon points='20,2 38,12 38,34 20,44 2,34 2,12' fill='none' stroke='%239b59b6' stroke-width='0.6'/%3E%3C/svg%3E");
  background-size: 40px 46px;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
body.is-locked { overflow: hidden; }

/* Утиліта — плавна поява */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HEADER — mobile first
   ============================================================ */
.hdr { position: sticky; top: 0; z-index: 50; }

.hdr__bar {
  height: var(--hdr-h);
  background: rgba(8,10,26,.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--stroke);
}

.hdr__container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad);
}

.hdr__grid {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Бургер */
.burger {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r12);
  border: 1px solid var(--stroke);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  gap: 5px;
  transition: background .16s ease;
}
.burger:hover { background: rgba(255,255,255,.06); }
.burger:active { transform: scale(.96); }

.burger__line {
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
}

/* Лого */
.hdr__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
}
.hdr__logo img {
  height: 36px;
  width: auto;
}

/* Навігація — прихована на мобільних */
.hdr__nav { display: none; }

.nav {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item { margin: 0; padding: 0; }

.nav-link {
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .2px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
  border-color: rgba(var(--accent-rgb),.2);
}
.nav-link:active { transform: scale(.97); }

.nav-link--active {
  color: var(--accent);
  background: rgba(var(--accent-rgb),.08);
  border-color: rgba(var(--accent-rgb),.2);
}

/* Actions */
.hdr__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Кнопки */
.btn {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}
.btn:active { transform: translateY(0) scale(.98); }

.btn--primary {
  border-color: rgba(var(--accent-rgb),.5);
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #0f1128;
  font-weight: 900;
  box-shadow: var(--accent-glow);
}
.btn--primary:hover {
  box-shadow: var(--accent-glow), 0 8px 24px rgba(var(--accent-rgb),.25);
}

.btn--ghost {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}

/* ============================================================
   DESKTOP HEADER — min-width: 981px
   ============================================================ */
@media (min-width: 981px) {
  :root { --hdr-h: 64px; }

  .hdr__grid {
    display: grid;
    grid-template-columns: 44px 1fr auto auto;
    gap: 12px;
  }

  .hdr__nav {
    display: flex;
    justify-content: center;
  }

  .hdr__logo {
    margin-left: 0;
    margin-right: 0;
  }
  .hdr__logo img { height: 46px; }

  .btn { padding: 10px 18px; font-size: 14px; }
}

/* ============================================================
   OVERLAY + SIDE MENU
   ============================================================ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 70;
}

.side {
  position: fixed;
  top: 0; left: 0;
  height: 100dvh;
  width: 320px;
  max-width: calc(100vw - 56px);
  z-index: 80;
  background: linear-gradient(180deg, rgba(16,20,48,.98), rgba(8,10,26,.98));
  border-right: 1px solid var(--stroke);
  transform: translateX(-105%);
  transition: transform .24s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.side.is-open { transform: translateX(0); }

.side__top {
  height: 64px;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--stroke);
}

.side__close {
  width: 38px; height: 38px;
  border-radius: var(--r12);
  border: 1px solid var(--stroke);
  background: transparent;
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  transition: background .14s ease;
}
.side__close:hover { background: rgba(255,255,255,.06); }
.side__close:active { transform: scale(.95); }

.xline {
  position: absolute;
  width: 16px; height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
}
.xline:nth-child(1) { transform: rotate(45deg); }
.xline:nth-child(2) { transform: rotate(-45deg); }

.side__content {
  padding: 8px var(--pad) var(--pad);
  overflow-y: auto;
  height: calc(100dvh - 64px);
  overscroll-behavior: contain;
}

/* Список навігації в side menu */
.side__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side__item { margin: 0; padding: 0; }

.side__link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--r12);
  font-weight: 700;
  font-size: 15px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color .14s ease, background .14s ease, border-color .14s ease, transform .14s ease;
}
.side__link:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
  transform: translateX(4px);
}
.side__link:active { transform: translateX(2px) scale(.99); }

.side__link--active {
  color: var(--accent);
  background: rgba(var(--accent-rgb),.06);
  border-color: rgba(var(--accent-rgb),.18);
}

/* ============================================================
   SIDE — існуючі компоненти (banner, tiles, bot)
   ============================================================ */
.sideSection {
  margin-bottom: 10px;
  border-radius: var(--r16);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.sideSection__toggle {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 12px;
  cursor: pointer;
  color: var(--text);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background .14s ease;
}
.sideSection__toggle:hover { background: rgba(255,255,255,.04); }

.sideSection__title { font-weight: 900; letter-spacing: .2px; }

.sideSection__arrow {
  width: 9px; height: 9px;
  border-right: 2px solid rgba(255,255,255,.7);
  border-bottom: 2px solid rgba(255,255,255,.7);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.sideSection.is-open .sideSection__arrow { transform: rotate(225deg); }
.sideSection__panel { padding: 8px 10px 12px; }

.nav--mobile { display: grid; gap: 6px; }
.nav--mobile .nav-link {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 12px;
  font-size: 13px;
  background: rgba(255,255,255,.03);
  border-color: var(--stroke);
}
.nav--mobile .nav-link:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(var(--accent-rgb),.2);
}

.sideBanner {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--r16);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg-surface);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.sideBanner:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb),.2);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.sideBanner:active { transform: scale(.99); }

.sideBanner__bg { width: 100%; height: 86px; object-fit: cover; }

.sideBanner__top {
  position: absolute;
  inset: 10px 10px auto 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sideBanner__brand {
  height: 20px; width: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}

.sideBanner__shop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r12);
  border: 1px solid var(--stroke);
  background: rgba(8,10,26,.5);
  color: rgba(255,255,255,.85);
  font-weight: 800;
  font-size: 11px;
}

.sideBanner__cart { width: 14px; height: 14px; object-fit: contain; }

.sideBanner__balance {
  position: absolute;
  left: 10px; bottom: 10px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r12);
  background: rgba(8,10,26,.45);
  border: 1px solid var(--stroke);
}
.sideBanner__muted { color: var(--muted); font-weight: 700; font-size: 11px; }
.sideBanner__count { font-size: 15px; font-weight: 900; }

.sideWideBtn {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--r14);
  text-decoration: none;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke);
  transition: background .14s ease, border-color .14s ease;
}
.sideWideBtn:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(var(--accent-rgb),.18);
}
.sideWideBtn:active { transform: scale(.99); }
.sideWideBtn__ico { width: 18px; height: 18px; object-fit: contain; }
.sideWideBtn__text { font-weight: 900; font-size: 14px; color: var(--text); }

/* Виправлений селектор (були відсутні коми) */
.sideWideBtn__ico,
.sideBtn__ico,
.tile__ico,
.botCard__send {
  filter: brightness(0) saturate(100%) invert(77%) sepia(56%) saturate(700%) hue-rotate(4deg) brightness(105%) contrast(96%);
}

.sideRow2 {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sideBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  border-radius: var(--r14);
  text-decoration: none;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke);
  transition: background .14s ease, border-color .14s ease;
}
.sideBtn:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(var(--accent-rgb),.18);
}
.sideBtn:active { transform: scale(.99); }
.sideBtn__ico { width: 16px; height: 16px; object-fit: contain; }
.sideBtn__text { font-weight: 900; font-size: 13px; }

.sideGrid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tile {
  padding: 12px 8px;
  border-radius: var(--r16);
  text-decoration: none;
  text-align: center;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.tile:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(var(--accent-rgb),.18);
}
.tile:active { transform: scale(.98); }

.tile__ico {
  width: 24px; height: 24px;
  margin: 0 auto 6px;
  object-fit: contain;
}

.tile__text {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  color: rgba(255,255,255,.8);
}

.botCard {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: var(--r16);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.06), rgba(var(--accent-rgb),.02));
  border: 1px solid rgba(var(--accent-rgb),.12);
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.botCard:hover {
  transform: translateY(-1px);
  background: rgba(var(--accent-rgb),.08);
  border-color: rgba(var(--accent-rgb),.22);
}
.botCard:active { transform: scale(.99); }

.botCard__img { width: 80px; height: 48px; object-fit: contain; flex-shrink: 0; border-radius: var(--r12); }
.botCard__info { flex: 1 1 auto; }
.botCard__line { font-weight: 800; font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.15; }
.botCard__line--bold { font-weight: 900; color: var(--accent); }
.botCard__send { width: 32px; height: 32px; object-fit: contain; transition: transform .14s ease; }
.botCard:hover .botCard__send { transform: translateX(3px); }

@media (min-width: 981px) {
  .sideSection__toggle { display: flex; }
}

/* ============================================================
   LANG SWITCH
   ============================================================ */
.langSwitch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--stroke);
}

.langSwitch__link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .4px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}
.langSwitch__link:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}
.langSwitch__link:active { transform: scale(.96); }

.langSwitch__link.is-active {
  color: #0f1128;
  background: var(--accent);
  border-color: var(--accent2);
  font-weight: 900;
  pointer-events: none;
}

.langSwitch--header { margin-right: 4px; }

@media (min-width: 981px) {
  .langSwitch__link { min-width: 40px; height: 30px; font-size: 12px; }
}

/* ============================================================
   PROMO SLIDER
   ============================================================ */
.promoSlider { padding: 12px 0 8px; }

.promoSlider__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.promoSlider__frame {
  position: relative;
  border-radius: var(--r16);
  background: var(--bg-surface);
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  overflow: hidden;
  --perView: 1;
  --gap: 12px;
}

.promoSlider__viewport { overflow: hidden; padding: 10px; }

.promoSlider__track {
  display: flex;
  gap: var(--gap);
  will-change: transform;
  transition: transform .32s cubic-bezier(.4,0,.2,1);
}

.promoSlide {
  flex: 0 0 calc((100% - (var(--gap) * (var(--perView) - 1))) / var(--perView));
  border-radius: var(--r14);
  overflow: hidden;
  text-decoration: none;
  background: rgba(0,0,0,.2);
  border: 1px solid var(--stroke2);
  aspect-ratio: 16/9;
  transition: transform .16s ease, box-shadow .16s ease;
}
.promoSlide:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.promoSlide:active { transform: scale(.99); }

.promoSlide img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.promoSlider__btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: var(--r12);
  cursor: pointer;
  background: rgba(8,10,26,.5);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  transition: background .14s ease, opacity .14s ease;
  /* Приховано на мобільних */
  opacity: 0;
  pointer-events: none;
}
.promoSlider__btn:hover { background: rgba(255,255,255,.08); }
.promoSlider__btn:active { transform: translateY(-50%) scale(.95); }
.promoSlider__btn--prev { left: 8px; }
.promoSlider__btn--next { right: 8px; }

.promoSlider__arrow {
  width: 9px; height: 9px;
  border-right: 2px solid rgba(255,255,255,.8);
  border-bottom: 2px solid rgba(255,255,255,.8);
}
.promoSlider__arrow--left { transform: rotate(135deg); }
.promoSlider__arrow--right { transform: rotate(-45deg); }

.promoSlider__dots {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.promoSlider__dot {
  width: 24px; height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  border: none;
  cursor: pointer;
  transition: background .14s ease, width .2s ease;
}
.promoSlider__dot:hover { background: rgba(255,255,255,.35); }
.promoSlider__dot.is-active {
  width: 36px;
  background: var(--accent);
}

@media (min-width: 981px) {
  .promoSlider__frame { --perView: 2; --gap: 16px; border-radius: var(--r20); }
  .promoSlider__viewport { padding: 14px; }
  .promoSlider__btn { opacity: 1; pointer-events: auto; }
}

/* ============================================================
   QUICK NAV
   ============================================================ */
.qnav { padding: 8px 0 12px; }

.qnav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.qnav__box {
  position: relative;
  border-radius: var(--r16);
  background: var(--bg-surface);
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  padding: 8px;
}

.qnav__row {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.qnav__row::-webkit-scrollbar { display: none; }

.qnav__item { margin: 0; padding: 0; flex-shrink: 0; }

.qnav__link {
  height: 50px;
  width: 100px;
  border-radius: var(--r12);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
  color: rgba(255,255,255,.85);
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.qnav__link:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(var(--accent-rgb),.2);
  transform: translateY(-1px);
}
.qnav__link:active { transform: scale(.97); }

.qnav__icon {
  width: 16px; height: 16px;
  object-fit: contain;
}
.qnav__text {
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  color: rgba(255,255,255,.8);
}

.qnav__btn {
  width: 100%; height: 50px;
  border-radius: var(--r12);
  cursor: pointer;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
  color: var(--text);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  font-size: 13px;
  transition: background .14s ease, border-color .14s ease;
}
.qnav__btn:hover { background: rgba(255,255,255,.06); border-color: rgba(var(--accent-rgb),.18); }
.qnav__btn:active { transform: scale(.98); }

.qnav__chev {
  width: 8px; height: 8px;
  border-right: 2px solid rgba(255,255,255,.7);
  border-bottom: 2px solid rgba(255,255,255,.7);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.qnav__box.is-open .qnav__chev { transform: rotate(225deg); }
.qnav__box.is-collapsed .qnav__row { display: none; }
.qnav__box.is-collapsed .qnav__btn { display: flex; }

.qnav__drop {
  position: absolute;
  left: 8px; right: 8px;
  top: calc(100% + 8px);
  z-index: 25;
  border-radius: var(--r16);
  background: rgba(16,20,48,.96);
  border: 1px solid var(--stroke);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.qnav__dropInner { padding: 10px; }
.qnav__dropHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.qnav__title { font-weight: 900; color: var(--text); font-size: 14px; }

.qnav__x {
  width: 32px; height: 32px;
  border-radius: var(--r12);
  cursor: pointer;
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  transition: background .14s ease;
}
.qnav__x:hover { background: rgba(255,255,255,.06); }

.qnav__grid {
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.qnav__grid .qnav__link { width: 100%; }

@media (min-width: 561px) {
  .qnav__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 981px) {
  .qnav__link { width: 118px; height: 56px; }
  .qnav__text { font-size: 11px; }
}

/* ============================================================
   SLOTS GRID
   ============================================================ */
.slotsBlock { padding: 12px 0 8px; }

.slotsBlock__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.slotsBlock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.slotsBlock__left { display: flex; align-items: center; gap: 10px; }

.slotsBlock__badge {
  width: 28px; height: 28px;
  object-fit: contain;
  opacity: .9;
}

.slotsBlock__title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.slotsGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.slotCard {
  position: relative;
  border-radius: var(--r14);
  overflow: hidden;
  background: rgba(0,0,0,.2);
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.slotCard:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb),.18);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

.slotCard__img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: filter .2s ease, transform .2s ease;
}

.slotCard__hover {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  opacity: 0;
  transition: opacity .16s ease, background .16s ease;
}

.slotCard__actions {
  display: flex;
  gap: 8px;
  transform: translateY(8px);
  transition: transform .16s ease;
}

.slotBtn {
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .14s ease, border-color .14s ease;
}
.slotBtn:hover { background: rgba(255,255,255,.1); border-color: rgba(var(--accent-rgb),.2); }
.slotBtn:active { transform: scale(.97); }

.slotBtn--play {
  background: var(--accent);
  border-color: var(--accent2);
  color: #0f1128;
  font-weight: 900;
}
.slotBtn--demo {
  background: rgba(8,10,26,.5);
  border-color: rgba(255,255,255,.14);
}

.slotCard:hover .slotCard__img {
  filter: blur(2px) brightness(.65);
  transform: scale(1.03);
}
.slotCard:hover .slotCard__hover {
  opacity: 1;
  background: rgba(8,10,26,.45);
}
.slotCard:hover .slotCard__actions { transform: translateY(0); }

@media (min-width: 641px) {
  .slotsGrid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .slotsBlock__title { font-size: 26px; }
  .slotsBlock__badge { width: 32px; height: 32px; }
}
@media (min-width: 901px) {
  .slotsGrid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1101px) {
  .slotsGrid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .slotsBlock__title { font-size: 32px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.ft {
  margin-top: 24px;
  background: rgba(8,10,26,.92);
  border-top: 1px solid var(--stroke);
  position: relative;
  /* Відступ для bottom bar на мобільних */
  padding-bottom: calc(var(--bbar-h) + 12px);
}

.ft__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px var(--pad) 16px;
}

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

.ft__logo {
  display: inline-flex;
  text-decoration: none;
  margin-bottom: 14px;
}
.ft__logo img {
  height: 38px; width: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));
}

.ft__join {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: rgba(255,255,255,.7);
}

.ft__tg {
  width: 48px; height: 48px;
  border-radius: var(--r12);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke);
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.ft__tg img { width: 24px; height: 24px; object-fit: contain; }
.ft__tg:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(var(--accent-rgb),.2);
}
.ft__tg:active { transform: scale(.97); }

.ft__list {
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}

.ft__link {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: color .14s ease;
}
.ft__link:hover { color: var(--accent); }

.ft__right { display: grid; gap: 12px; }

.ftBot {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r14);
  text-decoration: none;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke);
  transition: background .14s ease, border-color .14s ease;
}
.ftBot:hover { background: rgba(255,255,255,.07); border-color: rgba(var(--accent-rgb),.18); }
.ftBot:active { transform: scale(.99); }
.ftBot__img { width: 48px; height: 36px; object-fit: cover; border-radius: var(--r8); flex-shrink: 0; }
.ftBot__txt { flex: 1 1 auto; }
.ftBot__t1 { font-weight: 700; font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.1; }
.ftBot__t2 { font-weight: 900; font-size: 13px; color: var(--accent); line-height: 1.1; }
.ftBot__send { width: 18px; height: 18px; object-fit: contain; transition: transform .14s ease; }
.ftBot:hover .ftBot__send { transform: translateX(2px); }

.ft__copy {
  font-weight: 700;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  display: grid;
  gap: 4px;
}

.ft__legal {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.45);
}

.toTop {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--bbar-h) + 20px);
  width: 48px; height: 48px;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(var(--accent-rgb),.15);
  border: 1px solid rgba(var(--accent-rgb),.2);
  transition: transform .14s ease, background .14s ease;
}
.toTop:hover { transform: translateY(-2px); background: rgba(var(--accent-rgb),.25); }
.toTop:active { transform: scale(.95); }

.toTop::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: translate(-50%, -38%) rotate(225deg);
}

@media (min-width: 821px) {
  .ft__top { grid-template-columns: 220px 1fr 1fr; gap: 24px; }
  .ft__list { grid-template-columns: 1fr; gap: 10px; }
  .ft { padding-bottom: 0; }
  .toTop { bottom: 20px; }
}

@media (min-width: 1101px) {
  .ft__top { grid-template-columns: 240px 1fr 1fr 340px; gap: 28px; }
  .ft__container { padding-top: 36px; }
}

/* ============================================================
   CONTENT — article .demo
   ============================================================ */
.page { min-height: 100vh; }

.page .demo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px var(--pad) 40px;
  color: rgba(255,255,255,.85);
}

.page .demo > * { margin: 0 0 16px; }

/* Заголовки */
.page .demo h1,
.page .demo h2,
.page .demo h3 {
  color: var(--text);
  letter-spacing: -.01em;
}

.page .demo h1 {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  margin-top: 4px;
  margin-bottom: 14px;
}

.page .demo h2 {
  font-size: 21px;
  font-weight: 800;
  margin-top: 28px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--stroke);
}

.page .demo h3 {
  font-size: 17px;
  font-weight: 800;
  margin-top: 20px;
  margin-bottom: 8px;
}

.page .demo p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.78);
}

.page .demo strong {
  color: var(--text);
  font-weight: 800;
}

.page .demo em {
  color: rgba(var(--link-rgb),.9);
  font-style: italic;
}

/* Посилання */
.page .demo a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--link-rgb),.25);
  transition: color .14s ease, border-color .14s ease;
}
.page .demo a:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb),.4);
}

/* Зображення */
.page .demo img {
  width: 100%; height: auto;
  display: block;
  border-radius: var(--r14);
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* figure всередині .demo — паралакс */
.page .demo figure img {
  border-radius: 0;
  border: none;
  box-shadow: none;
  transform: scale(1.04);
  transform-origin: center center;
  transition: transform 0.12s cubic-bezier(.23,.46,.45,.94);
  will-change: transform;
}

/* Списки */
.page .demo ul,
.page .demo ol {
  padding-left: 20px;
  color: rgba(255,255,255,.78);
}

.page .demo li {
  margin: 6px 0;
  line-height: 1.6;
  font-size: 15px;
}

.page .demo li::marker {
  color: var(--accent);
}

/* Цитати */
.page .demo blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: var(--r14);
  background: rgba(var(--accent-rgb),.04);
  border: 1px solid rgba(var(--accent-rgb),.12);
  border-left: 3px solid var(--accent);
  color: rgba(255,255,255,.82);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.55;
}

/* Таблиці — горизонтальний скрол з підказкою */
.page .demo table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r14);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb),.3) transparent;
}
.page .demo table::-webkit-scrollbar { height: 4px; }
.page .demo table::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb),.3); border-radius: 2px; }

.page .demo thead th {
  text-align: left;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 10px 12px;
  color: var(--accent);
  background: rgba(var(--accent-rgb),.06);
  border-bottom: 1px solid rgba(var(--accent-rgb),.12);
  white-space: nowrap;
}

.page .demo tbody td {
  padding: 10px 12px;
  font-size: 14px;
  color: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--stroke2);
  white-space: nowrap;
}

.page .demo tbody tr:hover td { background: rgba(255,255,255,.03); }
.page .demo tbody tr:last-child td { border-bottom: 0; }

/* Figure */
.page .demo figure {
  margin: 18px 0;
}

@media (min-width: 641px) {
  .page .demo h1 { font-size: 32px; }
  .page .demo h2 { font-size: 24px; }
  .page .demo h3 { font-size: 19px; }
  .page .demo p,
  .page .demo li { font-size: 16px; }
  .page .demo { padding-bottom: 52px; }
}

@media (min-width: 981px) {
  .page .demo h1 { font-size: 38px; }
  .page .demo h2 { font-size: 26px; margin-top: 36px; }
  .page .demo tbody td { white-space: normal; }
}

/* ============================================================
   BOTTOM BAR — мобільна навігація
   ============================================================ */
.bbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bbar-h);
  z-index: 55;
  background: rgba(8,10,26,.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--stroke);
  padding: 0 8px env(safe-area-inset-bottom);
}

.bbar__row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 480px;
  margin: 0 auto;
}

.bbar__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: var(--r12);
  transition: background .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.bbar__link:active { background: rgba(255,255,255,.06); }

.bbar__ico {
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  transition: color .14s ease;
}
.bbar__ico svg { width: 22px; height: 22px; }

.bbar__text {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  transition: color .14s ease;
}

.bbar__link--active .bbar__ico { color: var(--accent); }
.bbar__link--active .bbar__text { color: var(--accent); }

/* Ховаємо на десктопі */
@media (min-width: 981px) {
  .bbar { display: none; }
  .ft { padding-bottom: 0; }
}

figure {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  display: block;
  touch-action: none;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.12s cubic-bezier(.23,.46,.45,.94);
  transform-origin: center center;
  transform: scale(1.04);
  will-change: transform;
}

@media (max-width: 768px) {
  figure img {
    transform: scale(1.04);
    transition: transform 0.3s cubic-bezier(.25,.46,.45,.94);
  }
}