/* techstore.uzz – Variant A "Appliance Showroom"
   Cool gallery-wall white, cobalt accent, category-tinted display stands. */

:root {
  --bg: #F2F3F6;
  --surface: #FFFFFF;
  --ink: #181A20;
  --muted: #555A66;
  --line: #E1E3E9;
  --ledge: #D5D8E0;
  --accent: #2B3AE0;
  --accent-deep: #1D29B4;
  --accent-soft: #E6E8FD;
  --ok: #1F7A4D;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-stage: 40px;
  --r-card: 28px;
  --r-frame: 18px;
  --r-btn: 16px;

  --gutter: 16px;
  --maxw: 1240px;
  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 60px;
}
@media (min-width: 768px) { :root { --gutter: 28px; --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Icons ---------- */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px;
  border-radius: var(--r-btn); border: 2px solid transparent;
  font-family: var(--f-body); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease-out), background-color .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -12px rgba(43, 58, 224, .7), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2E313A; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 243, 246, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; margin-right: auto; }
.brand { gap: 10px; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  box-shadow: 0 6px 14px -8px rgba(24, 26, 32, .55);
}
@media (max-width: 419px) { .brand.has-logo .wordmark { display: none; } }
.wordmark {
  font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: -0.03em;
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
}
.wordmark b {
  font-weight: 700; background: var(--accent); color: #fff;
  padding: 3px 7px 4px; border-radius: 999px; font-size: .82em; letter-spacing: 0;
}
@media (min-width: 768px) { .wordmark { font-size: 19px; } }

.nav { display: none; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 500; padding: 10px 14px; border-radius: 12px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--surface); box-shadow: inset 0 -2px 0 var(--accent); }
@media (min-width: 820px) { .nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 6px; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); position: relative;
}
.lang button {
  min-width: 42px; min-height: 38px; border: 0; background: transparent; border-radius: 11px;
  font-weight: 700; font-size: 13px; cursor: pointer; position: relative; z-index: 1;
  transition: color .25s;
}
.lang button[aria-pressed="true"] { color: #fff; }
.lang-pill {
  position: absolute; top: 3px; left: 3px; width: 42px; height: 38px; border-radius: 11px;
  background: var(--ink); transition: transform .35s var(--ease-out);
}
.lang[data-active="ru"] .lang-pill { transform: translateX(42px); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; display: inline-grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: transform .2s var(--ease-out), border-color .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.is-tg { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Hero / showroom stage ---------- */
.hero { padding: 12px 0 28px; }
.hero-grid { display: grid; gap: 22px; }
.hero-copy h1 { font-size: clamp(30px, 8.4vw, 64px); font-weight: 800; max-width: 13ch; }
.hero-copy p { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink); font-size: 14px; font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ic { width: 18px; height: 18px; color: var(--ok); }

@media (min-width: 1024px) {
  .hero { padding: 28px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 40px; }
}

.stage {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-stage);
  background: #E9EBF0;
  min-height: 470px;
  display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(24, 26, 32, .04);
}
@media (min-width: 768px) { .stage { min-height: 560px; } }
.stage-tint { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity .8s var(--ease-io); }
.stage-tint.is-on { opacity: 1; }
.stage-model {
  position: absolute; left: 0; right: 0; top: 4%; z-index: -1; height: 1.1em;
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  font-size: clamp(76px, 21vw, 220px);
  pointer-events: none; user-select: none;
}
.stage-model span {
  position: absolute; left: 50%; top: 0; white-space: nowrap;
  color: var(--model-ink, rgba(24, 26, 32, .12));
  transform: translate(-50%, 0); opacity: 1;
  transition: transform .7s var(--ease-out), opacity .5s var(--ease-out);
}
.stage-model span.is-out { transform: translate(-62%, 0); opacity: 0; }
.stage-model span.is-pre { transform: translate(-38%, 0); opacity: 0; transition: none; }

.turntable {
  position: relative; flex: 1 1 auto; min-height: 320px; margin-top: 18px;
  touch-action: pan-y; perspective: 1200px;
}
@media (min-width: 768px) { .turntable { min-height: 400px; margin-top: 28px; } }
.tt-item {
  --w: clamp(150px, 42vw, 250px);
  position: absolute; left: 50%; bottom: 46px; width: var(--w); margin-left: calc(var(--w) / -2);
  aspect-ratio: 4 / 5;
  display: block; text-decoration: none;
  transform-origin: 50% 100%;
  transition: transform .75s var(--ease-io), opacity .55s var(--ease-io);

  -webkit-tap-highlight-color: transparent;
}
.tt-frame {
  width: 100%; height: 100%; border-radius: 26px; overflow: hidden;
  background: #fff; padding: 7px;
  box-shadow: 0 30px 40px -26px rgba(24, 26, 32, .55), 0 2px 0 rgba(24, 26, 32, .06);
}
.tt-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; border-radius: 20px; background: #ddd; }
.tt-item.is-cutout .tt-frame img { object-fit: contain; background: #fff; padding: 9%; box-sizing: border-box; filter: drop-shadow(0 14px 12px rgba(24, 26, 32, .16)); }
.tt-item:focus-visible { outline-offset: 6px; border-radius: 26px; }

.platter {
  position: absolute; left: 50%; bottom: 8px; width: min(78%, 420px); aspect-ratio: 1;
  transform: translateX(-50%) scaleY(.2); transform-origin: 50% 100%;
  z-index: 0; pointer-events: none;
}
.platter-disc {
  width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .95) 0 34%, transparent 34.5%),
    repeating-conic-gradient(rgba(255, 255, 255, .85) 0 4deg, rgba(255, 255, 255, .45) 4deg 12deg);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .35), 0 40px 60px rgba(24, 26, 32, .25);
  transition: transform .75s var(--ease-io);
}

.stage-info {
  position: relative; z-index: 2;
  margin: 0 12px 12px; padding: 16px;
  background: rgba(255, 255, 255, .92);
  border-radius: 26px;
  display: grid; gap: 12px;
  box-shadow: 0 1px 0 rgba(24, 26, 32, .05);
}
.stage-info-text { min-width: 0; transition: opacity .25s; }
.stage-info.is-swapping .stage-info-text { opacity: .25; }
.stage-brand { font-size: 14px; font-weight: 600; color: var(--muted); }
.stage-name { font-family: var(--f-body); font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: 0; margin-top: 2px; }
.stage-row { display: flex; align-items: center; gap: 8px; }
.stage-row .btn { flex: 1 1 auto; padding-left: 14px; padding-right: 14px; }
.stage-nav { display: flex; gap: 6px; flex: none; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: transform .2s var(--ease-out), border-color .2s;
}
.round-btn:hover { border-color: var(--ink); }
.round-btn:active { transform: scale(.92); }
@media (min-width: 640px) {
  .stage-info { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 0 16px 16px; padding: 18px 18px 18px 24px; }
  .stage-row .btn { flex: 0 0 auto; }
}
.stage-dots { position: absolute; top: 16px; right: 18px; display: flex; gap: 5px; z-index: 2; }
.stage-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(24, 26, 32, .2); transition: transform .3s; }
.stage-dots i.is-on { background: var(--ink); transform: scale(1.4); }

/* Intro choreography (only when JS adds .is-loading) */
.js .is-loading .hero-copy > * { opacity: 0; transform: translateY(18px); }
.hero-copy > * { transition: opacity .55s var(--ease-out), transform .6s var(--ease-out); }
.hero-copy > :nth-child(2) { transition-delay: .07s; }
.hero-copy > :nth-child(3) { transition-delay: .14s; }
.hero-copy > :nth-child(4) { transition-delay: .2s; }
.js .is-loading .stage { transform: scale(.96); opacity: 0; }
.stage { transition: transform .7s var(--ease-out), opacity .3s var(--ease-out); }

/* ---------- Price ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.price-now { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; font-size: 18px; color: var(--accent); white-space: nowrap; }
.price-old { color: var(--muted); font-size: 14px; white-space: nowrap; }
.price-ask { font-weight: 700; color: var(--accent); }

/* ---------- Catalog ---------- */
.catalog { padding: 28px 0 48px; }
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.catalog-head h2 { font-size: clamp(28px, 6vw, 48px); font-weight: 800; }
.count { color: var(--muted); font-weight: 500; }
.tools { margin-top: 18px; display: grid; gap: 12px; }
@media (min-width: 1024px) { .tools { grid-template-columns: 340px minmax(0, 1fr); align-items: center; } }

.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 2px solid var(--line); border-radius: 18px;
  padding: 0 8px 0 16px; min-height: 52px;
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--accent); }
.search .ic { color: var(--muted); }
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 16px; height: 48px; color: var(--ink);
}
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--bg); cursor: pointer; display: grid; place-items: center; }
.search-clear:focus-visible { outline-offset: 0; }

.chips {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .chips { margin: 0; padding: 4px; } }
.chips-track { position: relative; display: inline-flex; gap: 8px; min-width: max-content; vertical-align: top; }
.chip, .chip-ghost {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  min-height: 46px; padding: 0 16px 0 12px; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1;
}
.chip {
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  scroll-snap-align: start; scroll-margin: 0 var(--gutter);
}
.chip:hover { border-color: var(--ink); }
.chip-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--tint, #ddd); box-shadow: inset 0 0 0 1px rgba(24, 26, 32, .15); flex: none; }
.chip-n { font-size: 12px; font-weight: 700; color: var(--muted); }
/* Sliding active pill: a clipped copy of the row painted in accent */
.chips-active {
  position: absolute; inset: 0; display: inline-flex; gap: 8px; pointer-events: none;
  background: var(--accent); border-radius: 999px;
  clip-path: inset(0 100% 0 0 round 999px);
  transition: clip-path .5s var(--ease-out);
}
.chip-ghost { color: #fff; border: 1px solid transparent; }
.chip-ghost .chip-n { color: rgba(255, 255, 255, .8); }
.chip-ghost .chip-dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }

.grid {
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

/* ---------- Product card: a display stand ---------- */
.card { position: relative; perspective: 900px; min-width: 0; }
.card-inner {
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  height: 100%; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-card);
  border: 1px solid var(--line);
  box-shadow: inset 0 -4px 0 var(--ledge), 0 14px 26px -22px rgba(24, 26, 32, .45);
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  transform-style: preserve-3d;
}
.card.is-hover .card-inner {
  --lift: -8px;
  box-shadow: inset 0 -4px 0 var(--ledge), 0 34px 40px -26px rgba(24, 26, 32, .5);
}
.card.is-tilting .card-inner { transition: transform .12s linear, box-shadow .45s var(--ease-out); }
.card-media {
  position: relative; margin: 6px 6px 0; padding: 8px;
  border-radius: 22px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  aspect-ratio: 4 / 5; overflow: hidden;
  container-type: inline-size;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
  border-radius: 15px; background: rgba(255, 255, 255, .5);
  transition: transform .6s var(--ease-out);
}
.card.is-hover .card-media img { transform: scale(1.04); }
.card-media.is-cutout { padding: 10%; }
.card-media.is-cutout img { position: relative; z-index: 1; object-fit: contain; background: transparent; border-radius: 0; filter: drop-shadow(0 14px 12px rgba(24, 26, 32, .18)); }
.card-ghost {
  position: absolute; left: 10px; right: 10px; bottom: 6px; z-index: 0;
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.05em; line-height: .9;
  font-size: min(56px, calc((100cqw - 20px) / (var(--gl, 7) * .86))); color: #DADDE4;
  white-space: nowrap; overflow: hidden; pointer-events: none;
}
.card-media:not(.is-cutout):not(.is-empty) .card-ghost { display: none; }
.card-media.is-empty .card-ghost { top: 12px; bottom: auto; }

/* Placeholder for products without a photo yet: round logo badge on the category tint */
.ph {
  position: relative; z-index: 1; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: 15px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
}
.card-media .ph-logo { width: 46%; height: auto; max-width: 120px; aspect-ratio: 1; object-fit: contain; border-radius: 50%; background: transparent; box-shadow: 0 16px 24px -14px rgba(24, 26, 32, .5); }
.ph-label {
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: rgba(255, 255, 255, .85); padding: 6px 12px; border-radius: 999px; text-align: center;
}
.card-media.is-cutout img { position: relative; z-index: 1; }

.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1;
  background: var(--ink); color: #fff;
}
.badge-new { background: var(--accent); }
.badge-sale { background: #C2261C; }

.card-body { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-brand { font-size: 13px; font-weight: 600; color: var(--muted); }
.card-model { font-size: 15px; font-weight: 700; line-height: 1.2; }
.card-model a { text-decoration: none; }
.card-model a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); z-index: 1; }
.card-model a:focus-visible { outline: none; }
.card-model a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 3px; }
.card-name { font-size: 13px; color: var(--ink); line-height: 1.35; }
.card-foot { margin-top: auto; padding-top: 8px; display: grid; gap: 10px; }
.card .price-now { font-size: 15px; }
.card .btn { position: relative; z-index: 2; min-height: 46px; padding: 10px 12px; font-size: 14px; gap: 8px; }
.card .btn .ic { width: 18px; height: 18px; }
@media (min-width: 768px) {
  .card-body { padding: 14px 16px 18px; }
  .card-model { font-size: 17px; }
  .card .price-now { font-size: 17px; }
  .card-name { font-size: 14px; }
}

/* Reveal on scroll (only when JS is running) */
.js .card.will-reveal .card-inner { opacity: 0; transform: translateY(28px) rotateX(8deg); }
.js .card.will-reveal.is-in .card-inner {
  opacity: 1; transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .65s var(--ease-out), opacity .5s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.empty {
  margin-top: 22px; padding: 32px 20px; border-radius: var(--r-card); background: var(--surface);
  border: 2px dashed var(--ledge); text-align: center; display: grid; gap: 10px; justify-items: center;
}
.empty h3 { font-size: 20px; }
.empty p { color: var(--muted); max-width: 40ch; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }

/* ---------- How to order (a real sequence) ---------- */
.howto { padding: 8px 0 56px; }
.howto h2 { font-size: clamp(24px, 5vw, 36px); }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.steps li {
  counter-increment: s; position: relative; overflow: hidden;
  background: var(--surface); border-radius: var(--r-card); padding: 22px 20px 22px;
  border: 1px solid var(--line); box-shadow: inset 0 -4px 0 var(--ledge);
  min-height: 150px;
}
.steps li::before {
  content: counter(s); position: absolute; right: 12px; top: -14px;
  font-family: var(--f-display); font-weight: 800; font-size: 120px; line-height: 1; letter-spacing: -0.06em;
  color: var(--accent-soft);
}
.steps h3 { position: relative; font-size: 18px; }
.steps p { position: relative; color: var(--muted); margin-top: 8px; max-width: 34ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E9EAEE; padding: 40px 0 28px; border-radius: var(--r-stage) var(--r-stage) 0 0; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .wordmark { font-size: 22px; color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 56px; height: 56px; border-radius: 50%; }
.site-footer p { color: #B9BCC6; margin-top: 8px; }
.site-footer h3 { font-family: var(--f-body); font-size: 15px; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.site-footer a:hover { text-decoration: underline; }
.footer-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid #343843; font-size: 13px; color: #9EA2AD; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90;
  max-width: calc(100% - 32px); width: max-content;
  background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 16px;
  font-weight: 500; font-size: 15px; display: flex; gap: 10px; align-items: center;
  box-shadow: 0 18px 40px -16px rgba(24, 26, 32, .6);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease-out), opacity .3s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast .ic { color: #8CE0B0; }
body.has-orderbar .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.has-orderbar .toast { bottom: 24px; } }

/* ---------- Product page ---------- */
.crumbs { padding: 12px 0 4px; }
.back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px;
  border-radius: 14px; text-decoration: none; font-weight: 600; background: var(--surface); border: 1px solid var(--line);
}
.back:hover { border-color: var(--ink); }
.pd { display: grid; gap: 22px; padding: 10px 0 40px; }
@media (min-width: 900px) {
  .pd { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 44px; align-items: start; }
  .pd-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
}
.pd-stage {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-stage); background: var(--tint, #E9EBF0);
  aspect-ratio: 1 / 1.08; display: grid; place-items: center; padding: 7% 10% 8%;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
@media (min-width: 900px) { .pd-stage { aspect-ratio: 1 / 1; } }
.pd-ghost {
  position: absolute; left: 50%; top: 50%; z-index: -1; white-space: nowrap;
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.055em; line-height: 1;
  font-size: var(--ghost-size, 30vw);
  color: var(--model-ink, rgba(24, 26, 32, .12));
  transform: translate(-50%, -50%);
  pointer-events: none; user-select: none;
}
.pd-frame {
  position: relative; height: 100%; width: auto; max-width: 100%; aspect-ratio: 4 / 5;
  background: #fff; border-radius: 26px; padding: 8px;
  box-shadow: 0 40px 50px -30px rgba(24, 26, 32, .55);
}
.pd-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; border-radius: 20px; transition: opacity .3s; }
.pd-frame.is-cutout { padding: 7%; }
.pd-frame.is-empty { background: transparent; box-shadow: none; padding: 0; }
.pd-frame .ph { background: radial-gradient(closest-side, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0)); }
.pd-frame .ph-logo { width: 46%; max-width: 220px; height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 30px 40px -24px rgba(24, 26, 32, .55); object-fit: contain; }
.pd-frame .ph-label { font-size: 15px; padding: 8px 16px; }
.pd-frame.is-cutout img { object-fit: contain; border-radius: 0; filter: drop-shadow(0 20px 16px rgba(24, 26, 32, .16)); }
.pd-stage .badge { top: 20px; left: 20px; font-size: 13px; padding: 8px 12px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumb {
  width: 72px; height: 72px; border-radius: 18px; padding: 4px; border: 2px solid var(--line);
  background: var(--tint, #fff); cursor: pointer; overflow: hidden;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.pd-thumb[aria-pressed="true"] { border-color: var(--accent); }

.pd-head h1 { display: grid; gap: 6px; }
.pd-brand { font-family: var(--f-body); font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pd-model { font-size: clamp(32px, 8vw, 54px); font-weight: 800; letter-spacing: -0.035em; }
.pd-name { font-size: 18px; margin-top: 10px; color: var(--ink); max-width: 36ch; }
.pd-cat { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; text-decoration: none; font-size: 14px; font-weight: 600; padding: 0 14px 0 8px; min-height: 40px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.pd-cat:hover { border-color: var(--ink); }
.pd-price { margin-top: 18px; }
.pd-price .price-now { font-size: clamp(26px, 6vw, 34px); }
.pd-price .price-old { font-size: 17px; }
.pd-section { margin-top: 26px; }
.pd-section h2 { font-size: 18px; margin-bottom: 10px; }
.specs { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 13px 16px; font-size: 15px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { font-weight: 500; color: var(--muted); width: 42%; }
.specs td { font-weight: 600; }
.pd-desc { font-size: 16px; line-height: 1.6; max-width: 60ch; }
.order-box {
  margin-top: 26px; padding: 18px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 -4px 0 var(--ledge);
  display: grid; gap: 10px;
}
.order-box h2 { font-size: 18px; }
.order-box .hint { font-size: 14px; color: var(--muted); }
.order-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-phones { display: grid; gap: 2px; font-size: 15px; }
.order-phones a { font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.order-phones a:hover { color: var(--accent); }
.pd .trust { margin-top: 16px; }

.similar { padding: 10px 0 56px; }
.similar h2 { font-size: clamp(24px, 5vw, 36px); }

.not-found { padding: 48px 0 24px; display: grid; gap: 14px; justify-items: start; }
.not-found h1 { font-size: clamp(28px, 6vw, 44px); }

/* Sticky order bar – mobile only */
.order-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  transform: translateY(0); transition: transform .45s var(--ease-out);
}
.js .order-bar.is-pre { transform: translateY(110%); }
.order-bar-price { min-width: 0; flex: 1 1 auto; line-height: 1.15; }
.order-bar-price small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-bar-price .price-now { font-family: var(--f-body); font-weight: 700; font-size: 17px; letter-spacing: 0; }
.order-bar-price .price-old { display: none; }
.order-bar .btn { flex: none; min-height: 50px; padding: 12px 16px; gap: 8px; }
.order-bar .icon-btn { width: 50px; height: 50px; flex: none; }
body.has-orderbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .order-bar { display: none; }
  body.has-orderbar { padding-bottom: 0; }
}

/* Product page entrance */
.pd-enter .pd-stage { animation: pdStage .7s var(--ease-out) both; }
.pd-enter .pd-ghost { animation: pdGhost .9s var(--ease-out) both; }
.pd-enter .pd-frame { animation: pdFrame .75s var(--ease-out) .08s both; }
.pd-enter .pd-info > * { animation: pdUp .5s var(--ease-out) both; }
.pd-enter .pd-info > :nth-child(2) { animation-delay: .05s; }
.pd-enter .pd-info > :nth-child(n+3) { animation-delay: .12s; }
@keyframes pdStage { from { transform: scale(.96); opacity: 0; } }
@keyframes pdGhost { from { transform: translate(-28%, -50%); opacity: 0; } }
@keyframes pdFrame { from { transform: translateX(14%) rotate(4deg); opacity: 0; } }
@keyframes pdUp { from { transform: translateY(14px); opacity: 0; } }

/* ---------- Contacts ---------- */
.contacts { padding: 18px 0 56px; }
.contacts h1 { font-size: clamp(30px, 7vw, 56px); font-weight: 800; max-width: 16ch; }
.contacts-lead { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 46ch; }
.c-grid { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 768px) { .c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .c-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.c-card {
  position: relative; overflow: hidden; border-radius: var(--r-card); padding: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 -4px 0 var(--ledge);
  display: grid; gap: 10px; align-content: start;
}
.c-card h2 { font-family: var(--f-body); font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.c-big { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 5vw, 26px); letter-spacing: -0.02em; line-height: 1.15; text-decoration: none; overflow-wrap: anywhere; }
.c-card.is-tg { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: inset 0 -4px 0 var(--accent-deep); }
.c-card.is-tg h2, .c-card.is-tg p { color: rgba(255, 255, 255, .86); }
.c-card.is-tg .btn { background: #fff; color: var(--accent); justify-self: start; }
.c-card.is-ig { background: #F7E4EE; border-color: #F0D3E2; box-shadow: inset 0 -4px 0 #E8C3D6; }
.c-phones { display: grid; gap: 4px; }
.c-phones a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; text-decoration: none; border-bottom: 1px solid var(--line); }
.c-phones a:last-child { border-bottom: 0; }
.c-phones a .c-big { font-size: clamp(19px, 5vw, 24px); }
.c-phones a .ic { color: var(--accent); }
.c-phones a:hover .c-big { color: var(--accent); }
.map-wrap { margin-top: 18px; border-radius: var(--r-stage); overflow: hidden; background: #E3E6EA; border: 1px solid var(--line); position: relative; }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }
@media (min-width: 768px) { .map-wrap iframe { height: 460px; } }
.map-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--surface); }
.map-cta p { font-weight: 600; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
  .js .card.will-reveal .card-inner { opacity: 1; transform: none; }
  .js .is-loading .hero-copy > *, .js .is-loading .stage { opacity: 1; transform: none; }
}
