:root {
  --bg: #060a13;
  --bg-2: #0a1120;
  --surface: #0e1727;
  --surface-2: #132036;
  --border: rgba(120, 165, 255, 0.12);
  --border-strong: rgba(80, 160, 255, 0.35);
  --text: #e8edf5;
  --muted: #8b97ad;
  --blue: #1e7bff;
  --blue-2: #29c5f6;
  --blue-deep: #0a4fd6;
  --silver: #c9d1dc;
  --danger: #ff5470;
  --success: #2ee6a6;
  --radius: 14px;
  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-head: 'Rajdhani', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 72px;
  --sub-h: 44px;
  --header-h: calc(var(--nav-h) + var(--sub-h));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.drawer-open, body.menu-open { overflow: hidden; }
body.busy { cursor: progress; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
.ico { width: 18px; height: 18px; flex-shrink: 0; }
.muted { color: var(--muted); font-size: 13px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  --skew: -10deg;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  isolation: isolate;
  transition: transform 0.2s, filter 0.2s;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(var(--skew));
  border-radius: 6px;
  transition: box-shadow 0.2s, background 0.2s;
}
.btn-primary::before {
  background: linear-gradient(135deg, var(--blue-2), var(--blue) 45%, var(--blue-deep));
  box-shadow: 0 8px 28px -8px rgba(30, 123, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover::before { box-shadow: 0 10px 36px -6px rgba(41, 197, 246, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-ghost::before { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-strong); }
.btn-ghost:hover::before { background: rgba(30, 123, 255, 0.12); }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn-accent { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); border-color: transparent; }
.icon-btn-accent:hover { box-shadow: 0 0 20px rgba(41, 197, 246, 0.5); }
.link { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; padding: 0; font-size: inherit; }

/* ---------- Announcement bar (set in /admin) ---------- */
.announce { display: block; padding: 9px 16px; text-align: center; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(90deg, var(--blue-deep), var(--blue), var(--blue-deep)); }
a.announce:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 19, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: 0.25s;
}
.nav.scrolled { background: rgba(6, 10, 19, 0.88); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.subnav { height: var(--sub-h); border-top: 1px solid var(--border); }
.subnav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.subnav a:hover { color: var(--text); }
.subnav a.active { color: #fff; }
.subnav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue-2); }
.subnav a.sub-sale { color: #ff8a73; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  padding: 8px 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 8px;
  transition: 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: #fff; background: rgba(30, 123, 255, 0.14); box-shadow: inset 0 -2px 0 var(--blue-2); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.basket-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(30, 123, 255, 0.1);
  transition: 0.2s;
}
.basket-btn:hover { background: rgba(30, 123, 255, 0.22); }
.basket-btn .ico { width: 20px; height: 20px; }
.basket-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--blue-2);
  color: #031021;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.basket-count[hidden] { display: none; }
.menu-btn { display: none; width: 42px; height: 42px; place-items: center; }
#account-label { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-modal .modal-actions { display: grid; gap: 10px; }

@media (max-width: 900px) {
  .nav-inner { gap: 12px; }
  .nav-logo { flex: 1; }
  .nav-logo img { height: 30px; }
  .menu-btn { display: grid; }
  .nav-actions { gap: 8px; }
  #nav-discord span, #account-label { display: none; }
  #nav-discord, #account-btn { padding: 9px 12px; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: rgba(6, 10, 19, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
  }
  .nav-links a { padding: 14px; font-size: 17px; }
  body.menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 40px) 0 60px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero.has-photo .hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 10, 19, 0.95) 0%, rgba(6, 10, 19, 0.7) 50%, rgba(6, 10, 19, 0.35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(80, 150, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(80, 150, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
}
.hero.has-photo .hero-grid { opacity: 0.4; }
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 72% 45%, rgba(30, 123, 255, 0.28), transparent 70%),
    radial-gradient(500px 300px at 15% 80%, rgba(41, 197, 246, 0.1), transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero.has-photo .hero-inner { grid-template-columns: 1fr; }
.hero.has-photo .hero-art { display: none; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-style: italic;
  margin-bottom: 22px;
}
.hero-title span { display: block; }
.chrome {
  background: linear-gradient(180deg, #ffffff 0%, #dfe5ee 45%, #8f9aaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(10, 79, 214, 0.6));
}
.blue {
  background: linear-gradient(180deg, #7fdcff 0%, var(--blue-2) 35%, var(--blue) 75%, var(--blue-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(30, 123, 255, 0.45));
}
.hero-sub { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-ctas.center { justify-content: center; }
.trust { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
}
.trust .ico { color: var(--blue-2); width: 16px; height: 16px; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.orbit { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; }
.orbit-light { animation: orbit 5s linear infinite; }
.orbit-light.slow { animation-duration: 8s; animation-direction: reverse; }
@keyframes orbit { to { stroke-dashoffset: -100; } }
.hero-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 20px 50px rgba(30, 123, 255, 0.45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 14px)); }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 24px); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; max-width: 300px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas, .trust { justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding-top: 72px; }
.section:last-of-type { padding-bottom: 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow .ico { transition: transform 0.2s; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cat-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: 0.3s;
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.cat-tile-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 10, 19, 0.92) 0%, rgba(6, 10, 19, 0.35) 70%), linear-gradient(0deg, rgba(10, 79, 214, 0.25), transparent 60%); }
.cat-tile-body { position: absolute; left: 24px; bottom: 20px; right: 24px; }
.cat-tile h3 { font-size: 30px; text-transform: uppercase; font-style: italic; }
.cat-tile span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--blue-2); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.cat-tile:hover { border-color: var(--border-strong); box-shadow: 0 16px 40px -16px rgba(30, 123, 255, 0.5); }
.cat-tile:hover img { transform: scale(1.05); }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 18px 40px -18px rgba(30, 123, 255, 0.55); }
.card-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-2); }
.card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-media > img { transform: scale(1.05); }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle, rgba(30, 123, 255, 0.2), transparent 70%); }
.card-placeholder img { width: 30%; opacity: 0.6; }
.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  background: rgba(6, 10, 19, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  color: var(--blue-2);
}
.tag-static { position: static; display: inline-block; }
.badge-new, .badge-sale {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  color: #fff;
}
.badge-sale { top: auto; bottom: 12px; background: linear-gradient(135deg, #ff7a59, var(--danger)); }
.badge-soon { background: rgba(6, 10, 19, 0.85); color: #fff; box-shadow: inset 0 0 0 1px var(--border-strong); }
.badge-preorder { background: linear-gradient(135deg, #a78bfa, #6d28d9); color: #fff; }
.card-soon .card-media img { filter: saturate(0.6) brightness(0.8); }
.card-release { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.card-release strong { color: var(--silver); font-weight: 600; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.est-badge { display: inline-block; margin-top: 12px; padding: 4px 10px; border: 1px solid var(--border-strong); border-radius: 6px; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver); }
.card-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; flex: 1; }
.card-title { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.2; text-transform: uppercase; flex: 1; }
.card-title:hover { color: var(--blue-2); }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price span { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--blue-2); }
.price s, .product-price s { color: var(--muted); font-size: 14px; }

/* ---------- Features & CTA ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(30, 123, 255, 0.07), transparent); }
.feature .ico { width: 30px; height: 30px; color: var(--blue-2); margin-bottom: 18px; }
.feature h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 8px; }
.feature p { color: var(--muted); }

.cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: radial-gradient(600px 200px at 100% 0%, rgba(41, 197, 246, 0.25), transparent 70%), linear-gradient(135deg, #0b2a6b, #091a3d 55%, var(--surface));
}
.cta-banner h2 { font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; margin-bottom: 8px; }
.cta-banner p:not(.eyebrow) { color: var(--silver); }
@media (max-width: 700px) { .cta-banner { flex-direction: column; align-items: flex-start; padding: 28px; } }

/* ---------- Store page ---------- */
.page-head { padding: 56px 0 28px; background: radial-gradient(700px 240px at 50% 0%, rgba(30, 123, 255, 0.18), transparent 70%); }
.page-head h1 { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(30px, 4.5vw, 52px); text-transform: uppercase; }
.store { padding-bottom: 24px; }
.toolbar { display: flex; gap: 12px; margin-bottom: 16px; }
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 123, 255, 0.2); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; }
select, .coupon input {
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  outline: 0;
}
select:focus, .coupon input:focus { border-color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); border-color: transparent; }
.chip-sale:not(.active) { color: #ff8a73; }
.empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
@media (max-width: 600px) { .toolbar { flex-direction: column; } }

/* ---------- Product page ---------- */
.product { padding-top: 32px; padding-bottom: 24px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a:hover { color: var(--blue-2); }
.crumbs span { color: var(--text); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: 0.6; transition: 0.2s; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--blue-2); opacity: 1; }
.product-info { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.product-info h1 { font-size: clamp(28px, 3.2vw, 40px); text-transform: uppercase; }
.product-price { display: flex; align-items: baseline; gap: 10px; }
.product-price span { font-family: var(--font-head); font-weight: 700; font-size: 38px; color: var(--blue-2); line-height: 1; }
.product-price small { color: var(--muted); font-size: 13px; }
.product-meta { color: var(--muted); font-size: 13px; margin-top: -8px; }
.product-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.product-ctas .btn { flex: 1; }
.product-perks { list-style: none; padding: 18px; margin: 0; display: grid; gap: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.product-perks li { display: flex; gap: 14px; }
.product-perks .ico { color: var(--blue-2); margin-top: 2px; }
.product-perks strong { display: block; font-size: 14px; }
.product-perks span { font-size: 13px; color: var(--muted); }
.product-perks a { color: var(--blue-2); }
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-info { position: static; }
}

.prose { max-width: 820px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); color: #c3cbd8; }
.prose h1, .prose h2, .prose h3 { color: var(--text); text-transform: uppercase; margin: 32px 0 12px; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 22px; color: var(--blue-2); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose li p { margin: 0; }
.prose li::marker { color: var(--blue-2); }
.prose strong { color: var(--text); }
.prose a { color: var(--blue-2); text-decoration: underline; }
.prose img { border-radius: 10px; margin: 16px 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }

/* ---------- New in tabs ---------- */
.section-sub { color: var(--muted); margin-top: 8px; }
.tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: #fff; }
.tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue-2); box-shadow: 0 0 12px var(--blue-2); }

/* ---------- Gallery & lightbox ---------- */
.page-sub { color: var(--muted); max-width: 620px; margin-top: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-tile {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  background: linear-gradient(0deg, rgba(6, 10, 19, 0.92), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: 0.25s;
}
.gallery-tile:hover { border-color: var(--border-strong); box-shadow: 0 16px 40px -16px rgba(30, 123, 255, 0.5); }
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-tile:hover span, .gallery-tile:focus-visible span { opacity: 1; transform: none; }
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-tile span { opacity: 1; transform: none; font-size: 13px; padding: 20px 10px 8px; }
}

.modal.modal-lightbox { width: min(860px, 100%); padding: 0; text-align: left; overflow: hidden; }
.modal-lightbox .modal-close { z-index: 2; background: rgba(6, 10, 19, 0.7); }
.lightbox-media { position: relative; background: var(--bg); }
.lightbox-media img { width: 100%; max-height: min(72vh, 860px); object-fit: contain; }
.lightbox-nav { position: absolute; top: 50%; width: 44px; height: 44px; transform: translateY(-50%); background: rgba(6, 10, 19, 0.75); border-color: var(--border-strong); color: #fff; }
.lightbox-nav:hover { background: var(--blue); }
.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }
.lightbox-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.lightbox-foot strong { display: block; font-family: var(--font-head); font-size: 18px; text-transform: uppercase; line-height: 1.2; }

/* ---------- Search modal ---------- */
.modal-backdrop:has(.modal-search) { align-items: start; padding-top: 12vh; }
.modal.modal-search { width: min(620px, 100%); padding: 14px; text-align: left; }
.search-modal { height: 54px; padding-right: 6px; }
.search-modal .icon-btn { width: 34px; height: 34px; }
.search-results { display: grid; gap: 6px; margin-top: 10px; }
.search-hint { padding: 18px 8px 8px; text-align: center; color: var(--muted); font-size: 14px; }
.search-hit { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 12px; transition: background 0.2s; }
.search-hit:hover { background: rgba(30, 123, 255, 0.12); }
.search-hit .basket-thumb { width: 52px; }
.search-hit strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.search-all { justify-content: center; padding: 10px; }
.search-btn { background: rgba(255, 255, 255, 0.03); border-color: var(--border); color: var(--muted); }
.search-btn:hover { color: var(--text); }

/* ---------- Updates timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; max-width: 860px; border-left: 1px solid var(--border-strong); display: grid; gap: 22px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--blue-2);
}
.timeline time { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--silver); margin-bottom: 8px; }
.timeline-card { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: 0.2s; }
.timeline-card:hover { border-color: var(--border-strong); transform: translateX(3px); }
.timeline-card > .ico { color: var(--blue-2); margin-right: 6px; }
.timeline-thumb { width: 64px; aspect-ratio: 1; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--bg); }
.timeline-thumb img { width: 100%; height: 100%; object-fit: cover; }
.timeline-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.timeline-body strong { font-family: var(--font-head); font-size: 18px; text-transform: uppercase; line-height: 1.25; }
.timeline-label { align-self: flex-start; padding: 2px 8px; margin-bottom: 4px; border-radius: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-2); background: rgba(41, 197, 246, 0.12); }
.timeline-label.is-update { color: var(--success); background: rgba(46, 230, 166, 0.1); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq-item { border-radius: 12px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-2); }
.faq-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 6px; left: 0; width: 14px; height: 2px; border-radius: 1px; background: var(--blue-2); transition: transform 0.2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); }
.faq-more { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; color: var(--silver); }

/* ---------- Custom work steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-num { display: block; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 34px; line-height: 1; margin-bottom: 14px; color: transparent; -webkit-text-stroke: 1px var(--blue-2); }
.step h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- Simple centered pages ---------- */
.center-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding-top: 60px; padding-bottom: 60px; }
.center-page h1 { font-family: var(--font-display); font-style: italic; font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; }
.center-page > p:not(.eyebrow) { color: var(--muted); max-width: 520px; }
.center-page .hero-ctas { margin-top: 12px; }
.center-logo { width: 110px; filter: drop-shadow(0 10px 30px rgba(30, 123, 255, 0.5)); margin-bottom: 8px; }
.spinner { width: 72px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.92); } }

/* ---------- Footer ---------- */
.footer { margin-top: 88px; border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding-top: 48px; padding-bottom: 36px; flex-wrap: wrap; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-style: italic; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }

/* ---------- Basket drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(2, 5, 12, 0.6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: 0.25s; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-left: 1px solid var(--border-strong);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 22px; text-transform: uppercase; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.drawer-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 0 16px; color: var(--muted); }
.drawer-empty img { width: 70px; opacity: 0.6; }
.drawer-user { font-size: 13px; color: var(--muted); text-align: center; }
.drawer-user strong { color: var(--text); }
.basket-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.basket-item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.basket-thumb { width: 60px; aspect-ratio: 1; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--bg); }
.basket-thumb img { width: 100%; height: 100%; object-fit: cover; }
.basket-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.basket-info a { font-weight: 600; font-size: 14px; line-height: 1.3; }
.basket-info span { color: var(--blue-2); font-weight: 700; font-family: var(--font-head); font-size: 17px; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; height: 42px; }
.coupon-tag { font-size: 13px; color: var(--success); }
.totals { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.totals div { display: flex; justify-content: space-between; }
.totals .total { color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 22px; margin-top: 4px; }
.drawer-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }
.drawer-note .ico { width: 14px; height: 14px; color: var(--blue-2); }

/* ---------- Modal & toasts ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(2, 5, 12, 0.7); backdrop-filter: blur(4px); }
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative;
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -20px rgba(30, 123, 255, 0.45);
}
.modal h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 10px; }
.modal p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.modal-logo { width: 64px; margin: 0 auto 16px; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-actions { display: grid; gap: 10px; }

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
}
.toast.show { opacity: 1; transform: none; }
.toast-success { border-color: rgba(46, 230, 166, 0.5); }
.toast-error { border-color: rgba(255, 84, 112, 0.6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
