/* HÖRBI — premium soft-green with deep side vignettes */
:root {
  --bg: #e6ebe0;
  --bg2: #ffffff;
  --page: #e2e8db;
  --ink: #12140f;
  --muted: #5a6154;
  --line: rgba(18, 20, 15, 0.1);
  --green: #2f6b3a;
  --green-deep: #1a3d24;
  --green-soft: #e8f2e4;
  --accent: #c8e86a;
  --shadow: 0 18px 50px rgba(18, 20, 15, 0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", "SF Pro Display", system-ui, sans-serif;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--page);
  /* deep side gradients + soft center — premium, not flat white */
  background-image:
    radial-gradient(ellipse 55% 90% at 0% 30%, rgba(26, 61, 36, 0.22), transparent 60%),
    radial-gradient(ellipse 55% 90% at 100% 40%, rgba(26, 61, 36, 0.2), transparent 60%),
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(47, 107, 58, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(47, 107, 58, 0.1), transparent 55%),
    linear-gradient(90deg,
      #c5d0be 0%,
      #d8e0d0 12%,
      #e8ede3 28%,
      #eef2ea 50%,
      #e8ede3 72%,
      #d8e0d0 88%,
      #c5d0be 100%
    );
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img, video { display: block; max-width: 100%; }

/* Accessibility / SEO skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  min-height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(246, 244, 239, 0.92);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(var(--max), 100%);
  padding: 0 16px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex: 0 0 auto;
  z-index: 2;
}
.logo img {
  height: 34px;
  width: auto;
  display: block;
}

/*
 * Mobile-first nav:
 * default = hamburger + collapsible panel
 * desktop (≥900px) = full horizontal bar, no hamburger
 */
.nav-toggle {
  display: grid;
  z-index: 3;
  order: 2;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 2px 10px rgba(18, 20, 15, 0.06);
  grid-auto-rows: min-content;
  place-content: center;
  place-items: center;
  gap: 5px;
  padding: 0;
  flex: 0 0 auto;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #12140f;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-panel {
  display: none;
  order: 3;
  flex: 1 1 100%;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 8px 0 16px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.nav.is-open .nav-panel {
  display: flex;
}
.nav-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
}
.nav-links > a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  padding: 12px 10px;
  border-radius: 12px;
  white-space: normal;
}
.nav-links > a:hover,
.nav-links > a:active {
  background: rgba(47, 107, 58, 0.08);
  color: var(--ink);
}
.nav-links > a.nav-shop {
  color: var(--green);
  font-weight: 700;
  background: var(--green-soft);
  text-align: center;
  margin-top: 4px;
}

.lang {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  flex: 0 0 auto;
  width: 100%;
  justify-content: space-between;
}
.lang button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 0;
  min-height: 40px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.lang button.active {
  background: var(--ink);
  color: #fff;
}
.lang .flag { font-size: 13px; line-height: 1; }

/* Desktop: full menu, hide hamburger */
@media (min-width: 900px) {
  .nav-toggle {
    display: none !important;
  }
  .nav-panel {
    display: flex !important;
    order: 2;
    flex: 1 1 auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding: 0;
    border-top: 0;
  }
  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 4px 14px;
    width: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-links > a {
    display: inline;
    font-size: 13px;
    padding: 6px 2px;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
  }
  .nav-links > a:hover,
  .nav-links > a:active {
    background: transparent;
    color: var(--ink);
  }
  .nav-links > a.nav-shop {
    background: transparent;
    margin-top: 0;
    text-align: left;
  }
  .lang {
    width: auto;
    justify-content: flex-start;
    padding: 3px;
  }
  .lang button {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 8px;
  }
}

/* Hero: full first screen — logo + headline + CTAs, then scroll to products */
.hero {
  position: relative;
  /* true full viewport on load (mobile browser chrome safe) */
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  /* room for fixed nav; keep content optically centered */
  padding: max(72px, env(safe-area-inset-top, 0px)) 18px max(28px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, #2a4030 0%, #141a12 100%);
}
.hero-video {
  position: absolute;
  /* slight oversize so light blur doesn't show hard edges */
  inset: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  object-fit: cover;
  /* subtle soft focus — readable image, not milky fog */
  filter: blur(1.5px) saturate(1.06) brightness(0.9);
  transform: scale(1.04);
  opacity: 1;
}
/* light tint only — no second heavy blur */
.hero-blur {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 10, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 38%, rgba(20, 28, 16, 0.08), rgba(12, 16, 10, 0.4) 72%),
    linear-gradient(180deg,
      rgba(10, 14, 8, 0.42) 0%,
      rgba(12, 16, 10, 0.16) 42%,
      rgba(12, 16, 10, 0.28) 100%);
}
/* short edge only — scroll snaps cleanly into products (no long milky fade) */
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(226, 232, 219, 0) 0%,
    rgba(226, 232, 219, 0.35) 55%,
    var(--page) 100%
  );
}
.hero-copy {
  position: relative;
  z-index: 2;
  /* grows with desktop width so type can go ~2× on large screens */
  max-width: min(1120px, 94vw);
  width: 100%;
  margin: 0 auto;
  padding: 0 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* large white brand mark instead of «БАДы» kicker */
.hero-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 clamp(16px, 2.2vw, 32px);
}
.hero-logo {
  /* phone ~72vw; desktop scales up to ~2× previous 380px cap */
  width: min(72vw, clamp(280px, 36vw, 760px));
  height: auto;
  max-height: none;
  opacity: 0.98;
  /* uses logo-white.svg — no CSS filter (broken on many iOS Safari builds) */
  filter: none;
  -webkit-filter: none;
  box-shadow: none;
}
.hero h1 {
  margin: 0;
  /* ~2.4rem phones → up to ~8rem on big desktops */
  font-size: clamp(2.35rem, 1.1rem + 5.8vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
  white-space: pre-line;
}
.hero .sub {
  margin: clamp(14px, 1.8vw, 28px) auto 0;
  max-width: min(42ch, 92%);
  font-size: clamp(1rem, 0.85rem + 0.9vw, 1.75rem);
  line-height: 1.45;
  color: rgba(255,255,255,0.86);
}
.actions {
  margin-top: clamp(22px, 2.5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.2vw, 16px);
  justify-content: center;
}
.hero .btn {
  min-height: clamp(46px, 3.2vw, 58px);
  padding: 0 clamp(20px, 2vw, 32px);
  font-size: clamp(14px, 0.85rem + 0.35vw, 17px);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s var(--ease);
}
.btn-fill {
  background: #fff;
  color: var(--ink);
}
.btn-fill:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { opacity: 0.92; }
.btn-line {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

/* Living catalog band — starts right after full-screen hero */
.catalog-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 36px 0 36px;
  scroll-margin-top: 64px;
}
#products {
  scroll-margin-top: 72px;
}
.catalog-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.catalog-video {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  object-position: center;
  filter: blur(1px) saturate(1.05) brightness(0.92);
  transform: scale(1.03);
  opacity: 0.55;
}
.catalog-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(226, 232, 219, 0.72) 0%,
      rgba(226, 232, 219, 0.45) 18%,
      rgba(226, 232, 219, 0.38) 55%,
      rgba(226, 232, 219, 0.7) 100%),
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 255, 255, 0.12), transparent 70%);
}
/* Prefer reduced motion / save data: hide video */
@media (prefers-reduced-motion: reduce) {
  .catalog-video { display: none; }
  .catalog-veil {
    background: transparent;
  }
}

/* Sections — float over catalog video / page gradients */
.section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 28px 18px 12px;
  position: relative;
  z-index: 2;
}
.section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}
.catalog-band .section h2 {
  text-shadow: 0 1px 12px rgba(226, 232, 219, 0.8);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Product cards — fixed ratio, no overflow */
.card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  min-width: 0;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(18, 20, 15, 0.12);
}
.card.soon { cursor: pointer; }
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #e5efe0, #d5e2cf);
  overflow: hidden;
}
.card-media .card-img,
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* placeholder only when it's the sole media child (no photo) */
.card-media .ph {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  background: linear-gradient(160deg, #e5efe0, #d5e2cf);
  pointer-events: none;
}
/* never show placeholder on top of a real image */
.card-media:has(img) .ph,
.card-media .ph[hidden] {
  display: none !important;
}
.card-media:not(:has(img)) .ph,
.card-media .ph:only-child {
  display: grid;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--green);
  border: 1px solid var(--line);
}
.card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
}
.card-body h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
}
.card-body .more {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}
.soon-big {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

/* About */
.about {
  width: min(820px, 100%);
  margin: 28px auto 0;
  padding: 36px 18px 8px;
  text-align: center;
}
.about h2 { margin: 0 0 12px; letter-spacing: -0.03em; font-weight: 800; }
.about p {
  margin: 0 auto 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 58ch;
}

/* Contact — single clean block */
.contact-block {
  width: min(640px, 100%);
  margin: 28px auto 0;
  padding: 28px 22px 30px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.contact-block h2 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.contact-block p {
  margin: 0 auto 18px;
  color: var(--muted);
  max-width: 40ch;
  font-size: 15px;
}

.foot {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 22px 18px 40px;
}
.foot-disclaimer {
  width: min(var(--max), 100%);
  margin: 14px auto 0;
  max-width: 62ch;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  opacity: 0.72;
  text-align: left;
}
.foot-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

/* Modal — always fits viewport width; only thumbs scroll sideways */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(18, 20, 15, 0.55);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  /* never let modal content grow the page sideways */
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.sheet {
  width: min(980px, 100%);
  max-width: 100%;
  min-width: 0;
  max-height: min(92vh, 860px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  /* vertical scroll only — horizontal overflow is clipped */
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s var(--ease);
  box-sizing: border-box;
}
.overlay.open .sheet { transform: none; }
.sheet-gallery {
  background: #eef1ea;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 860px);
  overflow: hidden; /* thumbs scroll inside, not the whole sheet */
}
.sheet-main {
  flex: 1 1 auto;
  min-height: 220px;
  min-width: 0;
  max-height: calc(92vh - 96px);
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.sheet-main:active { cursor: grabbing; }
.sheet-main img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: calc(92vh - 120px);
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  pointer-events: none; /* swipe hits the container */
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.sheet-main.is-swiping img {
  transition: none;
}
/* subtle swipe hint arrows on touch/desktop */
.sheet-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  opacity: 0.92;
}
.sheet-nav:hover { opacity: 1; }
.sheet-nav.prev { left: 10px; }
.sheet-nav.next { right: 10px; }
.sheet-nav[hidden] { display: none !important; }
.sheet-counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(18, 20, 15, 0.55);
  color: #fff;
  pointer-events: none;
}
.sheet-counter[hidden] { display: none !important; }
.sheet-main .sheet-photo {
  cursor: zoom-in;
}

/* Fullscreen lightbox over product modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(8, 10, 7, 0.88);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox[hidden] {
  display: none !important;
}
.lightbox.open[hidden] {
  display: grid !important;
}
.lightbox-stage {
  width: min(96vw, 1400px);
  height: min(88vh, 92dvh);
  display: grid;
  place-items: center;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox-stage:active { cursor: grabbing; }
.lightbox-img {
  max-width: 100%;
  max-height: min(88vh, 92dvh);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lightbox-stage.is-swiping .lightbox-img {
  transition: none;
}
.lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(0, 0, 0, 0.65); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-nav.prev { left: max(10px, env(safe-area-inset-left, 0px)); }
.lightbox-nav.next { right: max(10px, env(safe-area-inset-right, 0px)); }
.lightbox-nav[hidden] { display: none !important; }
.lightbox-counter {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  pointer-events: none;
}
.lightbox-counter[hidden] { display: none !important; }
@media (max-width: 600px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .lightbox-stage {
    width: 100vw;
    height: min(78vh, 80dvh);
  }
  .lightbox-img {
    max-height: min(78vh, 80dvh);
    border-radius: 0;
  }
}
.sheet-main .ph {
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
.thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid var(--line);
  background: #f7f6f2;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.thumbs button {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  opacity: 0.75;
  background: #fff;
}
.thumbs button.active {
  opacity: 1;
  border-color: var(--green);
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sheet-body {
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  max-height: min(92vh, 860px);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}
.sheet-body .sku {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.sheet-body h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#sheet-desc {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  box-sizing: border-box;
}
#sheet-desc * {
  max-width: 100%;
  box-sizing: border-box;
}
#sheet-desc .lead {
  color: var(--ink);
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
}
#sheet-desc .note {
  font-size: 12px;
  opacity: 0.8;
  margin: 0 0 12px;
}
#sheet-desc h4 {
  margin: 14px 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 800;
}
#sheet-desc p {
  margin: 0 0 10px;
  max-width: 100%;
}
#sheet-desc ul {
  margin: 0 0 6px;
  padding-left: 1.15em;
  max-width: 100%;
}
#sheet-desc li { margin-bottom: 3px; }
/* tables: stack-friendly fixed layout, never wider than card */
#sheet-desc .spec {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  margin: 6px 0 10px;
  display: table;
}
#sheet-desc .spec th,
#sheet-desc .spec td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
#sheet-desc .spec th {
  background: var(--green-soft);
  color: var(--ink);
  width: 40%;
}
#sheet-desc .spec td { width: 60%; }
#sheet-desc .soon-line {
  font-size: clamp(1.1rem, 4.5vw, 1.6rem);
  font-weight: 900;
  color: var(--green);
  letter-spacing: 0.04em;
  margin: 8px 0;
}
.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
}
.sheet-actions .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 20px;
  display: grid;
  place-items: center;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .overlay {
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .sheet {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: 94vh;
    max-height: 94dvh;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 18px;
    -webkit-overflow-scrolling: touch;
  }
  .sheet-gallery {
    max-height: none;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .sheet-main {
    max-height: 38vh;
    min-height: 160px;
    padding: 10px;
    min-width: 0;
  }
  .sheet-main img { max-height: 36vh; max-width: 100%; }
  .sheet-body {
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 16px 14px 18px;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .sheet-body h2 {
    font-size: 1.15rem;
    line-height: 1.25;
  }
  #sheet-desc {
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
    font-size: 13px;
    line-height: 1.45;
    width: 100%;
    min-width: 0;
  }
  #sheet-desc .lead { font-size: 14px; }
  #sheet-desc h4 {
    font-size: 10px;
    margin: 12px 0 5px;
  }
  #sheet-desc .spec {
    font-size: 12px;
    width: 100%;
  }
  #sheet-desc .spec th,
  #sheet-desc .spec td {
    padding: 7px 8px;
  }
  .sheet-actions {
    flex-direction: column;
    width: 100%;
  }
  .sheet-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .hero {
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    padding-top: max(64px, env(safe-area-inset-top, 0px));
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  }
  .hero-logo { width: min(78vw, 300px); }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .hero-fade { height: 48px; }
  .sheet-nav { width: 36px; height: 36px; font-size: 20px; }
  .sheet-nav.prev { left: 6px; }
  .sheet-nav.next { right: 6px; }
  .overlay {
    padding: 0;
    width: 100%;
    max-width: 100vw;
  }
  .sheet {
    width: 100%;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
    min-height: min(92dvh, 100%);
    overflow-x: hidden;
  }
  .sheet-body {
    padding: 14px 12px 20px;
    width: 100%;
    max-width: 100%;
  }
  .sheet-body h2 {
    font-size: 1.05rem;
    padding-right: 36px; /* room for close btn */
  }
  #sheet-desc {
    font-size: 12.5px;
    width: 100%;
  }
  #sheet-desc .lead {
    font-size: 13px;
  }
  #sheet-desc ul {
    padding-left: 1.1em;
  }
  /* on very small screens stack table rows as cards */
  #sheet-desc .spec,
  #sheet-desc .spec thead,
  #sheet-desc .spec tbody,
  #sheet-desc .spec tr,
  #sheet-desc .spec th,
  #sheet-desc .spec td {
    display: block;
    width: 100%;
  }
  #sheet-desc .spec thead { display: none; }
  #sheet-desc .spec tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
  }
  #sheet-desc .spec th,
  #sheet-desc .spec td {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 10px;
    width: 100%;
  }
  #sheet-desc .spec td:last-child { border-bottom: 0; }
  #sheet-desc .spec td {
    font-weight: 600;
    color: var(--ink);
  }
  #sheet-desc .spec th {
    background: var(--green-soft);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  #sheet-desc .soon-line {
    font-size: 1.15rem;
  }
  .thumbs {
    width: 100%;
    max-width: 100%;
  }
  .thumbs button {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
  }
}
