:root {
  --bg: #12061e;
  --bg2: #1d0b2e;
  --pink: #ff2fb3;
  --pink2: #ff6ad5;
  --cyan: #22e4ff;
  --gold: #ffcc33;
  --green: #7dff3a;
  --text: #f6ecff;
  --muted: #b99ad1;
  --glass: rgba(32, 8, 46, .58);
  --line: rgba(255, 106, 213, .55);
  --display: 'Russo One', 'Exo 2', system-ui, sans-serif;
  --body: 'Exo 2', system-ui, sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--pink2); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- Background layers ---------- */
#vd-scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.bg-photo { position: fixed; inset: 0; z-index: 1; background-size: cover; background-position: center; pointer-events: none; mix-blend-mode: screen; }
.scanlines {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(8, 0, 16, .7) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px);
}
.site-header, .site-main, .site-footer { position: relative; z-index: 3; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(14, 3, 24, .92), rgba(14, 3, 24, .55));
  border-bottom: 1px solid rgba(255, 47, 179, .25);
  backdrop-filter: blur(6px);
  position: sticky; top: 0;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-palm { width: 54px; height: 54px; color: var(--pink); filter: drop-shadow(0 0 8px var(--pink)); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--display); font-size: clamp(22px, 2.6vw, 38px); font-style: italic;
  text-transform: uppercase; letter-spacing: .5px; transform: skewX(-8deg);
  text-shadow: 0 0 2px #fff, 0 0 14px rgba(255, 47, 179, .8), 3px 3px 0 #7a1157;
}
.logo-est {
  font-size: 13px; letter-spacing: 6px; color: #fff; margin-top: 6px; padding-left: 26px; position: relative; font-style: italic;
}
.logo-est::after { content: ''; position: absolute; left: 0; right: -10px; bottom: -6px; height: 2px; background: linear-gradient(90deg, transparent, var(--pink), transparent); }
.main-nav { margin-left: auto; display: flex; gap: clamp(14px, 3vw, 44px); }
.main-nav a {
  color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; font-size: 17px;
  padding: 8px 4px; position: relative; transition: color .2s, text-shadow .2s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; text-shadow: 0 0 10px var(--pink); }
.main-nav a.active::after {
  content: ''; position: absolute; left: -6px; right: -6px; bottom: -2px; height: 3px; border-radius: 3px;
  background: var(--pink); box-shadow: 0 0 10px var(--pink), 0 0 20px var(--pink);
}
.header-icons { display: flex; gap: 18px; margin-left: clamp(10px, 3vw, 60px); }
.icon-btn { position: relative; color: var(--pink); width: 40px; height: 40px; display: grid; place-items: center; filter: drop-shadow(0 0 6px var(--pink)); }
.icon-btn svg { width: 34px; height: 34px; }
.icon-btn:hover { color: #fff; }
.cart-count {
  position: absolute; top: -4px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--cyan); color: #12061e; font-size: 12px; font-weight: 800; display: grid; place-items: center; filter: none;
}

/* ---------- Common pieces ---------- */
.glass {
  background: var(--glass);
  border: 2px solid rgba(255, 106, 213, .75);
  border-radius: var(--radius);
  box-shadow: 0 0 18px rgba(255, 47, 179, .45), inset 0 0 24px rgba(255, 47, 179, .15);
  backdrop-filter: blur(10px) saturate(1.2);
}
.btn-neon {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--display); font-style: italic; text-transform: uppercase; letter-spacing: 1px;
  font-size: 22px; color: #fff; text-decoration: none; cursor: pointer;
  padding: 16px 34px; border-radius: 22px; border: 3px solid #fff;
  background: linear-gradient(180deg, rgba(120, 10, 90, .75), rgba(40, 4, 40, .85));
  box-shadow: 0 0 10px var(--pink), 0 0 26px var(--pink), inset 0 0 18px rgba(255, 47, 179, .55);
  transition: transform .15s, box-shadow .2s;
}
.btn-neon svg { width: 22px; height: 22px; }
.btn-neon:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 14px var(--pink), 0 0 40px var(--pink), inset 0 0 22px rgba(255, 47, 179, .7); }
.btn-neon:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-wide { width: 100%; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: 3px; font-style: italic; font-weight: 600;
  padding: 9px 22px; border: 2px solid var(--pink2); border-radius: 8px; background: rgba(40, 4, 40, .5); cursor: pointer; font-family: var(--body); font-size: 16px;
  box-shadow: 0 0 10px rgba(255, 47, 179, .6), inset 0 0 10px rgba(255, 47, 179, .25); transition: background .2s, box-shadow .2s;
}
.btn-outline svg { width: 16px; height: 16px; }
.btn-outline:hover { background: rgba(255, 47, 179, .22); box-shadow: 0 0 18px var(--pink); }
.btn-link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.badge {
  display: inline-block; font-family: var(--display); font-style: italic; text-transform: uppercase; letter-spacing: 1px;
  color: #160a1e; background: var(--b, var(--green)); padding: 2px 14px; border-radius: 4px; transform: skewX(-10deg);
  box-shadow: 0 0 12px var(--b, var(--green)); font-size: 18px;
}
.badge-lg { font-size: 22px; padding: 4px 18px; }
.panel-title {
  font-family: var(--display); font-style: italic; text-transform: uppercase; text-align: center; margin: 0;
  font-size: clamp(38px, 5vw, 64px); line-height: 1; color: #fff;
  text-shadow: 0 0 2px #fff, 0 0 14px rgba(255, 47, 179, .85), 3px 3px 0 #a0156f; transform: skewX(-6deg);
}
.panel-title-sm { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
.panel-sub, .hero-est {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  letter-spacing: 6px; text-transform: uppercase; color: #fff; margin: 10px 0 20px; font-size: 15px;
}
.panel-sub span, .hero-est span { flex: 0 1 70px; height: 2px; background: var(--pink2); box-shadow: 0 0 8px var(--pink); }
.flash { padding: 12px 16px; border-radius: 10px; margin: 0 0 14px; border: 1px solid; }
.flash-error { border-color: #ff4d6d; background: rgba(255, 77, 109, .15); color: #ffd0d9; }
.flash-ok { border-color: var(--green); background: rgba(125, 255, 58, .12); color: #e3ffd4; }
.status {
  display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 13px; font-weight: 700;
  color: var(--c); border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 160px); display: grid; align-content: center; justify-items: end;
  padding: 40px clamp(16px, 5vw, 70px); gap: 34px;
}
.hero-panel { width: min(600px, 100%); padding: 34px 40px 28px; text-align: center; position: relative; overflow: hidden; }
.hero-title {
  font-family: var(--display); font-style: italic; text-transform: uppercase; margin: 0; color: #fff;
  font-size: clamp(40px, 6vw, 80px); line-height: 1; transform: skewX(-8deg);
  text-shadow: 0 0 2px #fff, 0 0 18px rgba(255, 47, 179, .9), 4px 4px 0 #a0156f;
}
.hero-est { font-size: clamp(16px, 2vw, 26px); font-style: italic; letter-spacing: 10px; margin: 14px 0; }
.hero-tagline { font-style: italic; font-size: clamp(17px, 1.7vw, 22px); margin: 0 auto 50px; max-width: 420px; color: #fff; }
.hero-skyline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60px; opacity: .55;
  background: url('/assets/img/skyline.svg') bottom center / 100% 100% no-repeat;
}
.btn-enter { width: min(600px, 100%); font-size: clamp(24px, 3vw, 40px); padding: 20px 30px; }
.neon-wave { width: 100%; height: 90px; display: block; margin-top: -20px; position: relative; z-index: 3; }
.neon-wave path { fill: none; stroke: var(--pink2); stroke-width: 3; filter: drop-shadow(0 0 6px var(--pink)) drop-shadow(0 0 14px var(--pink)); }

.home-collection { padding: 10px clamp(16px, 5vw, 70px) 60px; text-align: center; }
.section-title { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: clamp(30px, 4vw, 46px); margin: 0; text-shadow: 0 0 14px var(--pink); }
.section-sub { color: var(--muted); margin: 6px 0 28px; letter-spacing: 1px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 520px)); gap: 26px; justify-content: center; text-align: left; }
.home-grid .pcard { background: var(--glass); backdrop-filter: blur(8px); }

/* ---------- Product card ---------- */
.pcard {
  display: grid; grid-template-columns: 210px 1fr; gap: 26px; align-items: center;
  padding: 18px; border: 2px solid rgba(255, 106, 213, .8); border-radius: 16px;
  box-shadow: 0 0 14px rgba(255, 47, 179, .5), inset 0 0 18px rgba(255, 47, 179, .15);
  transform-style: preserve-3d; transition: transform .15s ease-out, box-shadow .2s;
  will-change: transform;
}
.pcard:hover { box-shadow: 0 0 24px rgba(255, 47, 179, .8), inset 0 0 22px rgba(255, 47, 179, .25); }
.pcard-img { display: block; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); aspect-ratio: 1.15; transform: translateZ(30px); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard-img img { transform: scale(1.06); }
.pcard-body { transform: translateZ(20px); }
.pcard-name { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: clamp(28px, 3vw, 40px); margin: 0 0 6px; line-height: 1; transform: skewX(-6deg); text-shadow: 0 0 10px rgba(255, 47, 179, .6); }
.pcard-sub { letter-spacing: 4px; text-transform: uppercase; margin: 14px 0 6px; font-size: 14px; color: #fff; }
.pcard-price { color: var(--cyan); font-weight: 700; margin-bottom: 12px; }

/* ---------- Catalog ---------- */
.catalog { min-height: calc(100vh - 170px); display: grid; justify-items: end; align-content: center; padding: 34px clamp(16px, 4vw, 56px); }
.catalog-panel { width: min(640px, 100%); padding: 30px 28px; }
.catalog-list { display: grid; gap: 22px; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 30px clamp(16px, 4vw, 56px) 50px; align-items: start; }
.product-stage { position: relative; min-height: 560px; overflow: hidden; }
.candle-3d { position: absolute; inset: 0; cursor: grab; }
.candle-3d:active { cursor: grabbing; }
.candle-3d canvas { display: block; width: 100%; height: 100%; }
.stage-hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: 2px; pointer-events: none; }
.product-fallback { position: absolute; inset: 40px; width: calc(100% - 80px); height: calc(100% - 80px); object-fit: contain; display: none; }
.no-webgl .product-fallback { display: block; }
.product-info { padding: 30px; }
.product-name { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: clamp(40px, 5vw, 66px); line-height: 1; margin: 4px 0 12px; transform: skewX(-6deg); text-shadow: 0 0 2px #fff, 0 0 16px rgba(255, 47, 179, .8), 3px 3px 0 #a0156f; }
.product-desc { color: #eadcff; margin: 18px 0; }
.label { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; color: var(--muted); margin: 18px 0 8px; }
.sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span {
  display: inline-block; padding: 10px 18px; border: 2px solid rgba(255, 106, 213, .5); border-radius: 10px; cursor: pointer;
  font-weight: 600; letter-spacing: 1px; transition: all .15s; background: rgba(20, 2, 30, .5);
}
.size input:checked + span { border-color: var(--cyan); color: #fff; box-shadow: 0 0 12px var(--cyan), inset 0 0 10px rgba(34, 228, 255, .3); }
.size input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.size.out span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.price-row { display: flex; align-items: center; justify-content: space-between; margin: 22px 0; gap: 16px; }
.price { font-family: var(--display); font-size: 36px; color: var(--cyan); text-shadow: 0 0 12px rgba(34, 228, 255, .7); }
.qty { display: inline-flex; align-items: center; border: 2px solid rgba(255, 106, 213, .6); border-radius: 10px; overflow: hidden; }
.qty button { width: 40px; height: 42px; background: rgba(255, 47, 179, .15); color: #fff; border: 0; font-size: 22px; cursor: pointer; }
.qty button:hover { background: rgba(255, 47, 179, .35); }
.qty input { width: 52px; height: 42px; text-align: center; background: transparent; color: #fff; border: 0; font: inherit; font-size: 18px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ship-icons { display: flex; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.ship-icons > div { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.ship-icons img { height: 26px; width: auto; }

/* ---------- Narrow pages / forms ---------- */
.narrow { width: min(720px, calc(100% - 32px)); margin: 40px auto 60px; padding: 34px; }
.narrow.wide { width: min(900px, calc(100% - 32px)); }
.prose { font-size: 17px; margin-bottom: 26px; }
.form label { display: block; margin: 0 0 14px; font-weight: 600; font-size: 14px; letter-spacing: .5px; }
.form input:not([type=radio]):not([type=checkbox]), .form textarea, .form select, .promo-form input {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px; font: inherit; font-size: 16px;
  color: #fff; background: rgba(12, 2, 20, .65); border: 1.5px solid rgba(255, 106, 213, .45); outline: none; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus, .promo-form input:focus { border-color: var(--cyan); box-shadow: 0 0 10px rgba(34, 228, 255, .5); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 4px; accent-color: var(--pink); width: 18px; height: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; }

.cart-lines { display: grid; gap: 12px; margin-bottom: 20px; }
.cart-line { display: grid; grid-template-columns: 70px 1fr auto 110px 36px; gap: 14px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.cart-line img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.cl-name { color: #fff; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.cl-total { text-align: right; font-weight: 700; }
.cl-remove { background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; }
.cl-remove:hover { color: var(--pink); }
.promo-form { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.promo-form input { width: auto; flex: 1; min-width: 160px; margin: 0; text-transform: uppercase; }
.sum-table { width: 100%; border-collapse: collapse; margin: 10px 0 22px; }
.sum-table td { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.sum-table .r { text-align: right; white-space: nowrap; }
.sum-table .disc td { color: var(--green); }
.sum-table .total td { font-weight: 800; font-size: 20px; border-bottom: 0; padding-top: 14px; }
.sum-table .total .r { color: var(--pink2); }

.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; padding: 30px clamp(16px, 4vw, 56px) 60px; align-items: start; }
.checkout-form, .checkout-sum { padding: 30px; }
.checkout-sum { position: sticky; top: 110px; }
.sum-title { margin: 0 0 10px; text-transform: uppercase; letter-spacing: 2px; font-size: 18px; }
.couriers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.courier { margin: 0 !important; }
.courier input { position: absolute; opacity: 0; }
.courier-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; border-radius: 14px; cursor: pointer; height: 100%;
  border: 2px solid rgba(255, 106, 213, .4); background: rgba(12, 2, 20, .5); transition: all .15s; text-align: center;
}
.courier-card > img { height: 40px; width: auto; }
.courier-pay { font-weight: 800; color: #fff; }
.courier-sub { font-weight: 400; color: var(--muted); font-size: 13px; }
.courier-sub .rev { height: 18px; width: auto; display: inline-block; }
.courier input:checked + .courier-card { border-color: var(--cyan); box-shadow: 0 0 14px var(--cyan), inset 0 0 12px rgba(34, 228, 255, .25); }
.courier input:focus-visible + .courier-card { outline: 2px solid #fff; outline-offset: 2px; }
.seg { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.seg label { margin: 0 !important; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 9px 16px; border-radius: 30px; border: 1.5px solid rgba(255, 106, 213, .45); cursor: pointer; font-weight: 600; }
.seg input:checked + span { border-color: var(--cyan); background: rgba(34, 228, 255, .14); color: #fff; }
.revolut-note { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; border: 1.5px solid var(--gold); background: rgba(255, 204, 51, .08); margin-bottom: 16px; }
.revolut-note img { height: 26px; width: auto; flex-shrink: 0; }
.revolut-note p { margin: 0; font-size: 14px; }
.revolut-box { margin: 18px 0; }
.rev-logo { height: 30px; width: auto; margin: 0 auto 6px; }
.order-no { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); text-align: center; color: var(--cyan); text-shadow: 0 0 14px rgba(34, 228, 255, .7); margin: 6px 0 16px; letter-spacing: 2px; }
.track-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.track-no { font-family: var(--display); font-size: 26px; color: var(--cyan); }
.timeline { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.timeline li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-left: 3px solid var(--pink); background: rgba(255,255,255,.03); border-radius: 0 10px 10px 0; }
.timeline li div { width: 100%; color: #eadcff; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { display: flex; align-items: center; gap: 24px; padding: 18px clamp(16px, 4vw, 56px) 26px; flex-wrap: wrap; }
.foot-club { display: flex; gap: 12px; align-items: center; }
.foot-palm { width: 44px; height: 44px; color: var(--pink); filter: drop-shadow(0 0 6px var(--pink)); }
.foot-l1 { font-style: italic; letter-spacing: 4px; font-size: 18px; text-transform: uppercase; }
.foot-l2 { font-style: italic; letter-spacing: 3px; font-size: 13px; color: var(--muted); text-transform: uppercase; }
.foot-line { flex: 1; min-width: 80px; height: 1.5px; background: linear-gradient(90deg, var(--pink), transparent); box-shadow: 0 0 6px var(--pink); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--pink2); }

/* ---------- Telegram + toast ---------- */
.tg-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 40px; text-decoration: none; color: #fff; font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(135deg, #2aa3e0, #1c7fc0); border: 2px solid #8fe0ff;
  box-shadow: 0 0 14px rgba(34, 228, 255, .8), 0 6px 20px rgba(0,0,0,.4); animation: tgPulse 2.6s ease-in-out infinite;
}
.tg-float svg { width: 28px; height: 28px; }
.tg-float:hover { transform: scale(1.05); }
@keyframes tgPulse { 0%, 100% { box-shadow: 0 0 10px rgba(34, 228, 255, .6), 0 6px 20px rgba(0,0,0,.4); } 50% { box-shadow: 0 0 26px rgba(34, 228, 255, 1), 0 6px 20px rgba(0,0,0,.4); } }
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 140%); z-index: 30;
  padding: 14px 22px; border-radius: 12px; background: #24082f; border: 2px solid var(--cyan); color: #fff; font-weight: 700;
  box-shadow: 0 0 18px rgba(34, 228, 255, .7); transition: transform .3s, opacity .3s, visibility .3s; max-width: calc(100% - 40px); text-align: center;
  opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast.err { border-color: #ff4d6d; box-shadow: 0 0 18px rgba(255, 77, 109, .7); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .product, .checkout { grid-template-columns: 1fr; }
  .product-stage { min-height: 420px; }
  .checkout-sum { position: static; }
  .hero, .catalog { justify-items: center; }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: 10px 16px; padding: 10px 14px; }
  .logo-palm { width: 40px; height: 40px; }
  .main-nav { order: 3; width: 100%; justify-content: space-around; margin: 0; }
  .main-nav a { font-size: 14px; }
  .header-icons { margin-left: auto; }
  .pcard { grid-template-columns: 1fr; }
  .pcard-img { aspect-ratio: 1.4; }
  .home-grid { grid-template-columns: 1fr; }
  .grid2, .couriers { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 56px 1fr 36px; }
  .cart-line img { width: 56px; height: 56px; }
  .cart-line .qty, .cart-line .cl-total { grid-column: 2; }
  .cart-line .cl-remove { grid-row: 1; grid-column: 3; }
  .narrow, .checkout-form, .checkout-sum, .product-info { padding: 22px; }
  .tg-float span { display: none; }
  .tg-float { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Photo stage – mockup artwork as 3D background, panels placed 1:1
   Stage = the artwork rectangle (1672x941) as rendered with cover + 4%.
   ===================================================================== */
.bg-photo { display: none; mix-blend-mode: normal; opacity: 1 !important; }
.no-webgl .bg-photo { display: block; }
.has-photo .scanlines { background: repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px); }
.has-stage .site-header { position: fixed; left: 0; right: 0; top: 0; z-index: 10; background: linear-gradient(180deg, rgba(14, 3, 24, .92), rgba(14, 3, 24, .78)); backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-stage .site-main { padding-top: 0; }

.stage-wrap { position: relative; height: 100vh; overflow: hidden; }
.stage {
  --base: max(100vw, 177.69vh);
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--base) * 1.04);
  height: calc(var(--base) * 0.58531);
  transform: translate(-50%, calc(-50% + var(--stage-dy, 0px)));
  container-type: size;
}

/* ---- Home: panel + button positions from the mockup ---- */
.stage-hero .hero-panel {
  position: absolute; left: 61.9%; top: 17.7%; width: 35.3%; min-height: 31.7%;
  padding: 2.2cqw 1.6cqw 4.6cqw; border-width: .13cqw; border-radius: 1.3cqw;
  background: rgba(30, 6, 40, .55);
}
.stage-hero .hero-title { font-size: 4.25cqw; white-space: nowrap; }
.stage-hero .hero-est { font-size: 1.65cqw; letter-spacing: .62cqw; margin: 1.1cqw 0 1.3cqw; gap: 1.3cqw; }
.stage-hero .hero-est span { flex-basis: 6.4cqw; height: .14cqw; }
.stage-hero .hero-tagline { font-size: 1.42cqw; line-height: 1.4; max-width: 22cqw; margin: 0 auto; }
.stage-hero .hero-skyline { height: 3.4cqw; }
.stage-hero .btn-enter {
  position: absolute; left: 63.4%; top: 52.9%; width: 31.6%; height: 9.2%;
  font-size: 3.05cqw; padding: 0; gap: 1.6cqw; border-width: .22cqw; border-radius: 1.6cqw;
}
.stage-hero .btn-enter svg { width: 1.9cqw; height: 1.9cqw; }

/* ---- Catalog: products panel positions from the mockup ---- */
.stage-catalog .catalog-panel {
  position: absolute; left: 61.1%; top: 17.6%; width: 37.1%; min-height: 69.7%;
  padding: 2.1cqw 2cqw; border-width: .13cqw; border-radius: 1.4cqw;
  background: rgba(30, 6, 40, .5); display: flex; flex-direction: column;
}
.stage-catalog .panel-title { font-size: 3.75cqw; white-space: nowrap; }
.stage-catalog .panel-sub { font-size: .98cqw; letter-spacing: .3cqw; margin: .9cqw 0 2.2cqw; gap: 1.2cqw; white-space: nowrap; }
.stage-catalog .panel-sub span { flex-basis: 4.5cqw; height: .12cqw; }
.stage-catalog .catalog-list { gap: 1.55cqw; }
/* Wide + short screens: the panel would run past the bottom edge, so cap it at the
   visible area (panel top = 17.6% of the stage, stage height = base * 0.60872)
   and let the product list scroll inside it. */
.stage-catalog .catalog-panel {
  --panel-room: calc(50vh - var(--stage-dy, 0px) + var(--base) * 0.19723 - 2.5vh);
  min-height: min(69.7%, var(--panel-room));
  max-height: var(--panel-room);
}
.stage-catalog .catalog-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding-right: .4cqw; scrollbar-width: thin; scrollbar-color: rgba(255, 106, 213, .7) transparent;
}
.stage-catalog .pcard { grid-template-columns: 13.3cqw 1fr; gap: 1.9cqw; padding: 1.15cqw; border-width: .13cqw; border-radius: 1.1cqw; background: rgba(30, 6, 40, .45); }
.stage-catalog .pcard-img { aspect-ratio: 222 / 183; border-radius: .55cqw; }
.stage-catalog .pcard-name { font-size: 2.35cqw; margin-bottom: .45cqw; white-space: nowrap; }
.stage-catalog .badge { font-size: 1.48cqw; padding: .12cqw .95cqw; }
.stage-catalog .pcard-body { line-height: 1.15; }
.stage-catalog .pcard-sub { font-size: 1.05cqw; letter-spacing: .32cqw; margin: 1.1cqw 0 1cqw; }
.stage-catalog .pcard-price { display: none; }
.stage-catalog .btn-outline { font-size: 1.3cqw; letter-spacing: .26cqw; padding: .5cqw 1.6cqw; width: 14.9cqw; justify-content: center; border-width: .13cqw; border-radius: .5cqw; }
.stage-catalog .btn-outline svg { width: 1cqw; height: 1cqw; }
.stage-foot { position: absolute; left: 2.6%; top: 88.6%; right: 2%; display: flex; align-items: center; gap: 1.2cqw; }
.stage-foot .foot-palm { width: 3cqw; height: 3cqw; }
.stage-foot .foot-l1 { font-size: 1.25cqw; letter-spacing: .3cqw; }
.stage-foot .foot-l2 { font-size: .95cqw; letter-spacing: .25cqw; }
.stage-foot-line { flex: 1; height: .1cqw; margin-top: 2.2cqw; background: linear-gradient(90deg, var(--pink), rgba(255, 106, 213, .6)); box-shadow: 0 0 .4cqw var(--pink); }
.page-catalog.has-stage .site-footer .foot-club, .page-catalog.has-stage .site-footer .foot-line { display: none; }
.page-catalog.has-stage .site-footer { justify-content: flex-end; }

/* ---- Narrow / portrait screens: panels flow below the artwork focus ---- */
@media (max-width: 900px), (max-aspect-ratio: 6/5) {
  .has-stage .site-header { position: absolute; }
  .stage-wrap { height: auto; min-height: 100vh; overflow: visible; }
  .stage { position: relative; left: auto; top: auto; width: auto; height: auto; transform: none; container-type: normal; padding: 52vh 16px 40px; display: grid; gap: 18px; justify-items: center; }
  .stage-hero .hero-panel, .stage-hero .btn-enter, .stage-catalog .catalog-panel, .stage-foot { position: static; width: min(560px, 100%); height: auto; }
  .stage-catalog { padding-top: 34vh; }
  .stage-hero .hero-panel { padding: 24px 20px 0; border-width: 2px; border-radius: 16px; }
  .stage-hero .hero-title { font-size: clamp(38px, 11vw, 60px); }
  .stage-hero .hero-est { font-size: 16px; letter-spacing: 6px; margin: 10px 0 12px; gap: 12px; }
  .stage-hero .hero-est span { flex-basis: 50px; height: 2px; }
  .stage-hero .hero-tagline { font-size: 16px; max-width: 320px; margin-bottom: 40px; }
  .stage-hero .hero-skyline { height: 44px; }
  .stage-hero .btn-enter { font-size: clamp(22px, 6.5vw, 32px); padding: 16px 20px; gap: 12px; border-width: 3px; border-radius: 18px; }
  .stage-hero .btn-enter svg { width: 20px; height: 20px; }
  .stage-catalog .catalog-panel { padding: 22px 16px; border-width: 2px; border-radius: 16px; }
  .stage-catalog .panel-title { font-size: clamp(36px, 10vw, 54px); }
  .stage-catalog .panel-sub { font-size: 12px; letter-spacing: 3px; margin: 8px 0 18px; gap: 10px; }
  .stage-catalog .panel-sub span { flex-basis: 30px; height: 2px; }
  .stage-catalog .catalog-list { gap: 16px; overflow: visible; padding-right: 0; }
  .stage-catalog .catalog-panel { min-height: 0; max-height: none; }
  .stage-catalog .pcard { grid-template-columns: 120px 1fr; gap: 14px; padding: 10px; border-width: 2px; border-radius: 12px; }
  .stage-catalog .pcard-name { font-size: 24px; }
  .stage-catalog .badge { font-size: 14px; padding: 2px 10px; }
  .stage-catalog .pcard-sub { font-size: 11px; letter-spacing: 2px; margin: 10px 0 8px; }
  .stage-catalog .btn-outline { font-size: 13px; letter-spacing: 2px; padding: 7px 12px; width: auto; border-width: 2px; border-radius: 8px; }
  .stage-catalog .btn-outline svg { width: 12px; height: 12px; }
  .stage-foot { display: none; }
  .page-catalog.has-stage .site-footer .foot-club, .page-catalog.has-stage .site-footer .foot-line { display: flex; }
}

/* ---- Header logo: Vice City BG ---- */
.logo-svg { display: block; height: clamp(50px, 5.2vw, 76px); width: auto; overflow: visible; }
.logo:hover .logo-svg { filter: drop-shadow(0 0 8px rgba(255, 47, 179, .6)); }
@media (max-width: 760px) { .logo-svg { height: 46px; } }

/* ---- Enter-the-club transition ---- */
.vd-flash {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, #ffffff 0%, #ffd2f1 25%, #ff6ad5 55%, #ff2fb3 80%, #3a0a48 100%);
  transition: opacity .5s ease;
}
.vd-flash.on, html.vd-arrive .vd-flash { opacity: 1; }
html.vd-arrive .vd-flash { transition: none; }
html:not(.vd-arrive) .vd-flash:not(.on) { transition: opacity .9s ease; }
.site-header, .stage .glass, .stage .btn-enter, .tg-float { transition: opacity .45s ease, transform .45s ease; }
body.vd-entering .site-header { opacity: 0; transform: translateY(-20px); }
body.vd-entering .stage .glass, body.vd-entering .stage .btn-enter { opacity: 0; transform: translateX(40px); pointer-events: none; }
body.vd-entering .tg-float { opacity: 0; }
body.page-home .site-footer { position: absolute; left: 0; right: 0; top: calc(100vh - 64px); }
body.page-home .site-footer .foot-club, body.page-home .site-footer .foot-line { display: none; }
body.page-home .site-footer { justify-content: flex-end; }
body.vd-entering .site-footer { opacity: 0; transition: opacity .3s; }
@media (max-width: 900px), (max-aspect-ratio: 6/5) {
  body.page-home .site-footer { position: static; }
}
