:root {
  color-scheme: dark;
  --bg: #071018;
  --text: #f4f7fb;
  --muted: #aeb8c2;
  --faint: #8b97a3;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --card: rgba(16, 22, 30, 0.9);
  --inset: rgba(7, 11, 16, 0.72);
  --radius: 22px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; color: var(--text); }
html { scrollbar-gutter: stable; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-size: 15px;
  line-height: 1.45;
  background-color: #071018;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a, button, .cat, .nav-link, .cart-btn, .btn, .tool {
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid rgba(170, 215, 255, 0.85); outline-offset: 2px; }
::selection { background: rgba(150, 200, 235, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 99px; }

.skip { position: absolute; left: -999px; top: 8px; background: white; color: #111; padding: 8px 12px; z-index: 80; }
.skip:focus { left: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; display: block; flex: none; }

.bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100lvh;
  min-height: 100lvh;
  max-height: 100lvh;
  pointer-events: none;
  overflow: hidden;
  background: #071018;
}
.bg::before,
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: blur(8px);
}
.bg::before {
  content: "";
  background: url("/static/bg-poster.jpg?v=6") center / cover no-repeat;
}
.bg-video {
  opacity: 0;
  transition: opacity .25s linear;
}
.bg-video.is-on { opacity: 1; }
.bg-canvas { display: none; }
.bg-video::-webkit-media-controls,
.bg-video::-webkit-media-controls-enclosure,
.bg-video::-webkit-media-controls-panel,
.bg-video::-webkit-media-controls-start-playback-button,
.bg-video::-webkit-media-controls-overlay-play-button,
.bg-video::-webkit-media-controls-overlay-enclosure {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
  pointer-events: none;
  width: 0 !important;
  height: 0 !important;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 16, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.page, .footer { position: relative; z-index: 1; }
html:not(.age-ok) { overflow: hidden; }
html:not(.age-ok) .header,
html:not(.age-ok) .page,
html:not(.age-ok) .footer,
html:not(.age-ok) .dock,
html:not(.age-ok) .skip { visibility: hidden; }
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(90, 150, 200, 0.16), transparent 52%),
    rgba(3, 7, 12, 0.62);
  backdrop-filter: blur(18px) saturate(1.1);
  transition: opacity .35s ease;
}
html.age-ok .age-gate { display: none; }
html.age-left,
html.age-left body { background: #05070a !important; background-image: none !important; }
html.age-left .age-gate,
html.age-left .header,
html.age-left .page,
html.age-left .footer,
html.age-left .dock,
html.age-left .bg,
html.age-left .skip { display: none !important; }
.age-gate.is-exit {
  opacity: 0;
  pointer-events: none;
}
.age-card {
  position: relative;
  width: min(460px, 100%);
  padding: 40px 32px 30px;
  text-align: center;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(22, 30, 40, 0.92), rgba(10, 14, 20, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: age-in .4s ease;
}
.age-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 180px;
  background: radial-gradient(circle, rgba(170, 215, 255, 0.18), transparent 68%);
  pointer-events: none;
}
.age-brand {
  position: relative;
  margin: 0 0 18px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: rgba(220, 232, 242, 0.72);
}
.age-mark {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(244, 247, 251, 0.88);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05), 0 12px 32px rgba(0, 0, 0, 0.35);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 26px;
}
.age-card h2 {
  position: relative;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.age-note {
  position: relative;
  margin: 12px auto 0;
  max-width: 320px;
  color: #b7c3ce;
  font-size: 14px;
  line-height: 1.45;
}
.age-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.age-yes, .age-no {
  height: 54px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.age-yes, .age-no { touch-action: manipulation; }
.age-yes { background: #f4f7fb; color: #12171c; border: 0; }
.age-yes:hover { background: white; transform: translateY(-1px); }
.age-yes:active { transform: none; }
.age-no { background: transparent; color: white; border: 1px solid rgba(255, 255, 255, 0.22); }
.age-no:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); }
.age-no:active { transform: none; }
.age-yes:disabled, .age-no:disabled { opacity: 0.55; cursor: default; transform: none; }
@keyframes age-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .age-card, .age-gate { animation: none; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-video, .bg-canvas { display: none !important; }
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  display: flex;
  align-items: center;
  padding-top: env(safe-area-inset-top);
  background: rgba(7, 12, 18, 0.28);
  backdrop-filter: blur(16px);
}
.header-inner, .page, .footer-inner {
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.logo {
  justify-self: start;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.12em;
  font-size: 22px;
  text-decoration: none;
  color: white;
  -webkit-touch-callout: none;
  user-select: none;
}
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.admin-tab[hidden] { display: none !important; }
.nav-link {
  text-decoration: none;
  color: #d5dde6;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
}
.nav-link.is-active { background: rgba(255, 255, 255, 0.1); color: white; }
.nav-link:hover { color: white; }
.tools { justify-self: end; display: flex; align-items: center; gap: 2px; }
.tool {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: white;
  text-decoration: none;
  border-radius: 12px;
}
.tool:hover { background: rgba(255, 255, 255, 0.06); }
.cart-link { position: relative; }
.badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #fff;
  color: #111;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.page { padding: 18px 0 56px; }
.footer { color: var(--faint); font-size: 13px; padding: 8px 0 calc(28px + env(safe-area-inset-bottom)); }
.dock { display: none; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }

.card, .panel, .tile, .search input, .sorter-btn, .mini {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cats {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 8px;
}
.cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  color: #c5ced6;
  background: rgba(14, 20, 28, 0.62);
  border: 1px solid var(--line);
}
.cat.is-active { background: rgba(255, 255, 255, 0.1); color: white; }
.cat:hover { background: rgba(255, 255, 255, 0.08); color: white; }

.search { position: relative; display: block; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aa6b2; pointer-events: none; }
.search input[type="search"] {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  padding: 0 44px 0 44px;
  background: rgba(8, 12, 18, 0.72);
  box-shadow: none;
}
.search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d5dde6;
  font-size: 22px;
  line-height: 1;
}
.search-clear:hover { background: rgba(255, 255, 255, 0.08); }
.search input[type="search"]::placeholder { color: #8e99a4; }
.search input[type="search"]:focus { outline: none; border-color: rgba(160, 210, 255, 0.45); box-shadow: 0 0 0 3px rgba(120, 180, 230, 0.12); }
.hit-menu {
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: min(420px, 60vh);
  overflow: auto;
}
.search > .hit-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 25;
  border-radius: 14px;
  background: #161d27;
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.hit-menu a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
}
.hit-menu [role="option"].is-active a,
.hit-menu a:hover { background: rgba(255, 255, 255, 0.08); }
.hit-menu img,
.search-ph {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.search-ph { display: block; }
.search-hit-name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-hit-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.hit-menu b { font-size: 13px; font-weight: 650; white-space: nowrap; }
.search-hint { color: var(--muted); font-size: 13px; padding: 10px 12px; }
.search-hint a { display: inline; padding: 0; color: #d5e6f5; grid-template-columns: none; }

.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 18px 0 16px; }
h1 { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.found { margin-top: 6px; color: var(--muted); font-size: 14px; }
.sorter { position: relative; }
.sorter-btn {
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  background: rgba(8, 12, 18, 0.55);
}
.sorter-btn b { font-weight: 600; }
.sorter-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 15;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  background: #161d27;
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.sorter-menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: white;
  border-radius: 8px;
  padding: 8px 10px;
}
.sorter-menu button[aria-selected="true"],
.sorter-menu button:hover { background: rgba(255, 255, 255, 0.08); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 540px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 26%),
    rgba(16, 22, 30, 0.9);
}
.card:hover { border-color: rgba(180, 220, 255, 0.28); }
.card.in-cart {
  border-color: rgba(200, 230, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(180, 220, 255, 0.22), var(--shadow);
}
.art-link { position: relative; text-decoration: none; color: inherit; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.pill {
  font-size: 12px;
  color: #d5dde4;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 4px 10px;
}
.art { height: 188px; display: grid; place-items: center; }
.name {
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.name:hover { color: #d7ecff; }
.price { font-size: 20px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.price-lg { font-size: 32px; margin: 8px 0; }
.desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.45em * 3);
}
.desc-open { display: block; -webkit-line-clamp: unset; min-height: 0; overflow: visible; }
.meta { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 14px; }
.meta-label { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12.5px; }
.specs ul, .specs-block ul { margin: 8px 0 0; padding: 0; list-style: none; }
.specs li, .specs-block li {
  position: relative;
  padding-left: 12px;
  margin: 3px 0;
  color: #c3ccd4;
  font-size: 12.5px;
}
.specs li::before, .specs-block li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9aa6b2;
  position: absolute;
  left: 0;
  top: 0.55em;
}
.stock { min-width: 118px; }
.stock p, .stock-line { margin: 8px 0 0; color: #d5dde4; font-size: 13px; }
.buy {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}
.card.in-cart .buy,
#product-buy.in-cart {
  grid-template-columns: minmax(0, 1.2fr) minmax(96px, 0.9fr);
}
.buy .cart-btn {
  width: 100%;
  min-width: 0;
  height: 40px;
  box-sizing: border-box;
  white-space: nowrap;
}
.buy .cart-btn[hidden] { display: none !important; }
.card.in-cart [data-add],
#product-buy.in-cart [data-add] { display: none; }
.cart-remove {
  background: transparent;
  color: #d7dee6;
}
.cart-remove:hover { background: rgba(255, 255, 255, 0.08); color: white; }
.qty-menu[hidden] { display: none !important; }
.buy .qty-menu {
  width: 100%;
  justify-content: space-between;
}
.stepper {
  display: inline-flex;
  align-items: center;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
}
.stepper button {
  width: 36px;
  height: 40px;
  border: 0;
  background: transparent;
  color: white;
}
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: white;
  text-decoration: none;
}
.cart-btn:hover, .btn:hover { background: rgba(255, 255, 255, 0.08); }
.card.in-cart .cart-btn.is-in-cart,
#product-buy.in-cart .cart-btn.is-in-cart {
  font-weight: 700;
}
.cart-btn:disabled { opacity: 0.45; cursor: default; }
.btn { height: 44px; padding: 0 16px; }
.btn.primary { background: #f4f7fb; color: #12171c; border-color: transparent; font-weight: 700; }
.btn.primary:hover { background: white; }
.btn.primary:disabled { opacity: 0.6; cursor: default; }
.empty { margin: 28px 0; color: var(--muted); text-align: center; display: grid; justify-items: center; gap: 14px; }

.stage { display: grid; place-items: center; }
.device { width: 64px; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.45)); }
.device .tip { width: 40px; height: 22px; border-radius: 10px 10px 4px 4px; background: linear-gradient(#3a414a, #1c2128); position: relative; z-index: 1; }
.device .tip i { position: absolute; left: 8px; right: 8px; top: 7px; height: 4px; border-radius: 4px; background: var(--accent, #9fd4ff); box-shadow: 0 0 8px var(--accent, #9fd4ff); }
.device .stem {
  width: 58px; height: 118px; margin-top: -6px; border-radius: 14px;
  background: linear-gradient(180deg, #2c333c, #14181d 28%, #0c0e12);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.device-argus .stem { height: 128px; background: linear-gradient(180deg, #2a2e33, #111 30%, #0a0a0c); }
.device-argus .tip { background: linear-gradient(#4a515a, #22262b); }
.device .stem span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  letter-spacing: 0.18em; font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, 0.55);
  max-height: 78px; overflow: hidden;
}
.ebar {
  width: 92px; height: 136px; border-radius: 28px; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #f4fbff 0%, #b7e6fb 40%, #7ec8ea 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45), 0 16px 24px rgba(0, 0, 0, 0.35);
}
.ebar.generic {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 45%, white), var(--accent));
}
.ebar::before {
  content: ""; position: absolute; top: 10px; left: 50%; width: 22px; height: 7px;
  transform: translateX(-50%); border-radius: 4px; background: rgba(0, 0, 0, 0.16);
}
.ebar::after {
  content: ""; position: absolute; left: 12px; top: 22px; bottom: 18px; width: 8px; border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
}
.ebar span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: white;
  text-shadow: 0 1px 2px rgba(20, 60, 90, 0.35);
  max-height: 100px; overflow: hidden; z-index: 1;
}
.jbottle { display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.4)); }
.jbottle .cap { width: 28px; height: 16px; border-radius: 4px 4px 2px 2px; background: linear-gradient(#2a2e33, #0e1013); }
.jbottle .neck { width: 14px; height: 8px; background: #1a1e24; }
.jbottle .jar {
  width: 64px; height: 82px; border-radius: 8px 8px 12px 12px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #2a3140, #12161c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.jbottle .lbl {
  position: absolute; left: 5px; right: 5px; top: 14px; bottom: 8px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #04221f));
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4px;
}
.jbottle .lbl b { font-size: 9px; letter-spacing: 0.08em; color: white; font-weight: 800; }
.jbottle .lbl i { font-style: normal; font-size: 8px; color: white; font-weight: 700; margin-top: 2px; }
.leaf { width: 46px; height: 18px; margin-top: 3px; }
.tin {
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #f7fbff, #c5d0dc 42%, #8b98a8 72%, #e7eef5);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.35), inset 0 0 0 7px rgba(255, 255, 255, 0.35);
}
.tin span {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(16, 20, 26, 0.86); color: white; font-size: 11px; font-weight: 800;
  letter-spacing: 0.04em; text-align: center; padding: 8px;
}
.coil {
  width: 72px; height: 112px; border-radius: 16px; position: relative;
  background: linear-gradient(180deg, #e4eaf0, #8e99a6 42%, #5c6772);
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.35);
}
.coil::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: -8px; height: 20px; border-radius: 7px; background: #2c323a;
}
.coil::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 18px; height: 8px; border-radius: 6px; background: var(--accent, #9fd4ff);
}
.coil span {
  position: absolute; left: 4px; right: 4px; bottom: 34px; text-align: center;
  font-size: 11px; font-weight: 800; color: #1c222a;
}
.photo { width: 180px; height: 180px; object-fit: contain; margin: 8px auto; }
.photo-lg { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.hero { padding: 18px 0 8px; max-width: 760px; }
.eyebrow { letter-spacing: 0.16em; text-transform: uppercase; color: #9ec9e8; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.hero h1 { font-size: 52px; line-height: 1.02; letter-spacing: -0.03em; }
.lead { color: #c5d0da; font-size: 18px; max-width: 540px; margin: 12px 0 18px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 26px 0 8px; }
.tile {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px;
  text-decoration: none; min-height: 92px;
}
.tile span { color: #c5d0da; }
.tile b { font-size: 26px; }
.tile:hover { border-color: rgba(180, 220, 255, 0.28); }
.section-title { margin: 26px 0 14px; font-size: 22px; scroll-margin-top: 88px; }

.product-grid, .checkout, .cart-layout {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; align-items: start;
}
.product-grid { align-items: stretch; }
.checkout { grid-template-columns: 1.35fr 0.75fr; }
.contact-card { max-width: 640px; }
.panel { border-radius: var(--radius); padding: 20px; }
.product-hero {
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  min-height: 420px;
}
.product-hero .photo-lg {
  width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
}
.product-hero:has(.art) {
  padding: 20px;
}
.product-hero .art { height: 340px; }
.product-hero .stage { transform: scale(1.35); }
.crumbs { color: var(--muted); margin-bottom: 14px; font-size: 14px; }
.crumbs a { color: #d5e6f5; text-decoration: none; }
.crumbs span { margin: 0 6px; }
.product-info h1 { margin-top: 12px; }
.specs-block { margin-top: 8px; }
.rel-block { margin-top: 8px; }
.rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mini {
  display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; text-decoration: none; min-width: 0;
}
.mini:hover { border-color: rgba(180, 220, 255, 0.28); }
.mini .photo {
  width: 100%;
  height: 132px;
  margin: 0;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}
.mini .art { height: 132px; overflow: hidden; display: grid; place-items: center; }
.mini .stage { transform: scale(0.72); }
.mini-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-price { color: white; font-weight: 650; }
.mini-stock { color: var(--faint); font-size: 12px; }
.narrow { max-width: 640px; }
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list b { font-weight: 600; color: var(--muted); flex: none; }
.contact-list span { text-align: right; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-actions .btn { min-width: 180px; }
.field { margin-bottom: 12px; }
.field label, .label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input:not([type]), textarea {
  width: 100%;
  background: var(--inset);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: rgba(160, 210, 255, 0.45); }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px 12px; cursor: pointer;
}
.choice:has(input:checked) { background: rgba(255, 255, 255, 0.08); }
.form-error { color: #ffb4b4; min-height: 0; margin: 0 0 10px; }
.form-error:empty { display: none; }
.form-ok { color: #b7f0c8; margin: 8px 0; }
.fine { color: var(--faint); font-size: 13px; margin-top: 10px; }
.summary { position: sticky; top: 90px; }
.sum-line, .cart-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum-line.total { border-bottom: 0; font-size: 18px; padding-top: 14px; }
.summary .btn { width: 100%; margin-top: 14px; }
.cart-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; }
.cart-row a { font-weight: 700; text-decoration: none; }
.cart-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-row.is-sold,
.product.is-sold .product-grid,
.sum-line.is-sold {
  filter: grayscale(1);
  opacity: 0.72;
}
.cart-row.is-sold .stepper { visibility: hidden; }
.sold-tag {
  margin: 0;
  color: #b8c0c8;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}
.cart-row.is-sold .sold-tag { margin: 4px 0 0; }
.buy.is-sold { grid-template-columns: 1fr; }
.muted { color: var(--muted); font-size: 13px; }
.text-btn { background: transparent; border: 0; color: #d5dde4; padding: 8px; }
.empty-cart { grid-column: 1 / -1; }
.empty-cart .btn { margin-top: 14px; }
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 90;
  transform: translateX(-50%) translateY(8px);
  background: #f4f7fb; color: #12171c; border-radius: 999px;
  padding: 10px 16px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .15s linear, transform .15s linear;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

body.is-sheet { overflow: hidden; }
body.is-sheet .page { z-index: 80; }
body.is-sheet #cart-app { visibility: hidden; }
.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(5, 10, 16, 0.82);
  backdrop-filter: blur(16px);
  overflow: auto;
}
.checkout-card {
  position: relative;
  width: min(920px, 100%);
  margin: auto;
  padding: 28px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
}
.checkout-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.checkout-note {
  color: var(--muted);
  margin-top: 8px;
  max-width: 46ch;
}
.icon-x {
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #d5dde4;
}
.icon-x:hover { background: rgba(255, 255, 255, 0.06); }
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.75fr);
  gap: 24px 28px;
  align-items: start;
}
.checkout-sum {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.checkout-sum .label { margin-bottom: 8px; }
.checkout-card .summary { position: static; }
.choices.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.choices.pair .choice { justify-content: center; margin: 0; }
.checkout-card textarea { min-height: 88px; }
.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 4px;
}
.sheet-actions .btn { width: 100%; }
.done-card { width: min(480px, 100%); }
.done-card .icon-x { position: absolute; top: 18px; right: 18px; }
.order-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0 16px;
}
.order-copy code {
  flex: 1;
  min-width: 180px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--inset);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .grid, .rel { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .product-grid, .checkout, .cart-layout, .checkout-grid, .choices.pair, .sheet-actions { grid-template-columns: 1fr; }
  .cats {
    flex-wrap: wrap;
    overflow: visible;
    justify-content: flex-start;
    margin: 12px 0 4px;
    padding: 0;
    gap: 6px;
  }
  .cat { white-space: nowrap; padding: 7px 12px; font-size: 13px; }
  .summary { position: static; }
  .hero h1 { font-size: 36px; }
  .split { grid-template-columns: 1fr; }
  .cart-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas: "photo info total" "photo step del";
    align-items: center;
  }
  .cart-row > :nth-child(1) { grid-area: photo; }
  .cart-row > :nth-child(2) { grid-area: info; }
  .cart-row > :nth-child(3) { grid-area: step; justify-self: start; }
  .cart-row > :nth-child(4) { grid-area: total; }
  .cart-row > :nth-child(5) { grid-area: del; justify-self: end; }
  .cart-thumb { width: 64px; height: 64px; }
  .checkout-card { padding: 20px 16px; }
  .checkout-sum { order: -1; }
  .sheet { padding: 12px; align-items: start; }
  .bg {
    width: var(--bgw, 100%);
    height: var(--bgh, 100dvh);
    min-height: 0;
    max-height: none;
  }
  .bg::before {
    filter: blur(4px);
    transform: none;
    background-size: cover;
    background-position: center;
  }
  .bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0 !important;
    filter: none;
    transform: none;
    z-index: 0;
  }
  .bg-canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0;
    filter: blur(4px);
    transform: none;
  }
  .bg-canvas.is-on { opacity: 1; }
  .bg::after {
    background: rgba(5, 10, 16, 0.14);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .toolbar { flex-wrap: wrap; align-items: stretch; }
  .sorter, .sorter-btn { width: 100%; }
  .sorter-menu { left: 0; right: 0; min-width: 0; }
  .product-hero { min-height: 280px; padding: 20px; }
  .product-hero .art { height: 240px; }
  .product-hero .stage { transform: scale(1.05); }
  .buy { flex-wrap: unset; }
  .buy .cart-btn, .product-info .buy .cart-btn { flex: unset; min-width: 0; }
  .contact-list li { flex-direction: column; gap: 4px; align-items: flex-start; }
  .contact-list span { text-align: left; }
  .contact-actions .btn { min-width: 0; flex: 1; }
  .crumbs { overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  html { -webkit-text-size-adjust: 100%; }
  input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="password"], input[type="number"], input:not([type]), textarea, select {
    font-size: 16px;
  }
  .header {
    height: auto;
  }
  .header-inner {
    width: min(calc(100% - 24px), 1220px);
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "logo nav";
    gap: 8px;
    padding: 10px 0;
  }
  .logo { grid-area: logo; font-size: 15px; letter-spacing: 0.05em; }
  .tools { display: none; }
  .nav { grid-area: nav; justify-content: flex-end; width: auto; min-width: 0; }
  .nav-link { padding: 7px 11px; font-size: 13px; }
  .nav-link[href="/"] { display: none; }
  .nav-link[href="/contacts"] {
    color: white;
    font-weight: 700;
    padding: 8px 14px;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
  }
  .nav-link[href="/contacts"].is-active {
    background: rgba(255, 255, 255, 0.2);
  }
  .page, .footer-inner { width: min(calc(100% - 24px), 1220px); }
  .page { padding: 10px 0 calc(88px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(7, 12, 18, 0.92);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line-strong);
  }
  .dock-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: #b7c3ce;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
  }
  .dock-link .ico { width: 22px; height: 22px; }
  .dock-link.is-active { color: white; background: rgba(255, 255, 255, 0.08); }
  .dock-cart { position: relative; display: grid; place-items: center; }
  .dock-cart .badge { top: -4px; right: -10px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rel { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card {
    padding: 14px 14px 12px;
    border-radius: 18px;
    contain-intrinsic-size: auto 520px;
  }
  .card .desc { display: none; }
  .card .meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }
  .card .meta-label { font-size: 12.5px; }
  .card .specs li { font-size: 13px; margin: 3px 0; }
  .card .stock p { font-size: 13px; margin: 6px 0 0; }
  .card .name {
    font-size: 18px;
    line-height: 1.3;
  }
  .card .price { font-size: 20px; }
  .card .photo,
  .card .art {
    width: 100%;
    height: 200px;
    margin: 8px 0 10px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 14px;
    object-fit: contain;
  }
  .card .stage { transform: scale(0.92); }
  .card .buy { gap: 6px; padding-top: 8px; }
  .card .cart-btn { width: 100%; height: 40px; font-size: 12px; padding: 0 8px; }
  .pill { font-size: 11px; padding: 3px 8px; }
  h1 { font-size: 22px; }
  .toolbar { margin: 8px 0 12px; }
  .product-hero { padding: 16px; min-height: 240px; }
  .product-info .buy { gap: 8px; }
  .contact-actions .btn { white-space: nowrap; font-size: 13px; padding: 0 10px; }
  .hero { padding-top: 8px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .tile { min-height: 76px; padding: 12px; }
  .tile b { font-size: 22px; }
  .age-gate { padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .age-card { padding: 28px 18px 22px; }
  .age-card h2 { font-size: 30px; }
  .age-actions { grid-template-columns: 1fr; }
  .age-yes, .age-no { height: 48px; }
  .sheet {
    padding: 0;
    align-items: end;
    place-items: end stretch;
  }
  .checkout-card {
    width: 100%;
    max-height: min(96dvh, calc(100dvh - env(safe-area-inset-top)));
    border-radius: 22px 22px 0 0;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  }
  .checkout-grid { gap: 16px; }
  .sheet-actions, .choices.pair { grid-template-columns: 1fr; }
  .sheet-actions .btn, .btn, .cart-btn { min-height: 44px; }
  .done-card { border-radius: 22px 22px 0 0; }
  .toast { max-width: calc(100% - 24px); }
  .footer-inner { flex-direction: column; gap: 8px; }
}
@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr; }
  .header-inner, .page, .footer-inner { width: min(calc(100% - 16px), 1220px); }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}
