/*
Theme Name: Gamemir
Theme URI: https://gamemir.ru
Author: ООО «ТОКИ-ТОКИ»
Author URI: https://tokitoki.ru
Description: Dark gaming theme for Gamemir — Russian gaming peripherals brand. Sub-brands: Gamekover (mousepads, orange accent) and Gamemir X (mice/keyboards, purple accent).
Version: 1.0.4
Text Domain: gamemir
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
License URI: https://gamemir.ru/license
*/

/* ====================================================================
   GAMEMIR — unified brand system
   Typography: Exo 2 Bold for accent/headings, Montserrat for text/UI.
   Brand color code: orange (Gamekover) · violet (Gamemir X).
   ==================================================================== */

:root {
  --nav-touch-target: 44px;
  --bg: #07070d;
  --bg-1: #0d0d16;
  --bg-2: #12121d;
  --bg-3: #1a1a2e;
  --bg-4: #1d1d2e;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #8a8aa0;
  --dim: #5a5a72;

  --dark-canvas: #08090f;
  --dark-surface: #11121b;
  --dark-surface-soft: #0d0e16;
  --dark-surface-raised: #161720;
  --dark-border: rgba(255, 255, 255, 0.09);
  --dark-border-strong: rgba(255, 255, 255, 0.15);
  --dark-muted: #999baa;
  --dark-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);

  --orange: #ff550c;
  --orange-2: #d94308;
  --orange-glow: 255, 85, 12;

  --violet: #a855f7;
  --violet-2: #7c3aed;
  --violet-glow: 168, 85, 247;

  --cyan: var(--orange);
  --cyan-2: var(--orange-2);
  --cyan-glow: 255, 85, 12;

  --font-brand: "Exo 2", "Montserrat", sans-serif;
  --font-display: "Exo 2", "Montserrat", sans-serif;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-mono: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Cross-document navigation: native where available, short fade fallback elsewhere. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: gm-page-out 0.14s ease-in both;
}

::view-transition-new(root) {
  animation: gm-page-in 0.18s ease-out both;
}

html.gm-page-transition-fallback body {
  animation: gm-page-in 0.18s ease-out both;
}

html.gm-page-transition-fallback.gm-page-leaving body {
  animation: none;
  opacity: 0;
  transition: opacity 0.14s ease-in;
}

@keyframes gm-page-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes gm-page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  html.gm-page-transition-fallback body,
  html.gm-page-transition-fallback.gm-page-leaving body {
    animation: none;
    opacity: 1;
    transition: none;
  }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--orange); color: #000; }

/* ============================ NAV ============================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(7, 7, 13, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  height: 64px;
}
.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .nav { top: 46px; } }

.nav-inner {
  max-width: 1480px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.brand {
  font-family: var(--font-brand);
  font-size: 22px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand-logo-image {
  display: block;
  width: 121px;
  height: auto;
  max-width: 100%;
}
.nav-brand-logo-image { width: 190px; }
.brand-wordmark {
  display: block;
  width: auto;
  height: var(--brand-wordmark-height, 12px);
  max-width: 100%;
  object-fit: contain;
}
.brand-mark {
  width: 26px;
  height: 26px;
  position: relative;
  display: inline-block;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid #fff;
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}
.brand-mark::after {
  inset: 5px;
  background: #fff;
  border: 0;
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}


.nav-center {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 100%;
  min-width: 0;
}

.nav-item {
  position: relative;
  min-height: 63px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  color: rgba(255,255,255,0.78);
  transition: color 0.15s ease, opacity 0.15s ease;
}
.nav-item:hover,
.nav-item.is-open { color: #fff; }
.nav-item--active { color: #fff; }
.nav-item--active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  background: var(--orange);
}
.nav-item:focus-visible {
  outline: 1px solid var(--orange);
  outline-offset: -5px;
}
.nav-brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 14px;
}
.nav-brand-wordmark { --brand-wordmark-height: 14px; }

.nav-item.is-open::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: currentColor;
}

.nav-item-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-item-dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item-dropdown.is-open > .nav-item {
  color: var(--orange);
}
.nav-item-dropdown.is-open > .nav-item::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: currentColor;
}
.nav-caret {
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}
.nav-item-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-item-disabled {
  color: rgba(255,255,255,0.38);
  cursor: default;
}
.nav-item-disabled:hover { color: rgba(255,255,255,0.38); }
.nav-soon {
  padding: 3px 5px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.nav-search {
  width: 180px;
  height: 36px;
  margin-right: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--muted);
  background: #12121d;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-search:focus-within {
  color: #fff;
  border-color: var(--orange);
}
.nav-search svg { flex: 0 0 auto; }
.nav-search input[type="search"] {
  width: 100%;
  min-width: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
}
.nav-search input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
.nav-search input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
  -webkit-appearance: none;
}

.nav-icon {
  width: var(--nav-touch-target);
  height: var(--nav-touch-target);
  min-width: var(--nav-touch-target);
  min-height: var(--nav-touch-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.78);
  position: relative;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-icon:hover { color: #fff; background: rgba(255,255,255,0.06); }

.cart-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--orange);
  color: #000;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-badge[hidden] { display: none; }

/* dropdown */
.dropdown {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.22s cubic-bezier(.2,.7,.2,1);
}
.admin-bar .dropdown { top: 64px; }

.nav-item-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}

.dropdown-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}

.dropdown-title {
  max-width: 220px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}
.dropdown-title-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  transition: color 0.15s ease;
}
.dropdown-title-link .arrow {
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}
.dropdown-title-link:hover { color: var(--orange); }
.dropdown-title-link:hover .arrow { transform: translateX(3px); }

.dropdown-brand-logo {
  display: block;
  width: min(70%, 140px);
  height: auto;
  margin-bottom: 14px;
}
.dropdown-tagline { color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 220px; }

.dropdown-content {
  min-width: 0;
  display: grid;
  gap: 24px;
}
.dropdown-group-label {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  color: var(--dim);
}
.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 36px;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.15s, transform 0.15s;
}
.dropdown-link:hover { color: #fff; transform: translateX(4px); }
.dropdown-link .arrow { margin-left: auto; opacity: 0; transition: opacity 0.15s, transform 0.15s; }
.dropdown-link:hover .arrow { opacity: 1; transform: translateX(2px); }

.dropdown-link-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.dropdown-link-title { line-height: 1.2; }

.dropdown-link .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.dropdown-orange { color: var(--orange); }
.dropdown-violet { color: var(--violet); }

.dropdown-link-tag {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 1320px) {
  .nav-item {
    padding-right: 5px;
    padding-left: 5px;
    gap: 4px;
    font-size: 12px;
  }
  .nav-soon {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 7px;
  }
  .nav-search {
    width: 160px;
    margin-right: 4px;
  }
  .nav-right { gap: 4px; }
}

@media (max-width: 1199px) {
  .nav-search { display: none; }
}

/* ============================ COMMON ============================ */

.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.section-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.tag.orange { color: var(--orange); }
.tag.violet { color: var(--violet); }
.tag.cyan { color: var(--cyan); }

/* button */
.btn {
  --c: var(--orange);
  --c2: var(--orange-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--c);
  color: #0a0a0a;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  position: relative;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
  border: 0;
}
.btn:hover { transform: translateY(-2px); background: var(--c2); color: #fff; }
.btn .arrow { width: 18px; height: 12px; }

.btn.violet { --c: var(--violet); --c2: var(--violet-2); color: #fff; }
.btn.violet:hover { color: #fff; }
.btn.cyan { --c: var(--cyan); --c2: var(--cyan-2); }

.btn.ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  clip-path: none;
  padding: 14.5px 26.5px;
}
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); color: #fff; }

/* corner crosshairs */
.crosshair {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid rgba(255,255,255,0.25);
}
.crosshair.tl { top: 24px; left: 24px; border-right: 0; border-bottom: 0; }
.crosshair.tr { top: 24px; right: 24px; border-left: 0; border-bottom: 0; }
.crosshair.bl { bottom: 24px; left: 24px; border-right: 0; border-top: 0; }
.crosshair.br { bottom: 24px; right: 24px; border-left: 0; border-top: 0; }

/* tech label corner */
.section-tag {
  position: absolute;
  top: 96px;
  left: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}
.section-tag b { color: #fff; font-weight: 500; }
.section-brand-logo {
  width: 83px;
  height: auto;
  flex-shrink: 0;
}

.section-counter {
  position: absolute;
  top: 96px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  z-index: 5;
}

/* ============================ HERO GAMEKOVER ============================ */

.hero-gk {
  background: radial-gradient(ellipse at 70% 50%, rgba(255,85,12,0.18), transparent 60%), #1a1a2e;
}
.hero-gk::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 60%, rgba(255,61,0,0.35), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(255,85,12,0.18), transparent 50%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 60px;
}

.hero-copy { max-width: 560px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 140px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  margin: 24px 0 22px;
  text-transform: uppercase;
}
.hero-title.hero-brand-title {
  width: min(70.4%, 440px);
  line-height: 1;
  background: none;
  -webkit-text-fill-color: initial;
}
.hero-brand-title img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-sub {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.35;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 520px;
}
.hero-stat { padding-right: 32px; }
.hero-stat .v { font-family: var(--font-display); font-size: 28px; color: #fff; }
.hero-stat .v .accent { color: var(--orange); }
.hero-stat .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* mousepad visual */
.pad-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}
.pad {
  width: 88%;
  aspect-ratio: 16 / 11;
  position: relative;
  transform: rotateX(58deg) rotateZ(-22deg);
  transform-style: preserve-3d;
}

.pad-surface {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255,85,12,0.18), transparent 55%),
    linear-gradient(135deg, #161620 0%, #0c0c14 100%);
  border-radius: 14px;
  box-shadow:
    0 60px 80px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(0,0,0,0.5);
  overflow: hidden;
}
.pad-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px);
}
.pad-logo {
  position: absolute;
  bottom: 7%;
  right: 6%;
  width: 24%;
  max-width: 148px;
}
.pad-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.pad-logo small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--orange);
  margin-top: 3px;
}

/* RGB strip */
.pad-rgb {
  position: absolute;
  inset: -8px;
  border-radius: 18px;
  background: conic-gradient(from 0deg,
    #d94308, #ff550c, #ffb800, #d94308, #ff550c, #d94308);
  filter: blur(14px);
  opacity: 0.95;
  z-index: -1;
  animation: rgbPulse 4s ease-in-out infinite;
}
@keyframes rgbPulse {
  0%, 100% { opacity: 0.8; filter: blur(14px); }
  50%      { opacity: 1;   filter: blur(20px); }
}

.pad-shadow {
  position: absolute;
  bottom: -4%;
  left: 10%;
  right: 10%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.8), transparent 70%);
  filter: blur(10px);
  z-index: -2;
}

/* tech callouts around pad */
.callout {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
}
.callout::before {
  content: "";
  width: 38px; height: 1px;
  background: rgba(255,255,255,0.35);
}
.callout .v { color: #fff; font-weight: 700; letter-spacing: 0.1em; }
.callout.right { flex-direction: row-reverse; }
.callout.right::before { content: none; }
.callout.right::after {
  content: "";
  width: 38px; height: 1px;
  background: rgba(255,255,255,0.35);
}

/* ============================ HERO GAMEMIR X ============================ */

.hero-gx {
  background: radial-gradient(ellipse at 30% 50%, rgba(168,85,247,0.18), transparent 60%), #1b1b2f;
}
.hero-gx::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 70%, rgba(168,85,247,0.4), transparent 45%),
    radial-gradient(circle at 20% 30%, rgba(124,58,237,0.2), transparent 55%);
  pointer-events: none;
}

.hero-gx .hero-layout { grid-template-columns: 1.1fr 1fr; }
.hero-gx .hero-copy { order: 2; }
.hero-gx .visual-col { order: 1; }

.hero-title.violet-text {
  background: linear-gradient(180deg, #fff 0%, #fff 50%, rgba(168,85,247,0.5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title .x {
  font-family: var(--font-display);
  color: var(--violet);
  -webkit-text-fill-color: var(--violet);
  margin-left: 0.1em;
}

/* mouse visual */
.mouse-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mouse-glow {
  position: absolute;
  width: 85%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(168,85,247,0.6), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}
.mouse {
  position: relative;
  width: 78%;
  z-index: 2;
  filter: drop-shadow(0 50px 50px rgba(0,0,0,0.7));
}

/* ============================ HERO CONSTRUCTOR ============================ */

.hero-cx {
  background: #101018;
  min-height: auto;
}
.hero-cx::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 60%, rgba(255,85,12,0.16), transparent 50%),
    radial-gradient(circle at 30% 40%, rgba(168,85,247,0.11), transparent 60%);
  pointer-events: none;
}

.hero-title.cyan-text {
  background: linear-gradient(180deg, #fff 0%, #fff 55%, rgba(255,85,12,0.5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* constructor mock */
.cx-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cx-mock {
  position: relative;
  width: 92%;
  aspect-ratio: 5/4;
  background: linear-gradient(180deg, rgba(18,18,29,0.95), rgba(7,7,13,0.95));
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 240px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,85,12,0.08);
}

.cx-canvas {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255,85,12,0.08), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.cx-preview {
  width: 75%;
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, #ff550c 0%, #d9dada 46%, #a855f7 100%);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 0 60px rgba(255,85,12,0.35);
}
.cx-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.1) 0 2px, transparent 2px 16px);
  border-radius: 8px;
}
.cx-preview-logo {
  position: absolute;
  bottom: 10px;
  right: 14px;
  width: 30%;
  height: auto;
}

.cx-side {
  border-left: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cx-side h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.cx-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.cx-sw {
  aspect-ratio: 1;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
}
.cx-sw.active { box-shadow: 0 0 0 2px var(--orange); }

.cx-sizes { display: flex; flex-direction: column; gap: 4px; }
.cx-size {
  border: 1px solid var(--line);
  padding: 9px 10px;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.7);
}
.cx-size.active { border-color: var(--orange); color: var(--orange); background: rgba(255,85,12,0.06); }
.cx-size .dim { color: var(--dim); font-family: var(--font-mono); font-size: 10px; }

.cx-price {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cx-price .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.cx-price .val { font-family: var(--font-display); font-size: 22px; color: var(--orange); }

.cx-corner-label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cx-corner-label .dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 8px var(--orange); }

/* DAN-101: readable home-constructor microcopy and bounded grid children. */
#constructor .tag,
#constructor .section-tag,
#constructor .section-counter,
#constructor .hero-stat .l,
#constructor .cx-corner-label,
#constructor .cx-side h5,
#constructor .cx-size .dim,
#constructor .cx-price .lbl {
  font-size: 12px;
  line-height: 1.25;
}

#constructor .hero-layout > *,
#constructor .cx-mock > *,
#constructor .cx-side > *,
#constructor .cx-size,
#constructor .cx-price {
  min-width: 0;
}

#constructor .cx-side h5,
#constructor .cx-size,
#constructor .cx-price {
  overflow-wrap: anywhere;
}

@media (min-width: 981px) {
  .hero-gk .hero-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(620px, 1.08fr);
    gap: 72px;
  }

  .hero-cx .hero-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
    gap: clamp(40px, 5vw, 80px);
    min-height: calc(100svh - 64px);
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-cx .hero-copy {
    max-width: none;
    min-width: 0;
  }

  .hero-cx .hero-title {
    font-size: clamp(44px, 4vw, 76px);
    line-height: 0.92;
  }

  .hero-cx .visual-col,
  .hero-cx .cx-stage {
    min-width: 0;
  }

  .hero-cx .cx-stage {
    aspect-ratio: auto;
    justify-content: flex-end;
  }

  .hero-cx .cx-mock {
    width: min(100%, calc(125svh - 187.5px), 820px);
    max-width: 820px;
    max-height: calc(100svh - 150px);
  }
}

@media (min-width: 981px) and (max-height: 760px) {
  .hero-cx .hero-layout {
    gap: 40px;
    padding-top: 86px;
    padding-bottom: 36px;
  }
  .hero-cx .hero-title { margin-top: 18px; margin-bottom: 18px; }
  .hero-cx .hero-sub { margin-bottom: 26px; font-size: 19px; }
  .hero-cx .hero-stats { margin-top: 34px; }
  .hero-cx .cx-mock {
    width: min(100%, calc(125svh - 162.5px), 740px);
    max-width: 740px;
    max-height: calc(100svh - 130px);
  }
}

/* ============================ FEATURES ============================ */

.features {
  background: var(--bg-4);
  min-height: auto;
  padding: 140px 0;
}

.features-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  gap: 40px;
  flex-wrap: wrap;
}

.features-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 800px;
}
.features-title .accent { color: var(--orange); }
.features-brand-logo {
  display: block;
  width: min(63.8%, 268px);
  margin-top: 14px;
}
.features-brand-logo .brand-wordmark {
  width: 100%;
  height: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.features-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.f-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 100%);
  border: 1px solid var(--line);
  padding: 32px 28px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.f-card:hover {
  border-color: rgba(255,85,12,0.5);
  transform: translateY(-4px);
}
.f-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 1px;
  background: var(--orange);
}

.f-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 28px;
}

.f-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.f-icon svg { width: 100%; height: 100%; }

.f-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.f-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: auto;
}

/* ============================ NEWSLETTER ============================ */

.newsletter {
  position: relative;
  background: #0a0a14;
  padding: 140px 0 160px;
  text-align: center;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255,85,12,0.1), transparent 60%);
  pointer-events: none;
}
.newsletter::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 60px, rgba(255,255,255,0.025) 60px 61px);
  pointer-events: none;
}

.newsletter-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.newsletter p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 36px;
}

.nl-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s;
}
.nl-form:focus-within { border-color: var(--orange); }
.nl-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 18px 22px;
  outline: none;
}
.nl-form input::placeholder { color: var(--dim); }
.nl-form button {
  background: var(--orange);
  color: #0a0a0a;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 32px;
  transition: background 0.18s;
}
.nl-form button:hover { background: var(--orange-2); color: #fff; }

.nl-consent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.nl-consent input { accent-color: var(--orange); width: 16px; height: 16px; }
.nl-consent a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 3px; }

/* ============================ FOOTER ============================ */

.footer {
  background: #060609;
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
}
.footer-inner { max-width: 1480px; margin: 0 auto; padding: 0 32px; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}

.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 320px; }

.footer-col h6 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: 14px; transition: color 0.15s; }
.footer-col a:hover { color: var(--orange); }
.footer-brand-link { display: inline-flex; align-items: center; min-height: 16px; }
.footer-brand-wordmark { --brand-wordmark-height: 14px; opacity: .78; transition: opacity .15s; }
.footer-brand-link:hover .footer-brand-wordmark { opacity: 1; }

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.soc {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: rgba(255,255,255,0.7);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.soc svg { width: 16px; height: 16px; }
.soc:hover { color: var(--orange); border-color: var(--orange); background: rgba(255,85,12,0.08); }

.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--dim);
  text-transform: uppercase;
}
.footer-bot .pipe { color: var(--dim); margin: 0 14px; }
.footer-legal { display: inline-flex; align-items: center; flex-wrap: wrap; }
.footer-legal-wordmark { --brand-wordmark-height: 9px; opacity: .72; margin-left: 5px; }

.crumb-brand-link,
.crumb-brand-current {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.crumb-brand-wordmark { --brand-wordmark-height: 9px; opacity: .9; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .nav-center { display: none; }
  .hero-layout { grid-template-columns: 1fr; padding-top: 96px; }
  .hero-gx .hero-copy { order: 1; }
  .hero-gx .visual-col { order: 2; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-cx .hero-layout { gap: 48px; padding-bottom: 72px; }
  .hero-cx .hero-copy { max-width: none; min-width: 0; }
  .hero-cx .hero-sub,
  .hero-cx .hero-ctas,
  .hero-cx .hero-stats { max-width: 560px; }
  .hero-cx .cx-stage { aspect-ratio: auto; }
  .hero-cx .cx-mock {
    width: min(100%, 820px);
    max-width: 820px;
    max-height: none;
    aspect-ratio: auto;
    grid-template-columns: 1fr;
  }
  .hero-cx .cx-canvas { min-height: clamp(260px, 62vw, 480px); }
  .hero-cx .cx-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .hero-cx .cx-price { grid-column: 1 / -1; }
  .section-tag, .section-counter { display: none; }
}

@media (max-width: 640px) {
  .hero-cx .cx-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-cx .cx-price {
    grid-column: 1;
  }

  .features {
    padding: 76px 0;
  }
  .features-head {
    margin-bottom: 32px;
    gap: 18px;
  }
  .features-title {
    font-size: clamp(34px, 10vw, 44px);
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .f-card {
    min-height: auto;
    padding: 28px 26px;
  }
  .f-desc {
    margin-top: 0;
  }
}

.footer-brand .brand-logo-image {
  width: 144px;
}

/* Wishlist badge (same style as cart-badge) */
.wishlist-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--orange);
  color: #000;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Fav button active state */
.gk-fav.is-fav,
.product-fav.is-fav {
  color: #ff4757;
  border-color: #ff4757;
}
.gk-fav.is-fav:hover,
.product-fav.is-fav:hover {
  color: #ff6b81;
  border-color: #ff6b81;
}

/* ── Global background grid overlay ── */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Burger button (mobile only) ── */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--nav-touch-target);
  height: var(--nav-touch-target);
  min-width: var(--nav-touch-target);
  min-height: var(--nav-touch-target);
  padding: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Pointer capability is the primary navigation switch above the mobile breakpoint.
   Unknown/no-hover devices get the safe burger fallback. */
@media (min-width: 981px) and (any-hover: hover) and (any-pointer: fine) {
  .nav-center { display: flex; }
  .burger { display: none; }
}

/* Hybrid hardware keeps mouse/keyboard desktop navigation and a touch drawer. */
@media (min-width: 981px) and (any-hover: hover) and (any-pointer: fine) and (any-pointer: coarse) {
  .burger { display: flex; }
  .nav-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    padding-right: 16px;
    padding-left: 16px;
  }
  .nav .nav-brand-logo-image { width: 160px; }
  .nav-right { gap: 2px; }
  .nav-item {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 11px;
  }
}

/* ── Mobile menu overlay ── */
.mob-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s linear .3s;
}
.mob-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.mob-menu-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: 80px 28px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.mob-menu.is-open .mob-menu-inner {
  transform: translateX(0);
}
.mob-menu-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: var(--nav-touch-target);
  height: var(--nav-touch-target);
  min-width: var(--nav-touch-target);
  min-height: var(--nav-touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.mob-menu-close:hover,
.mob-menu-close:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
  outline: none;
}
body.admin-bar .mob-menu-close { top: 48px; }
body.admin-bar .mob-menu-inner { padding-top: 112px; }
@media (max-width: 782px) {
  body.admin-bar .mob-menu-close { top: 62px; }
  body.admin-bar .mob-menu-inner { padding-top: 126px; }
}
.mob-menu-section {
  margin-bottom: 28px;
}
.mob-menu-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 12px;
}
.mob-menu-label--nested {
  margin-top: 20px;
  margin-bottom: 6px;
}
.mob-menu-link {
  min-height: var(--nav-touch-target);
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s;
}
.mob-menu-link:hover { color: var(--orange); }
.mob-menu-link--disabled,
.mob-menu-link--disabled:hover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.38);
  cursor: default;
}
.mob-menu-link--section {
  color: #fff;
  cursor: default;
}
.mob-brand-link { display: flex; align-items: center; min-height: 40px; }
.mob-menu-brand-wordmark { --brand-wordmark-height: 18px; }
.mob-brand-section-label { display: flex; align-items: center; gap: 8px; }
.mob-menu-section-wordmark { --brand-wordmark-height: 10px; opacity: .72; }
.mob-menu-sub {
  min-height: var(--nav-touch-target);
  display: flex;
  align-items: center;
  padding: 8px 0 8px 12px;
  font-size: 15px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .2s;
}
.mob-menu-sub:hover { color: var(--orange); }
.burger:focus-visible,
.nav-icon:focus-visible,
.mob-menu-link:focus-visible,
.mob-menu-sub:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
body.mob-menu-open { overflow: hidden; }

/* ── P1+P2: Mobile responsive fixes ── */

/* P1: Footer → 1 column on very small screens */
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bot { flex-direction: column; gap: 8px; text-align: center; }
}

/* P1: About stats → 1 column on ≤400px */
@media (max-width: 400px) {
  .about-stats { grid-template-columns: 1fr !important; }
  .about-stats .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .about-stats .stat:last-child { border-bottom: 0; }
}

/* P2: Touch targets — one shared minimum for navigation controls */
@media (max-width: 980px) {
  .nav-icon {
    width: var(--nav-touch-target);
    height: var(--nav-touch-target);
    min-width: var(--nav-touch-target);
    min-height: var(--nav-touch-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* P2: 404 canvas responsive scaling */
.game-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
@media (max-width: 520px) {
  .game-wrap {
    overflow: hidden;
  }
  #gameCanvas {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 480 / 560;
  }
}

/* Fix: nav-inner grid for mobile — make room for burger */
@media (max-width: 980px) {
  .nav-inner {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 0 16px;
  }
  .nav-right {
    gap: 2px;
  }
}

/* Fix: narrow phones — hide search icon, shrink brand */
@media (max-width: 480px) {
  .nav-inner {
    grid-template-columns: auto 1fr !important;
    gap: 8px !important;
    padding: 0 12px !important;
  }
  .brand { font-size: 14px; }
  .brand-logo-image { width: 66px; }
  .nav .nav-brand-logo-image { width: 104px !important; }
  .nav-right { gap: 0 !important; }
  .nav-icon svg { width: 16px; height: 16px; }
}

/* === Mobile container + hero title fix (2026-05-26) === */
@media (max-width: 480px) {
  .container { padding: 0 16px; } .hero-title { font-size: clamp(32px, 10vw, 140px) !important; }
  .gk-hero h1 { font-size: clamp(32px, 11vw, 200px) !important; }
  .gx-hero h1, .gx-hero .title { font-size: clamp(30px, 10vw, 180px) !important; }
  .pt-head h1 { font-size: clamp(28px, 9vw, 140px) !important; }
  .about-hero h1 { font-size: clamp(32px, 9vw, 86px) !important; }
}

/* ====================================================================
   DAN-115 - dark theme cohesion
   Shared page canvas, typography and surfaces for internal templates.
   ==================================================================== */

html[data-theme="dark"] :is(
  .gk-catalog,
  .pdp-hero,
  .cart-page,
  .checkout-page,
  .acc-page,
  .about-page,
  .info-page,
  .pt-page,
  .b2b-login-page,
  .blog-page,
  .article-page,
  .legal-page,
  .page-404,
  .b2b-page,
  .gk-page,
  .cx-page:not(.cx-page--editor)
) {
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 360px at 50% 0, rgba(255, 85, 12, 0.065), transparent 72%),
    linear-gradient(180deg, #0a0b12 0, var(--dark-canvas) 520px);
}

/* Gamemir X keeps its violet identity, but uses the same dark canvas. */
html[data-theme="dark"] .gx-page {
  background:
    radial-gradient(ellipse 70% 360px at 50% 0, rgba(168, 85, 247, 0.07), transparent 72%),
    linear-gradient(180deg, #0a0b12 0, var(--dark-canvas) 520px);
}

html[data-theme="dark"] .gk-catalog::before,
html[data-theme="dark"] .pdp-hero::before,
html[data-theme="dark"] .bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 80px 80px;
}

html[data-theme="dark"] :is(
  .about-hero h1,
  .info-head h1,
  .pt-head h1,
  .b2b-login-hero h1,
  .blog-hero h1,
  .article-hero h1,
  .legal-hero h1,
  .b2b-head h1,
  .cart-head h1,
  .co-head h1,
  .acc-head h1,
  .cx-page:not(.cx-page--editor) .cx-head h1
) {
  color: var(--text);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  letter-spacing: 0;
}

html[data-theme="dark"] :is(
  .about-hero h1,
  .info-head h1,
  .pt-head h1,
  .b2b-head h1,
  .cart-head h1,
  .co-head h1,
  .acc-head h1,
  .cx-page:not(.cx-page--editor) .cx-head h1
) {
  font-size: clamp(48px, 5.6vw, 72px);
  line-height: 0.96;
}

html[data-theme="dark"] :is(
  .about-hero .eyebrow,
  .info-head .eyebrow,
  .pt-head .eyebrow,
  .b2b-login-hero .eyebrow,
  .blog-hero .eyebrow,
  .legal-hero .eyebrow,
  .article-hero .cat-tag
) {
  color: #b4b5c2;
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--dark-border);
  box-shadow: none;
}

html[data-theme="dark"] :is(
  .pt-head .sub,
  .info-head .sub,
  .about-hero .sub,
  .b2b-login-hero .sub
) {
  color: var(--dark-muted);
}

/* Contacts, delivery and partners follow one service-page geometry. */
html[data-theme="dark"] .info-wrap {
  width: 100%;
  max-width: 1280px;
  padding-right: 32px;
  padding-left: 32px;
}

html[data-theme="dark"] :is(.pt-head, .info-head) {
  padding: 38px 0 32px;
  text-align: left;
}

html[data-theme="dark"] .pt-head .inner {
  text-align: left;
}

html[data-theme="dark"] :is(.pt-head .sub, .info-head .sub) {
  max-width: 720px;
  margin: 18px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

html[data-theme="dark"] .pt-cards {
  gap: 18px;
  margin: 24px 0 64px;
}

html[data-theme="dark"] .pt-card {
  min-height: 284px;
  padding: 30px;
  cursor: default;
}

html[data-theme="dark"] .pt-form-section {
  padding: 0 0 96px;
}

html[data-theme="dark"] .pt-form-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  gap: 24px;
}

html[data-theme="dark"] .pt-form-card {
  padding: 36px;
}

html[data-theme="dark"] .pt-side-card {
  padding: 28px;
}

html[data-theme="dark"] .contact-direct {
  gap: 18px;
  margin: 12px 0 24px;
}

html[data-theme="dark"] .contact-direct .info-card {
  padding: 24px 28px;
}

html[data-theme="dark"] .info-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 96px;
}

/* The account template used a bare .wrap and could touch the viewport edge. */
html[data-theme="dark"] .acc-page > .wrap {
  width: 100%;
  max-width: 1480px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 32px;
  padding-left: 32px;
}

/* One surface hierarchy for product, commerce, account and content cards. */
html[data-theme="dark"] .gm-home-v2 .gk-product,
html[data-theme="dark"] .gk-catalog .gk-product,
html[data-theme="dark"] .gk-pdp .buy-panel,
html[data-theme="dark"] .cart-page :is(.items, .summary),
html[data-theme="dark"] .checkout-page :is(.co-card, .os, .order-summary),
html[data-theme="dark"] .acc-page :is(
  .acc-sidebar,
  .acc-user,
  .order,
  .profile-card,
  .requisites-card,
  .design-card,
  .security-card,
  .empty-state
),
html[data-theme="dark"] .about-page :is(.about-section, .brand-card),
html[data-theme="dark"] .info-page :is(.info-card, .pay-logo),
html[data-theme="dark"] .pt-page :is(.pt-card, .pt-form-card, .pt-side-card),
html[data-theme="dark"] .b2b-login-page :is(.b2b-login-card, .b2b-login-help),
html[data-theme="dark"] .blog-page .blog-card,
html[data-theme="dark"] .article-page .article-nav-item,
html[data-theme="dark"] .legal-page .legal-toc,
html[data-theme="dark"] .b2b-page :is(.partner-card, .hub-card),
html[data-theme="dark"] .cx-page:not(.cx-page--editor) :is(.step-card, .cx-bar) {
  background: linear-gradient(180deg, var(--dark-surface-raised), var(--dark-surface-soft));
  border-color: var(--dark-border);
  box-shadow: var(--dark-shadow);
}

html[data-theme="dark"] :is(
  .pt-card:hover,
  .info-card:hover,
  .about-section:hover,
  .brand-card:hover,
  .blog-card:hover,
  .b2b-page .partner-card:hover,
  .b2b-page .hub-card:hover
) {
  background: linear-gradient(180deg, #181923, var(--dark-surface-soft));
  border-color: var(--dark-border-strong);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

html[data-theme="dark"] :is(
  .contact-form input,
  .contact-form textarea,
  .contact-form select,
  .pt-fields input,
  .pt-fields textarea,
  .b2b-login-card input[type="text"],
  .b2b-login-card input[type="email"],
  .b2b-login-card input[type="password"]
) {
  color: var(--text) !important;
  background-color: var(--dark-surface-soft) !important;
  border-color: var(--dark-border-strong) !important;
}

html[data-theme="dark"] :is(
  .contact-form input:focus,
  .contact-form textarea:focus,
  .contact-form select:focus,
  .pt-fields input:focus,
  .pt-fields textarea:focus,
  .b2b-login-card input:focus
) {
  background-color: #101119 !important;
  border-color: var(--orange) !important;
}

html[data-theme="dark"] :is(.crumbs, .pt-card-desc, .brand-card-desc, .blog-card-excerpt) {
  color: var(--dark-muted);
}

@media (max-width: 1000px) {
  html[data-theme="dark"] :is(.info-stack, .pt-form-layout) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  html[data-theme="dark"] .info-wrap,
  html[data-theme="dark"] .acc-page > .wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  html[data-theme="dark"] :is(.pt-head, .info-head) {
    padding: 28px 0 24px;
  }

  html[data-theme="dark"] :is(
    .about-hero h1,
    .info-head h1,
    .pt-head h1,
    .b2b-head h1,
    .cart-head h1,
    .co-head h1,
    .acc-head h1,
    .cx-page:not(.cx-page--editor) .cx-head h1
  ) {
    font-size: clamp(36px, 11vw, 54px) !important;
    overflow-wrap: anywhere;
  }

  html[data-theme="dark"] :is(
    .pt-card,
    .pt-form-card,
    .pt-side-card,
    .info-card
  ) {
    padding: 24px 20px;
  }
}
