:root {
  --bg: #07080a;
  --bg-2: #101318;
  --bg-3: #171b22;
  --ink: #f6f3ec;
  --muted: #9aa3b2;
  --line: rgba(246, 243, 236, 0.12);
  --orange: #ff6600;
  --orange-2: #ff8a1a;
  --orange-hot: #ff3d00;
  --orange-dim: rgba(255, 102, 0, 0.18);
  --ok: #7dca6a;
  --danger: #ff5a5a;
  --radius: 10px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --font-brand: "Teko", "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --font-display: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1200px;
  --header-h: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(255, 102, 0, 0.22), transparent 58%),
    radial-gradient(700px 420px at 0% 18%, rgba(255, 61, 0, 0.1), transparent 52%),
    linear-gradient(180deg, #0e1116 0%, var(--bg) 42%, #050607 100%);
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.shell {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(7, 8, 10, 0.72);
  border-bottom: 1px solid rgba(255, 102, 0, 0.12);
}

.topbar-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(140px, auto) minmax(0, 1fr) minmax(220px, auto);
  align-items: center;
  gap: 0.75rem 1rem;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
  min-width: 0;
  z-index: 3;
  flex: 0 0 auto;
  grid-column: 1;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
}

.logo img.logo-mark {
  width: 34px;
  height: 34px;
}

.logo-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  font-family: var(--font-brand);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.logo-orange {
  color: var(--ink);
}

.logo-store {
  color: var(--orange);
}

.brand-rail {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 1.4vw, 0.9rem);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: auto;
  justify-self: stretch;
  padding-inline: 0.35rem 0.75rem;
  box-sizing: border-box;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.94;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.brand-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 28px;
  object-fit: contain;
}

.brand-logo--ktm {
  flex: 0 1 6.5rem;
}

.brand-logo--hqv {
  flex: 0 1 3.2rem;
}

.brand-logo--gas {
  flex: 0 1 3.2rem;
}

.brand-logo--ktm img {
  max-height: 28px;
}

.brand-logo--hqv img {
  max-height: 36px;
}

.brand-logo--gas img {
  max-height: 34px;
}

.topbar-end {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
  z-index: 3;
  flex: 0 0 auto;
}

.topbar-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
  line-height: 1.1;
  margin-right: 0.2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 102, 0, 0.18);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 102, 0, 0.08), rgba(255, 102, 0, 0.02));
}

.topbar-phone {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.topbar-phone:hover {
  color: var(--orange-2);
}

.topbar-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 0.55rem;
}

.topbar-links-sep {
  width: 1px;
  height: 0.85rem;
  background: rgba(246, 243, 236, 0.18);
}

.topbar-mail,
.topbar-messenger {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}

.topbar-mail:hover,
.topbar-messenger:hover {
  color: var(--orange-2);
}

.topbar-messenger img {
  display: block;
  width: 14px;
  height: 14px;
}

.nav-power {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-power:hover,
.nav-power.is-active {
  color: var(--ink);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  min-width: 160px;
  max-width: 280px;
  flex: 1 1 180px;
}

.search-wrap input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.search-wrap input::placeholder {
  color: #6d7480;
}

.icon-btn {
  display: none;
}


/* Floating contact + cart */
.fab-stack {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.fab-contact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.fab-contact-toggle {
  background: var(--bg-3);
  color: var(--ink);
}

.fab-contact.is-open .fab-contact-toggle {
  background: #1a1f27;
  border-color: rgba(255, 102, 0, 0.45);
  color: var(--orange);
}

.fab-contact-menu {
  min-width: 220px;
  padding: 0.45rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(12, 13, 16, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.fab-contact-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  color: var(--ink);
  transition: background 0.15s ease;
}

.fab-contact-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.fab-contact-link span {
  color: var(--muted);
  font-size: 0.82rem;
}

.fab-contact-link strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.fab-contact-link img {
  width: 18px;
  height: 18px;
}

.fab-cart {
  position: relative;
  background: linear-gradient(135deg, var(--orange-hot), var(--orange) 55%, var(--orange-2));
  color: #0c0d10;
}

.fab-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #0c0d10;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  border: 2px solid var(--orange);
}

.fab-cart-count:empty,
.fab-cart-count[data-empty="1"] {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(94vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    url("../assets/hero/hero-moto.jpg") 68% 42% / cover no-repeat;
  filter: brightness(1.12) contrast(1.08) saturate(1.15);
  transform: scale(1.08);
  animation: hero-drift 22s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(5, 6, 8, 0.94) 0%, rgba(5, 6, 8, 0.78) 28%, rgba(5, 6, 8, 0.22) 58%, rgba(5, 6, 8, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.22) 0%, transparent 30%, rgba(5, 6, 8, 0.55) 100%);
}

.hero-glow {
  position: absolute;
  inset: auto -8% -28% auto;
  width: 58%;
  height: 70%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.34), transparent 68%);
  filter: blur(18px);
  animation: pulse 5.5s ease-in-out infinite;
}

.hero-speed {
  position: absolute;
  inset: 18% -10% auto auto;
  width: 55%;
  height: 2px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.75), transparent);
  transform: skewY(-8deg);
  filter: blur(0.5px);
  animation: speed-line 3.8s ease-in-out infinite;
  opacity: 0.55;
}

.hero-speed::before,
.hero-speed::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.hero-speed::before {
  top: -14px;
  opacity: 0.5;
}

.hero-speed::after {
  top: 18px;
  opacity: 0.35;
}

.hero-copy {
  padding: clamp(5.5rem, 14vh, 8.5rem) 0 clamp(2.8rem, 7vh, 4.5rem);
  max-width: 44rem;
}

.hero-brand {
  margin: 0 0 1rem;
  line-height: 1;
}

.hero-brand .logo-word {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  gap: 0.3em;
}

.hero-brand .logo-mark {
  width: clamp(42px, 7vw, 64px);
  height: clamp(42px, 7vw, 64px);
}

.hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.55));
}

.hero-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-brand);
  font-size: clamp(3.4rem, 8.2vw, 6.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.88;
  text-transform: uppercase;
  max-width: 11ch;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.hero-lead {
  margin: 0 0 1.7rem;
  color: rgba(246, 243, 236, 0.78);
  max-width: 36ch;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(244, 241, 234, 0.14);
  max-width: 34rem;
}

.hero-phone {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: color 0.2s ease;
}

.hero-phone:hover {
  color: var(--orange-2);
}

.hero-contacts-sep {
  width: 1px;
  height: 1.1rem;
  background: rgba(244, 241, 234, 0.22);
}

.hero-messenger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.hero-messenger svg {
  width: 1.05rem;
  height: 1.05rem;
  opacity: 0.85;
}

.hero-messenger:hover {
  color: var(--ink);
}

.hero-messenger:hover svg {
  opacity: 1;
  color: var(--orange);
}

@media (max-width: 520px) {
  .hero-contacts-sep {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.8rem 1.4rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--orange-hot), var(--orange) 45%, var(--orange-2));
  color: #0c0d10;
  box-shadow: 0 10px 36px rgba(255, 102, 0, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 44px rgba(255, 102, 0, 0.48);
}

.btn-ghost {
  border: 1px solid rgba(246, 243, 236, 0.22);
  background: rgba(7, 8, 10, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(255, 102, 0, 0.55);
  background: rgba(255, 102, 0, 0.1);
}

.deal-bar {
  border-bottom: 1px solid rgba(255, 102, 0, 0.22);
  background: linear-gradient(90deg, rgba(255, 102, 0, 0.16), rgba(7, 8, 10, 0.92) 40%, rgba(7, 8, 10, 0.92) 60%, rgba(255, 102, 0, 0.16));
}

.deal-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deal-bar strong {
  color: var(--orange-2);
  margin: 0 0.15em;
}

.marquee {
  border-top: 1px solid rgba(255, 102, 0, 0.28);
  border-bottom: 1px solid rgba(255, 102, 0, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 102, 0, 0.14), rgba(7, 8, 10, 0.9) 22%, rgba(7, 8, 10, 0.9) 78%, rgba(255, 102, 0, 0.14)),
    #0a0c10;
  overflow: hidden;
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.4rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.marquee strong {
  color: var(--orange-2);
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.7);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.sale-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(11, 12, 14, 0.82), rgba(11, 12, 14, 0.72)),
    url("../assets/banner-summer.jpg") center/cover no-repeat;
}

.sale-strip .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  font-size: 0.95rem;
}

.sale-strip strong {
  color: var(--orange-2);
}

/* Sections */
section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(2.8rem, 5.6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.9;
}

.section-head p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.02rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--orange-hot), var(--orange));
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.7);
}

/* Picker */
#picker {
  scroll-margin-top: calc(var(--header-h, 72px) + 12px);
}

.picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
  animation: rise 0.7s ease both;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field select,
.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  outline: none;
}

.field select:focus,
.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 106, 0, 0.55);
  box-shadow: 0 0 0 3px var(--orange-dim);
}

.phone-field {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--text);
}

.phone-field:focus-within {
  border-color: rgba(255, 106, 0, 0.55);
  box-shadow: 0 0 0 3px var(--orange-dim);
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
  border-right: 1px solid var(--line);
  user-select: none;
}

.phone-field input {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-height: 44px;
  background: transparent !important;
  letter-spacing: 0.04em;
}

.phone-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.picker .btn {
  align-self: end;
}

/* Chips / brands */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  transition: 0.2s ease;
}

.chip:hover,
.chip.is-active {
  color: var(--ink);
  border-color: rgba(255, 106, 0, 0.5);
  background: var(--orange-dim);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.product {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(246, 243, 236, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    #101318;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  animation: rise 0.55s ease both;
  position: relative;
}

.product::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.product:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 102, 0, 0.45);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 102, 0, 0.08);
}

.product:hover::before {
  opacity: 1;
}

.product-visual {
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 102, 0, 0.2), transparent 45%),
    linear-gradient(145deg, #1c2028, #101318 70%);
  position: relative;
  overflow: hidden;
}

.product-visual.has-photo {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 102, 0, 0.12), transparent 40%),
    #12161d;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.85rem;
  transition: transform 0.35s ease;
}

.product:hover .product-visual img {
  transform: scale(1.04);
}

.product-visual--detail {
  min-height: 320px;
  border-radius: 16px;
  border: 1px solid var(--line);
  aspect-ratio: auto;
}

.product-visual--detail img {
  padding: 1.25rem;
}

.product-visual span {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.12);
}

.product-visual-brand {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem) !important;
  letter-spacing: 0.1em !important;
  text-align: center;
  padding: 0 0.75rem;
  color: rgba(246, 243, 236, 0.28) !important;
}

.badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.22rem 0.42rem;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--orange-hot), var(--orange));
  color: #0c0d10;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.28);
  z-index: 1;
}

/* Classic marketplace sale badge: solid red + white % (WB / Ozon / Lamoda style) */
.badge-sale {
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  color: #fff;
  background: #e31e24;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.badge.order {
  background: rgba(24, 28, 36, 0.88);
  color: rgba(246, 243, 236, 0.78);
  box-shadow: none;
  border: 1px solid rgba(246, 243, 236, 0.12);
  font-size: 0.58rem;
  padding: 0.18rem 0.38rem;
  letter-spacing: 0.05em;
}

.product-body {
  padding: 1rem 1rem 0.4rem;
  display: grid;
  gap: 0.35rem;
}

.product-body h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.sku {
  color: var(--muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-top: 0.35rem;
}

.price-sale {
  color: var(--orange-2);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.price-sale--lg {
  font-size: 2rem;
}

.price-retail {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.price-retail span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.92rem;
}

.price-discount {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  background: #e31e24;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
}

.product-actions .btn {
  flex: 1;
  min-height: 42px;
  font-size: 0.9rem;
}

/* Layout panels */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.1rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: grid;
  gap: 1rem;
}

.filters h3 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-list {
  display: grid;
  gap: 0.35rem;
}

.filter-list button {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--muted);
}

.filter-list button:hover,
.filter-list button.is-active {
  background: var(--orange-dim);
  color: var(--ink);
}

.catalog-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  flex: 1 1 220px;
  min-width: 0;
}

.catalog-search input {
  flex: 1 1 160px;
  min-width: 0;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
}

.catalog-search input:focus {
  outline: none;
  border-color: rgba(255, 106, 0, 0.55);
  box-shadow: 0 0 0 3px var(--orange-dim);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.muted {
  color: var(--muted);
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.qty button {
  width: 36px;
  height: 36px;
}

.qty span {
  min-width: 1.5rem;
  text-align: center;
}

.summary {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: grid;
  gap: 0.85rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.summary-total {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

/* Pages / content */
.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.9;
}

.page-hero p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 50ch;
  font-size: 1.05rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

/* Footer */
.footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #090a0c;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer h3 {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer a,
.footer p {
  display: block;
  margin: 0 0 0.45rem;
  color: #c7ccd6;
  font-size: 0.92rem;
}

.footer-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #6d7480;
  font-size: 0.78rem;
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.15rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.legal-check input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  accent-color: var(--orange);
}

.legal-check a {
  color: var(--orange-2);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.legal-doc {
  max-width: 760px;
  display: grid;
  gap: 0.85rem;
}

.legal-doc h3 {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
}

.legal-doc p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.legal-doc a {
  color: var(--orange-2);
}

/* Toast / modal */
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: min(360px, calc(100% - 2rem));
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #1c222d;
  border: 1px solid rgba(255, 106, 0, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  transition: 0.28s ease;
}

.toast.is-on {
  transform: translateY(0);
  opacity: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.is-on {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(520px, 100%);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #14171d;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.modal h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-transform: uppercase;
}

.modal p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

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

@keyframes hero-drift {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-2%, -1.2%, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-12px);
  }
}

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

@keyframes speed-line {
  0%,
  100% {
    opacity: 0.2;
    transform: skewY(-8deg) translateX(4%);
  }
  50% {
    opacity: 0.7;
    transform: skewY(-8deg) translateX(-2%);
  }
}

@media (max-width: 1280px) {
  .icon-btn {
    display: none;
  }

  .nav a {
    font-size: 0.88rem;
  }
}

@media (max-width: 1100px) {
  .unit-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-power {
    font-size: 0.85rem;
  }

  .topbar-phone {
    font-size: 1.05rem;
  }

  .topbar-contacts {
    padding: 0.3rem 0.55rem;
  }

  .brand-logo--ktm img {
    max-height: 22px;
  }

  .brand-logo--hqv img {
    max-height: 30px;
  }

  .brand-logo--gas img {
    max-height: 28px;
  }
}

@media (max-width: 960px) {
  .picker,
  .epc-picker,
  .product-grid,
  .catalog-layout,
  .cart-layout,
  .info-grid,
  .footer-grid,
  .scheme-layout {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-layout,
  .cart-layout,
  .scheme-layout {
    grid-template-columns: 1fr;
  }

  .unit-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .filters {
    position: static;
  }

  :root {
    --header-h: 64px;
  }

  .topbar-inner {
    gap: 0.45rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .brand-logo--ktm img {
    max-height: 20px;
  }

  .brand-logo--hqv img {
    max-height: 26px;
  }

  .brand-logo--gas img {
    max-height: 24px;
  }

  .logo-word {
    font-size: 1.25rem;
  }

  .logo-mark,
  .logo img.logo-mark {
    width: 28px;
    height: 28px;
  }

  .search-wrap {
    display: flex;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
  }

  .nav-power {
    font-size: 0.85rem;
  }

}

@media (max-width: 560px) {
  .logo-word .logo-store {
    display: none;
  }

  .brand-rail {
    display: none;
  }

  .topbar-inner {
    grid-template-columns: auto 1fr;
  }

  .topbar-end {
    grid-column: 2;
  }

  .topbar-messenger span {
    display: none;
  }

  .fab {
    width: 52px;
    height: 52px;
  }
}

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}

/* EPC picker */
.brand-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.brand-tab {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.brand-tab:hover {
  border-color: rgba(255, 102, 0, 0.4);
  color: var(--ink);
}

.brand-tab.is-active {
  color: #0c0d10;
  background: linear-gradient(120deg, var(--orange-hot), var(--orange) 50%, var(--orange-2));
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(255, 102, 0, 0.28);
}

.epc-count {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}

.epc-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 102, 0, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 102, 0, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(16, 19, 24, 0.9);
  box-shadow: var(--shadow);
}

#epc-model {
  max-width: 100%;
}

.epc-picker .field.is-hidden {
  opacity: 0.35;
  pointer-events: none;
}

.scheme-filter {
  display: flex;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}

.scheme-filter button {
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.scheme-filter button.is-active {
  color: #121212;
  background: var(--orange);
  border-color: transparent;
  font-weight: 600;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7rem;
}

.unit-card {
  position: relative;
  display: grid;
  gap: 0.45rem;
  place-items: center;
  text-align: center;
  padding: 0.75rem 0.5rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f2f2f2;
  color: #1a1a1a;
  min-height: 140px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.unit-card:hover,
.unit-card.is-active {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.22);
}

.unit-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.unit-card strong {
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 600;
}

.unit-num {
  position: absolute;
  top: 0.4rem;
  right: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #8a8a8a;
}

.scheme-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  align-items: start;
}

.scheme-canvas-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ececec;
  overflow: auto;
  max-height: 75vh;
}

.scheme-canvas {
  position: relative;
  margin: 0 auto;
  background: #fff;
  line-height: 0;
}

.scheme-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

/* Same anchors as ktmzip.ru: left + bottom of a ~26px hit target over the printed number. */
.scheme-point {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 102, 0, 0.95);
  background: rgba(255, 102, 0, 0.35);
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

.scheme-point.is-active,
.scheme-point:hover {
  background: rgba(255, 102, 0, 0.7);
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.45);
}

.parts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.parts-table th,
.parts-table td {
  padding: 0.65rem 0.45rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.parts-table .price-row {
  margin-top: 0;
}

.parts-table .price {
  font-size: 1.15rem;
}

.parts-table th {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.parts-table tr.is-active {
  background: var(--orange-dim);
}

.parts-table .sku {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.breadcrumb-epc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.breadcrumb-epc a {
  color: var(--orange-2);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.photo-strip a,
.photo-strip figure {
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(246, 243, 236, 0.1);
  background: #111;
  position: relative;
}

.photo-strip a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 6, 8, 0.55));
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.photo-strip a:hover img {
  transform: scale(1.08);
}

.photo-strip a:hover::after {
  opacity: 0.35;
}

.section-sale {
  position: relative;
}

.section-sale::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 280px at 90% 10%, rgba(255, 102, 0, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 102, 0, 0.03), transparent 40%);
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal.delay-1 { animation-delay: 0.08s; }
.reveal.delay-2 { animation-delay: 0.16s; }
.reveal.delay-3 { animation-delay: 0.24s; }
.reveal.delay-4 { animation-delay: 0.32s; }

.store-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.7rem;
}

.store-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #111;
  min-height: 180px;
}

.store-gallery figure:first-child {
  grid-row: span 2;
  min-height: 100%;
}

.store-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-messenger img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .photo-strip,
  .store-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .store-gallery figure:first-child {
    grid-row: auto;
    grid-column: span 2;
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .photo-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .search-wrap {
    display: flex;
    min-width: 0;
    max-width: none;
  }

  .topbar-contacts {
    display: none;
  }

  .picker,
  .epc-picker,
  .product-grid,
  .info-grid,
  .footer-grid,
  .cart-line,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .unit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 86vh;
  }

  .hero-media {
    background-position: 72% center;
  }

  .hero-title {
    max-width: 12ch;
  }

  .btn {
    clip-path: none;
    border-radius: 6px;
  }

  .top-actions .icon-btn {
    display: none;
  }
}
