/* =========================================================
   Drylab ESL — styles
   Palette borrowed from the product: e-paper grey, ink, price red.
   ========================================================= */

:root {
  /* colour tokens */
  --bg: #EEECE8;
  --bg-alt: #E5E2DC;
  --surface: #FFFFFF;
  --ink: #141414;
  --ink-2: #45433F;
  --ink-3: #6A6762;
  --line: #D4D0C8;
  --line-strong: #B9B4AA;
  --red: #B4232A;
  --red-hover: #921B21;
  --on-red: #FFFFFF;
  --focus: #0B5FD6;
  --ok: #1F7A3A;
  --error: #B4232A;
  --band: #141414;
  --on-band: #F2F0EC;
  --on-band-2: #B8B4AC;

  /* the physical label (stays light in dark mode — it's an object) */
  --esl-bezel: #FAFAF7;
  --esl-bezel-edge: #DCD9D2;
  --esl-screen: #E3E0D9;
  --esl-screen-edge: #C9C5BC;
  --esl-ink: #1E1E1E;
  --esl-red: #C0262D;

  /* type */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* spacing (8pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 2px rgb(20 20 20 / .06), 0 2px 8px rgb(20 20 20 / .05);
  --shadow-2: 0 2px 4px rgb(20 20 20 / .06), 0 12px 32px rgb(20 20 20 / .10);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 150ms;
  --t-med: 250ms;

  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --bg-alt: #181817;
    --surface: #1E1E1D;
    --ink: #F0EEEA;
    --ink-2: #C9C5BE;
    --ink-3: #A29E97;
    --line: #2F2E2C;
    --line-strong: #46443F;
    --red: #EE5A60;
    --red-hover: #FF7A7F;
    --on-red: #1A0506;
    --focus: #7AB0FF;
    --ok: #5BC97A;
    --error: #FF7A7F;
    --band: #0A0A0A;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-2: 0 12px 32px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121212; --bg-alt: #181817; --surface: #1E1E1D;
  --ink: #F0EEEA; --ink-2: #C9C5BE; --ink-3: #A29E97;
  --line: #2F2E2C; --line-strong: #46443F;
  --red: #EE5A60; --red-hover: #FF7A7F; --on-red: #1A0506;
  --focus: #7AB0FF; --ok: #5BC97A; --error: #FF7A7F; --band: #0A0A0A;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 1000;
  background: var(--ink); color: var(--bg); padding: var(--s3) var(--s4);
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: var(--s4); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s4); }
.container-narrow { max-width: 820px; }
@media (min-width: 768px) { .container { padding-inline: var(--s6); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 var(--s4); font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: var(--on-red); }
.btn-primary:hover { background: var(--red-hover); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: var(--surface); }
.btn-outline[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-ghost { color: var(--ink); background: transparent; padding-inline: var(--s4); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-decoration-color: var(--line-strong); }
.btn-ghost:hover { text-decoration-color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--s4); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-mark { width: 32px; height: 32px; }
.bm-body { fill: var(--esl-bezel); stroke: var(--ink); stroke-width: 2; }
.bm-ink { fill: var(--esl-ink); }
.bm-red { fill: var(--esl-red); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: transparent;
}
.site-nav {
  position: absolute; inset: var(--header-h) 0 auto 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: var(--s4) var(--s4) var(--s5);
  display: none; flex-direction: column; gap: var(--s4);
}
.site-nav.is-open { display: flex; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav ul a {
  display: flex; align-items: center; min-height: 48px; padding: 0 var(--s2);
  text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line);
}
.site-nav ul a:hover { color: var(--red); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: var(--s5);
    background: none; border: 0; padding: 0;
  }
  .site-nav ul { flex-direction: row; gap: var(--s1); }
  .site-nav ul a { border: 0; min-height: 44px; padding: 0 var(--s3); border-radius: 999px; font-size: .9375rem; }
  .site-nav ul a:hover { background: var(--bg-alt); color: var(--ink); }
}

/* ---------- language switcher (partials/lang_switch.php) ---------- */
.lang-switch { display: inline-flex; margin-left: auto; padding: 2px; border: 1.5px solid var(--line-strong); border-radius: 999px; }
.lang-switch a {
  display: inline-grid; place-items: center; min-width: 40px; min-height: 36px; padding: 0 8px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--ink);
}
.lang-switch a:hover { background: var(--bg-alt); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--bg); }
@media (min-width: 900px) { .lang-switch { order: 3; margin-left: 0; } }

/* Spam trap in the quote form: kept out of sight and out of the tab order. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--s8); }
@media (min-width: 768px) { .section { padding-block: var(--s9); } }
.section-alt { background: var(--bg-alt); }
.section-ink { background: var(--band); color: var(--on-band); }
.section-head { max-width: 680px; margin-bottom: var(--s7); }
.section-head h2 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 2.875rem); font-weight: 700; }
.section-lead { margin-top: var(--s4); font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; }
.section-ink .section-lead { color: var(--on-band-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-mono); font-weight: 600; font-size: .8125rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--red);
  margin-bottom: var(--s4);
}
.eyebrow-light { color: #FF8A8F; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 20%, transparent); }

.note { margin-top: var(--s5); font-size: .875rem; color: var(--ink-3); }
.note a { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-block: var(--s7) var(--s8); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); align-items: center; }
@media (min-width: 960px) {
  .hero { padding-block: var(--s8) var(--s9); }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s8); }
}
.hero h1 { font-size: clamp(2.375rem, 1.4rem + 4.4vw, 4.25rem); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--red); }
.lead { margin-top: var(--s5); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin: var(--s7) 0 0; padding-top: var(--s5); border-top: 1px solid var(--line); max-width: 520px; }
.stats div { min-width: 0; }
.stats dt { font-size: .8125rem; color: var(--ink-3); }
.stats dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.hero-demo {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: var(--s5);
  padding: var(--s7) var(--s4) var(--s6);
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--surface) 90%, transparent), transparent 70%),
    var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.demo-rail {
  position: absolute; left: 0; right: 0; top: calc(var(--s7) - 10px); height: 14px;
  background: linear-gradient(#F4F3EF, #DAD7CF);
  border-block: 1px solid #C8C4BB;
}
.demo-figure { margin: 0; width: min(100%, 400px); position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: var(--s4); }
.demo-caption { text-align: center; }
.demo-status {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-2);
}
.demo-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.demo-status.is-busy::before { background: #D49A1A; animation: pulse 0.6s ease-in-out infinite alternate; }
.demo-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); position: relative; z-index: 1; }
@keyframes pulse { to { opacity: .3; } }

/* =========================================================
   ESL component — a CSS model of the physical label.
   Text scales with the label's width via container units.
   ========================================================= */
.esl {
  --w: 300px;
  container-type: inline-size;
  position: relative;
  width: var(--w); max-width: 100%;
  aspect-ratio: 2 / 1.1;
  padding: 5.5% 6% 6.5%;
  background: linear-gradient(180deg, #FFFFFF, var(--esl-bezel) 60%, #F0EFEA);
  border: 1px solid var(--esl-bezel-edge);
  border-radius: clamp(6px, 4cqi, 14px);
  box-shadow: 0 1px 0 #fff inset, 0 2px 3px rgb(0 0 0 / .08), 0 10px 24px rgb(0 0 0 / .12);
  color: var(--esl-ink);
  flex: none;
}
.esl::before { /* clip on top */
  content: ""; position: absolute; top: -7%; left: 50%; translate: -50% 0;
  width: 38%; height: 10%; border-radius: 3px 3px 0 0;
  background: linear-gradient(#FDFDFB, #ECEAE5); border: 1px solid var(--esl-bezel-edge); border-bottom: 0;
}
.esl__screen {
  position: relative; height: 100%;
  display: grid; grid-template-rows: auto 1fr auto; align-content: start;
  padding: 4% 5% 3%;
  background: var(--esl-screen);
  border: max(2px, 1.6cqi) solid var(--esl-screen-edge);
  border-radius: 2px;
  overflow: hidden;
  font-family: var(--font-body);
}
.esl__name { font-weight: 600; font-size: 7.4cqi; line-height: 1.12; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.esl__price {
  align-self: center; justify-self: center;
  font-family: var(--font-display); font-weight: 800; font-size: 21cqi; line-height: 1;
  color: var(--esl-red); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.esl__was { position: absolute; left: 6%; bottom: 25%; font-size: 6.4cqi; font-weight: 600; text-decoration: line-through; text-decoration-thickness: 2px; color: var(--esl-ink); opacity: .8; }
.esl__badge {
  position: absolute; right: 0; top: 34%;
  background: var(--esl-red); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 5.4cqi; letter-spacing: .08em;
  padding: 1.2cqi 3cqi 1.2cqi 4cqi;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 10% 100%, 0 50%);
}
.esl__meta { display: flex; justify-content: space-between; gap: 4cqi; font-family: var(--font-mono); font-size: 3.8cqi; color: #4A4843; white-space: nowrap; }
.esl__code { opacity: .75; }
.esl__led { position: absolute; top: 9%; right: 3.2%; width: max(4px, 2.2cqi); aspect-ratio: 1; border-radius: 50%; background: #CFCBC3; box-shadow: inset 0 1px 1px rgb(0 0 0 / .25); }
.esl__led.is-on { background: #3CCB5A; box-shadow: 0 0 6px #3CCB5A; }

.esl--hero { --w: 400px; }
.esl--square { aspect-ratio: 1 / 1.08; }
.esl--square .esl__name { font-size: 10cqi; }
.esl--square .esl__price { font-size: 25cqi; }
.esl--tall { aspect-ratio: 4 / 3.2; }
.esl--tall .esl__name { font-size: 7cqi; }
.esl--wide { aspect-ratio: 5 / 3.2; }

/* e-paper refresh: the screen flashes ink → paper → ink like a real panel */
.esl__screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--esl-ink); opacity: 0;
}
.esl.is-refreshing .esl__screen::after { animation: epaper-flash 900ms steps(1, end) forwards; }
@keyframes epaper-flash {
  0%   { opacity: 1; background: var(--esl-ink); }
  18%  { opacity: 1; background: var(--esl-screen); }
  36%  { opacity: 1; background: var(--esl-ink); }
  54%  { opacity: 1; background: var(--esl-screen); }
  72%  { opacity: .55; background: var(--esl-red); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .esl.is-refreshing .esl__screen::after { animation: epaper-fade 300ms ease-out forwards; }
  @keyframes epaper-fade { 0% { opacity: .6; background: var(--esl-screen); } 100% { opacity: 0; } }
}

/* ---------- benefits ---------- */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5); }
.benefit h3 { font-size: 1.1875rem; font-weight: 700; margin-top: var(--s4); }
.benefit p { margin-top: var(--s2); color: var(--ink-2); font-size: .9688rem; }
.benefit-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.benefit-icon .icon { width: 22px; height: 22px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.chip {
  min-height: 44px; padding: 0 var(--s4);
  border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent;
  font-weight: 500; font-size: .9375rem;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- range grid ---------- */
.range-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.range-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--t-med) var(--ease-out), border-color var(--t-med);
}
.range-card:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.range-card[hidden] { display: none; }
.range-preview {
  position: relative; height: 220px;
  display: grid; place-items: center; padding: var(--s6) var(--s5) var(--s5);
  background:
    linear-gradient(to bottom, transparent calc(50% - 46px), #DCD9D1 calc(50% - 46px), #DCD9D1 calc(50% - 38px), transparent calc(50% - 38px)),
    #F1EFEB;
  border-bottom: 1px solid var(--line);
}
.range-preview .esl { --w: calc(var(--scale, 1) * 150px); }
.range-flag {
  position: absolute; top: var(--s3); left: var(--s3);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--ink); color: var(--bg); padding: 4px 10px; border-radius: 999px;
}
.range-size {
  position: absolute; top: var(--s3); right: var(--s3);
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 600; color: #4A4843;
}
.range-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.range-body h3 { font-size: 1.25rem; font-weight: 700; }
.range-body > p { color: var(--ink-2); font-size: .9688rem; }
.specs { margin: var(--s2) 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s4); font-size: .875rem; }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; font-family: var(--font-mono); font-weight: 500; font-size: .8438rem; font-variant-numeric: tabular-nums; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--s3); list-style: none; padding-left: 0; }
.tag-list li { font-size: .8125rem; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.tag-list .icon { width: 14px; height: 14px; }

/* ---------- gallery ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
}
.gallery-item { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.gallery-btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt);
  aspect-ratio: 16 / 9;
}
@media (min-width: 960px) {
  .gallery-btn { aspect-ratio: auto; height: 340px; }
}
.gallery-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.gallery-btn:hover img { transform: scale(1.03); }
.gallery-expand {
  position: absolute; right: var(--s3); bottom: var(--s3);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: rgb(20 20 20 / .72); color: #fff;
  opacity: .9; transition: opacity var(--t-fast);
}
.gallery-btn:hover .gallery-expand, .gallery-btn:focus-visible .gallery-expand { opacity: 1; }
.gallery-caption h3 { font-size: 1.0625rem; font-weight: 700; }
.gallery-caption p { color: var(--ink-2); font-size: .9375rem; margin-top: 2px; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.step { position: relative; padding: var(--s5); border: 1px solid #2E2D2B; border-radius: var(--radius-lg); background: #1B1B1A; }
.step-num { position: absolute; top: var(--s5); right: var(--s5); font-family: var(--font-mono); font-weight: 600; font-size: .875rem; color: var(--on-band-2); }
.step-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #2A2A28; color: #FF8A8F; }
.step-icon .icon { width: 24px; height: 24px; }
.step h3 { margin-top: var(--s5); font-size: 1.25rem; font-weight: 700; color: var(--on-band); }
.step p { margin-top: var(--s2); color: var(--on-band-2); }

/* ---------- segments ---------- */
.segments { display: grid; gap: var(--s4); }
@media (min-width: 860px) { .segments { grid-template-columns: 1fr 1fr; } }
.segment { display: flex; flex-direction: column; gap: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s6) var(--s5); }
@media (min-width: 768px) { .segment { padding: var(--s6); } }
.segment--feature { border: 2px solid var(--ink); }
.segment-head { display: flex; align-items: center; gap: var(--s3); }
.segment-head h3 { font-size: 1.5rem; font-weight: 700; }
.segment-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-alt); }
.segment > p { color: var(--ink-2); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.checklist li { display: flex; gap: var(--s3); align-items: flex-start; }
.checklist .icon { color: var(--ok); margin-top: 2px; }
.segment-price { margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.segment-price span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .875rem; color: var(--ink-3); letter-spacing: 0; }
.segment-price small { font-family: var(--font-body); font-weight: 400; font-size: .875rem; color: var(--ink-3); letter-spacing: 0; }
.segment .btn { align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  min-height: 64px; padding: var(--s4) 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  rotate: 45deg; translate: 0 -3px; transition: rotate var(--t-med) var(--ease-out), translate var(--t-med) var(--ease-out);
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq summary:hover { color: var(--red); }
.faq details p { padding: 0 0 var(--s5); color: var(--ink-2); max-width: 66ch; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: var(--s7); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: var(--s8); align-items: start; } }
.contact-copy h2 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 2.875rem); font-weight: 700; }
.contact-list { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: var(--s3); }
.contact-list li { display: grid; grid-template-columns: 72px 1fr; gap: var(--s3); align-items: baseline; padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.contact-list span { font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.contact-list a { font-weight: 600; text-underline-offset: 3px; }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5); display: grid; gap: var(--s4); box-shadow: var(--shadow-1); }
@media (min-width: 768px) { .contact-form { padding: var(--s6); } }
.field-row { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .9375rem; }
.req { color: var(--red); }
.opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 112px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .875rem; font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
.field-help { color: var(--ink-3); font-size: .875rem; }

.error-summary { border: 2px solid var(--error); border-radius: var(--radius); padding: var(--s4); background: color-mix(in srgb, var(--error) 8%, transparent); }
.error-summary h3 { font-size: 1rem; font-weight: 700; }
.error-summary ul { margin: var(--s2) 0 0; padding-left: 1.2em; }
.error-summary a { color: var(--error); font-weight: 500; }

.form-success { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); border-radius: var(--radius); background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ink); font-weight: 500; }
.form-success[hidden] { display: none; }
.form-success .icon { color: var(--ok); margin-top: 2px; }
.btn.is-loading .btn-label::after { content: "…"; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s7); }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); align-items: center; justify-content: space-between; color: var(--ink-2); font-size: .9375rem; }
.footer-small { width: 100%; color: var(--ink-3); font-size: .875rem; }
@media (min-width: 768px) { .footer-small { width: auto; } }

/* ---------- lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100%; height: 100%; color: #fff; }
.lightbox::backdrop { background: rgb(10 10 10 / .92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px var(--s4); }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); display: grid; gap: var(--s3); }
.lightbox img { max-height: calc(100dvh - 160px); width: auto; margin-inline: auto; border-radius: var(--radius); object-fit: contain; }
.lightbox figcaption { text-align: center; color: #D8D5CF; font-size: .9375rem; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); background: rgb(30 30 30 / .8); color: #fff; z-index: 2; }
.lb-btn:hover { background: rgb(60 60 60 / .9); }
.lb-btn:focus-visible { outline-color: #7AB0FF; }
.lb-close { top: var(--s4); right: var(--s4); }
.lb-prev { left: var(--s3); top: 50%; translate: 0 -50%; }
.lb-next { right: var(--s3); top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: var(--s4); translate: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; translate: 0 12px; transition: opacity 400ms var(--ease-out), translate 400ms var(--ease-out); }
.reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; }
  .reveal { opacity: 1; translate: none; }
  .gallery-btn:hover img { transform: none; }
}
