/* Li-dream — design system v2 (Task 5) + page layouts
   Breakpoints: desktop >= 1200px, tablet 768–1199px, phone < 768px.
   v2 identity (spec §2): charcoal #1a1a1a header / hero, amber "energy" accent, light body.
   Type: display + figures in DIN-style Bahnschrift (Windows) / DIN Alternate (macOS) — the lettering of
   power-station displays and rating plates; body in the system UI face. No web fonts (no external CDN).
   Signature: the "readout" — segmented battery cells (hero readout, AI preview brand cells) that encode real data. */

/* ================================================================== v2 tokens */
:root {
  /* palette */
  --charcoal: #1a1a1a;      /* header, hero, AI preview */
  --graphite: #242527;      /* raised dark surfaces */
  --night: #121212;         /* utility bar, footer */
  --amber: #f2a33a;         /* energy accent: buttons, lit cells, highlights on dark */
  --amber-hi: #f6b85c;
  --amber-ink: #1f1405;     /* text on amber (8.7:1) */
  --amber-deep: #8a5100;    /* amber as text on light (5.9:1 on paper) */
  --paper: #f5f5f3;         /* page body */
  --surface: #ffffff;       /* cards, white sections */
  --ink: #17181a;
  --ink-2: #2b2d31;
  --muted: #5d6168;         /* 5.7:1 on paper */
  --line: #e2e2de;
  --line-2: #cfd0cc;
  --on-dark: #f1f0ec;
  --on-dark-2: #c3c4c6;     /* 10:1 on charcoal */
  --on-dark-3: #9a9ca1;     /* 6.4:1 on charcoal */
  --dark-line: rgba(255, 255, 255, 0.12);
  --focus: var(--ink);

  /* type */
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Bahnschrift SemiCondensed", "Bahnschrift", "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-figure: "Bahnschrift", "DIN Alternate", "Segoe UI", system-ui, sans-serif;

  /* secondary neutrals + status colours (the v1 --c-* aliases were retired in Task 6) */
  --subtle: #6c7078;        /* secondary labels (4.9:1 on white) */
  --soft: #efefec;          /* chips, tag fills, listing background */
  --soft-2: #e7e7e3;
  --media: #f0f0ed;         /* product image well */
  --red: #c8261f;
  --green: #1b7f45;
  --wa: #0f7a3f;            /* WhatsApp green darkened so white text passes AA (5.4:1) */

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;
  --s-11: 96px;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  --container: 1320px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --hdr-h: 72px;

  --shadow-sm: 0 1px 2px rgba(23, 24, 26, 0.06);
  --shadow-md: 0 12px 30px rgba(23, 24, 26, 0.10);
  --shadow-lg: 0 24px 60px rgba(23, 24, 26, 0.22);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ================================================================== base */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
s { text-decoration-thickness: 1px; }
svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.toolbar, .hdr, .drawer__ai, .hero2, .aiprev, .ftr, .bhero, .biz__card--pb { --focus: var(--amber); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--amber); color: var(--amber-ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ================================================================== buttons + small parts */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  background: none;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
/* 2026-10-12 QA：it / ru / pt / de 的长译文按钮（「Richiedi un preventivo per questo pacchetto」「Adicionar ao carrinho」）
   在手机上不再撑出横向滚动——整行按钮与购买区按钮允许换行；大号按钮改为最小高度，两行时长高。 */
.btn--block, .pdp__buy .btn { white-space: normal; text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
.btn--lg.btn--block, .pdp__buy .btn--lg { height: auto; min-height: 52px; padding-block: 8px; }
.btn--amber { background: var(--amber); color: var(--amber-ink); }
.btn--amber:hover { background: var(--amber-hi); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #ececea; }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn.is-added { background: var(--green); border-color: var(--green); color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.link-arrow::after {
  content: ""; width: 7px; height: 7px;
  border-top: 1.8px solid currentColor; border-right: 1.8px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s var(--ease);
}
.link-arrow:hover::after, a:hover > .link-arrow::after { transform: translateX(3px) rotate(45deg); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow svg { width: 16px; height: 16px; }
.eyebrow:has(svg)::before { display: none; }
.eyebrow--amber { color: var(--amber); }

.badge-save {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: var(--r-xs);
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: 0.01em; white-space: nowrap;
}

/* ================================================================== utility bar */
.toolbar { background: var(--night); color: var(--on-dark-2); font-size: 13px; }
.toolbar__inner { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.toolbar__left { margin-right: auto; }
.toolbar__right { display: flex; align-items: center; gap: 6px; }
.toolbar__right svg { width: 15px; height: 15px; }
.toolbar__wa { color: var(--amber); font-weight: 600; white-space: nowrap; }
.toolbar__wa:hover { text-decoration: underline; text-underline-offset: 3px; }

/* language switcher (only rendered when 2+ languages are built — Ruling 19) */
.lang-switch.toolbar__right { display: block; position: relative; }
.lang-switch__btn { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.lang-switch__btn::-webkit-details-marker { display: none; }
.lang-switch__btn::marker { content: ""; }
.lang-switch__btn svg { width: 15px; height: 15px; }
.lang-switch__btn .lang-switch__chev { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.lang-switch[open] .lang-switch__chev { transform: rotate(180deg); }
.lang-switch__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  min-width: 180px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; box-shadow: var(--shadow-md);
}
.lang-switch__list a { display: block; padding: 8px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink); white-space: nowrap; }
.lang-switch__list a:hover, .lang-switch__list a:focus-visible { background: var(--soft); }
.lang-switch__list a[aria-current="true"] { font-weight: 700; }

/* ================================================================== header */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--charcoal); color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.hdr__bar { display: flex; align-items: center; gap: 24px; height: var(--hdr-h); }
.hdr__burger.icon-btn { display: none; }

.logo { display: inline-flex; align-items: center; gap: 14px; flex: none; color: var(--on-dark); }
.logo__svg { width: auto; height: 34px; }
.logo__slogan {
  max-width: 13ch; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600; line-height: 1.25;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3);
  /* 2026-10-12 QA：fr / pt / ru 的长标语在桌面也排到 6–7 行、超出页头——最多 5 行（页头放得下；超出省略）。
     只在纵向裁切（overflow: visible clip；不支持 clip 的浏览器退回 hidden）：一个比列宽长的词（nl「stroomvoorziening」）
     照旧伸出一点，不在词中间硬断；有断字词典的浏览器按 lang 断字 */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5;
  overflow: hidden; overflow: visible clip; -webkit-hyphens: auto; hyphens: auto;
}
.logo--sm .logo__svg { height: 30px; }

.nav { flex: 1; min-width: 0; display: flex; justify-content: flex-end; }
.nav__list { display: flex; align-items: stretch; }
.nav__item { position: static; display: flex; align-items: center; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--hdr-h); padding: 0 11px;
  font-family: var(--font-display); font-size: 15.5px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  color: var(--on-dark-2);
  transition: color 0.15s;
}
.nav__link::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 3px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav__link:hover, .nav__item:focus-within > .nav__link { color: #fff; }
.nav__link:hover::after, .has-drop:hover > .nav__link::after, .has-drop.is-open > .nav__link::after { transform: scaleX(1); }
.nav__link--ai { color: var(--amber); }
.nav__link--ai svg { width: 14px; height: 14px; }
.nav__link--ai:hover { color: var(--amber-hi); }
/* the menu toggle sits beside its link without overlapping it (a full 24 × 32 px target, WCAG 2.5.8): the link's right
   padding gives way instead of a negative margin — same spacing as before */
.has-drop > .nav__link { padding-right: 3px; }
.has-drop > .nav__link::after { right: 3px; }
.nav__drop-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 32px; margin-right: 2px; padding: 0;
  border: 0; border-radius: var(--r-xs); background: none; color: var(--on-dark-3);
}
.nav__drop-btn svg { width: 12px; height: 12px; transition: transform 0.2s; }
.has-drop:hover .nav__drop-btn svg, .has-drop.is-open .nav__drop-btn svg { transform: rotate(180deg); }

/* Power Stations dropdown */
.drop {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #202020; color: var(--on-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.6);
}
.has-drop:hover > .drop,
.has-drop:focus-within:not(.is-closed) > .drop,
.has-drop.is-open > .drop { display: block; animation: dropIn 0.18s var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.drop__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; padding-block: 28px 36px; }
.drop__h {
  margin-bottom: 12px; font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-3);
}
.drop__brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 20px; }
.drop__brands a, .drop__uses a, .drop__links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 0.04em; color: var(--on-dark);
  transition: color 0.15s, padding 0.2s var(--ease);
}
.drop__brands a:hover, .drop__uses a:hover, .drop__links a:hover { color: var(--amber); padding-left: 4px; }
.drop__uses a, .drop__links a { letter-spacing: 0.01em; }
.drop__n { font-family: var(--font-figure); font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.drop__ai {
  display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 16px;
  border-radius: var(--r-md); background: var(--amber); color: var(--amber-ink);
}
.drop__ai-k { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.drop__ai-v { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.15; }

.hdr__icons { display: flex; align-items: center; gap: 2px; flex: none; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: var(--r-pill); background: none; color: inherit;
  transition: background-color 0.15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 3px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--amber); color: var(--amber-ink);
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--charcoal);
}
.cart-count.is-bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* search (light panel under the dark bar) */
.search-panel { background: #fff; color: var(--ink); --focus: var(--ink); }
.search-panel .icon-btn:hover { background: var(--soft); }
.search-panel__inner { display: flex; align-items: center; gap: 12px; height: 68px; }
.search-panel__inner > svg { width: 22px; height: 22px; color: var(--muted); }
.search-panel input {
  flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none;
  font-size: 18px;
}
.search-results:empty { display: none; }
.search-results { padding-bottom: 20px; }

/* drawer (tablet + phone) */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.5); opacity: 0; transition: opacity 0.25s; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: min(88vw, 380px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; padding: 0 20px 28px;
  transform: translateX(-100%); transition: transform 0.3s var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: 64px; color: var(--ink); }
.drawer__head .icon-btn:hover { background: var(--soft); }
.drawer__ai {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 8px 0 22px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--charcoal); color: #fff; font-weight: 700;
}
.drawer__ai svg { width: 18px; height: 18px; color: var(--amber); }
.drawer__ai span { width: 100%; padding-left: 28px; margin-top: -6px; font-size: 13px; font-weight: 400; color: var(--on-dark-2); }
.drawer__label { margin-top: 8px; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); }
.drawer__brands { margin-top: 6px; }
.drawer__brands summary {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: 0.05em; list-style: none; cursor: pointer;
}
.drawer__brands summary::-webkit-details-marker { display: none; }
.drawer__brands summary::after {
  content: ""; width: 8px; height: 8px; margin-left: 4px; margin-right: 4px;
  border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s;
}
.drawer__brands details[open] summary::after { transform: rotate(225deg); }
.drawer__count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--subtle); }
.drawer__brands details ul { padding: 6px 0 10px 14px; border-bottom: 1px solid var(--line); }
.drawer__brands details li a { display: block; padding: 9px 0; font-size: 15px; color: var(--ink-2); }
.drawer__links { margin-top: 14px; }
.drawer__links a { display: block; padding: 11px 0; font-size: 16px; font-weight: 600; }
.drawer__links--uses { margin-top: 2px; display: flex; flex-wrap: wrap; gap: 8px; }
.drawer__links--uses a { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: 14px; }
.drawer__contact { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.7; }
body.is-locked { overflow: hidden; }

/* ================================================================== home: hero + readout + trust */
.hero2 {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: clamp(540px, 41vw, 610px);
  background: var(--charcoal); color: var(--on-dark);
}
.hero2__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero2::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--charcoal) 0%, rgba(26, 26, 26, 0.88) 30%, rgba(26, 26, 26, 0.2) 62%, rgba(26, 26, 26, 0) 80%),
    linear-gradient(0deg, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0) 30%);
}
.hero2__inner {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px;
  padding-block: clamp(48px, 5.5vw, 88px) 40px;
}
.hero2__copy { align-self: center; max-width: 640px; }
.hero2__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber);
}
.hero2__eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero2__title {
  margin-top: 20px; max-width: 14ch;
  font-family: var(--font-display); font-size: clamp(44px, 5.4vw, 80px); font-weight: 700;
  line-height: 0.98; letter-spacing: -0.01em; color: #fff; text-wrap: balance;
}
.hero2__sub { max-width: 52ch; margin-top: 22px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--on-dark-2); }
.hero2__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* the readout: device-display card; cells = capacity in 250 Wh steps (12 cells = 3 kWh) */
.readout {
  display: grid; gap: 10px; width: 300px; padding: 16px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r-md);
  background: rgba(16, 16, 16, 0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: var(--font-figure);
  transition: border-color 0.2s, transform 0.25s var(--ease);
}
.readout:hover { border-color: rgba(242, 163, 58, 0.6); transform: translateY(-2px); }
.readout__k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-3); }
.readout__name { margin-top: -6px; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: #fff; }
.readout__cells {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px;
  padding: 4px; margin-right: 7px; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 4px;
}
.readout__cells::after {
  content: ""; position: absolute; right: -7px; top: 50%; width: 4px; height: 10px; margin-top: -5px;
  border-radius: 0 2px 2px 0; background: rgba(255, 255, 255, 0.45);
}
.readout__cells i { height: 16px; border-radius: 1px; background: rgba(255, 255, 255, 0.1); }
.readout__cells i.on { background: var(--amber); box-shadow: 0 0 10px rgba(242, 163, 58, 0.35); }
.readout__specs { display: flex; gap: 18px; font-size: 14px; color: var(--on-dark-3); }
.readout__specs b { font-size: 24px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.readout__price { font-size: 12.5px; color: var(--on-dark-3); }
.readout__price b { font-size: 17px; font-weight: 600; color: var(--amber); }

.trust { border-top: 1px solid var(--dark-line); background: rgba(14, 14, 14, 0.82); }
.trust__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust__list li { display: flex; align-items: flex-start; gap: 14px; padding: 20px 20px 22px 0; }
.trust__list li + li { padding-left: 20px; border-left: 1px solid var(--dark-line); }
.trust__list svg { width: 28px; height: 28px; margin-top: 2px; color: var(--amber); }
.trust__list span { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.4; color: var(--on-dark-3); }
.trust__list b { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; letter-spacing: 0.01em; color: #fff; }

/* ================================================================== sections */
.section { padding-block: 48px; }
#top-picks, .cmpteaser, .biz { background: var(--surface); }
.section__head { margin-bottom: 22px; max-width: 720px; }
.section__head .eyebrow { margin-bottom: 12px; }
.section__title {
  font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); font-weight: 700;
  letter-spacing: -0.005em; line-height: 1.05; color: var(--ink);
}
.section__sub { margin-top: 10px; font-size: 16.5px; color: var(--muted); }

/* ------------------------------------------------------------------ shop by use */
.scenes__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.scene__link {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.scene__link:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.scene__icon { display: block; width: 44px; height: 44px; color: var(--ink); transition: color 0.2s; }
.scene__icon svg { width: 100%; height: 100%; }
.scene__link:hover .scene__icon { color: var(--amber-deep); }
.scene__title { margin-top: 12px; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.1; }
.scene__range {
  margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line);
  font-family: var(--font-figure); font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.scene__arrow {
  position: absolute; top: 20px; right: 18px; display: inline-flex; width: 32px; height: 32px;
  align-items: center; justify-content: center; border-radius: 50%; background: var(--soft); color: var(--ink);
  transition: background-color 0.2s, transform 0.25s var(--ease);
}
.scene__arrow svg { width: 18px; height: 18px; }
.scene__link:hover .scene__arrow { background: var(--amber); transform: translateX(2px); }

/* ------------------------------------------------------------------ product card */
.grid--4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  overflow: hidden; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line);
  transition: box-shadow 0.25s, transform 0.25s var(--ease), border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-2); }
.card__media { position: relative; display: block; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; padding: 22px; background: var(--media); }
.card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.45s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  border-radius: var(--r-md); background: var(--soft-2);
  font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.12em; color: var(--subtle);
}
.card__flag {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 10px; border-radius: var(--r-xs); background: var(--ink); color: #fff;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.card__flag--pick { background: var(--amber); color: var(--amber-ink); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card__brand { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; color: var(--subtle); }
.card__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em; margin-top: 6px;
  font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink);
}
.card__title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.card__tags li {
  padding: 2px 8px; border-radius: var(--r-xs); background: var(--soft);
  font-family: var(--font-figure); font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.card__foot { margin-top: auto; padding-top: 16px; }
.card__price .price {
  display: block; font-family: var(--font-figure); font-size: 23px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums;
}
.card__price .price--ask { font-family: var(--font-display); font-size: 18px; }
.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.price-was { font-size: 13.5px; color: var(--subtle); }
/* Ruling 15: our price is excl. VAT, duties & shipping; the brand's EU store price is shown as a reference (incl. VAT) */
.price-note, .pdp__note, .mcard__note { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); }
.price-ref { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--subtle); }
.price-note + .price-row { margin-top: 6px; }
.mcard__note { margin-top: 2px; font-size: 11.5px; color: var(--subtle); }
.card__foot .btn { margin-top: 14px; height: 42px; font-size: 14px; }

/* ------------------------------------------------------------------ brand rows */
.brow { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-2); scroll-margin-top: calc(var(--hdr-h) + 16px); }
.section__head + .brow { margin-top: 12px; }
.brow__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.brow__id { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 20px; row-gap: 6px; min-width: 0; }
.brow__name { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.05; }
.brow__name a:hover { color: var(--amber-deep); }
.brow__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.brow__cats a {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
  transition: border-color 0.15s;
}
.brow__cats a:hover { border-color: var(--ink); }
.brow__cats span { color: var(--subtle); font-weight: 600; }
.brow__all { flex: none; }
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.rail .card__media, #top-picks .card__media { aspect-ratio: 2 / 1; padding: 12px 28px; }
.rail .card__body, #top-picks .card__body { padding: 12px 16px 14px; }
.rail .card__foot, #top-picks .card__foot { padding-top: 10px; }
.rail .card__foot .btn, #top-picks .card__foot .btn { margin-top: 10px; height: 40px; }

/* brands beyond HOME_BRANDS_OPEN: <details> "Show all brands" with compact rows (2 small cards each) */
.brows-more { margin-top: 32px; border-top: 1px solid var(--line-2); }
.brows-more__sum {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 18px 0;
  list-style: none; cursor: pointer;
}
.brows-more__sum::-webkit-details-marker { display: none; }
.brows-more__sum::marker { content: ""; }
.brows-more__k {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px;
  border: 1px solid var(--ink); border-radius: var(--r-sm);
  font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 0.02em;
}
.brows-more__k::after {
  content: ""; width: 7px; height: 7px; margin-top: -4px;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg);
  transition: transform 0.2s;
}
.brows-more[open] .brows-more__k::after { transform: rotate(225deg); margin-top: 3px; }
.brows-more__sum:hover .brows-more__k { background: var(--ink); color: #fff; }
.brows-more__names { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.08em; color: var(--muted); }
.brow--compact { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 0; padding-block: 16px; }
.brow--compact .brow__head { display: grid; gap: 2px; align-content: center; }
.brow--compact .brow__name { font-size: 24px; }
.brow__count { font-size: 13.5px; color: var(--muted); }
.brow--compact .brow__all { font-size: 14px; margin-top: 4px; }
.brow__minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* ------------------------------------------------------------------ AI Solution preview */
.aiprev {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: 72px;
  background:
    radial-gradient(50% 70% at 90% 100%, rgba(242, 163, 58, 0.16) 0%, rgba(242, 163, 58, 0) 70%),
    var(--charcoal);
  color: var(--on-dark);
}
.aiprev__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.aiprev__title {
  margin-top: 16px; max-width: 14ch;
  font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 54px); font-weight: 700; line-height: 1.02; color: #fff;
}
.aiprev__sub { max-width: 48ch; margin-top: 18px; font-size: 17px; color: var(--on-dark-2); }
.aiprev__text .btn { margin-top: 30px; }
.aiprev__panel {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 28px;
  padding: 28px; border: 1px solid var(--dark-line); border-radius: var(--r-xl); background: var(--graphite);
}
.aiprev__appl legend {
  margin-bottom: 12px; font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-3);
}
.switch {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 4px; border-bottom: 1px solid var(--dark-line); cursor: pointer;
}
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__track {
  position: relative; flex: none; width: 40px; height: 22px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.16); transition: background-color 0.2s;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform 0.2s var(--ease);
}
.switch input:checked + .switch__track { background: var(--amber); }
.switch input:checked + .switch__track::after { transform: translateX(18px); background: var(--amber-ink); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--amber); outline-offset: 3px; }
.aiprev .switch .appl__icon { width: 26px; height: 26px; padding: 0; border-radius: 0; background: none; color: var(--on-dark-2); }
.switch__name { font-weight: 600; color: #fff; }
.switch__w { margin-left: auto; font-family: var(--font-figure); font-size: 13.5px; color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.aiprev__readout { display: flex; flex-direction: column; }
.aiprev__count { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-figure); line-height: 1; }
.aiprev__count b { font-size: 76px; font-weight: 600; color: var(--amber); font-variant-numeric: tabular-nums; }
.aiprev__count span { font-size: 28px; color: var(--on-dark-3); }
.aiprev__msg { margin-top: 10px; font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.25; color: #fff; }
.aiprev__load { min-height: 1.4em; margin-top: 4px; font-family: var(--font-figure); font-size: 13.5px; color: var(--on-dark-3); }
.aiprev__brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 18px; }
.aiprev__brands li {
  padding: 8px 4px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--r-xs);
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-align: center;
  color: var(--on-dark-3); transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.aiprev__brands li.is-on { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }

/* ------------------------------------------------------------------ compare teaser */
.cmpteaser__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.cmpteaser__text .btn { margin-top: 26px; }
.spec-cmp { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.spec-cmp th, .spec-cmp td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: bottom; }
.spec-cmp thead th { border-bottom: 2px solid var(--ink); }
.spec-cmp thead a { display: grid; gap: 4px; }
.spec-cmp thead img { width: 72px; height: 72px; object-fit: contain; mix-blend-mode: multiply; }
.spec-cmp__brand { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--subtle); }
.spec-cmp__name { font-weight: 600; line-height: 1.3; }
.spec-cmp thead a:hover .spec-cmp__name { text-decoration: underline; text-underline-offset: 3px; }
.spec-cmp tbody th { font-weight: 500; color: var(--muted); white-space: nowrap; }
.spec-cmp td { font-family: var(--font-figure); font-size: 15px; font-variant-numeric: tabular-nums; }
.spec-cmp__price td { font-weight: 600; font-size: 17px; color: var(--amber-deep); border-bottom: 0; }

/* ------------------------------------------------------------------ factory story */
.factory__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.plant { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
/* media strip: one row, fixed height; portrait items (video, 3:4 photos) take 3 parts, landscape 4 */
.plant__media { display: flex; gap: 8px; height: 190px; }
.plant__fig { position: relative; flex: 4 1 0; min-width: 0; overflow: hidden; border-radius: var(--r-md); background: var(--graphite); }
.plant__fig--video, .plant__fig--tall { flex-grow: 3; }
.plant__fig img, .plant__fig video { width: 100%; height: 100%; object-fit: cover; }
.plant__fig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0));
  font-size: 12px; line-height: 1.3; color: #fff;
}
/* 2026-10-12 QA：视频封面自带字样（「AP1000 … Assembly Video」），图注放在视频下方，不叠在画面上 */
.plant__fig--video { display: flex; flex-direction: column; }
.plant__fig--video video { flex: 1 1 auto; min-height: 0; height: auto; }
.plant__fig--video figcaption { position: static; flex: none; padding: 8px 10px; background: var(--graphite); }
.plant__loc { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-deep); }
.plant__title { margin-top: 6px; font-family: var(--font-display); font-size: clamp(24px, 2vw, 30px); font-weight: 700; line-height: 1.08; }
.plant__summary { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.plate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; margin-top: 18px; border-top: 2px solid var(--ink); }
.plate__row { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.plate dt { font-size: 12.5px; color: var(--muted); }
.plate dd { font-family: var(--font-figure); font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.plant__certs-h { margin-top: 16px; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.certs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.certs li { padding: 3px 9px; border: 1px solid var(--ink); border-radius: var(--r-xs); font-size: 12px; font-weight: 600; }
.factory__more { margin-top: 28px; }

/* ------------------------------------------------------------------ Power Battery / B2B */
.biz__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.biz__card {
  display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 30px 32px;
  border-radius: var(--r-xl); transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.biz__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.biz__card--pb { background: var(--charcoal); color: var(--on-dark); }
.biz__card--b2b { background: var(--amber); color: var(--amber-ink); }
.biz__k { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.biz__card--pb .biz__k { color: var(--amber); }
.biz__title { max-width: 22ch; font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1.08; }
.biz__sub { max-width: 56ch; font-size: 15.5px; opacity: 0.86; }
.biz__card .link-arrow { margin-top: auto; color: inherit; }

/* ------------------------------------------------------------------ guides */
.guides__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  transition: border-color 0.2s;
}
.guide:hover { border-color: var(--ink); }
.guide__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.15; }
.guide__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide__desc { color: var(--muted); font-size: 15px; }
.guide .link-arrow { margin-top: auto; padding-top: 6px; }

/* ------------------------------------------------------------------ prose base (legal / guides / product overview) */
.prose { max-width: 75ch; margin-top: 18px; }
.prose h1 { font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; margin-bottom: 18px; }
.prose h2 { margin: 34px 0 10px; font-family: var(--font-display); font-size: 26px; line-height: 1.15; }
.prose h3, .prose h4 { margin: 24px 0 8px; font-size: 18px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .table-wrap { margin: 0 0 14px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--amber-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose table { border-collapse: collapse; font-size: 14px; }
.prose td { padding: 8px 10px; border: 1px solid var(--line-2); vertical-align: top; }
.prose blockquote { padding-left: 16px; border-left: 3px solid var(--amber); color: var(--ink-2); }

/* ================================================================== footer */
.ftr { background: var(--night); color: var(--on-dark-2); padding-top: 64px; font-size: 14px; }
.ftr__top { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 64px; }
.logo--ftr .logo__svg { height: 44px; }
.ftr__slogan { margin-top: 14px; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.ftr__about { margin-top: 12px; max-width: 38ch; line-height: 1.65; color: var(--on-dark-3); }
.ftr__contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 22px; color: #e6e6e3; }
.ftr__contact a:hover { color: var(--amber); }
.ftr__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.ftr__h { margin-bottom: 16px; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
.ftr__col li { margin-bottom: 10px; }
.ftr__col a { transition: color 0.15s; }
.ftr__col a:hover { color: var(--amber); }
.ftr__k { display: block; margin-bottom: 2px; font-size: 12px; color: var(--on-dark-3); }
.ftr__bottom {
  display: grid; grid-template-columns: auto auto 1fr; align-items: start; gap: 8px 32px;
  margin-top: 56px; padding-block: 24px 28px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 168px; /* room for the WhatsApp button (~150px) */
  font-size: 13px; color: var(--on-dark-3);
}
.ftr__lang .ftr__k { display: inline; margin-right: 8px; }
.ftr__lang a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; } /* a link inside a sentence: not by colour alone (WCAG 1.4.1) */
.ftr__note { text-align: right; }

/* ================================================================== WhatsApp + toast */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  height: 54px; padding: 0 20px 0 14px; border-radius: var(--r-pill);
  background: var(--wa); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 28px rgba(15, 122, 63, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab svg { width: 28px; height: 28px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 32px); padding: 12px 14px 12px 18px; border-radius: var(--r-md);
  background: var(--charcoal); color: #fff; font-size: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%); animation: toastIn 0.3s var(--ease);
}
.toast a { flex: none; padding: 6px 12px; border-radius: var(--r-sm); background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: 13px; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------------ category tabs (brand page) */
.cat-tabs { border-bottom: 1px solid var(--line); background: #fff; scroll-margin-top: var(--hdr-h); }
.cat-tabs__list { display: flex; justify-content: center; gap: clamp(28px, 5vw, 80px); }
.cat-tabs__tab {
  position: relative; padding: 20px 2px 18px; border: 0; background: none;
  font-size: 17px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: color 0.15s;
}
.cat-tabs__tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--amber); transform: scaleX(0); transition: transform 0.25s var(--ease);
}
.cat-tabs__tab:hover { color: var(--ink); }
.cat-tabs__tab.is-active { color: var(--ink); font-weight: 700; }
.cat-tabs__tab.is-active::after { transform: scaleX(1); }

/* ================================================================== v2 responsive */
/* 2026-10-13 controller 裁决：ru 的桌面导航（「Силовые аккумуляторы」等长项）在 1200 / 1360 宽时溢出、压到 Logo 上。
   紧凑一档从 ≤1359 提到 ≤1439（1360–1439 还带标语），1200–1279 再收紧一档；标语仍只在 ≤1359 隐藏。 */
@media (max-width: 1439px) {
  .nav__link { padding: 0 9px; font-size: 15px; }
  .nav__link::after { left: 9px; right: 9px; }
  .has-drop > .nav__link { padding-right: 1px; }
  .has-drop > .nav__link::after { right: 1px; }
}
@media (max-width: 1359px) {
  .logo__slogan { display: none; }
}
@media (max-width: 1279px) {
  .nav__link { padding: 0 7px; letter-spacing: 0; }
  .nav__link::after { left: 7px; right: 7px; }
  .has-drop > .nav__link { padding-right: 1px; }
  .has-drop > .nav__link::after { right: 1px; }
}
@media (max-width: 1199px) {
  :root { --hdr-h: 64px; }
  .hdr__burger.icon-btn { display: inline-flex; margin-left: -8px; }
  .nav { display: none; }
  .hdr__bar { gap: 8px; }
  .logo { margin-right: auto; }
  /* 2026-10-12 QA：长译文标语（ru 6–7 行）压住顶部工具栏——平板上放宽、最多 3 行 */
  .logo__slogan { display: -webkit-box; max-width: 28ch; -webkit-line-clamp: 3; }

  .hero2__inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .readout { justify-self: start; }
  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust__list li:nth-child(n+3) { border-top: 1px solid var(--dark-line); }

  .scenes__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.grid--4, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail {
    grid-template-columns: none; grid-auto-flow: column;
    grid-auto-columns: calc((100% - 16px) / 2.25);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter); padding-bottom: 8px;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  .card__media { aspect-ratio: 5 / 4; }
  .card:hover { transform: none; }

  .aiprev__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cmpteaser__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .factory__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .plant__media { height: 280px; }
  .guides__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ftr__top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ftr__bottom { grid-template-columns: minmax(0, 1fr); }
  .ftr__note { text-align: left; }
}
@media (max-width: 767px) {
  :root { --hdr-h: 58px; }
  .toolbar__left { display: none; }
  .toolbar__inner { justify-content: space-between; min-height: 34px; font-size: 12px; gap: 12px; }
  .lang-switch__list { right: auto; left: 0; }

  .hdr__bar { gap: 4px; }
  .logo { gap: 10px; }
  .logo__svg { height: 28px; }
  .logo__slogan { max-width: 16ch; padding-left: 10px; font-size: 10px; line-height: 1.12; letter-spacing: 0.06em; -webkit-line-clamp: 4; }
  .hdr__icons { margin-right: -6px; }

  .hero2 { min-height: 0; }
  .hero2__img { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; object-position: 78% 50% !important; }
  .hero2::before { background: linear-gradient(0deg, var(--charcoal) 0%, rgba(26, 26, 26, 0) 36%); bottom: auto; height: calc(75vw + 2px); }
  .hero2__inner { padding-block: 0 32px; margin-top: -40px; gap: 28px; }
  .hero2__title { font-size: 40px; max-width: none; }
  .hero2__sub { font-size: 16px; }
  .hero2__ctas { gap: 10px; margin-top: 24px; }
  .hero2__ctas .btn { flex: 1 1 0; height: 48px; padding: 0 12px; font-size: 15px; }
  .readout { width: 100%; }
  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .trust__list li, .trust__list li + li { flex-direction: column; gap: 6px; padding: 12px 0; border-left: 0; }
  .trust__list li:nth-child(n+3) { border-top: 1px solid var(--dark-line); }
  .trust__list svg { width: 22px; height: 22px; }
  .trust__list b { font-size: 14.5px; }
  .trust__list span { font-size: 12.5px; }

  .section { padding-block: 40px; }
  .section__head { margin-bottom: 22px; }
  /* horizontal strips on phones: scenes, guides, factory media */
  .scenes__list, .guides__list {
    display: grid; grid-template-columns: none; grid-auto-flow: column; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .scenes__list { grid-auto-columns: 42%; }
  .guides__list { grid-auto-columns: 82%; }
  .scenes__list::-webkit-scrollbar, .guides__list::-webkit-scrollbar { display: none; }
  .scenes__list > *, .guides__list > * { scroll-snap-align: start; }
  .scene__link { padding: 14px 12px; }
  .scene__icon { width: 34px; height: 34px; }
  .scene__title { margin-top: 12px; font-size: 18px; }
  .scene__range { font-size: 12.5px; }
  .scene__arrow { top: 14px; right: 12px; width: 28px; height: 28px; }

  .grid--4 { gap: 10px; }
  #top-picks .grid--4 {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  #top-picks .grid--4::-webkit-scrollbar { display: none; }
  #top-picks .grid--4 > * { scroll-snap-align: start; }
  #top-picks .card__tags { display: none; }
  .grid--4 .card__media { aspect-ratio: 1 / 1; padding: 12px; }
  .grid--4 .card__body { padding: 12px 12px 14px; }
  .grid--4 .card__title { font-size: 14px; }
  .grid--4 .card__price .price { font-size: 18px; }
  .grid--4 .card__foot .btn { height: 38px; margin-top: 10px; font-size: 13px; padding: 0 10px; }

  .brow { margin-top: 36px; padding-top: 20px; }
  .brow__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 10px; }
  .brow__id { display: contents; }
  .brow__name { grid-column: 1; grid-row: 1; font-size: 24px; }
  .brow__all { grid-column: 2; grid-row: 1; font-size: 14px; }
  .brow__cats {
    grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  }
  .brow__cats::-webkit-scrollbar { display: none; }
  .brow__cats a { white-space: nowrap; font-size: 12.5px; }
  .rail { grid-auto-columns: 74%; gap: 12px; margin-top: 16px; }
  .card__media { padding: 18px; }

  .aiprev { padding-block: 40px; }
  .aiprev__text .btn { width: 100%; }
  .aiprev__panel { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 18px; }
  .aiprev__count b { font-size: 60px; }

  .plant__media {
    height: 220px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .plant__media::-webkit-scrollbar { display: none; }
  .plant__fig { flex: 0 0 auto; width: 293px; scroll-snap-align: start; }
  .plant__fig--video, .plant__fig--tall { width: 165px; }
  .plate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .certs::-webkit-scrollbar { display: none; }
  .certs li { flex: none; }
  .brow--compact { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .brow--compact .brow__head { grid-template-columns: minmax(0, 1fr) auto; }
  .brow--compact .brow__all { grid-column: 2; grid-row: 1 / 3; }
  .brow__minis { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rail .card__media { padding: 10px 24px; }
  .rail .card__tags { display: none; }
  .rail .card__title { min-height: 0; }
  .guide { padding: 20px 18px; }

  .biz__grid { grid-template-columns: minmax(0, 1fr); }
  .biz__card { min-height: 0; padding: 22px 20px; }
  .biz__sub { font-size: 14.5px; }

  .ftr { padding-top: 48px; }
  .ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .ftr__cols > .ftr__col:first-child { grid-column: 1 / -1; }
  .ftr__cols > .ftr__col:first-child ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .ftr__cols > .ftr__col:first-child li { margin-bottom: 4px; }
  .ftr__col li { margin-bottom: 8px; }
  .ftr__about { display: none; }
  .ftr__top { gap: 28px; }
  .ftr__contact a { word-break: break-word; }
  .ftr__bottom { margin-top: 40px; padding-right: 0; padding-bottom: 88px; }

  /* 2026-10-12 QA：375 宽时浮动按钮挡住参数条右列 / 卡片标题——缩小到 46px 贴边；页面底部的安全距离是页脚末行的
     padding-bottom（.ftr__bottom，大于按钮 + 边距），滚到底时按钮下面不压内容 */
  .wa-fab { right: 12px; bottom: 12px; width: 46px; height: 46px; padding: 0; justify-content: center; }
  .wa-fab svg { width: 24px; height: 24px; }
  .wa-fab__label { display: none; }
  .toast { bottom: 72px; }

  .cat-tabs__list { justify-content: space-between; gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .cat-tabs__list::-webkit-scrollbar { display: none; }
  .cat-tabs__tab { font-size: 15px; padding: 16px 0 14px; }
}

/* ================================================================== Task 7: brand / product / cart */

/* ------------------------------------------------------------------ breadcrumbs + page heads */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  padding-block: 18px 0; font-size: 13px; color: var(--muted);
}
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-hidden] { color: var(--line-2); }
.crumbs [aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 44ch; }
.crumbs--dark { padding-top: 0; color: var(--on-dark-3); }
.crumbs--dark a { color: var(--on-dark-2); }
.crumbs--dark [aria-hidden] { color: rgba(255, 255, 255, 0.25); }
.crumbs--dark [aria-current] { color: var(--on-dark-3); }

.page-head { margin: 20px 0 32px; }
.page-title { font-size: clamp(30px, 3vw, 42px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.page-sub { margin-top: 10px; font-size: 16px; color: var(--muted); }

/* ------------------------------------------------------------------ brand hero */
.bhero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(55% 90% at 78% 70%, rgba(245, 181, 68, 0.2) 0%, rgba(245, 181, 68, 0) 60%),
    radial-gradient(60% 100% at 80% 80%, rgba(120, 128, 140, 0.32) 0%, rgba(40, 43, 48, 0) 70%),
    linear-gradient(120deg, #1d1f23 0%, #0f1012 75%);
  color: var(--on-dark);
}
.bhero__inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 32px;
  min-height: 340px; padding-block: 36px 40px;
}
.bhero__title { margin-top: 22px; font-family: var(--font-display); font-size: clamp(44px, 5.4vw, 76px); font-weight: 700; letter-spacing: 0.04em; line-height: 1; }
.bhero__intro { max-width: 48ch; margin-top: 16px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--on-dark-2); }
.bhero__stats { display: flex; gap: 36px; margin-top: 26px; }
.bhero__stats li { display: flex; flex-direction: column; gap: 2px; }
.bhero__stats b { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; color: var(--amber); }
.bhero__stats span { font-size: 13px; color: var(--on-dark-3); }
.bhero__note { margin-top: 20px; font-size: 13px; color: var(--on-dark-3); }
.bhero__media { display: flex; justify-content: center; align-items: flex-end; align-self: stretch; }
.bhero__media img {
  width: auto; max-width: 100%; max-height: 300px; object-fit: contain;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.55));
}

/* ------------------------------------------------------------------ category tabs (brand page) */
.cat-tabs--sticky { position: sticky; top: var(--hdr-h); z-index: 40; }
.cat-tabs__n {
  display: inline-block; min-width: 26px; margin-left: 8px; padding: 1px 7px; border-radius: var(--r-pill);
  background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.5; text-align: center;
  vertical-align: 2px;
}
.cat-tabs__tab.is-active .cat-tabs__n { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------------ listing */
.section--listing { padding-top: 28px; background: var(--soft); min-height: 60vh; }
.listing-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.listing-bar__count { font-size: 14px; color: var(--muted); }
.listing-bar__count b { color: var(--ink); }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort select {
  height: 40px; padding: 0 38px 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23111214' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 14px center / 12px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.sort select:hover { border-color: var(--ink); }
.listing-panel { animation: fadeIn 0.3s ease; }
.listing-group + .listing-group { margin-top: 48px; }
.listing-group__title {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
}
.listing-group__title span {
  padding: 1px 9px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid__cell { display: flex; min-width: 0; }
.grid__cell > .card { flex: 1; }

/* ------------------------------------------------------------------ product page */
.pdp {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 4vw, 64px);
  padding-top: 20px; padding-bottom: var(--s-9); align-items: start;
}
.pdp__gallery { position: sticky; top: calc(var(--hdr-h) + 20px); min-width: 0; }
.gallery__main {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--r-lg); background: var(--media);
}
.gallery__main > img { width: 100%; height: 100%; padding: 6%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__main .card__placeholder { border-radius: 0; font-size: 32px; }
.gallery__main .card__flag { top: 16px; left: 16px; }
.gallery__nav {
  position: absolute; top: 50%; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-top: -22px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink);
  box-shadow: var(--shadow-sm); opacity: 0; transition: opacity 0.2s, background-color 0.15s;
}
.gallery__nav svg { width: 22px; height: 22px; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__main:hover .gallery__nav, .gallery__nav:focus-visible { opacity: 1; }
.gallery__nav:hover { background: #fff; }
.gallery__counter {
  position: absolute; right: 14px; bottom: 14px;
  padding: 2px 10px; border-radius: var(--r-pill); background: rgba(17, 18, 20, 0.7); color: #fff;
  font-size: 12px; font-weight: 600;
}
.gallery__thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 12px;
}
.gallery__thumb {
  display: block; width: 100%; aspect-ratio: 1 / 1; padding: 6px;
  border: 1.5px solid transparent; border-radius: var(--r-md); background: var(--media);
  transition: border-color 0.15s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumb:hover { border-color: var(--line-2); }
.gallery__thumb.is-active { border-color: var(--ink); }

.pdp__info { min-width: 0; padding-top: 4px; }
.pdp__brand { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; }
.pdp__brand a { color: var(--ink); }
.pdp__brand a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pdp__brand span { font-weight: 600; letter-spacing: 0.02em; color: var(--subtle); }
.pdp__title { margin-top: 10px; font-size: clamp(24px, 2.3vw, 34px); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
.pdp__tags { margin-top: 14px; }
.pdp__tags li { font-size: 13px; padding: 3px 10px; }
.pdp__price { margin-top: 24px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--soft); }
.pdp__now { font-size: clamp(32px, 3vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); }
.pdp__now.price--ask { font-size: 26px; }
.pdp__price .price-row { margin-top: 8px; }
.pdp__price .price-was { font-size: 15px; }
.pdp__official { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.pdp__note { margin-top: 6px; font-size: 13px; }
.pdp__buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pdp__buy > * { min-width: 0; }
.pdp__add { flex: 1 1 9rem; }
.pdp__quote { margin-top: 12px; }
.qty {
  display: inline-flex; align-items: center; flex: none;
  height: 52px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff;
}
.qty__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 100%; padding: 0; border: 0; background: none; color: var(--ink); border-radius: var(--r-pill);
}
.qty__btn svg { width: 18px; height: 18px; }
.qty__btn:hover { background: var(--soft); }
.qty__input {
  width: 44px; height: 100%; padding: 0; border: 0; background: none; outline-offset: -2px;
  font-size: 16px; font-weight: 700; text-align: center; -moz-appearance: textfield; appearance: textfield;
}
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 40px; }
.qty--sm .qty__btn { width: 36px; }
.qty--sm .qty__input { width: 38px; font-size: 15px; }

.pdp__assure { display: grid; gap: 10px; margin-top: 22px; padding: 18px 0; border-block: 1px solid var(--line); }
.pdp__assure li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.pdp__assure svg { width: 20px; height: 20px; color: var(--green); }
.pdp__specs { margin-top: 26px; }
.pdp__h { margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 44%; font-weight: 500; color: var(--muted); }
.spec-table td { font-weight: 600; color: var(--ink); }
/* 产品页关键参数条（价格上方，最多 6 项） */
.pdp__keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; margin: 16px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.pdp__key { min-width: 0; }
.pdp__key dt { font-size: 12px; color: var(--muted); }
.pdp__key dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); font-family: var(--font-figure); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 560px) { .pdp__keys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 分组规格表 + 来源注 */
.spec-group__h { margin: 22px 0 4px; font-size: 15px; font-weight: 700; color: var(--ink); }
.pdp-tab .spec-group__h:first-of-type { margin-top: 4px; }
.spec-source { margin-top: 14px; font-size: 13px; color: var(--muted); }
.spec-source a { color: inherit; text-decoration: underline; }

/* compatible batteries / works with */
.section--compat { padding-block: var(--s-9); background: var(--soft); }
.section--compat + .section--compat { padding-top: 0; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; margin-top: 20px; }
.mcard {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 16px 12px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.mcard:hover { box-shadow: var(--shadow-md); }
.mcard__media { display: block; aspect-ratio: 1 / 1; padding: 8px; border-radius: var(--r-md); background: var(--media); overflow: hidden; }
.mcard__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mcard__media .card__placeholder { font-size: 11px; }
.mcard__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--ink);
}
.mcard__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mcard__meta { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.mcard__price { margin-top: 6px; font-size: 13px; color: var(--subtle); }
.mcard__price b { margin-right: 4px; font-size: 16px; color: var(--ink); }
.mcard__add.btn { height: 36px; padding: 0 16px; font-size: 13.5px; }

/* overview (brand description) */
.section--overview { padding-block: var(--s-9); }
.prose { max-width: 860px; margin-top: 20px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 14px; }
.prose h2, .prose h3, .prose h4 { margin-top: 30px; line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 19px; }
.prose h4 { font-size: 17px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--subtle); }
.prose strong { color: var(--ink); }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--soft); font-weight: 600; color: var(--ink); }
.prose__source { max-width: 860px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--subtle); }
.prose__original { max-width: 860px; margin-top: 20px; }
.prose__original summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.prose__original .prose { margin-top: 12px; }

.section--related { padding-block: var(--s-9) var(--s-10); background: var(--soft); }
.section--overview + .section--related { border-top: 0; }
.grid--related { margin-top: 20px; }

/* ------------------------------------------------------------------ header search results */
.search-results { max-height: min(70vh, 620px); overflow-y: auto; }
.sr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.sr__item {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 8px 10px 8px 8px; border-radius: var(--r-md);
  transition: background-color 0.15s;
}
.sr__item:hover, .sr__item:focus-visible { background: var(--soft); }
.sr__media { display: block; width: 56px; height: 56px; padding: 4px; border-radius: var(--r-sm); background: var(--media); }
.sr__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sr__text { display: flex; flex-direction: column; min-width: 0; }
.sr__brand { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--subtle); }
.sr__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.sr__price { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.sr__empty, .sr__more { padding: 10px 8px; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------------ cart */
.cart-page { padding-top: 0; background: var(--soft); min-height: 60vh; }
.cart-loading { padding: 40px 0; color: var(--muted); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cart-list { min-width: 0; padding: 8px 24px 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.cart-list__head {
  display: grid; grid-template-columns: minmax(0, 1fr) 132px 120px; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle);
}
.cart-list__head span:last-child { text-align: right; }
.cart-list__more { margin-top: 20px; }
.citem {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) 132px 120px; align-items: center; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.citem__media { display: block; aspect-ratio: 1 / 1; padding: 8px; border-radius: var(--r-md); background: var(--media); }
.citem__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.citem__media .card__placeholder { font-size: 12px; }
.citem__meta { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--subtle); }
.citem__title { margin-top: 4px; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.citem__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.citem__unit { margin-top: 6px; font-size: 13px; color: var(--subtle); }
.citem__unit b { margin-right: 4px; font-size: 15px; color: var(--ink); }
.citem__remove {
  margin-top: 8px; padding: 0; border: 0; background: none;
  font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.citem__remove:hover { color: var(--red); }
.citem__total { font-size: 17px; font-weight: 800; text-align: right; color: var(--ink); }

.cart-summary {
  position: sticky; top: calc(var(--hdr-h) + 20px);
  padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm);
}
.cart-summary__title { font-size: 19px; font-weight: 700; }
.cart-summary__rows { margin: 16px 0 20px; }
.cart-summary__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.cart-summary__rows dt { color: var(--muted); }
.cart-summary__rows dd { margin: 0; font-weight: 600; }
.cart-summary__rows s { color: var(--subtle); font-weight: 500; }
.cart-summary__rows .is-save dd { color: var(--red); font-weight: 700; }
.cart-summary__rows .is-total { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.cart-summary__rows .is-total dt { color: var(--ink); font-weight: 700; }
.cart-summary__rows .is-total dd { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.cart-summary__note { margin: -8px 0 16px; font-size: 13px; color: var(--muted); }
.cart-summary__fine { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--subtle); }

.cart-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 64px 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm);
}
.cart-empty svg { width: 56px; height: 56px; color: var(--subtle); }
.cart-empty h2 { margin-top: 16px; font-size: 22px; font-weight: 700; }
.cart-empty p { margin-top: 8px; max-width: 42ch; color: var(--muted); }
.cart-empty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* quote form */
.quote-panel { margin-top: 28px; scroll-margin-top: calc(var(--hdr-h) + 16px); animation: fadeIn 0.3s ease; }
.quote-form { padding: 32px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.quote-form__title { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.quote-form__sub { max-width: 64ch; margin-top: 8px; font-size: 15px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field__label i { font-style: normal; color: var(--red); }
.field input, .field textarea {
  width: 100%; min-width: 0; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input { height: 46px; }
.field textarea { padding-block: 12px; resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 18, 20, 0.08); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__err { min-height: 0; font-size: 12.5px; color: var(--red); }
.field__err:empty { display: none; }
.quote-form__submit { margin-top: 22px; }
.quote-result { margin-top: 24px; padding: 22px; border-radius: var(--r-md); background: var(--soft); animation: fadeIn 0.3s ease; }
.quote-result__k { font-weight: 700; color: var(--ink); }
.quote-result__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.quote-result__btns svg { width: 20px; height: 20px; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1fbe5b; }
.quote-result__alt { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.quote-result__alt a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.quote-result__preview { margin-top: 14px; font-size: 13.5px; }
.quote-result__preview summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.quote-result__preview pre {
  margin: 10px 0 0; padding: 14px; max-height: 280px; overflow: auto;
  border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
}

/* ------------------------------------------------------------------ Task 7 tablet */
@media (max-width: 1199px) {
  .cat-tabs--sticky { top: calc(var(--hdr-h) + 49px); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gallery__nav { opacity: 1; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-summary { position: static; }
  .sr { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ Task 7 phone */
@media (max-width: 767px) {
  .cat-tabs--sticky { top: var(--hdr-h); }
  .cat-tabs__n { display: none; } /* 手机上三个 Tab 放不下数量；当前 Tab 数量见下方 listing-bar */
  .crumbs { padding-top: 14px; font-size: 12.5px; }
  .crumbs [aria-current] { max-width: 100%; }

  .bhero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 22px 28px; gap: 0; }
  .bhero__title { margin-top: 16px; font-size: 40px; }
  .bhero__intro { font-size: 15.5px; }
  .bhero__stats { gap: 28px; margin-top: 20px; }
  .bhero__stats b { font-size: 24px; }
  .bhero__note { margin-top: 14px; font-size: 12.5px; }
  .bhero__media { display: none; }

  .section--listing { padding-top: 18px; }
  .listing-bar { margin-bottom: 14px; }
  .sort > span { display: none; }
  .sort select { height: 38px; font-size: 13.5px; }
  .listing-group + .listing-group { margin-top: 36px; }
  .listing-group__title { font-size: 19px; margin-bottom: 14px; }
  .grid, .grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid .card__media, .grid--related .card__media { aspect-ratio: 1 / 1; padding: 12px; }
  .grid .card__body, .grid--related .card__body { padding: 12px 12px 14px; }
  .grid .card__title { font-size: 14px; }
  .grid .card__tags li { font-size: 11px; padding: 1px 6px; }
  .grid .card__price .price, .grid--related .card__price .price { font-size: 18px; }
  .grid .price-was { font-size: 12px; }
  .grid .badge-save { font-size: 11px; padding: 1px 5px; }
  .grid .card__foot .btn { height: 38px; margin-top: 10px; font-size: 13px; padding: 0 10px; }

  .pdp { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 12px; padding-bottom: 40px; }
  .pdp__gallery { position: static; }
  .gallery__main { border-radius: var(--r-md); }
  .gallery__nav { width: 38px; height: 38px; margin-top: -19px; }
  .gallery__nav--prev { left: 8px; }
  .gallery__nav--next { right: 8px; }
  .gallery__thumbs {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  }
  .gallery__thumbs::-webkit-scrollbar { display: none; }
  .gallery__thumbs li { flex: 0 0 64px; }
  .pdp__title { font-size: 24px; }
  .pdp__price { padding: 16px 18px; }
  .pdp__now { font-size: 32px; }
  .pdp__buy { gap: 10px; }
  .pdp__add.btn { padding: 0 16px; }
  .spec-table { font-size: 14px; }

  .section--compat, .section--overview { padding-block: 40px; }
  .section__head--row { align-items: baseline; }
  .section__head--row .link-arrow { font-size: 13.5px; text-align: right; }
  .mgrid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
  .mcard { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px 10px 10px; }
  .prose { font-size: 15px; }
  .section--related { padding-block: 40px 56px; }

  .search-panel__inner { height: 60px; }
  .search-panel input { font-size: 16px; }
  .sr__item { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 6px 4px; }
  .sr__media { width: 48px; height: 48px; }
  .sr__price { grid-column: 2; margin-top: -4px; font-size: 13px; }

  .page-head { margin: 14px 0 22px; }
  .page-title { font-size: 30px; }
  .page-sub { font-size: 15px; }
  .cart-list { padding: 0 16px 20px; }
  .cart-list__head { display: none; }
  .citem {
    grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "m i i" "m q t";
    row-gap: 12px; column-gap: 14px; padding: 16px 0; align-items: start;
  }
  .citem__media { grid-area: m; }
  .citem__info { grid-area: i; }
  .citem .qty { grid-area: q; justify-self: start; }
  .citem__total { grid-area: t; align-self: center; font-size: 16px; }
  .citem__title { font-size: 15px; }
  .citem__remove { margin-top: 6px; }
  .cart-summary { padding: 20px; }
  .quote-panel { margin-top: 20px; }
  .quote-form { padding: 22px 18px; }
  .quote-form__title { font-size: 21px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .quote-form__submit { width: 100%; }
  .quote-result { padding: 16px; }
  .quote-result__btns .btn { width: 100%; }
}

/* ================================================================== Task 6: collections, filters, compare, search */

/* ------------------------------------------------------------------ collection head (dark band, same family as .bhero) */
.chead {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(50% 120% at 88% 100%, rgba(242, 163, 58, 0.16) 0%, rgba(242, 163, 58, 0) 62%),
    linear-gradient(120deg, #1d1f23 0%, #0f1012 75%);
  color: var(--on-dark);
  --focus: var(--amber);
}
.chead__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px;
  padding-block: 28px 40px;
}
.chead__eyebrow { margin-top: 24px; }
.chead__title {
  margin-top: 10px; font-family: var(--font-display); font-size: clamp(40px, 4.6vw, 66px); font-weight: 700;
  line-height: 1; letter-spacing: 0.01em; color: #fff; text-wrap: balance;
}
.chead__lead { max-width: 62ch; margin-top: 16px; font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.6; color: var(--on-dark-2); }
.chead__note { max-width: 62ch; margin-top: 12px; font-size: 13px; color: var(--on-dark-3); }
.chead__stats { margin-top: 22px; }
.bhero__stats a { display: flex; flex-direction: column; gap: 2px; }
.bhero__stats a:hover span { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.chead--slim .chead__inner { grid-template-columns: minmax(0, 1fr); padding-block: 24px 32px; }
.chead--slim .chead__title { margin-top: 18px; font-size: clamp(34px, 3.6vw, 52px); }
.chead--scenario .chead__lead { max-width: 68ch; }

/* scenario readout: the home hero's device-display card; 16 cells × 250 Wh = 4 kWh, the suggested band lit */
.readout--scene { width: 340px; gap: 12px; padding: 18px 20px 20px; }
.readout--scene:hover { transform: none; }
.readout__band { margin-top: -6px; font-family: var(--font-figure); font-size: 30px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.readout__cells--16 { grid-template-columns: repeat(16, 1fr); gap: 2px; }
.readout__cells--16 i { height: 20px; }
.readout__scale { display: flex; justify-content: space-between; margin: -6px 7px 0 0; font-size: 11px; color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.readout__k--loads { margin-top: 6px; }
.loads { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.loads li {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r-pill);
  font-family: var(--font); font-size: 13px; color: var(--on-dark-2);
}
.loads .appl__icon { width: 16px; height: 16px; padding: 0; border-radius: 0; background: none; color: var(--amber); }
.readout__cta { margin-top: 6px; }

/* ------------------------------------------------------------------ listing layout */
.listing__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.listing.is-enhanced .listing__layout { grid-template-columns: 264px minmax(0, 1fr); }
.listing.is-enhanced .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.listing__main { min-width: 0; scroll-margin-top: calc(var(--hdr-h) + 64px); }
.listing-bar { flex-wrap: wrap; }
.listing-bar__count { margin-right: auto; font-size: 15px; font-weight: 600; color: var(--ink); }
.listing-bar__filters { display: none; height: 40px; padding: 0 16px; border-radius: var(--r-pill); font-size: 14px; }
.listing-bar__filters svg { width: 18px; height: 18px; }
.listing-bar__n {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--amber); color: var(--amber-ink); font-size: 12px; font-weight: 800; line-height: 20px;
}
.listing-panel__anchor { display: block; position: relative; top: calc(-1 * var(--hdr-h) - 80px); }
.listing.is-enhanced .listing-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.listing-panel__title { margin: 8px 0 18px; font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.listing-panel + .listing-panel { margin-top: 48px; }
.listing.is-enhanced .listing-panel + .listing-panel { margin-top: 0; }
.listing-note { margin: -6px 0 16px; padding: 10px 14px; border-left: 3px solid var(--amber); border-radius: var(--r-xs); background: #fff; font-size: 14px; color: var(--ink-2); }
.listing-note--warn { border-left-color: var(--red); }

/* layout toggle */
.viewtog { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; }
.viewtog button {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 32px;
  border: 0; border-radius: var(--r-pill); background: none; color: var(--muted);
}
.viewtog button svg { width: 18px; height: 18px; }
.viewtog button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* active filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 14px;
  border: 1px solid var(--ink); border-radius: var(--r-pill); background: #fff;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.chip svg { width: 15px; height: 15px; }
.chip:hover { background: var(--ink); color: #fff; }
.chip--clear { border-color: transparent; background: none; padding: 0 8px; color: var(--amber-deep); text-decoration: underline; text-underline-offset: 3px; }
.chip--clear:hover { background: none; color: var(--ink); }

/* list layout: cards become rows (image | text | price) */
.listing.is-list .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.listing.is-list .card { flex-direction: row; }
.listing.is-list .card:hover { transform: none; }
.listing.is-list .card__media { flex: none; width: 168px; aspect-ratio: 1 / 1; padding: 14px; }
.listing.is-list .card__body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; grid-template-rows: auto auto 1fr; column-gap: 28px; padding: 18px 20px 18px 22px; }
.listing.is-list .card__brand, .listing.is-list .card__title, .listing.is-list .card__tags { grid-column: 1; }
.listing.is-list .card__title { min-height: 0; font-size: 17px; }
.listing.is-list .card__foot { grid-column: 2; grid-row: 1 / 4; align-self: center; margin: 0; padding: 0; }
.listing.is-list .card__cmp { top: auto; bottom: 12px; left: 12px; right: auto; }

/* empty state */
.listing-empty {
  display: grid; justify-items: start; gap: 10px; max-width: 560px; margin: 8px 0 24px; padding: 28px 28px 30px;
  border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: #fff;
}
.listing-empty svg { width: 44px; height: 44px; color: var(--muted); }
.listing-empty__title { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.listing-empty__text { color: var(--muted); }
.listing-empty__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ------------------------------------------------------------------ filter sidebar */
.filters {
  position: sticky; top: calc(var(--hdr-h) + 72px); align-self: start;
  max-height: calc(100vh - var(--hdr-h) - 88px); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  scrollbar-width: thin;
}
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.filters__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }
.filters__close { display: none; color: var(--ink); }
.filters__close:hover { background: var(--soft); }
.filters__body { padding: 0 18px; }
.filters__foot { display: flex; gap: 10px; padding: 14px 18px 18px; }
.filters__foot .btn { height: 40px; padding: 0 14px; font-size: 14px; flex: 1; }
.filters__done { display: none; }

.facet { padding: 14px 0 12px; border-top: 1px solid var(--line); }
.facet:first-child { border-top: 0; }
.facet__title {
  float: left; width: 100%; margin-bottom: 8px; padding: 0;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.facet__title + * { clear: left; }
.facet__opts { display: grid; gap: 1px; }
.opt {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  min-height: 34px; padding: 4px 6px; margin: 0 -6px; border-radius: var(--r-sm);
  font-size: 14.5px; color: var(--ink); cursor: pointer;
}
.opt:hover { background: var(--soft); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box {
  position: relative; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 4px; background: #fff;
  transition: background-color 0.15s, border-color 0.15s;
}
.opt input:checked + .opt__box { border-color: var(--ink); background: var(--ink); }
.opt input:checked + .opt__box::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 10px;
  border: solid var(--amber); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.opt input:focus-visible + .opt__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt__n { font-family: var(--font-figure); font-size: 12.5px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.opt.is-zero { color: var(--subtle); cursor: default; }
.opt.is-zero:hover { background: none; }
.opt.is-zero .opt__box { border-color: var(--line); background: var(--soft); }

.facet__price { display: flex; align-items: flex-end; gap: 8px; }
.facet__price label { display: grid; gap: 4px; flex: 1; min-width: 0; font-size: 12px; color: var(--muted); }
.facet__price input {
  width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff;
  font-family: var(--font-figure); font-size: 15px; font-variant-numeric: tabular-nums;
}
.facet__price input:focus { border-color: var(--ink); outline: 0; }
.facet__dash { padding-bottom: 9px; color: var(--muted); }
.facet__note { margin-top: 6px; font-size: 12px; color: var(--subtle); }
.facet__uk { padding: 14px 0 6px; border-top: 1px solid var(--line); }

/* toggle switch (UK plugs, compare "differences only") */
.tgl { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl__track {
  position: relative; flex: none; width: 36px; height: 20px; border-radius: var(--r-pill); background: var(--line-2);
  transition: background-color 0.2s;
}
.tgl__track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease);
}
.tgl input:checked + .tgl__track { background: var(--ink); }
.tgl input:checked + .tgl__track::after { transform: translateX(16px); background: var(--amber); }
.tgl input:focus-visible + .tgl__track { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ------------------------------------------------------------------ compare control on cards + floating bar */
.card__cmp {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: none; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 8px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.92);
  font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer;
  opacity: 0; transition: opacity 0.18s, border-color 0.18s;
}
.has-js .card__cmp { display: inline-flex; }
.card:hover .card__cmp, .card__cmp:focus-within, .card.is-compared .card__cmp { opacity: 1; }
@media (hover: none) { .card__cmp { opacity: 1; } }
.card__cmp:hover { border-color: var(--ink); }
.card__cmp input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
.card.is-compared { border-color: var(--ink); }
.card.is-compared .card__cmp { border-color: var(--ink); background: var(--amber); color: var(--amber-ink); }

.cmpbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--charcoal); color: var(--on-dark); border-top: 2px solid var(--amber);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.25);
  animation: cmpbarIn 0.3s var(--ease);
  --focus: var(--amber);
}
@keyframes cmpbarIn { from { transform: translateY(100%); } to { transform: none; } }
.cmpbar__inner { display: flex; align-items: center; gap: 20px; min-height: 76px; padding-block: 10px; }
.cmpbar__count { flex: none; font-family: var(--font-figure); font-size: 14px; color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.cmpbar__count b { font-size: 26px; font-weight: 600; color: var(--amber); }
.cmpbar__slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; flex: 1; min-width: 0; }
.cmpbar__slot {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; height: 56px; padding: 4px 30px 4px 4px;
  border: 1px solid var(--dark-line); border-radius: var(--r-md); background: var(--graphite);
}
.cmpbar__slot--empty { border-style: dashed; background: none; }
.cmpbar__thumb { flex: none; width: 46px; height: 46px; padding: 3px; border-radius: var(--r-sm); background: var(--media); }
.cmpbar__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cmpbar__name { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12.5px; line-height: 1.3; color: var(--on-dark-2); }
.cmpbar__x {
  position: absolute; top: 4px; right: 4px; display: inline-flex; width: 22px; height: 22px; padding: 3px;
  border: 0; border-radius: 50%; background: none; color: var(--on-dark-3);
}
.cmpbar__x:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cmpbar__x svg { width: 100%; height: 100%; }
.cmpbar__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.cmpbar__clear { border: 0; background: none; padding: 6px 2px; font-size: 14px; color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 3px; }
.cmpbar__clear:hover { color: #fff; }
.cmpbar__hint { max-width: 170px; font-size: 13px; line-height: 1.35; color: var(--on-dark-3); }
body.has-cmpbar { padding-bottom: 80px; }
body.has-cmpbar .wa-fab { bottom: 96px; }
body.has-cmpbar .toast { bottom: 100px; }

/* ------------------------------------------------------------------ compare page */
.cmp { background: var(--soft); min-height: 50vh; }
.cmp__tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.cmp__share { height: 40px; padding: 0 16px; border-radius: var(--r-pill); font-size: 14px; }
.cmp__share svg { width: 18px; height: 18px; }
.cmp__status { margin-bottom: 14px; font-size: 14.5px; color: var(--muted); }
.cmp__note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.cmp__scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }
.cmp__scroll:empty { display: none; }

.cmpt { width: 100%; min-width: calc(180px + var(--cols, 2) * 200px); border-collapse: separate; border-spacing: 0; background: #fff; font-size: 14.5px; table-layout: fixed; }
.cmpt th, .cmpt td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmpt th:first-child { position: sticky; left: 0; z-index: 1; width: 200px; background: #fff; box-shadow: 1px 0 0 var(--line); }
.cmpt tbody th { font-weight: 600; color: var(--ink-2); font-size: 13.5px; }
.cmpt thead th { padding-block: 18px; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.cmpt__corner { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cmpt__prod { position: relative; vertical-align: top !important; }
.cmpt__prod > * { display: block; }
.cmpt__media { width: 148px; height: 148px; margin-bottom: 12px; padding: 10px; border-radius: var(--r-md); background: var(--media); }
.cmpt__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cmpt__brand { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--subtle); }
.cmpt__title { margin-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.cmpt__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.cmpt__price { margin-top: 10px; font-family: var(--font-figure); font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmpt__note { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.cmpt__action { margin-top: 12px; }
.cmpt__action .btn { height: 40px; font-size: 14px; }
.cmpt__x {
  position: absolute !important; top: 10px; right: 10px; display: inline-flex !important; width: 30px; height: 30px; padding: 6px;
  border: 1px solid var(--line-2); border-radius: 50%; background: #fff; color: var(--ink);
}
.cmpt__x:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.cmpt__x svg { width: 100%; height: 100%; }
.cmpt__add { vertical-align: middle !important; }
.cmpt__addlink {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 260px;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-md); font-size: 14px; font-weight: 600; color: var(--muted); text-align: center;
}
.cmpt__addlink span { font-size: 30px; font-weight: 300; line-height: 1; }
.cmpt__addlink:hover { border-color: var(--ink); color: var(--ink); }
.cmpt__v { font-variant-numeric: tabular-nums; }
.cmpt tr.is-diff td, .cmpt tr.is-diff th { background: #fdf6ea; }
.cmpt tr.is-diff th:first-child { box-shadow: inset 3px 0 0 var(--amber), 1px 0 0 var(--line); }
.cmpt td.is-best .cmpt__v { font-weight: 700; color: var(--ink); }
.cmpt__best {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: var(--r-xs); background: var(--ink); color: var(--amber);
  font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 1px;
}
.cmpt__row--price td .cmpt__v { font-family: var(--font-figure); font-size: 16px; }
.only-diff .cmpt tbody tr:not(.is-diff) { display: none; }

.cmp-empty { display: grid; justify-items: center; gap: 10px; max-width: 560px; margin: 8px auto 0; padding: 36px 28px 40px; border-radius: var(--r-lg); background: #fff; text-align: center; }
.cmp-empty__slots { display: grid; grid-template-columns: repeat(4, 44px); gap: 8px; margin-bottom: 8px; }
.cmp-empty__slots i { height: 56px; border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); }
.cmp-empty__slots i:first-child { border-style: solid; border-color: var(--amber); background: #fdf6ea; }
.cmp-empty__title { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.cmp-empty__text { color: var(--muted); }
.cmp-empty__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* ------------------------------------------------------------------ search: header suggestions + results page */
.sr__opt[aria-selected="true"] .sr__item, .sr__opt[aria-selected="true"] .sr__all { background: var(--soft); box-shadow: inset 3px 0 0 var(--amber); }
.sr__opt--all { grid-column: 1 / -1; }
.sr__all { display: block; padding: 12px 10px; border-radius: var(--r-md); font-weight: 600; color: var(--amber-deep); }
.sr__all:hover { background: var(--soft); }
.sbox {
  display: flex; align-items: center; gap: 12px; max-width: 720px; margin-top: 20px; padding: 6px 6px 6px 16px;
  border-radius: var(--r-pill); background: #fff; color: var(--ink); --focus: var(--ink);
}
.sbox > svg { width: 22px; height: 22px; color: var(--muted); }
.sbox input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font-size: 17px; }
.sbox .btn { border-radius: var(--r-pill); }
.search-status { margin-bottom: 18px; }
.grid--search:empty { display: none; }

/* ------------------------------------------------------------------ Task 6 tablet + phone */
@media (max-width: 1199px) {
  .listing.is-enhanced .listing__layout { grid-template-columns: minmax(0, 1fr); }
  .listing.is-enhanced .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing-bar__filters { display: inline-flex; }
  /* filter sheet */
  .filters {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 110; max-height: none;
    align-self: stretch; /* abspos boxes honour align-self: start → would shrink to content height */
    width: min(92vw, 400px); display: flex; flex-direction: column;
    border: 0; border-radius: 0; box-shadow: var(--shadow-lg);
    transform: translateX(-104%); transition: transform 0.3s var(--ease); visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgba(10, 10, 10, 0.45); }
  .filters__head { padding: 14px 18px 10px; border-bottom: 1px solid var(--line); }
  .filters__close { display: inline-flex; }
  .filters__body { flex: 1; overflow-y: auto; }
  .filters__foot { border-top: 1px solid var(--line); }
  .filters__done { display: inline-flex; }
  .chead__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .readout--scene { width: 100%; max-width: 460px; }
}
@media (max-width: 767px) {
  .chead__inner { padding-block: 16px 26px; }
  .chead__eyebrow { margin-top: 16px; }
  .chead__title { font-size: 38px; }
  .chead--slim .chead__title { font-size: 34px; }
  .chead__lead { font-size: 15px; }
  .chead--scenario .chead__lead { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .readout__band { font-size: 26px; }
  .listing.is-enhanced .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-bar { gap: 10px; }
  .listing-bar__count { order: 3; width: 100%; font-size: 14px; }
  .viewtog { display: none; }
  .listing.is-list .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .listing.is-list .card { flex-direction: column; }
  .listing.is-list .card__media { width: auto; }
  .listing.is-list .card__body { display: flex; padding: 12px 12px 14px; }
  .card__cmp { top: 6px; right: 6px; height: 28px; padding: 0 8px 0 6px; font-size: 12px; }
  .grid .card__flag { max-width: calc(100% - 24px); font-size: 10.5px; line-height: 1.3; white-space: normal; }

  .cmpbar__inner { gap: 10px; min-height: 64px; }
  .cmpbar__slots { grid-template-columns: repeat(4, 40px); gap: 6px; flex: 1; }
  .cmpbar__slot { height: 44px; width: 40px; padding: 0; border: 0; background: none; }
  .cmpbar__slot--empty { border: 1px dashed var(--dark-line); }
  .cmpbar__thumb { width: 40px; height: 40px; }
  .cmpbar__name { display: none; }
  .cmpbar__x { top: -6px; right: -6px; width: 20px; height: 20px; background: var(--graphite); border: 1px solid var(--dark-line); }
  .cmpbar__count { display: none; }
  .cmpbar__go { height: 40px; padding: 0 14px; font-size: 14px; }
  .cmpbar__hint { max-width: 110px; font-size: 12px; }
  body.has-cmpbar { padding-bottom: 68px; }
  body.has-cmpbar .wa-fab { bottom: 80px; }

  .cmpt { min-width: calc(112px + var(--cols, 2) * 150px); font-size: 13.5px; }
  .cmpt th, .cmpt td { padding: 10px 10px; }
  .cmpt th:first-child { width: 112px; font-size: 12.5px; }
  .cmpt__media { width: 96px; height: 96px; }
  .cmpt__price { font-size: 18px; }
  .cmpt__addlink { height: 200px; }
  .cmpt__best { display: block; width: max-content; margin: 4px 0 0; }

  .sbox { padding-left: 12px; }
  .sbox .btn { padding: 0 16px; height: 40px; }
  .sr { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================================== Task 7 (v2): product page + configurator
   The configurator is the page's one loud element: a charcoal band whose readout is the same segmented
   battery as the home hero — here it encodes the configured system (unit cells amber, added batteries striped,
   the rest of the single-unit maximum dark). Everything else stays on the quiet light body. */

/* ------------------------------------------------------------------ buy box additions */
.pdp__plug {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 12px;
  font-size: 13.5px; line-height: 1.45; color: var(--ink-2);
}
.pdp__plug svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--amber-deep); }
.pdp__cmp {
  display: none; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; padding-right: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.has-js .pdp__cmp { display: inline-flex; }
.pdp__cmp input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.pdp__cmp:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* legal guarantee notice (partials/guarantee_notice.html) */
.lg-notice {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; margin-top: 20px; padding: 16px 18px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface);
}
.lg-notice__mark {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--charcoal); color: var(--amber);
}
.lg-notice__mark svg { width: 22px; height: 22px; }
.lg-notice__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14.5px; color: var(--ink); }
.lg-notice__badge {
  padding: 1px 8px; border-radius: var(--r-pill); background: var(--amber); color: var(--amber-ink);
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
}
.lg-notice__text { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.lg-notice__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 13px; font-weight: 600; }
.lg-notice__links a { display: inline-flex; align-items: center; min-height: 28px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lg-notice__links a:hover { color: var(--amber-deep); }

/* ------------------------------------------------------------------ configurator */
.cfg { padding-block: 64px 72px; background: var(--charcoal); color: var(--on-dark); }
html:not(.has-js) .cfg { display: none; }
.cfg__head { max-width: 720px; }
.cfg__title {
  margin-top: 14px; font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 700;
  line-height: 1.02; letter-spacing: -0.005em; color: #fff;
}
.cfg__sub { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--on-dark-2); }
.cfg__body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: 36px; }
.cfg__group + .cfg__group { margin-top: 30px; }
.cfg__gh {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-3);
}
.cfg__gh span { font-family: var(--font); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.cfg__list { border-top: 1px solid var(--dark-line); }
.cfg__line {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--dark-line); transition: background-color 0.2s;
}
.cfg__line::before {
  content: ""; position: absolute; left: -14px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px;
  background: var(--amber); opacity: 0; transition: opacity 0.2s;
}
.cfg__line.is-on::before, .cfg__line--unit::before { opacity: 1; }
.cfg__thumb {
  display: block; width: 64px; height: 64px; padding: 6px; overflow: hidden;
  border-radius: var(--r-sm); background: var(--media);
}
.cfg__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cfg__name { display: grid; gap: 3px; min-width: 0; }
.cfg__name b, .cfg__name a { font-size: 15px; font-weight: 600; line-height: 1.3; color: #fff; }
.cfg__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cfg__name > span { font-family: var(--font-figure); font-size: 13px; color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.cfg__fixed { display: grid; justify-items: end; font-family: var(--font-figure); font-size: 18px; font-weight: 600; color: #fff; }
.cfg__fixed small { font-family: var(--font); font-size: 11.5px; font-weight: 500; color: var(--on-dark-3); }

.qty--dark { height: 46px; border-color: rgba(255, 255, 255, 0.28); background: transparent; }
.qty--dark .qty__btn { width: 44px; color: #fff; }
.qty--dark .qty__btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.qty--dark .qty__btn:disabled { opacity: 0.35; cursor: default; }
.qty--dark .qty__input { width: 36px; color: #fff; font-family: var(--font-figure); font-size: 17px; }
.cfg__line.is-on .qty--dark { border-color: var(--amber); }
.cfg :focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.cfg__panel {
  position: sticky; top: calc(var(--hdr-h) + 20px); min-width: 0;
  padding: 22px 22px 24px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r-md);
  background: var(--night); font-family: var(--font-figure);
}
.cfg__cap { margin-top: 4px; font-size: 18px; color: var(--on-dark-3); }
.cfg__cap b { font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; color: #fff; font-variant-numeric: tabular-nums; }
.cfg__cells { grid-template-columns: repeat(20, 1fr); gap: 3px; margin-top: 14px; }
.cfg__cells i { height: 22px; transition: background-color 0.25s, box-shadow 0.25s; }
.readout__cells i.base { background: var(--amber); box-shadow: 0 0 10px rgba(242, 163, 58, 0.35); }
.readout__cells i.add {
  background: repeating-linear-gradient(135deg, var(--amber-hi) 0 3px, #ffd9a0 3px 6px);
  box-shadow: 0 0 10px rgba(246, 184, 92, 0.4);
}
.cfg__scale { margin-top: 8px; font-size: 12.5px; color: var(--on-dark-3); }
.cfg__solar {
  display: flex; align-items: baseline; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--dark-line);
  font-size: 15px; color: var(--on-dark-3);
}
.cfg__solar span { margin-right: auto; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.cfg__solar b { font-size: 24px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.cfg__solar small { font-size: 12.5px; }
.cfg__warn:not(:empty) { display: grid; gap: 8px; margin-top: 14px; }
.cfg__warn li {
  padding: 9px 12px; border-left: 3px solid var(--amber); border-radius: 0 var(--r-xs) var(--r-xs) 0;
  background: rgba(242, 163, 58, 0.12); font-family: var(--font); font-size: 13.5px; line-height: 1.45; color: #ffe2b8;
}
.cfg__sum { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--dark-line); }
.cfg__total { margin-top: 4px; font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--amber); font-variant-numeric: tabular-nums; }
.cfg__total.is-ask { font-family: var(--font-display); font-size: 26px; color: #fff; }
.cfg__note { margin-top: 4px; font-family: var(--font); font-size: 12.5px; color: var(--on-dark-3); }
.cfg__ref { margin-top: 6px; font-family: var(--font); font-size: 12.5px; color: var(--on-dark-2); }
.cfg__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; }
.cfg__actions > * { min-width: 0; }
.cfg__actions .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cfg__actions .btn[hidden] { display: none; }

/* ------------------------------------------------------------------ detail tabs */
.pdp-tabs { padding-bottom: 56px; border-top: 1px solid var(--line); background: var(--surface); }
.pdp-tabs__list { display: none; }
.has-js .pdp-tabs__list {
  display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.has-js .pdp-tabs__list::-webkit-scrollbar { display: none; }
.pdp-tabs__tab {
  flex: none; height: 58px; padding: 0 18px; margin-bottom: -1px;
  border: 0; border-bottom: 3px solid transparent; background: none;
  font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: 0.01em; color: var(--muted); white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.pdp-tabs__tab:hover { color: var(--ink); }
.pdp-tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--amber); }
.pdp-tabs__tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.pdp-tab { max-width: 920px; padding-top: 36px; }
.pdp-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.pdp-tab + .pdp-tab { margin-top: 36px; border-top: 1px solid var(--line); }
.pdp-tabs.is-tabbed .pdp-tab + .pdp-tab { margin-top: 0; border-top: 0; }
.pdp-tab__h { margin-bottom: 16px; font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.15; }
.pdp-tabs.is-tabbed .pdp-tab__h {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pdp-tab .spec-table th { width: 40%; }
.pdp-tab .spec-table td { font-family: var(--font-figure); font-variant-numeric: tabular-nums; }
.pdp-tab .prose { margin-top: 0; }
.pdp-tab__list { display: grid; gap: 10px; }
.pdp-tab__list li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.pdp-tab__list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 1px; background: var(--amber); }
.pdp-tab__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; }
.pdp-tab__links .link-arrow { min-height: 44px; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative; display: block; min-height: 44px; padding: 16px 44px 16px 0; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__item p { padding: 0 0 18px; max-width: 72ch; font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* ------------------------------------------------------------------ product safety (GPSR Art. 19) */
.pdp-safety { padding-block: 44px; border-top: 1px solid var(--line); background: var(--paper); }
.pdp-safety__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 20px 48px; }
.pdp-safety__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.2; }
.pdp-safety__sub { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pdp-safety__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.pdp-safety__list div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pdp-safety__list dt { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.pdp-safety__list dd { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.pdp-safety__list dd a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ compare with similar */
.section--similar { padding-block: var(--s-9); background: var(--surface); }
.section--compat + .section--similar { border-top: 0; }
.simcmp { margin-top: 8px; }
.simcmp__table { min-width: 640px; table-layout: fixed; }
.simcmp__table tbody th, .simcmp__table thead td { width: 168px; }
.simcmp__table thead th { vertical-align: bottom; }
.simcmp__table thead th > span, .simcmp__table thead th > a { display: block; }
.simcmp__img { width: 80px; height: 80px; margin-bottom: 8px; padding: 6px; border-radius: var(--r-sm); background: var(--media); }
.simcmp__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.simcmp__brand { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--subtle); }
.simcmp__name { margin-top: 2px; font-weight: 600; line-height: 1.3; color: var(--ink); }
a.simcmp__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.simcmp__this {
  width: max-content; margin-bottom: 8px; padding: 2px 8px; border-radius: var(--r-xs); background: var(--charcoal); color: var(--amber);
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.simcmp__table .is-this { background: #fbf4e6; }
.simcmp__table .spec-cmp__price td { border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------------ Task 7 (v2) tablet + phone */
@media (max-width: 1199px) {
  .cfg__body { grid-template-columns: minmax(0, 1fr); }
  .cfg__panel { position: static; max-width: 560px; }
  .pdp-safety__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .gallery__nav { width: 44px; height: 44px; margin-top: -22px; }
  .lg-notice { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .lg-notice__mark { width: 32px; height: 32px; }
  .lg-notice__mark svg { width: 18px; height: 18px; }
  .cfg { padding-block: 44px 52px; }
  .cfg__title { font-size: 30px; }
  .cfg__sub { font-size: 15px; }
  .cfg__body { margin-top: 26px; }
  .cfg__line { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; }
  .cfg__line::before { left: -10px; }
  .cfg__thumb { width: 52px; height: 52px; padding: 4px; }
  .cfg__name b, .cfg__name a { font-size: 14px; }
  .cfg__name > span { font-size: 12px; }
  .cfg__panel { padding: 18px; }
  .cfg__cap b { font-size: 46px; }
  .cfg__cells i { height: 18px; }
  .pdp-tabs { padding-bottom: 40px; }
  .pdp-tabs__tab { height: 52px; padding: 0 14px; font-size: 16px; }
  .pdp-tab { padding-top: 26px; }
  .pdp-tab__h { font-size: 22px; }
  .pdp-safety { padding-block: 36px; }
  .pdp-safety__list { grid-template-columns: minmax(0, 1fr); }
  .section--similar { padding-block: 40px; }
  .simcmp__table { min-width: 560px; font-size: 13.5px; }
  .simcmp__table tbody th, .simcmp__table thead td { width: 112px; white-space: normal; }
  .simcmp__img { width: 64px; height: 64px; }
}

/* ================================================================== Task 8 (v2): AI Solution
   Same language as the configurator: a charcoal band (title + scenario presets), the quiet light body, and one loud
   element — the load readout under the appliance list, whose segmented battery shows the capacity you need. Each plan
   card repeats that battery on a light ground: amber = your need, striped = headroom (one scale per card). */

/* ------------------------------------------------------------------ hero + presets */
.sol-hero { padding: 8px 0 36px; background: var(--charcoal); color: var(--on-dark); }
.sol-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 24px 48px; align-items: end; margin-top: 18px; }
.sol-hero__title {
  margin-top: 14px; max-width: 16ch; font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 52px); font-weight: 700;
  line-height: 1.02; letter-spacing: -0.005em; color: #fff; text-wrap: balance;
}
.sol-hero__sub { max-width: 56ch; margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--on-dark-2); }
.sol-presets__label {
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-3);
}
.sol-presets__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.sol-preset {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 60px; padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--r-md); background: var(--graphite); color: #fff; text-align: left;
  cursor: pointer; transition: border-color 0.15s, background-color 0.15s;
}
.sol-preset:hover { border-color: rgba(242, 163, 58, 0.7); }
.sol-preset:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sol-preset[aria-pressed="true"] { border-color: var(--amber); background: #2e2618; box-shadow: inset 3px 0 0 var(--amber); }
.sol-preset:disabled { opacity: 0.5; cursor: default; }
.sol-preset__name { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.15; }
.sol-preset__meta { font-size: 12.5px; color: var(--on-dark-3); }
.sol-preset[aria-pressed="true"] .sol-preset__name { color: var(--amber); }

/* ------------------------------------------------------------------ layout */
.sol-page { padding-block: 32px 56px; background: var(--paper); }
.sol { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 32px; align-items: start; }
html:not(.has-js) .sol-app { display: none; }
.has-js .sol-nojs { display: none; }
.sol-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-2);
  font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.sol-link:hover { color: var(--amber-deep); }
.sol-page :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ------------------------------------------------------------------ load panel */
.sol-load {
  position: sticky; top: calc(var(--hdr-h) + 16px); display: flex; flex-direction: column; min-width: 0;
  max-height: calc(100vh - var(--hdr-h) - 32px); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.sol-load__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.sol-load__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); }
.sol-load__count { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sol-load__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.appl-group {
  position: sticky; top: 0; z-index: 1; padding: 12px 16px 6px; background: var(--surface);
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.appl { border-top: 1px solid var(--line); }
.appl-list .appl:first-child { border-top: 0; }
.appl__row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 44px; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; }
.appl__icon {
  flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 10px;
  background: var(--soft); color: var(--ink-2); transition: background-color 0.15s, color 0.15s;
}
.appl.is-on .appl__icon { background: var(--charcoal); color: var(--amber); }
.appl__text { display: flex; flex-direction: column; min-width: 0; }
.appl__name { font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.appl__meta { font-family: var(--font-figure); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.appl.is-edited .appl__meta { color: var(--amber-deep); }
.appl__qty { height: 46px; }
.appl__qty .qty__btn { width: 44px; }
.appl__qty .qty__btn:disabled { color: var(--line-2); cursor: default; }
.appl__qty .qty__btn:disabled:hover { background: none; }
.appl__qty .qty__input { width: 28px; font-family: var(--font-figure); font-size: 16px; }
.appl:not(.is-on) .appl__qty .qty__input { color: var(--subtle); font-weight: 500; }
.appl.is-on .appl__qty { border-color: var(--ink); }
.appl__edit {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--subtle); cursor: pointer;
}
.appl__edit svg { width: 18px; height: 18px; }
.appl__edit:hover, .appl.is-open .appl__edit { background: var(--soft); color: var(--ink); }
.appl__adv {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; margin: 0 14px 12px 62px;
  padding: 12px; border-radius: var(--r-sm); background: var(--soft);
}
.appl__adv[hidden] { display: none; }
.appl__field { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.appl__input {
  display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff;
}
.appl__input:focus-within { border-color: var(--ink); }
.appl__input input {
  width: 100%; min-width: 0; border: 0; padding: 0; background: none; outline: 0;
  font-family: var(--font-figure); font-size: 16px; color: var(--ink); -moz-appearance: textfield; appearance: textfield;
}
.appl__input input:invalid { color: var(--red); }
.appl__input i { font-style: normal; font-size: 13px; color: var(--subtle); }
.appl__surge { align-self: center; font-size: 12.5px; color: var(--muted); }
.appl__reset { justify-self: end; }

/* the readout */
.sol-readout { padding: 14px 16px 16px; background: var(--charcoal); color: var(--on-dark-3); font-family: var(--font-figure); }
.sol-readout__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sol-readout dt, .sol-readout__need span {
  display: block; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-3);
}
.sol-readout dd { margin: 2px 0 0; font-size: 13px; }
.sol-readout b { font-size: 22px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.sol-readout__need { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--dark-line); }
.sol-readout__need p:first-child { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.sol-readout__need p:first-child span { margin-right: auto; }
.sol-readout__need b { color: var(--amber); }
.sol-readout__cells { grid-template-columns: repeat(20, 1fr); gap: 2px; margin-top: 10px; }
.sol-readout__cells i { height: 14px; transition: background-color 0.2s; }
.sol-readout__scale { min-height: 16px; margin-top: 6px; font-size: 11.5px; color: var(--on-dark-3); }
.sol-readout__jump { display: none; }

/* ------------------------------------------------------------------ plan settings */
.sol-main { min-width: 0; }
.sol-opts {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 18px 28px; align-items: start;
  padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.sol-opt { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.sol-opt small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.sol-opt__label {
  display: flex; align-items: center; gap: 12px; padding: 0;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.sol-opt__label .sol-link { font-family: var(--font); letter-spacing: 0; text-transform: none; font-size: 13px; }
.sol-days { justify-self: start; height: 46px; }
.sol-days .qty__input { width: 40px; font-family: var(--font-figure); }
.sol-days .qty__btn:disabled { color: var(--line-2); cursor: default; }
.sol-switch { cursor: pointer; }
.sol-switch__row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.sol-switch__row input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sol-switch__ui { position: relative; flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line-2); transition: background-color 0.2s; }
.sol-switch__ui::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease);
}
.sol-switch__row input:checked + .sol-switch__ui { background: var(--charcoal); }
.sol-switch__row input:checked + .sol-switch__ui::after { transform: translateX(18px); background: var(--amber); }
.sol-switch__row input:focus-visible + .sol-switch__ui { outline: 2px solid var(--ink); outline-offset: 3px; }
.sol-switch__state { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.sol-budget {
  display: flex; align-items: center; gap: 6px; width: 100%; max-width: 220px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff;
}
.sol-budget:focus-within { border-color: var(--ink); }
.sol-budget i { font-style: normal; font-family: var(--font-figure); font-size: 16px; color: var(--muted); }
.sol-budget input {
  width: 100%; min-width: 0; border: 0; padding: 0; background: none; outline: 0;
  font-family: var(--font-figure); font-size: 16px; color: var(--ink); -moz-appearance: textfield; appearance: textfield;
}
.sol-brands { grid-column: 1 / -1; }
.sol-brands__row { display: flex; flex-wrap: wrap; gap: 6px; }
.sol-chip { position: relative; display: inline-flex; cursor: pointer; }
.sol-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sol-chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.sol-chip span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid currentColor; }
.sol-chip input:checked + span { border-color: var(--charcoal); background: var(--charcoal); color: #fff; }
.sol-chip input:checked + span::before { border-color: var(--amber); background: var(--amber); }
.sol-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.sol-chip:hover span { border-color: var(--ink); }

/* ------------------------------------------------------------------ results */
.sol-results { margin-top: 28px; }
.sol-results:focus { outline: 0; }
.sol-results__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sol-results__title { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); }
.sol-results__meta { flex: 1 1 260px; font-size: 14px; color: var(--muted); }
.sol-results__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sol-results__tools[hidden], .sol-tool[hidden] { display: none; }
.sol-tool { height: 44px; padding: 0 16px; font-size: 14px; }
.sol-idle {
  margin-top: 16px; padding: 40px 28px; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); text-align: center;
}
.sol-idle[hidden] { display: none; }
.sol-idle__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); }
.sol-idle__text { max-width: 52ch; margin: 8px auto 0; font-size: 15px; color: var(--muted); }
.sol-idle__loading { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

.plan-group { margin-top: 26px; }
.plan-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.plan-group__brand { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.14em; color: var(--ink); }
.plan-group__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }

.plan {
  display: flex; flex-direction: column; min-width: 0; padding: 16px 18px 18px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  animation: plan-in 0.35s var(--ease) both;
}
@keyframes plan-in { from { opacity: 0; transform: translateY(6px); } }
.plan.is-best { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), var(--shadow-md); }
.plan__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.plan__mode, .plan__badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.plan__mode--cheapest { background: var(--charcoal); color: #fff; }
.plan__mode--headroom { border: 1px solid var(--ink); color: var(--ink); }
.plan__badge { background: var(--amber); color: var(--amber-ink); }
.plan__badge--ask { border: 1px dashed var(--ink-2); background: none; color: var(--ink-2); }
.plan__media { position: relative; margin-top: 12px; }
.plan__station { display: block; height: 210px; padding: 14px; border-radius: var(--r-sm); background: var(--media); }
.plan__station img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.plan__ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%;
  font-family: var(--font-display); text-align: center; color: var(--subtle);
}
.plan__ph b { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; }
.plan__ph span { font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: 0.02em; color: var(--ink-2); }
.plan__station:has(.plan__ph) { background: repeating-linear-gradient(135deg, var(--media) 0 10px, #e9e9e5 10px 20px); }
.plan__extras { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.plan__thumb {
  position: relative; display: block; width: 58px; height: 58px; padding: 5px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; box-shadow: var(--shadow-sm);
}
.plan__thumb img { width: 100%; height: 100%; object-fit: contain; }
.plan__x {
  position: absolute; top: -8px; right: -8px; min-width: 24px; height: 22px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--charcoal); color: #fff; font-family: var(--font-figure); font-size: 12px; font-weight: 600; line-height: 22px; text-align: center;
}
.plan__title { margin-top: 12px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.plan__title a { color: var(--ink); }
.plan__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.plan__cap { margin-top: 10px; }
.plan__cells { grid-template-columns: repeat(20, 1fr); gap: 2px; border-color: var(--ink-2); }
.plan__cells::after { background: var(--ink-2); }
.plan__cells i { height: 12px; background: var(--soft-2); }
.plan__cap p { margin-top: 6px; font-family: var(--font-figure); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan__lines { margin-top: 12px; border-top: 1px solid var(--line); }
.plan__line {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: start;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.plan__q { font-family: var(--font-figure); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan__what { display: flex; flex-direction: column; min-width: 0; }
.plan__role { font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.plan__what a { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.plan__what a:hover { text-decoration: underline; text-underline-offset: 3px; }
.plan__spec { font-family: var(--font-figure); font-size: 12.5px; color: var(--muted); }
.plan__lp { font-family: var(--font-figure); font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan__line--none .plan__what { color: var(--muted); }
.plan__why { margin-top: 12px; }
.plan__why summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.plan__why summary::-webkit-details-marker { display: none; }
.plan__why summary::after { content: "+"; font-family: var(--font-figure); font-size: 20px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan__why[open] summary::after { content: "−"; }
.plan__why ul { display: grid; gap: 6px; margin-top: 4px; }
.plan__why li { position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.plan__why li::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 5px;
  border: solid var(--green); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.plan__notes { display: grid; gap: 6px; margin-top: 12px; }
.plan__notes li { padding: 8px 10px; border-left: 3px solid var(--amber); border-radius: 0 var(--r-xs) var(--r-xs) 0; background: #fbf3e4; font-size: 13px; line-height: 1.45; color: #5a3d06; }
.plan__foot { margin-top: auto; padding-top: 16px; }
.plan__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.plan__total span { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.plan__total b { font-family: var(--font-figure); font-size: 28px; font-weight: 600; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan__total b.is-ask { font-family: var(--font-display); font-size: 20px; }
.plan__vat, .plan__ref { margin-top: 2px; font-size: 12.5px; color: var(--muted); text-align: right; }
.plan__btns { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; margin-top: 14px; }
.plan__btns.is-single { grid-template-columns: minmax(0, 1fr); }
.plan__btns .btn { height: 46px; padding: 0 12px; font-size: 14.5px; }

.plan-none { margin-top: 30px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.plan-none__title { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); }
.plan-none__list { margin-top: 8px; }
.plan-none__list li {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 6px 16px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
}
.plan-none__list b { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.12em; color: var(--ink); }
.plan-none__cta { height: 44px; margin-top: 14px; font-size: 14px; }

/* ------------------------------------------------------------------ no-JS + how it works */
.sol-nojs { max-width: 760px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.sol-nojs__title { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); }
.sol-nojs p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.sol-nojs__h { margin-top: 24px; font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sol-nojs__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 8px; }
.sol-nojs__list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sol-nojs__list li span:last-child { font-family: var(--font-figure); color: var(--muted); white-space: nowrap; }
.sol-how { margin-top: 32px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: 14px; color: var(--ink-2); }
.sol-how summary { display: flex; align-items: center; min-height: 28px; font-weight: 700; color: var(--ink); cursor: pointer; }
.sol-how ul { display: grid; gap: 8px; margin-top: 12px; padding-left: 18px; list-style: disc; }
.sol-how li::marker { color: var(--subtle); }

@media (max-width: 1199px) {
  .sol-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .sol { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sol-load { position: static; max-height: none; overflow: visible; }
  .sol-load__body { overflow: visible; }
  .appl-group { position: static; }
  /* the readout follows you down the list on smaller screens */
  .sol-readout { position: sticky; bottom: 0; z-index: 5; border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: 0 -10px 24px rgba(23, 24, 26, 0.18); }
  .sol-readout__jump:not([hidden]) {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin-top: 12px;
    border-radius: var(--r-pill); background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: 15px;
  }
  .sol-readout__jump:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
}

@media (max-width: 767px) {
  .sol-hero { padding-bottom: 28px; }
  .sol-presets__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-preset { min-height: 56px; padding: 8px 12px; }
  .sol-page { padding-top: 20px; }
  .appl__row { grid-template-columns: 34px minmax(0, 1fr) auto 44px; gap: 8px; padding: 6px 4px 6px 10px; }
  .appl__icon { width: 34px; height: 34px; padding: 7px; }
  .appl__name { font-size: 14.5px; }
  .appl__adv { grid-template-columns: minmax(0, 1fr); margin: 0 10px 12px; }
  .appl__reset { justify-self: start; }
  .sol-readout { padding: 10px 14px 12px; }
  .sol-readout b { font-size: 18px; }
  .sol-readout__need { margin-top: 8px; padding-top: 8px; }
  .sol-readout__cells { margin-top: 6px; }
  .sol-readout__cells i { height: 10px; }
  .sol-readout__scale { display: none; }
  .sol-readout__jump:not([hidden]) { margin-top: 10px; }
  .sol-opts { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px; }
  .sol-budget { max-width: none; }
  .sol-chip span { padding: 0 12px; font-size: 13px; }
  .sol-results__title { font-size: 22px; }
  .sol-results__tools { width: 100%; }
  .sol-tool { flex: 1 1 0; }
  .plan-group__cards { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 14px 14px 16px; }
  .plan__station { height: 190px; }
  .plan-none__list li { grid-template-columns: minmax(0, 1fr); }
  .sol-nojs { padding: 20px 16px; }
  .sol-nojs__list { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ Contact (Task 9) */
.contact-page { padding-top: 0; background: var(--soft); min-height: 60vh; }
.contact-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-card { padding: 28px; border-radius: var(--r-lg); background: var(--charcoal); color: var(--on-dark); }
.contact-card__co { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-3); }
.contact-list { margin-top: 14px; }
.contact-item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center;
  padding-block: 16px; border-top: 1px solid var(--dark-line);
}
.contact-item:first-child { border-top: 0; }
.contact-item__icon {
  grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-md); background: rgba(255, 255, 255, 0.08); color: var(--amber);
}
.contact-item__icon svg { width: 21px; height: 21px; }
.contact-item__icon--wa { color: var(--wa); }
.contact-item__k { font-size: 12.5px; color: var(--on-dark-3); }
.contact-item__v { font-size: 17px; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
a.contact-item__v:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-card__btns { display: grid; gap: 10px; margin-top: 18px; }

@media (max-width: 1199px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .contact-card { padding: 22px 18px; }
}

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

/* ================================================================== Task 9: Power Battery, B2B, brands, guides, legal
   Same family as the collection head (.chead dark band), the rating plate (.plate) and the readout cells.
   Power Battery's head carries a pack "nameplate": voltage and capacity cells lit for the range we build. */

/* ------------------------------------------------------------------ shared */
.chead__ctas { margin-top: 26px; }
.capgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 28px; margin-top: 44px; }
.capgrid__item { padding: 18px 0 22px; border-top: 2px solid var(--ink); }
.capgrid__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.15; }
.capgrid__body { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

.process { background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.steps__item { position: relative; padding: 0 20px 0 0; }
.steps__n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--amber); font-family: var(--font-figure); font-size: 17px; font-weight: 600;
}
.steps__item:not(:last-child)::after {
  content: ""; position: absolute; left: 48px; right: 8px; top: 20px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 10px);
}
.steps__title { margin-top: 16px; font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.2; }
.steps__body { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* the [[TODO: …]] placeholders stay visible for the client (launch gate: python -m build.check_launch) */
mark.todo {
  padding: 0 4px; border-radius: 3px; background: #fff0d1; color: #5c3400;
  outline: 1px dashed #c4801c; outline-offset: -1px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  font-weight: 600;
}
.todo--swatch { display: inline-block; width: 22px; height: 14px; padding: 0; vertical-align: -2px; }
.todo-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.chead mark.todo, .apps mark.todo { background: rgba(242, 163, 58, 0.18); color: #ffd79a; outline-color: rgba(242, 163, 58, 0.7); }

/* ------------------------------------------------------------------ lead section (FAQ + form) */
.lead { background: var(--soft); }
.lead__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.lead__h { margin-bottom: 20px; font-size: clamp(26px, 2.4vw, 34px); }
.lead .faq { border-top-color: var(--line-2); }
.lead .faq__item { border-bottom-color: var(--line-2); }

.qf { padding: 32px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--hdr-h) + 16px); }
.qf__title { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.1; }
.qf__intro { max-width: 64ch; margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.qf__req { margin-top: 8px; font-size: 13px; color: var(--muted); }
.field-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field input::placeholder, .field textarea::placeholder { color: #84878d; }
.qf__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.qf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.qf__actions .btn[disabled] { opacity: 0.6; cursor: progress; }
.qf__privacy { flex: 1 1 220px; font-size: 13px; color: var(--muted); }
.qf__privacy a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
/* 2026-10-14 询价 / 联系表单附件 */
.qf-files__pick { position: relative; align-self: flex-start; overflow: hidden; cursor: pointer; }
.qf-files .qf-files__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.qf-files__pick:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.qf-files__hint { margin: 0; font-size: 13px; color: var(--muted); }
.qf-files__list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.qf-files__list:empty { display: none; }
.qf-files__item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--soft); font-size: 14px; }
.qf-files__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf-files__size { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.qf-files__rm { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.qf-files__rm:hover, .qf-files__rm:focus-visible { background: var(--line); }
.qf__status { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--soft); font-size: 14.5px; }
.qf__status:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.qf__status--ok { background: #e6f4ec; color: #0f5a32; font-weight: 600; }
.qf__status--error { background: #fdecea; color: #8f1b15; }
.qf__fallback { margin-top: 18px; padding: 20px; border-radius: var(--r-md); background: var(--charcoal); color: var(--on-dark); animation: fadeIn 0.3s ease; }
.qf__fallback > p:first-child { max-width: 60ch; font-size: 15px; line-height: 1.55; }
.qf__fallback .btn { margin-top: 14px; }
.qf__fallback .btn svg { width: 20px; height: 20px; }
.qf__alt { margin-top: 12px; font-size: 13.5px; color: var(--on-dark-3); }
.qf__alt a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ Power Battery */
.readout--pack { width: 360px; gap: 8px; padding: 18px 20px 20px; }
.readout--pack:hover { transform: none; }
.pack-row { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.pack-row__k { font-size: 12px; color: var(--on-dark-3); }
.readout--pack .readout__band { margin-top: -4px; font-size: 28px; }
.readout__cells--8 { grid-template-columns: repeat(8, 1fr); }
.readout--pack .readout__scale { margin-top: 0; }
.pack-chem { margin-top: -4px; font-family: var(--font); font-size: 14px; line-height: 1.45; color: #fff; }
.apps { background: var(--charcoal); color: var(--on-dark); }
.apps .section__title { color: #fff; }
.apps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.apps__item { padding: 24px 22px 26px; border: 1px solid var(--dark-line); border-radius: var(--r-lg); background: var(--graphite); }
.apps__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; }
.apps__title::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 18px; background: var(--amber); }
.apps__body { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--on-dark-2); }
.apps__note { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin-top: 24px; font-size: 14.5px; color: var(--on-dark-3); }
.apps__note .link-arrow { min-height: 44px; color: var(--amber); }
.pbf__media { display: flex; gap: 10px; height: 340px; margin-bottom: 28px; }
.pbf__fig { position: relative; flex: 4 1 0; min-width: 0; overflow: hidden; border-radius: var(--r-md); background: var(--graphite); }
.pbf__fig--tall { flex-grow: 2.4; }
.pbf__fig img { width: 100%; height: 100%; object-fit: cover; }
.pbf__fig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0)); font-size: 12.5px; line-height: 1.35; color: #fff;
}
.pbf__facts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; }
.pbf__facts .plate { margin-top: 0; }
.pbf__facts .plant__certs-h { margin-top: 0; }
.pbf__certnote { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ------------------------------------------------------------------ B2B */
.offer-jump { display: grid; align-self: stretch; align-content: center; min-width: 300px; border-left: 1px solid var(--dark-line); }
.offer-jump__a {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 0 0 0 32px;
  border-bottom: 1px solid var(--dark-line);
  font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 34px); font-weight: 700; letter-spacing: 0.02em; color: #fff;
  transition: color 0.2s, padding 0.25s var(--ease);
}
.offer-jump__a:last-child { border-bottom: 0; }
.offer-jump__a::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(45deg); }
.offer-jump__a:hover { color: var(--amber); padding-left: 38px; }
.offers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer { display: flex; flex-direction: column; padding: 28px 26px 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); scroll-margin-top: calc(var(--hdr-h) + 16px); }
.offer:target { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 163, 58, 0.25); }
.offer__title { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.05; }
.offer__body { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.offer__points { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.offer__points li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; }
.offer__points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 1px; background: var(--amber); }
.terms { margin-top: 48px; }
.terms__h { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.plate--terms { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; }
.plate--terms dd { font-family: var(--font); font-size: 14.5px; font-weight: 500; line-height: 1.5; }
.b2b-fac__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fcard { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.fcard__fig { background: var(--graphite); }
.fcard__fig img { width: 100%; height: 100%; object-fit: cover; }
.fcard__text { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; }
.fcard__text .plate { grid-template-columns: minmax(0, 1fr); margin-block: 12px 10px; }
.fcard__text .link-arrow { margin-top: auto; min-height: 44px; }
.b2b-brands__h { margin-top: 40px; }
.bstrip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bstrip a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 0.08em;
}
.bstrip a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ------------------------------------------------------------------ brands wall */
.bcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bcard {
  display: flex; flex-direction: column; height: 100%; padding: 24px 24px 18px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.bcard:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bcard__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.bcard__name { font-family: var(--font-display); font-size: clamp(30px, 2.6vw, 38px); font-weight: 700; letter-spacing: 0.08em; line-height: 1; color: var(--ink); }
.bcard__own { padding: 4px 9px; border-radius: var(--r-xs); background: var(--amber); color: var(--amber-ink); font-size: 12px; font-weight: 700; }
.bcards__item--own .bcard { box-shadow: inset 0 4px 0 var(--amber); }
.bcards__item--own .bcard:hover { box-shadow: inset 0 4px 0 var(--amber), var(--shadow-md); }
.bcard__sum { margin: 14px 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.bcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.bcard__n { font-family: var(--font-figure); font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.bcard__arrow { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); transition: background 0.2s, transform 0.25s var(--ease); }
.bcard__arrow svg { width: 16px; height: 16px; }
.bcard:hover .bcard__arrow { background: var(--amber); transform: translateX(2px); }
.haichi {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 32px;
  margin-top: 28px; padding: 22px 26px; border: 1px dashed var(--line-2); border-radius: var(--r-lg);
}
.haichi__name { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.haichi__k { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-deep); }
.haichi__text p + p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }

/* ------------------------------------------------------------------ guides */
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gcard {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 22px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color 0.2s, box-shadow 0.25s;
}
.gcard:hover { border-color: var(--ink); box-shadow: var(--shadow-md); }
.gcard__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.gcard__min { font-family: var(--font-figure); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.gcard__scene { position: relative; z-index: 1; height: 32px; padding: 0 12px; border-color: var(--line-2); font-size: 12.5px; }
.gcard__title { font-family: var(--font-display); font-size: 23px; font-weight: 700; line-height: 1.15; }
.gcard__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.gcard__desc { font-size: 15px; line-height: 1.55; color: var(--muted); }
.gcard__go { margin-top: auto; padding-top: 6px; }
.gcta { background: var(--charcoal); color: var(--on-dark); }
.gcta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 44px; }
.gcta__title { margin-top: 10px; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.1; color: #fff; }
.gcta__text { max-width: 60ch; margin-top: 8px; color: var(--on-dark-2); }
.gmore__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.gmore__head .link-arrow { min-height: 44px; }

/* ------------------------------------------------------------------ documents: legal pages + guide articles */
.doc { background: var(--surface); }
.doc__head { border-bottom: 1px solid var(--line); background: var(--paper); }
.doc__head .container { padding-bottom: 32px; }
.doc__eyebrow { margin-top: 28px; }
.doc__title { max-width: 24ch; margin-top: 12px; font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); font-weight: 700; line-height: 1.02; letter-spacing: -0.005em; text-wrap: balance; }
.doc__lead { max-width: 64ch; margin-top: 14px; font-size: 17.5px; line-height: 1.55; color: var(--ink-2); }
.doc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.doc__meta time { font-family: var(--font-figure); font-weight: 600; color: var(--ink-2); }
.doc__meta .chip { height: 32px; border-color: var(--line-2); font-size: 12.5px; }
.doc__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-block: 40px 72px; }
.legal-toc--side { position: sticky; top: calc(var(--hdr-h) + 20px); max-height: calc(100vh - var(--hdr-h) - 40px); overflow-y: auto; }
.legal-other { margin-top: 28px; }
.legal-toc__h { margin-bottom: 8px; font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.legal-toc__a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.legal-toc__a:hover { border-left-color: var(--amber); color: var(--ink); }
.legal-toc--fold { display: none; }
.legal-other a { display: block; padding: 6px 0; font-size: 14px; color: var(--ink-2); }
.legal-other a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-other a[aria-current] { font-weight: 700; color: var(--ink); }
.doc .prose { max-width: 72ch; margin-top: 0; font-size: 16.5px; line-height: 1.72; }
.doc .prose h2 { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 27px; font-weight: 700; line-height: 1.15; letter-spacing: 0; scroll-margin-top: calc(var(--hdr-h) + 16px); }
.doc .prose h3 { margin-top: 28px; font-size: 18.5px; scroll-margin-top: calc(var(--hdr-h) + 16px); }
.doc .prose > :first-child { margin-top: 0; }
.doc .prose > h2:first-child { padding-top: 0; border-top: 0; }
.doc .prose table { display: table; width: 100%; }
.doc .prose .table-wrap { margin-block: 18px; }
.doc .prose code { padding: 1px 6px; border-radius: 4px; background: var(--soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.88em; }
.doc--legal .prose { font-size: 15.5px; line-height: 1.7; }
.grel { max-width: 72ch; margin-top: 48px; padding-top: 22px; border-top: 2px solid var(--ink); }
.grel__h { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.grel__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.grel__a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600; }
.grel__a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ------------------------------------------------------------------ Contact additions */
.contact-card__k { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--dark-line); }
.contact-biz { display: grid; margin-top: 4px; }
.contact-biz a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-weight: 600; color: #fff; }
.contact-biz a::after { content: ""; width: 7px; height: 7px; border-top: 1.8px solid var(--amber); border-right: 1.8px solid var(--amber); transform: rotate(45deg); }
.contact-biz a:hover { color: var(--amber); }

/* ------------------------------------------------------------------ WhatsApp button steps aside at the footer (nav.js) */
.wa-fab { transition: transform 0.2s var(--ease), box-shadow 0.2s, opacity 0.2s, visibility 0.2s; }
.wa-fab.is-near-footer { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; }

/* ------------------------------------------------------------------ Task 9 tablet */
@media (max-width: 1199px) {
  .lead__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 0; }
  .steps__item:nth-child(3n)::after { display: none; }
  .apps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-jump { display: none; }
  .offers__grid { grid-template-columns: minmax(0, 1fr); }
  .plate--terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2b-fac__grid { grid-template-columns: minmax(0, 1fr); }
  .bcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc__layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .pbf__facts { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ------------------------------------------------------------------ Task 9 phone */
@media (max-width: 767px) {
  .readout--pack { width: 100%; }
  .chead__ctas .btn { width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding: 0 0 22px; }
  .steps__item .steps__n { grid-row: span 2; }
  .steps__title { margin-top: 8px; }
  .steps__item:not(:last-child)::after,
  .steps__item:nth-child(3n):not(:last-child)::after {
    display: block; left: 19px; right: auto; top: 46px; bottom: 4px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 10px);
  }
  .apps__list { grid-template-columns: minmax(0, 1fr); }
  .pbf__media { height: auto; flex-direction: column; }
  .pbf__fig { flex: none; aspect-ratio: 4 / 3; }
  .pbf__fig--tall { aspect-ratio: 3 / 4; }
  .qf { padding: 22px 16px; }
  .field-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .qf__actions .btn { width: 100%; }
  .plate--terms { grid-template-columns: minmax(0, 1fr); }
  .fcard { grid-template-columns: minmax(0, 1fr); }
  .fcard__fig { aspect-ratio: 4 / 3; }
  .bcards, .gcards { grid-template-columns: minmax(0, 1fr); }
  .haichi { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; }
  .haichi .btn { width: 100%; }
  .gcta__inner .btn { width: 100%; }
  .doc__title { font-size: 34px; }
  .doc__layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 20px 48px; }
  .legal-toc--side, .legal-other { display: none; }
  .legal-toc--fold { display: block; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
  .legal-toc__sum { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; cursor: pointer; font-weight: 700; list-style: none; }
  .legal-toc__sum::-webkit-details-marker { display: none; }
  .legal-toc__sum::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s; }
  .legal-toc--fold[open] .legal-toc__sum::after { transform: rotate(-135deg); margin-top: 4px; }
  .legal-toc--fold ol { margin: 0 16px 12px; }
  .legal-toc--fold .legal-toc__a { display: flex; align-items: center; min-height: 44px; }
  .doc .prose { font-size: 16px; }
  .doc .prose h2 { margin-top: 36px; font-size: 23px; }
}

/* ================================================================== Task 10b: Request Order, order page, withdrawal */
/* cart lines — Ruling 15: our price excl. VAT + official EU reference incl. VAT, no strike-through, no Save */
.citem__unit .price-note, .citem__unit .price-ref { margin-top: 2px; }
.citem__remove { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; }
.cart-page .qty--sm { height: 44px; }
.cart-page .qty--sm .qty__btn { width: 44px; }
.cart-list__max { margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm); background: #fff4dc; font-size: 13.5px; color: #5c3400; }
.cart-list__more { display: inline-flex; align-items: center; min-height: 44px; }

/* how ordering works: quote → invoice → payment → shipping */
.order-how { margin-top: 28px; padding: 28px 32px 8px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.order-how__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.order-how__title { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.15; }
.order-how__sub { max-width: 58ch; font-size: 14.5px; color: var(--muted); }
.order-how .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.order-how .steps__item { padding-bottom: 20px; }

/* Request Order form (shares the .qf look of the lead forms) */
.field select {
  width: 100%; min-width: 0; height: 46px; padding: 0 40px 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 12 12%22%3E%3Cpath d=%22m3 4.5 3 3 3-3%22 fill=%22none%22 stroke=%22%2317181a%22 stroke-width=%221.5%22/%3E%3C/svg%3E") no-repeat right 14px center / 12px 12px;
  font: inherit; font-size: 15px; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.field select:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 18, 20, 0.08); }
.field__hint { font-size: 12.5px; color: var(--muted); }
.order-form__review { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.qf__fallback-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.qf__fallback-btns .btn { margin-top: 0; }
.qf__preview { margin-top: 14px; font-size: 13.5px; }
.qf__preview summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--on-dark); font-weight: 600; }
.qf__preview pre {
  margin: 6px 0 0; padding: 14px; max-height: 260px; overflow: auto; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.06);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; color: var(--on-dark-2);
}

/* order status page */
.order-page { padding-top: 0; background: var(--soft); min-height: 60vh; }
.order-state { padding: 40px 32px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.order-state h2 { font-size: 22px; font-weight: 700; }
.order-state p { max-width: 60ch; margin: 8px 0 20px; color: var(--muted); }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.order-main, .order-side { display: grid; gap: 20px; min-width: 0; }
.order-side .lg-notice { margin-top: 0; }
.ocard { padding: 24px 28px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--hdr-h) + 16px); }
.ocard__title { margin-bottom: 16px; font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.15; }
.ohead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; background: var(--charcoal); color: var(--on-dark); }
.ohead__k { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3); }
.ohead__no { margin-top: 4px; font-family: var(--font-figure); font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: 0.02em; color: #fff; overflow-wrap: anywhere; }
.ohead__date { margin-top: 4px; font-size: 14px; color: var(--on-dark-2); }
.ostatus {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: var(--r-pill);
  background: var(--amber); color: var(--amber-ink); font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
}
.ostatus--withdrawal_requested { background: #fdecea; color: #8f1b15; }
.ostatus--closed { background: var(--graphite); color: var(--on-dark); border: 1px solid var(--dark-line); }

/* status timeline: segmented "readout" cells light up as the order advances */
.otl { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.otl__step { position: relative; padding-top: 18px; }
.otl__step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 3px; background: var(--soft-2); }
.otl__step.is-done::before { background: var(--ink); }
.otl__step.is-current::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(242, 163, 58, 0.25); }
.otl__label { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.otl__step.is-done .otl__label { color: var(--ink-2); }
.otl__step.is-current .otl__label { color: var(--ink); font-weight: 800; }
.otl__state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.otl__text { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--soft); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

.otable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.otable th { padding: 0 8px 10px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); text-align: left; }
.otable td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.otable th:first-child, .otable td:first-child { padding-left: 0; }
.otable th:last-child, .otable td:last-child { padding-right: 0; }
.otable .num { text-align: right; white-space: nowrap; }
.otable__title { font-weight: 600; color: var(--ink); }
.otable__title a { display: inline-flex; align-items: center; min-height: 28px; }
.otable__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.otable__brand { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--subtle); }
.otable__ask { color: var(--amber-deep); font-weight: 600; }
.ototals { margin: 14px 0 0; }
.ototals div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 15px; }
.ototals dt { color: var(--muted); }
.ototals dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.ototals .is-quote { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.ototals .is-quote dt { color: var(--ink); font-weight: 700; }
.ototals .is-quote dd { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.ototals__mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
.ototals__note { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* online withdrawal (§ 356a BGB): clearly labelled button → confirmation step */
.owd { border-top: 4px solid var(--ink); }
.owd__intro { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.owd__open { margin-top: 16px; }
.owd__closed { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.owd__closed a, .owd__legal a, .ohelp a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.owd__done { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); background: #e6f4ec; color: #0f5a32; font-size: 14.5px; line-height: 1.5; }
.owd__done:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.owd__done-title { font-weight: 800; }
.owd__form { display: grid; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); animation: fadeIn 0.3s ease; }
.owd__form[hidden] { display: none; }
.owd__form-title { font-size: 18px; font-weight: 800; }
.owd__form-title:focus { outline: none; }
.owd__form-intro { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.owd__sum { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--soft); font-size: 14px; }
.owd__sum div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 4px 0; }
.owd__sum dt { color: var(--muted); }
.owd__sum dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.owd__sum ul { margin: 0; padding: 0; list-style: none; }
.owd__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.owd__actions .btn { flex: 1 1 auto; }
.owd__actions .btn[disabled] { opacity: 0.6; cursor: progress; }
.owd .qf__status, .owd .qf__fallback { margin-top: 0; }
.owd__legal { margin-top: 16px; font-size: 13px; color: var(--muted); }
.ohelp p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* subscription result pages */
.notice-page { background: var(--soft); min-height: 60vh; }
.notice { display: flex; flex-direction: column; align-items: center; max-width: 640px; margin: 24px auto; padding: 48px 32px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); text-align: center; }
.notice[hidden] { display: none; }
.notice__mark { display: inline-flex; width: 64px; height: 64px; margin-bottom: 18px; }
.notice__mark svg { width: 100%; height: 100%; }
.notice__mark--ok { color: var(--green); }
.notice__mark--warn { color: var(--amber-deep); }
.notice__text { max-width: 52ch; margin: 12px 0 26px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.notice__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.notice__sub { margin: 32px 0 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.notice__brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.notice__brands a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.notice__brands a:hover, .notice__brands a:focus-visible { border-color: var(--ink); }

@media (max-width: 1199px) {
  .order-layout { grid-template-columns: minmax(0, 1fr); }
  .order-how .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  .order-how .steps__item:nth-child(2n)::after { display: none; }
}
@media (max-width: 767px) {
  .order-how { padding: 22px 16px 4px; }
  .order-how .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .order-how .steps__item:nth-child(2n):not(:last-child)::after { display: block; }
  .order-how__title { font-size: 21px; }
  .ocard { padding: 20px 16px; }
  .order-state { padding: 28px 18px; }
  .otl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .otl__step { display: flex; align-items: center; min-height: 36px; padding: 0 0 0 26px; }
  .otl__step::before { left: 0; right: auto; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; }
  .otable thead { display: none; }
  .otable, .otable tbody, .otable tr, .otable td { display: block; width: 100%; }
  .otable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .otable td { width: auto; padding: 0; border: 0; }
  .otable td:first-child { grid-column: 1 / -1; margin-bottom: 4px; }
  .otable td.num { text-align: left; font-size: 13.5px; color: var(--muted); }
  .otable td.num:last-child { grid-column: 2; grid-row: 2 / span 2; align-self: end; text-align: right; font-size: 15px; font-weight: 700; color: var(--ink); }
  .otable td[data-label]::before { content: attr(data-label) ": "; }
  .owd__actions .btn { width: 100%; }
  /* room below Confirm / Cancel so the floating WhatsApp button never covers them (375×667) */
  .owd__form { padding-bottom: 88px; }
  .owd__actions { scroll-margin-bottom: 96px; }
  .notice { padding: 36px 18px; }
  .notice .btn { width: 100%; }
}

/* ================================================================== AI Solution 3D redesign (2026-10-10)
   /solution/: scenario cards → [stage + HUD + 24-hour timeline | appliance tray] → options bar → plans → how + classic link.
   Spec: docs/superpowers/specs/2026-10-10-ai-solution-3d-design.md. The classic page (/solution/classic/) keeps the Task 8
   rules above; shared parts (.sol-opts, .sol-results, .plan, .readout__cells…) are reused as they are. */

.sol3-hero { padding-bottom: 30px; }
.sol3-hero .eyebrow { margin-top: 18px; }
.sol3 { padding-block: 24px 64px; background: var(--paper); }
.sol3-app > * + * { margin-top: 24px; }

/* ------------------------------------------------------------------ scenario cards */
.sol3-scenes__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.sol3-scenes__label {
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.sol3-scenes__custom { padding: 2px 10px; border-radius: var(--r-pill); background: var(--soft); font-size: 13px; font-weight: 600; color: var(--amber-deep); }
.sol3-scenes__custom[hidden] { display: none; }
.sol3-scenes__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.sol3-scene {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 4px; min-width: 0; padding: 0 0 14px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); font: inherit; text-align: left; color: var(--ink);
  cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s var(--ease);
}
.sol3-scene:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sol3-scene:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sol3-scene[aria-pressed="true"] { border-color: var(--amber-deep); box-shadow: inset 0 0 0 2px var(--amber); }
.sol3-scene:disabled { opacity: 0.5; cursor: default; }
.sol3-scene__art { display: block; height: 52px; margin-bottom: 8px; background: linear-gradient(135deg, var(--sc-a), var(--sc-b)); }
.sol3-scene--camping { --sc-a: #4f7a43; --sc-b: #a8c48a; }
.sol3-scene--home { --sc-a: #9c6b3a; --sc-b: #e6cfa8; }
.sol3-scene--rv { --sc-a: #46637f; --sc-b: #a9c1d6; }
.sol3-scene--balcony { --sc-a: #b8692a; --sc-b: #f2c38a; }
.sol3-scene--jobsite { --sc-a: #5d6168; --sc-b: #f2a33a; }
.sol3-scene__name { padding-inline: 14px; font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.15; }
.sol3-scene__desc { padding-inline: 14px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.sol3-scene__meta { padding-inline: 14px; font-family: var(--font-figure); font-size: 12.5px; font-weight: 600; color: var(--amber-deep); }

/* ------------------------------------------------------------------ main: stage column + tray */
.sol3-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
.sol3-stagecol { min-width: 0; }
.sol3-stagebox { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #e9e4da; }
.sol3-stage { position: relative; aspect-ratio: 16 / 10; }
.sol3-stage__empty {
  position: absolute; left: 50%; bottom: 18px; z-index: 1; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 6px 14px; border-radius: var(--r-pill); background: rgba(23, 24, 26, 0.78); color: #fff;
  font-size: 14px; font-weight: 600; text-align: center; pointer-events: none;
}
.sol3-stage__empty[hidden] { display: none; }

/* HUD: the page's loud readout, over the stage's top-left corner (below the stage on phones) */
.sol3-hud {
  position: absolute; top: 12px; left: 12px; z-index: 2; width: min(292px, calc(100% - 24px)); padding: 10px 12px 12px;
  border-radius: var(--r-md); background: rgba(23, 24, 26, 0.9); color: var(--on-dark-2); font-family: var(--font-figure);
}
.sol3-hud__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 0; }
.sol3-hud dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.sol3-hud dd { margin: 0; font-size: 12px; }
.sol3-hud b { font-size: 19px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.sol3-hud__grid div:last-child b { color: var(--amber); }
.sol3-hud__cells { grid-template-columns: repeat(20, 1fr); gap: 2px; margin-top: 8px; }
.sol3-hud__cells i { height: 10px; transition: background-color 0.2s; }
.sol3-hud__soc { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; font-size: 12px; }
.sol3-hud__soc span { margin-right: auto; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.sol3-hud__msg { margin-top: 6px; font-family: var(--font); font-size: 12.5px; line-height: 1.35; color: var(--on-dark); }
.sol3-hud__msg:empty { display: none; }
.sol3-hud__msg.is-bad { color: #ffb4ad; }
.sol3-hud__clear { margin-top: 6px; font-size: 12.5px; color: var(--amber); }
.sol3-hud__clear[hidden] { display: none; }

/* 24-hour timeline frame (paths: sol-timeline.js) */
.sol3-tl { margin-top: 12px; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.sol3-tl__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.sol3-tl__title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.sol3-tl__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.sol3-tl__legend li::before { content: ""; display: inline-block; width: 12px; height: 4px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.sol3-tl__legend .is-soc::before { background: var(--amber-deep); }
.sol3-tl__legend .is-load::before { background: var(--ink-2); }
.sol3-tl__legend .is-solar::before { background: #f6c76b; }
.sol3-tl__svg { display: block; width: 100%; height: 104px; margin-top: 6px; }
/* play bar on the stage's bottom edge (Task 15: stage, HUD and playback in one screen) */
.sol3-play {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 14px;
  padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface);
}
.sol3-tl__play { min-width: 128px; height: 40px; }
.sol3-tl__play:disabled { opacity: 0.45; cursor: default; }
.sol3-tl__scrub input { width: 100%; accent-color: var(--amber-deep); }
.sol3-tl__now { font-family: var(--font-figure); font-size: 13px; color: var(--ink-2); white-space: nowrap; }

/* ------------------------------------------------------------------ appliance tray */
.sol3-tray {
  position: sticky; top: calc(var(--hdr-h) + 12px); display: flex; flex-direction: column; max-height: calc(100vh - var(--hdr-h) - 24px);
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.sol3-tray__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.sol3-tray__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); }
.sol3-tray__count { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sol3-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; border-bottom: 1px solid var(--line); }
.sol3-cat {
  min-height: 32px; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.sol3-cat:hover { border-color: var(--ink); }
.sol3-cat[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.sol3-tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; align-items: start; gap: 8px; min-height: 0;
  margin: 0; padding: 12px; overflow-y: auto; overscroll-behavior: contain; list-style: none;
}
.sol3-tile { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.sol3-tile[hidden] { display: none; }
.sol3-tile.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sol3-tile.is-hot { outline: 2px solid var(--amber); outline-offset: 1px; }
.sol3-tile__add {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  width: 100%; min-height: 64px; padding: 10px 40px 10px 10px; border: 0; border-radius: inherit; background: none;
  font: inherit; text-align: left; color: var(--ink); cursor: pointer;
}
.sol3-tile__add[aria-disabled="true"] { cursor: default; }
.sol3-tile__add .appl__icon { grid-row: span 2; }
.sol3-tile.is-on .appl__icon { background: var(--charcoal); color: var(--amber); }
.sol3-tile__name { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; }
.sol3-tile__meta { font-family: var(--font-figure); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sol3-tile.is-edited .sol3-tile__meta { color: var(--amber-deep); }
.sol3-tile__qty {
  position: absolute; top: 40px; right: 6px; min-width: 28px; padding: 1px 6px; border-radius: var(--r-pill);
  background: var(--amber); color: var(--amber-ink); font-family: var(--font-figure); font-size: 12px; font-weight: 700; text-align: center;
  pointer-events: none; /* it sits over the +1 button (outside it in the markup): a tap goes through to the button */
}
.sol3-tile__minus {
  position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer;
}
.sol3-tile__minus:hover { border-color: var(--ink); }
.sol3-tile__minus svg { width: 16px; height: 16px; }
.sol3-tile__qty[hidden], .sol3-tile__minus[hidden], .sol3-tile__more[hidden], .sol3-tile__adv[hidden] { display: none; }
.sol3-tile__more { display: grid; gap: 6px; padding: 0 10px 10px; }
.sol3-tile__hours { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sol3-tile__hours span { grid-column: 1 / -1; }
.sol3-tile__hours input { width: 100%; min-width: 0; accent-color: var(--amber-deep); }
.sol3-tile__hours output { font-family: var(--font-figure); font-size: 13px; color: var(--ink); white-space: nowrap; }
.sol3-tile__edit { justify-self: start; font-size: 12.5px; }
.sol3-tile__adv { display: grid; gap: 8px; padding: 10px; border-radius: var(--r-sm); background: var(--soft); }

/* ------------------------------------------------------------------ options bar + classic link */
.sol3-classic { margin-top: 14px; font-size: 14px; }
.sol3-classic a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1199px) {
  .sol3-scenes__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sol3-main { grid-template-columns: minmax(0, 1fr); }
  .sol3-tray { position: static; max-height: none; }
  .sol3-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
}

@media (max-width: 767px) {
  .sol3-scenes__row {
    display: flex; gap: 10px; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
  }
  .sol3-scene { flex: 0 0 72%; scroll-snap-align: start; }
  .sol3-hud { position: static; width: auto; border-radius: 0; }
  .sol3-cats { flex-wrap: nowrap; overflow-x: auto; }
  .sol3-cat { flex: none; }
  .sol3-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
  .sol3-tile__add { grid-template-columns: minmax(0, 1fr); padding-right: 36px; }
  .sol3-tile__add .appl__icon { grid-row: auto; width: 32px; height: 32px; padding: 6px; margin-bottom: 4px; }
  .sol3-tl { padding: 12px; }
  .sol3-play { grid-template-columns: auto minmax(0, 1fr); padding: 8px 10px; }
  .sol3-tl__scrub { grid-column: 1 / -1; grid-row: 2; }
  .sol3-tl__now { white-space: normal; }
}

/* 24-hour timeline paths (sol-timeline.js) */
.sol3-tl__svg .tl-grid line { stroke: var(--line); stroke-width: 1; }
.sol3-tl__svg .tl-tick.is-midnight line { stroke: var(--line-2); stroke-dasharray: 3 3; }
.sol3-tl__svg text { font-family: var(--font-figure); font-size: 11px; fill: var(--muted); text-anchor: middle; }
.sol3-tl__svg .tl-solar { fill: rgba(246, 199, 107, 0.45); }
.sol3-tl__svg .tl-load { fill: rgba(43, 45, 49, 0.55); }
.sol3-tl__svg .tl-soc { fill: none; stroke: var(--amber-deep); stroke-width: 2.5; stroke-linejoin: round; }
.sol3-tl__svg .tl-empty line { stroke: var(--red); stroke-width: 2; }
.sol3-tl__svg .tl-empty circle { fill: var(--red); }
.sol3-tl__svg .tl-head { stroke: var(--ink); stroke-width: 1.5; }
.is-empty .sol3-tl__svg { opacity: 0.4; }

/* 2.5D stage (sol-stage2d.js): isometric SVG, same model as the 3D scene */
.sol3-stage__2d { position: absolute; inset: 0; }
.sol3-stage__2d[hidden] { display: none; }
.s2 { display: block; width: 100%; height: 100%; font-family: var(--font-figure); }
.s2-sky { transition: fill 0.3s; }
.s2-floor { stroke: rgba(23, 24, 26, 0.08); }
.s2-side { fill: #6f6a61; }
.s2-side--r { fill: #57534c; }
.s2.is-night .s2-floor, .s2.is-night .s2-wall { filter: brightness(0.55); }
.s2-wall { stroke: rgba(23, 24, 26, 0.08); }
.s2-window { fill: #9fc3e0; stroke: #fff; stroke-width: 3; }
.s2.is-night .s2-window { fill: #f6c76b; }
.s2-plant rect { fill: #b5653a; }
.s2-plant circle { fill: #5f8f4e; }
.s2-cone polygon { fill: #e5732b; }
.s2-cone rect { fill: #fff; }
.s2-rail { fill: none; stroke: #b8bcc2; stroke-width: 3; stroke-linecap: round; }
.s2-tent polygon { fill: #4e7a5a; }
.s2-tent .s2-tent__door { fill: #2b2d31; }
.s2-log rect { fill: #b9874f; }
.s2-shadow { fill: rgba(23, 24, 26, 0.16); }
.s2-cable { fill: none; stroke: #6c7078; stroke-width: var(--w, 2px); stroke-linecap: round; opacity: 0.55; }
.s2-cable.is-on { stroke: var(--amber); opacity: 1; stroke-dasharray: 7 9; animation: s2-flow var(--dur, 1.5s) linear infinite; }
@keyframes s2-flow { to { stroke-dashoffset: -32; } }
.s2-st-top { fill: #3a3c41; }
.s2-st-left { fill: #2b2d31; }
.s2-st-right { fill: #1f2023; }
.s2-st-handle { fill: var(--amber); }
.s2-screen { fill: #0f1a24; }
.s2-st-text { fill: var(--amber); font-size: 9.5px; font-weight: 700; }
.s2-st-text--pct { fill: #c3c4c6; }
.s2-cell { fill: rgba(255, 255, 255, 0.14); }
.s2-cell.on { fill: var(--amber); }
.s2-card rect { fill: #fff; stroke: rgba(23, 24, 26, 0.14); }
.s2-icon { color: var(--ink-2); }
.s2-slot.is-on .s2-card rect { stroke: var(--amber); stroke-width: 2; }
.s2-slot.is-on .s2-icon { color: var(--amber-deep); }
.s2-slot--more .s2-card rect { fill: var(--charcoal); }
.s2-more-text { fill: #fff; font-size: 15px; font-weight: 700; text-anchor: middle; }
.s2-badge rect { fill: var(--charcoal); }
.s2-badge text { fill: #fff; font-size: 11px; font-weight: 700; text-anchor: middle; }
.s2-slot.is-new .s2-slot__body { animation: s2-drop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes s2-drop { from { opacity: 0; transform: translateY(-40px); } }
.s2-panel__face { fill: #24364a; stroke: #b8bcc2; stroke-width: 2; }
.s2-panel__grid, .s2-panel__legs { fill: none; stroke: #b8bcc2; stroke-width: 2; }
.s2-panel.is-on .s2-panel__face { fill: #2f4a63; filter: drop-shadow(0 0 6px rgba(242, 163, 58, 0.7)); }
/* empty battery (powerView → station.drained): nothing flows out, the station reads empty */
.s2.is-drained .s2-cable:not(.s2-cable--solar) { opacity: 0.3; }
.s2.is-drained .s2-st-text--pct { fill: #ff8a80; }
.sol3-hud__soc.is-bad b { color: #ffb4ad; }

/* hover tooltip over the stage (2.5D and 3D). width: max-content — an absolutely positioned auto-width box shrinks to
   the room right of its left, so near the right edge it would wrap; sol-stage.js clamps it inside the box by its size */
.sol3-tip {
  position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 8px)); display: grid; gap: 2px;
  width: max-content; max-width: 240px;
  padding: 7px 10px; border-radius: var(--r-sm); background: var(--charcoal); color: var(--on-dark-2);
  font-size: 12.5px; line-height: 1.35; pointer-events: none; box-shadow: var(--shadow-md);
}
.sol3-tip[hidden] { display: none; }
.sol3-tip b { color: #fff; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .s2-cable.is-on { animation: none; stroke-dasharray: none; }
  .s2-slot.is-new .s2-slot__body { animation: none; }
}

/* plan cards: "Try in scene" (sol-results.js) */
.plan__try { margin-top: 12px; }
.plan.is-trying .plan__try { border-color: var(--amber-deep); background: var(--amber); color: var(--amber-ink); }
.plan.is-trying { border-color: var(--amber-deep); box-shadow: 0 0 0 2px var(--amber); }
/* 2026-10-11 性能：每次改选择都整批重画方案卡（十几张、上千个元素），而方案区多半在屏幕外——屏幕外的卡先不算样式、
   不排版、不绘制，滚到附近再算（实测 4 次点选主线程 −28%、排版 −52%）。卡片有内边距，焦点框不被 paint 裁剪；
   卡片自身的 box-shadow（.is-best / .is-trying）与翻入动画不受影响。实测卡高 830–1140 px */
.sol3 .plan, .sol3 .plan-none { content-visibility: auto; contain-intrinsic-size: auto 980px; }
.sol3 .plan-none { contain-intrinsic-size: auto 320px; }
.sol3 .sol-results { margin-top: 28px; }
#sol-results { scroll-margin-top: calc(var(--hdr-h) + 12px); }
.sol3-stagecol { scroll-margin-top: calc(var(--hdr-h) + 12px); }

/* 3D stage (sol-scene3d.js) */
.sol3-stage__3d { position: absolute; inset: 0; }
.sol3-stage__3d[hidden] { display: none; }
.sol3-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
/* fallback note: a strip under the stage, in the flow — an overlay in the corner would cover the empty-stage hint
   (bottom centre) on desktop and the HUD on phones (where the HUD sits below the stage) */
.sol3-stage__note {
  margin: 0; padding: 7px 12px; background: rgba(23, 24, 26, 0.9); color: var(--on-dark-2); font-size: 12.5px; line-height: 1.4;
}
.sol3-stage__note[hidden] { display: none; }

/* M3: phone readout dock, plan card entrance */
.sol3-dock { display: none; }
.plan.is-enter { transform-origin: 50% 0; animation: sol3-card-in 0.42s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes sol3-card-in { from { opacity: 0; transform: translateY(16px) rotateX(-40deg); } } /* 不加 perspective：翻转时卡片不会变宽，手机上不出横向溢出 */

@media (max-width: 767px) {
  .has-load .sol3-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--charcoal); color: var(--on-dark-2);
    box-shadow: 0 -10px 24px rgba(23, 24, 26, 0.22); font-family: var(--font-figure);
  }
  /* label on its own line (upper case), then the figure with its unit — " Wh" stays "Wh" and stays on the figure's line.
     A readout is never narrower than its figure or its longest label word (min-width: auto, nowrap figure line): long
     labels ("DAUERBETRIEB", "EM FUNCIONAMENTO") wrap / hyphenate inside their column instead of running into the next */
  .sol3-dock__k { min-width: auto; font-size: 11px; line-height: 1.2; white-space: nowrap; }
  .sol3-dock__k span { display: block; letter-spacing: 0.06em; text-transform: uppercase; white-space: normal; -webkit-hyphens: auto; hyphens: auto; }
  .sol3-dock__k b { font-size: 18px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
  .sol3-dock__k + .sol3-dock__k b { color: var(--amber); }
  .sol3-dock__jump { flex: none; margin-left: auto; height: 44px; padding: 0 16px; }
  body.has-soldock .wa-fab { bottom: 84px; }
  body.has-soldock .ftr { padding-bottom: 84px; }
}
@media (max-width: 399px) {
  /* 360 px phones: tighter labels, and the jump button gives way (its label may take two lines) */
  .has-load .sol3-dock { gap: 10px; }
  .sol3-dock__k span { font-size: 10px; letter-spacing: 0.02em; }
  .sol3-dock__jump { flex: 0 1 auto; min-width: 0; padding: 0 12px; font-size: 14px; line-height: 1.15; white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .plan.is-enter { animation: none; }
}

/* M3 (Task 15) layout pass — new page only (.sol3*, body classes set by sol-stage.js); the classic page is untouched */

/* the dock and the floating buttons: a focused control never hides under the dock, the toast and the compare bar
   stack with it, and the WhatsApp button never sits on the stage (below 1200 px the stage spans the content width) */
@media (max-width: 767px) {
  html:has(body.has-soldock) { scroll-padding-bottom: 84px; }
  body.has-soldock .toast { bottom: 84px; }
  body.has-cmpbar .has-load .sol3-dock { bottom: 66px; }
  body.has-cmpbar.has-soldock .wa-fab { bottom: 150px; }
}
@media (max-width: 1199px) {
  body.sol-stage-in-view .wa-fab { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; }
}

/* reduced motion: why "Play a day" is off (sol-timeline.js shows it and ties it to the button) */
.sol3-tl__note { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.sol3-tl__note[hidden] { display: none; }

/* HUD over the stage's top-left corner, slimmer: the 3D room is framed flush right beside it (sol-scene3d overlayLeft) */
@media (min-width: 768px) {
  .sol3-hud { top: 10px; left: 10px; width: min(232px, calc(100% - 20px)); padding: 8px 10px 9px; }
  .sol3-hud__grid { gap: 3px 10px; }
  .sol3-hud dt { font-size: 10px; letter-spacing: 0.06em; line-height: 1.25; }
  .sol3-hud dd { font-size: 11px; }
  .sol3-hud b { font-size: 16px; }
  .sol3-hud__cells { gap: 1.5px; margin-top: 6px; padding: 3px; }
  .sol3-hud__cells i { height: 7px; }
  .sol3-hud__soc { margin-top: 5px; font-size: 11px; }
  .sol3-hud__soc span { font-size: 10px; }
  .sol3-hud__msg { margin-top: 4px; font-size: 11.5px; line-height: 1.3; }
  .sol3-hud__clear { margin-top: 4px; font-size: 12px; }
}

/* tray tiles: icon on its own row (− and ×n beside it), the name gets the tile's whole width — no mid-word breaks in a
   ~365 px tray (1200–1330 px); long German / Russian words hyphenate (the page's lang) before they would break */
.sol3-tile__add { grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; row-gap: 2px; padding: 10px 8px; }
.sol3-tile__add .appl__icon { grid-row: auto; width: 32px; height: 32px; padding: 6px; margin-bottom: 6px; }
.sol3-tile__name { -webkit-hyphens: auto; hyphens: auto; }
.sol3-tile__qty { top: 10px; right: 42px; }
@media (max-width: 399px) {
  .sol3-tile__name { font-size: 13px; } /* 375 px phones: "Электрообогреватель" still fits one line without a dictionary */
}

/* plan options: a compact toolbar above the results (spec §3.4) — days · solar · budget, then the brands on one line */
.sol3 .sol3-opts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 32px; padding: 14px 18px; }
.sol3 .sol3-opts .sol-opt { gap: 4px; }
.sol3 .sol3-opts .sol-opt__label { font-size: 11.5px; letter-spacing: 0.12em; }
.sol3 .sol3-opts .sol-opt small { font-size: 11.5px; line-height: 1.35; }
.sol3 .sol3-opts .sol-days { height: 40px; }
.sol3 .sol3-opts .sol-switch__row { min-height: 40px; }
.sol3 .sol3-opts .sol-budget { width: 200px; height: 40px; }
/* the number fields' focus ring is their box (the input itself has no outline): 2 px of ink, not a 1 px grey→ink shift */
.sol3 .appl__input:focus-within, .sol3 .sol-budget:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.sol3 .sol3-opts .sol-brands { display: block; flex: 1 1 100%; padding-top: 12px; border-top: 1px solid var(--line); }
/* a floated legend sits in the row; the chips' flex row (its own formatting context) wraps beside it */
.sol3 .sol3-opts .sol-brands legend { float: left; min-height: 36px; margin-right: 18px; }
.sol3 .sol3-opts .sol-chip span { min-height: 36px; padding: 0 12px; font-size: 13px; }

@media (max-width: 767px) {
  .sol3 .sol3-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; }
  .sol3 .sol3-opts .sol-budget { width: 100%; }
  .sol3 .sol3-opts .sol-brands legend { float: none; min-height: 0; margin: 0 0 8px; }
  .sol3 .sol3-opts .sol-chip span { min-height: 44px; }
}

/* one screen for the whole simulation (site owner, Task 15): with the scenario row under the sticky header, the stage,
   its HUD and the play bar fit the viewport — the stage's height is capped by the viewport (the room is re-framed for
   the wider stage), the scenario cards are compact, and on desktop the stage column stays put while the tray scrolls.
   --sol3-fold = header + 12 px + scenario row + gap + play bar + 12 px (sol-page.js scrolls the row there on a pick);
   under reduced motion the play bar has one more row, the "Playback is off" note (--sol3-note: 17.5 px line + 6 px gap). */
.sol3-scenes { scroll-margin-top: calc(var(--hdr-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  .sol3 { --sol3-note: 24px; }
}
@media (min-width: 768px) {
  .sol3 { --sol3-fold: calc(var(--hdr-h) + 282px + var(--sol3-note, 0px)); }
  /* 16:10 up to the cap, then wider (a max-height would keep 16:10 by narrowing the stage): 62.5cqw = width × 10 / 16 */
  .sol3-stagebox { container-type: inline-size; }
  @supports (height: 1cqw) {
    .sol3-stage { aspect-ratio: auto; height: min(62.5cqw, max(300px, calc(100vh - var(--sol3-fold)))); }
  }
  .sol3-scene { padding-bottom: 10px; }
  .sol3-scene__art { height: 22px; margin-bottom: 4px; }
  .sol3-scene__name { font-size: 16px; }
  .sol3-scene__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 12.5px; }
}
@media (min-width: 768px) and (max-height: 860px) {
  /* short screens (1440 × 900 minus the browser's bars): name + days only, the height goes to the stage */
  .sol3 { --sol3-fold: calc(var(--hdr-h) + 246px + var(--sol3-note, 0px)); }
  .sol3-scene__desc { display: none; }
}
@media (min-width: 1200px) {
  .sol3-stagecol { position: sticky; top: calc(var(--hdr-h) + 12px); }
}

/* UAPOW 卖点模块（图标 + 短句，规格 §6） */
.section--hl { padding-block: var(--s-8, 40px) 0; }
.hl-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hl { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.hl__icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); background: var(--soft); }
.hl__svg { width: 22px; height: 22px; }
.hl__text { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 720px) { .hl-grid { grid-template-columns: 1fr; } }
/* 2026-10-12 AI 方案页：产品页带来的指定电源（st=）提示条——方案区头部（flex 换行）里单独占最后一行，不进舞台列 */
.sol-pin { order: 1; flex: 1 1 100%; margin: 0; font-size: 14px; }
.sol-pin .link-btn, .plan-none .link-btn { display: inline-flex; align-items: center; min-height: 24px; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.sol-pin .link-btn:focus-visible, .plan-none .link-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.sol-results__title:focus:not(:focus-visible) { outline: none; }

/* 产品页「这台能带动什么」（规格 §7） */
.section--powers { padding-block: var(--s-8, 40px); }
.powers { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.powers__item { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; align-content: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.powers__item .appl__icon { grid-row: span 2; width: 28px; height: 28px; color: var(--ink); }
.powers__name { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.powers__w { font-size: 11.5px; opacity: .8; white-space: nowrap; }
.powers__val { font-weight: 700; color: var(--ink); font-family: var(--font-figure); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.powers__item.is-off .powers__val { color: var(--muted); font-weight: 600; }
.powers__item.is-off .appl__icon { opacity: .45; }
@media (max-width: 860px) { .powers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
