/* ==========================================================================
   "CoWork Solutions" SIA — office inventory sale
   Cool off-white ground, navy ink, one green accent for savings and WhatsApp.
   Outfit + DM Sans.
   Elevation is a tone step; shadows only on things that float.
   ========================================================================== */

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

:root {
  /* Surfaces */
  --ground:        #F5F6F8;
  --surface:       #FFFFFF;
  --tone:          #ECEFF3;
  --tone-strong:   #DDE2E9;
  --navy:          #0C1A3A;
  --navy-2:        #16295A;
  --navy-deep:     #081230;

  /* Ink */
  --ink:           #0C1A3A;
  --text:          #1E2940;
  --muted:         #4E5B73;
  --on-navy:       #F5F7FB;
  --on-navy-dim:   #B9C3D6;
  --line-on-navy:  rgba(245, 247, 251, 0.14);
  --line:          rgba(12, 26, 58, 0.09);

  /* Accent */
  --green:         #15803D;   /* savings, stock, WhatsApp — 5:1 on white */
  --green-2:       #116B33;
  --green-on-navy: #7DD8A0;
  --focus:         #2F6FDB;
  --stock:         var(--green);

  /* Type */
  --font-display: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-text:    'DM Sans', ui-sans-serif, system-ui, sans-serif;

  /* Space & shape */
  --gutter:      clamp(18px, 4vw, 40px);
  --section-y:   clamp(72px, 9vw, 136px);
  --radius:      16px;
  --radius-sm:   10px;
  --header-h:    68px;

  /* Motion */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --shadow-float: 0 12px 32px -8px rgba(8, 18, 48, 0.28), 0 2px 6px rgba(8, 18, 48, 0.12);
}

/* --- Browser surfaces --- */
html {
  background: var(--ground);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scrollbar-color: #B6BFCC transparent;
  accent-color: var(--navy);
}

::selection { background: var(--navy); color: var(--on-navy); }

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

body {
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; height: auto; }

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

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

button, a, [role="button"] { touch-action: manipulation; }

button, [role="button"], .btn, .lang-btn, .header-cart, .thumb, .selection-bar-btn {
  user-select: none;
  -webkit-user-select: none;
}

button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; }

.tabular { font-variant-numeric: tabular-nums; }

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(1264px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--on-navy);
  font-weight: 600;
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(12, 26, 58, 0.35);
  transition: text-decoration-color 160ms var(--ease-out);
}

.link-btn {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 6px 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--navy); color: var(--on-navy); }

.btn-quiet { color: var(--ink); padding: 0 16px; }
.btn-quiet .icon { fill: currentColor; stroke: none; width: 16px; height: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(245, 246, 248, 0.88);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: box-shadow 220ms var(--ease-out), background-color 220ms var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(245, 246, 248, 0.94);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(8, 18, 48, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: auto;
  min-width: 0;
}

.brand-logo { height: 22px; width: auto; filter: brightness(0); }

.brand-context {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  box-shadow: inset 1px 0 0 var(--tone-strong);
  line-height: 1.3;
  white-space: nowrap;
}
.brand-title { font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.brand-loc { font-size: 0.75rem; color: var(--muted); }

.header-nav { display: flex; align-items: center; gap: 2px; }

.nav-link {
  position: relative;
  padding: 8px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.nav-link[aria-current="true"] { color: var(--ink); }
.nav-link[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.header-controls { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: flex;
  padding: 3px;
  background: var(--tone);
  border-radius: 999px;
}
.lang-btn {
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  border-radius: 999px;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.lang-btn.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(8, 18, 48, 0.1); }

.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 6px 0 16px;
  background: var(--navy);
  color: var(--on-navy);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 140ms var(--ease-out), background-color 180ms var(--ease-out);
}
.header-cart:active { transform: scale(0.97); }

.header-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  background: var(--surface);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 999px;
}
.header-cart-count.is-bumped { animation: bump 320ms var(--ease-out); }

@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(40px, 6vw, 80px) 0 var(--section-y); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.1rem + 4.9vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 12.5em;
  text-wrap: balance;
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 52px);
}

.hero-lead {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text);
  max-width: 52ch;
  text-wrap: pretty;
}
.hero-lead strong { color: var(--ink); font-weight: 700; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 32px;
}

.hero-media {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tone);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section-head { margin-bottom: clamp(32px, 4.5vw, 64px); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.15rem + 2.3vw, 3.125rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 21em;
  text-wrap: balance;
}

.section-lead {
  margin-top: 18px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 62ch;
  text-wrap: pretty;
}

/* ==========================================================================
   Catalog
   ========================================================================== */
.catalog { padding-bottom: var(--section-y); }

.catalog-list {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.item {
  display: grid;
  grid-template-columns: minmax(0, 4.6fr) minmax(0, 6.4fr);
  gap: clamp(24px, 3.4vw, 56px);
  padding: 14px;
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  transition: box-shadow 220ms var(--ease-out);
}
.item.is-selected { box-shadow: inset 0 0 0 2px var(--navy); }

/* Gallery */
.item-media { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.gallery {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--tone);
}

.gallery-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -3px; }

.gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: zoom-in;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }

.gallery-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 11px;
  background: rgba(8, 18, 48, 0.72);
  color: var(--on-navy);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gallery-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(8, 18, 48, 0.16);
  transition: opacity 180ms var(--ease-out), transform 140ms var(--ease-out), background-color 160ms var(--ease-out);
}
.gallery-btn:active { transform: scale(0.94); }
.gallery-btn:disabled { opacity: 0 !important; pointer-events: none; }
.gallery-btn--prev { left: 12px; top: 50%; margin-top: -22px; }
.gallery-btn--next { right: 12px; top: 50%; margin-top: -22px; }
.gallery-btn--zoom { right: 12px; bottom: 12px; width: 40px; height: 40px; }
.gallery-btn--prev:active, .gallery-btn--next:active { transform: scale(0.94); }

.thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.thumbs::-webkit-scrollbar { display: none; }

.thumb {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--tone);
  opacity: 0.55;
  transition: opacity 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 140ms var(--ease-out);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:active { transform: scale(0.95); }
.thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--navy); }

/* Body */
.item-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(4px, 1.4vw, 20px) clamp(4px, 1.2vw, 18px) 4px 0;
}

.item-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.item-meta {
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.item-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 22px;
}
.price-now {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price-vat {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}
.price-unit {
  flex-basis: 100%;
  font-size: 0.9375rem;
  color: var(--muted);
}
.price-was {
  flex-basis: 100%;
  font-size: 0.9375rem;
  color: var(--muted);
}
.price-was s { text-decoration-thickness: 1.5px; }
.price-off { color: var(--green); font-weight: 700; }

.item-desc {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.62;
  color: var(--text);
  max-width: 64ch;
  text-wrap: pretty;
}

.item-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--ground);
  border-radius: var(--radius-sm);
}
.item-specs dt { font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }
.item-specs dd { margin-top: 3px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); line-height: 1.4; }

.item-ext {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 16px;
  font-size: 0.9375rem;
}
.item-ext .icon { width: 15px; height: 15px; }

.item-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: auto;
  padding-top: 26px;
}

.item-stock {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}
.item-stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stock);
}

/* Quantity control — add button morphs into a stepper */
.qty-slot { display: flex; align-items: center; gap: 12px; }
.qty-slot > * { animation: slot-in 200ms var(--ease-out); }

@keyframes slot-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px 0 18px;
  background: var(--navy);
  color: var(--on-navy);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 140ms var(--ease-out), background-color 180ms var(--ease-out);
}
.add-btn:active { transform: scale(0.97); }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--tone);
  border-radius: 999px;
}
.stepper-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(8, 18, 48, 0.08);
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.stepper-btn:active { transform: scale(0.92); }
.stepper-btn:disabled { background: transparent; color: #9AA4B5; box-shadow: none; }
.stepper-value {
  min-width: 40px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}
.qty-max { font-size: 0.875rem; color: var(--muted); white-space: nowrap; }

/* ==========================================================================
   Video
   ========================================================================== */
.walkthrough { padding-block: var(--section-y); background: var(--surface); }

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 3.16fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: #0A1226;
}
.video-item--wide .video-frame { aspect-ratio: 16 / 9; }
.video-item--tall .video-frame { aspect-ratio: 9 / 16; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #0A1226; }

.video-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  max-width: 60ch;
}
.video-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.video-desc { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }

/* ==========================================================================
   Calculator
   ========================================================================== */
.calculator { padding-block: var(--section-y); }

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

.calc-panel {
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  padding: 8px clamp(16px, 2vw, 28px) 12px;
}

.calc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 14px;
}
.calc-panel-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.calc-rows { list-style: none; }

.calc-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  box-shadow: inset 0 1px 0 var(--line);
}

.calc-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--tone);
}

.calc-name {
  display: block;
  font-size: 0.9875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.calc-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.calc-sub { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--muted); }

.calc-price {
  text-align: right;
  font-size: 0.9875rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
}
.calc-price small { display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); }

.calc-row .stepper-btn { width: 38px; height: 38px; }
.calc-row .stepper-value { min-width: 32px; font-size: 1rem; }
.calc-row.is-selected .calc-thumb { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--navy); }

/* Invoice */
.invoice {
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--navy);
  color: var(--on-navy);
  border-radius: calc(var(--radius) + 4px);
}

.invoice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.invoice-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.invoice-count { font-size: 0.875rem; color: var(--on-navy-dim); }

.invoice-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.invoice-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.invoice-line-qty { color: var(--on-navy); font-weight: 700; margin-right: 4px; }
.invoice-line-sum { white-space: nowrap; font-weight: 600; }
.invoice-empty { font-size: 0.9375rem; line-height: 1.55; color: var(--on-navy-dim); }

.invoice-totals {
  margin-top: 20px;
  padding-top: 18px;
  box-shadow: inset 0 1px 0 var(--line-on-navy);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 0.9375rem;
  color: var(--on-navy-dim);
}
.invoice-row dd { color: var(--on-navy); font-weight: 600; white-space: nowrap; }
.invoice-row--net { margin-bottom: 4px; }
.invoice-row--net dt { color: var(--on-navy); font-weight: 600; }
.invoice-row--net dd {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.5rem + 1vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.invoice-row--gross dt { color: var(--on-navy); }
.invoice-row--save dd { color: var(--green-on-navy); }

.invoice-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.btn-invoice { background: var(--surface); color: var(--navy); width: 100%; }
.btn-invoice-quiet {
  background: rgba(245, 247, 251, 0.08);
  color: var(--on-navy);
  width: 100%;
}
.btn-invoice-quiet:disabled { color: rgba(245, 247, 251, 0.4); background: rgba(245, 247, 251, 0.04); }
.btn-invoice-quiet:disabled:active { transform: none; }

.invoice-note {
  margin-top: 18px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--on-navy-dim);
}

/* Reservation form (on navy) */
.reserve,
.reserve-done {
  margin-top: 26px;
  padding-top: 24px;
  box-shadow: inset 0 1px 0 var(--line-on-navy);
}
.reserve-title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--on-navy);
}
.reserve-hint {
  margin-top: 6px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--on-navy-dim);
}

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--on-navy); }
.field-opt { font-weight: 400; color: var(--on-navy-dim); }
.field-opt::before { content: "· "; }

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--on-navy);
  background: rgba(245, 247, 251, 0.07);
  border: 1px solid rgba(245, 247, 251, 0.16);
  border-radius: 12px;
  caret-color: var(--on-navy);
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(245, 247, 251, 0.6);
  background: rgba(245, 247, 251, 0.11);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #FF9C9C; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.form-error {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #FFD9D9;
  background: rgba(255, 120, 120, 0.12);
  border-radius: 10px;
}
.form-error a { color: var(--on-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.reserve .btn-invoice { margin-top: 18px; }
.btn-invoice[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.reserve-fine { margin-top: 10px; font-size: 0.8125rem; color: var(--on-navy-dim); text-align: center; }

.reserve-done { text-align: left; }
.reserve-done:focus { outline: none; }
.reserve-done-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(125, 216, 160, 0.16);
  fill: none;
  stroke: var(--green-on-navy);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.link-btn--on-navy { color: var(--on-navy-dim); margin-top: 10px; }
.link-btn--on-navy:disabled { opacity: 0.45; text-decoration: none; }

/* Direct contact */
.direct {
  margin-top: 26px;
  padding-top: 22px;
  box-shadow: inset 0 1px 0 var(--line-on-navy);
}
.direct-title { font-size: 0.875rem; font-weight: 600; color: var(--on-navy-dim); }
.direct-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.direct-actions .btn { padding: 0 14px; font-size: 0.9375rem; }

.icon-fill { fill: currentColor; stroke: none; }

.btn-wa { background: var(--green); color: #FFFFFF; }
.btn-wa .icon { width: 19px; height: 19px; }

/* ==========================================================================
   Pickup
   ========================================================================== */
.logistics { padding-block: var(--section-y); background: var(--surface); }

.logistics-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.logistics-media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tone);
}
.logistics-media img { width: 100%; height: 100%; object-fit: cover; }

.logistics-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  margin-top: 40px;
}
.logistics-points dt {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}
.logistics-points dd {
  margin-top: 6px;
  font-size: 0.9875rem;
  line-height: 1.6;
  color: var(--text);
}
.logistics-points .contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.wa-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding: 20px;
  background: var(--ground);
  border-radius: var(--radius);
}
.wa-qr {
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
  padding: 8px;
  background: #FFFFFF;
  border-radius: 12px;
}
.wa-strip-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}
.wa-strip-text {
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 46ch;
}
.wa-strip .btn-wa { margin-top: 14px; min-height: 48px; }
.wa-tap { display: none; }

@media (hover: none), (max-width: 760px) {
  .wa-qr, .wa-scan { display: none; }
  .wa-tap { display: inline; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: clamp(40px, 5vw, 64px) 0 calc(clamp(40px, 5vw, 64px) + env(safe-area-inset-bottom, 0px));
  background: var(--navy-deep);
  color: var(--on-navy-dim);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
}
.footer-logo { height: 22px; width: auto; filter: brightness(0) invert(1); }
.footer-line { font-size: 0.9375rem; margin-right: auto; }
.footer-mail {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-navy);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(245, 247, 251, 0.35);
}

/* ==========================================================================
   Mobile selection bar
   ========================================================================== */
.selection-bar { display: none; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: #070D1E;
  color: var(--on-navy);
  opacity: 0;
  transition: opacity 160ms var(--ease-out);
  overscroll-behavior: contain;
}
.lightbox.is-open { opacity: 1; transition-duration: 220ms; }
.lightbox[hidden] { display: none; }

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(14px, 3vw, 28px);
}
.lightbox-title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.lightbox-count { margin-top: 2px; font-size: 0.8125rem; color: var(--on-navy-dim); }

.lightbox-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(245, 247, 251, 0.1);
  color: var(--on-navy);
  transition: background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}
.lightbox-close:active { transform: scale(0.94); }

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(12px, 7vw, 88px) clamp(12px, 3vw, 28px);
  touch-action: pan-y pinch-zoom;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.97);
  opacity: 0;
  transition: opacity 220ms var(--ease-out), transform 300ms var(--ease-out);
}
.lightbox.is-open .lightbox-stage img { transform: scale(1); opacity: 1; }
.lightbox.is-open .lightbox-stage img.is-switching { opacity: 0; transform: scale(0.985); transition-duration: 120ms; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 999px;
  background: rgba(245, 247, 251, 0.12);
  color: var(--on-navy);
  transition: background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}
.lightbox-nav:active { transform: scale(0.94); }
.lightbox-nav--prev { left: clamp(10px, 2vw, 24px); }
.lightbox-nav--next { right: clamp(10px, 2vw, 24px); }
.lightbox-nav[hidden] { display: none; }

/* ==========================================================================
   Motion: entrance + hero signature
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
  }
  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity 760ms var(--ease-out), transform 760ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

  html.js .hero-title { animation: rise 820ms var(--ease-out) both; }
  html.js .hero-copy { animation: rise 820ms 90ms var(--ease-out) both; }
  html.js .hero-media { animation: unveil 1200ms 140ms var(--ease-out) both; }
  html.js .hero-media img { animation: settle 1600ms 140ms var(--ease-out) both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes unveil {
  from { clip-path: inset(14% 0 0 0 round var(--radius)); opacity: 0.4; }
  to   { clip-path: inset(0 0 0 0 round var(--radius)); opacity: 1; }
}
@keyframes settle {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* ==========================================================================
   Hover — pointer devices only
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--ink); background: var(--tone); }
  .btn-primary:hover, .add-btn:hover, .header-cart:hover { background: var(--navy-2); }
  .btn-quiet:hover { background: var(--tone); }
  .text-link:hover { text-decoration-color: currentColor; }
  .link-btn:hover { color: var(--ink); }
  .lang-btn:not(.is-active):hover { color: var(--ink); }
  .stepper-btn:not(:disabled):hover { background: var(--navy); color: var(--on-navy); }
  .thumb:not([aria-current="true"]):hover { opacity: 0.85; }
  .gallery-btn--prev, .gallery-btn--next { opacity: 0; }
  .gallery:hover .gallery-btn--prev, .gallery:hover .gallery-btn--next,
  .gallery-btn:focus-visible { opacity: 1; }
  .gallery-btn:hover { background: #FFFFFF; }
  .btn-invoice:hover { background: #E3E8F0; }
  .btn-wa:hover { background: var(--green-2); }
  .link-btn--on-navy:not(:disabled):hover { color: var(--on-navy); }
  .btn-invoice-quiet:not(:disabled):hover { background: rgba(245, 247, 251, 0.14); }
  .lightbox-close:hover, .lightbox-nav:hover { background: rgba(245, 247, 251, 0.2); }
  .footer-mail:hover { text-decoration-color: currentColor; }
}

@media (hover: none) {
  .gallery-btn--prev, .gallery-btn--next { display: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .brand-context { display: none; }
}

@media (max-width: 1080px) {
  .header-nav { display: none; }
  .hero-body { grid-template-columns: 1fr; align-items: start; }
  .hero-lead { max-width: 60ch; }
  .calc-layout { grid-template-columns: 1fr; }
  .invoice { position: static; }
  .logistics-layout { grid-template-columns: 1fr; }
  .logistics-media { aspect-ratio: 16 / 10; }
}

@media (max-width: 900px) {
  .item { grid-template-columns: 1fr; gap: 18px; padding: 10px; }
  .item-body { padding: 4px 8px 8px; }
  .gallery { aspect-ratio: 4 / 4.4; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }

  .video-grid { grid-template-columns: 1fr; gap: 40px; }
  .video-item--tall { justify-self: center; width: min(100%, calc(74svh * 9 / 16)); }

  .calc-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb name name"
      "thumb price qty";
    row-gap: 10px;
    column-gap: 14px;
    align-items: center;
  }
  .calc-thumb { grid-area: thumb; width: 52px; height: 52px; align-self: start; }
  .calc-row > div:nth-child(2) { grid-area: name; }
  .calc-price { grid-area: price; text-align: left; }
  .calc-row .qty-slot { grid-area: qty; justify-self: end; }

  .logistics-points { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }

  /* Selection bar */
  .selection-bar {
    display: block;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    transform: translateY(calc(100% + 24px));
    visibility: hidden;
    transition: transform 320ms var(--ease-drawer), visibility 0s linear 320ms;
  }
  .selection-bar.is-visible {
    transform: none;
    visibility: visible;
    transition: transform 380ms var(--ease-drawer), visibility 0s;
  }
  .selection-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 8px 18px;
    background: var(--navy);
    color: var(--on-navy);
    border-radius: 18px;
    box-shadow: var(--shadow-float);
  }
  .selection-bar-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
  .selection-bar-units { font-size: 0.8125rem; color: var(--on-navy-dim); }
  .selection-bar-sum { font-size: 1.0625rem; font-weight: 700; white-space: nowrap; }
  .selection-bar-btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    background: var(--surface);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 12px;
    white-space: nowrap;
    transition: transform 140ms var(--ease-out);
  }
  .selection-bar-btn:active { transform: scale(0.97); }
  body.has-selection .site-footer { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 560px) {
  .header-cart { display: none; }
  .brand-logo { height: 19px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-media { aspect-ratio: 4 / 3.4; }
  .item-specs { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .field-row, .direct-actions { grid-template-columns: 1fr; }
  .wa-strip { padding: 18px; }
  .wa-strip .btn-wa { width: 100%; }
  .item-action { flex-direction: column; align-items: stretch; }
  .item-action .qty-slot { justify-content: space-between; }
  .add-btn { flex: 1; justify-content: center; }
  .footer-line { margin-right: 0; }
  .lightbox-nav { width: 44px; height: 44px; margin-top: -22px; background: rgba(5, 10, 24, 0.55); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
