/* ==========================================================================
   Szabó-Fólia – base styles (shared by all design versions)
   Themes override the custom properties in themes/{key}/style.css
   ========================================================================== */

:root {
  --brand: #ff2e17;
  --brand-ink: #fff;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --text: #0f1b2d;
  --text-2: #3c4a5e;
  --muted: #6b7789;
  --border: #e3e8ef;
  --accent: var(--brand);
  --focus: #2563eb;
  --success: #16a34a;
  --danger: #dc2626;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fw-head: 700;
  --ls-head: -0.02em;
  --tt-kicker: uppercase;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-btn: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
  --shadow: 0 10px 30px -12px rgba(15, 27, 45, .18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 27, 45, .28);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 1rem/1.65 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--fw-head); letter-spacing: var(--ls-head); line-height: 1.12; margin: 0 0 .5em; color: var(--heading, var(--text)); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { 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: 1000; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-xs { width: 1em; height: 1em; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-alt { background: var(--bg-alt); }
.section-sub { margin-top: 48px; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin-top: 12px; }
.section-head-split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-split > div { max-width: 760px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: var(--tt-kicker); color: var(--kicker, var(--brand)); margin: 0 0 14px; text-decoration: none; }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn { --b-bg: transparent; --b-fg: var(--text); --b-bd: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .7em 1.35em; border-radius: var(--radius-btn); border: 1.5px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg); font-weight: 650; font-size: .95rem; line-height: 1.1; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --b-bg: var(--brand); --b-fg: var(--brand-ink); --b-bd: var(--brand); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { --b-bg: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-outline { --b-bd: color-mix(in srgb, var(--text) 22%, transparent); --b-fg: var(--text); }
.btn-outline:hover { --b-bd: var(--text); }
.btn-ghost { --b-bg: color-mix(in srgb, var(--text) 6%, transparent); }
.btn-ghost:hover { --b-bg: color-mix(in srgb, var(--text) 11%, transparent); }
.btn-lg { min-height: 54px; padding: .85em 1.6em; font-size: 1rem; }
.btn-sm { min-height: 38px; padding: .5em 1em; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 10px; border: 0; border-radius: var(--radius-btn); background: transparent; color: inherit; transition: background .2s; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .88rem; font-weight: 550; text-decoration: none; transition: all .2s; cursor: pointer; }
.chip:hover { border-color: var(--text-2); color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-eco { background: #e8f6ea; color: #14652b; }

/* ---------- Header ---------- */
/* The blur lives on ::before: backdrop-filter on the header itself would become the
   containing block of the fixed mobile nav and break its positioning. */
.site-header { position: sticky; top: 0; z-index: 100; isolation: isolate; border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; color: var(--header-fg, var(--text)); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--header-bg, var(--bg)) 86%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; color: var(--logo-fg, var(--text)); flex: none; }
.logo-svg { height: 30px; width: auto; }
.main-nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; color: inherit; transition: background .2s, color .2s; }
.nav-link:hover, .nav-item:focus-within > .nav-link { background: color-mix(in srgb, currentColor 8%, transparent); }
.nav-item.is-active > .nav-link { color: var(--brand); }
.nav-link .icon { transition: transform .2s; opacity: .6; }
.has-dropdown:hover .nav-link .icon { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 6px; min-width: 340px; padding: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .2s, translate .2s, visibility .2s; }
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.dropdown-wide { min-width: 620px; }
.dropdown-wide .dropdown-grid { grid-template-columns: 1fr 1fr; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; translate: -50% 0; }
.dropdown-grid { display: grid; gap: 2px; }
.dropdown-link { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; transition: background .15s; }
.dropdown-link:hover { background: var(--surface-2); }
.dropdown-link strong { display: block; font-size: .93rem; font-weight: 650; }
.dropdown-link small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.dropdown-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); flex: none; }
.dropdown-all { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 10px 12px; border-top: 1px solid var(--border); font-size: .85rem; font-weight: 650; color: var(--brand); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.lang-switch { position: relative; }
.lang-btn span { font-size: .8rem; font-weight: 700; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; list-style: none; margin: 0; padding: 6px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .2s; }
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-size: .9rem; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--surface-2); }
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.nav-mobile-extra { display: none; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); color: var(--text); padding: 16px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; margin: 0; z-index: 99; }
  body.nav-open .main-nav { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .menu-toggle .icon-open { display: none; }
  body.nav-open .menu-toggle .icon-close { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-link { justify-content: space-between; width: 100%; padding: 16px 4px; font-size: 1.1rem; border-radius: 0; }
  .nav-link:hover { background: none; }
  .dropdown { position: static; translate: none; opacity: 1; visibility: visible; display: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 12px; background: transparent; }
  .has-dropdown.is-open .dropdown { display: block; translate: none; }
  .has-dropdown:hover .dropdown { translate: none; }
  .dropdown-wide { min-width: 0; }
  .dropdown-wide .dropdown-grid { grid-template-columns: 1fr; }
  .nav-mobile-extra { display: grid; gap: 10px; margin-top: 24px; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .header-inner { gap: 8px; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .logo-svg { height: 24px; max-width: 100%; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn { min-width: 38px; padding: 0 8px; }
  .lang-btn span { display: none; }
}

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(8, 12, 20, .55); backdrop-filter: blur(6px); display: grid; align-items: start; justify-items: center; padding: 12vh var(--gutter) 0; }
.search-panel { width: min(720px, 100%); background: var(--surface); color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 10px; animation: pop .25s var(--ease); }
.search-form { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 16px; }
.search-form input { flex: 1; border: 0; background: none; font-size: 1.2rem; padding: 12px 0; outline: none; }
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 12px 12px; border-top: 1px solid var(--border); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ---------- AI search box ---------- */
.ai-search { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-btn); box-shadow: var(--shadow); max-width: 620px; transition: border-color .2s, box-shadow .2s; }
.ai-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent), var(--shadow); }
.ai-search-icon { color: var(--brand); display: flex; }
.ai-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 12px 0; font-size: 1rem; color: var(--text); }
.ai-search-hint { font-size: .85rem; color: var(--muted); margin: 10px 0 0 6px; }

/* ---------- Hero (default) ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin-bottom: 20px; }
.hero-text { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--text-2); max-width: 580px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; aspect-ratio: 1 / 1.02; }
.hero-img { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-1 { inset: 0 18% 22% 0; }
.hero-img-2 { width: 46%; aspect-ratio: 1; right: 0; bottom: 0; border: 6px solid var(--bg); }
.hero-img-3 { width: 34%; aspect-ratio: 1; right: 4%; top: 6%; border: 6px solid var(--bg); }
.hero-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; background: var(--surface); color: var(--text); border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .82rem; animation: float 6s ease-in-out infinite; }
.hero-chip .icon { color: var(--brand); width: 28px; height: 28px; padding: 5px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 10%, transparent); }
.hero-chip strong { display: block; font-size: .95rem; }
.hero-chip small { color: var(--muted); }
.hero-chip-a { left: -4%; bottom: 14%; }
.hero-chip-b { left: 40%; bottom: -2%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: clamp(40px, 6vw, 72px) 0 0; border-top: 1px solid var(--border); }
.stat { padding: 24px 20px 0; border-left: 1px solid var(--border); display: flex; flex-direction: column-reverse; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dd { margin: 0; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 750; letter-spacing: -0.03em; }
.stat dt { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; width: 100%; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); background: var(--page-hero-bg, var(--bg-alt)); border-bottom: 1px solid var(--border); }
.page-hero-inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.page-hero.has-image .page-hero-inner { grid-template-columns: 1.15fr .85fr; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); max-width: 18ch; }
.page-hero .lead { max-width: 640px; }
.page-hero .ai-search { margin-top: 20px; }
.page-hero-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .page-hero.has-image .page-hero-inner { grid-template-columns: 1fr; } }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .85rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Cards & grids ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.category-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.category-card:hover .category-card-media img { transform: scale(1.05); }
.category-card-body { padding: 22px; position: relative; flex: 1; display: flex; flex-direction: column; }
.category-card-icon { position: absolute; top: -24px; right: 18px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.category-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .9rem; color: var(--brand); }
@media (max-width: 1000px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .category-grid { grid-template-columns: 1fr; } }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.product-card-media { position: relative; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--border); display: grid; place-items: center; padding: 8%; }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-card-media .badge { position: absolute; top: 12px; left: 12px; }
.product-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card-cat { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.product-card-title { font-size: 1.08rem; margin-bottom: 8px; }
.product-card-lead { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.product-card-specs { margin: 0 0 14px; display: grid; gap: 6px; font-size: .8rem; }
.product-card-specs div { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px dashed var(--border); }
.product-card-specs dt { color: var(--muted); }
.product-card-specs dd { margin: 0; font-weight: 600; text-align: right; }
.product-card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .88rem; color: var(--brand); }

.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry-grid-sm { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.industry-card { position: relative; display: block; min-height: 300px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: #111; }
.industry-grid-sm .industry-card { min-height: 240px; }
.industry-card-media, .industry-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.industry-card-media img { transition: transform .7s var(--ease); }
.industry-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .78)); z-index: 0; }
.industry-card:hover .industry-card-media img { transform: scale(1.06); }
.industry-card-body { position: absolute; inset: auto 0 0 0; padding: 24px; z-index: 1; }
.industry-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); margin-bottom: 14px; }
.industry-card-num { position: absolute; top: -180px; right: 24px; font-family: var(--font-mono); font-size: .8rem; opacity: .7; }
.industry-card h3 { color: #fff; margin-bottom: 6px; font-size: 1.3rem; }
.industry-card p { font-size: .9rem; opacity: .85; margin-bottom: 10px; }
.industry-card .more { color: #fff; }
@media (max-width: 1000px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .industry-grid { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); margin-bottom: 18px; }
.feature-icon .icon { width: 26px; height: 26px; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro-media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: visible; }
.intro-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); }
.intro-badge { position: absolute; right: -18px; bottom: -24px; padding: 18px 22px; background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.intro-badge strong { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
.intro-badge span { font-size: .85rem; opacity: .9; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } .intro-badge { right: 12px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--text); color: var(--bg); font-family: var(--font-mono); font-weight: 700; margin-bottom: 18px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.team-photo { aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-body { padding: 18px 20px 20px; }
.team-body h3 { margin-bottom: 2px; font-size: 1.08rem; }
.team-role { color: var(--muted); font-size: .88rem; margin-bottom: 12px; }
.team-contact { display: grid; gap: 6px; font-size: .84rem; }
.team-contact a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-2); overflow: hidden; }
.team-contact a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-contact a:hover { color: var(--brand); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card a { display: block; text-decoration: none; height: 100%; }
.post-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 20px 22px 24px; }
.post-card time { font-size: .8rem; color: var(--muted); }
.post-card h3 { margin: 6px 0 8px; }
.post-card p { color: var(--muted); font-size: .92rem; }

.certs-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; padding: 28px 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.certs-section { padding-block: clamp(32px, 5vw, 56px); }
.certs-title { font-size: 1.2rem; margin: 0; }
.cert-list { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 0; padding: 0; }
.cert-list li { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.cert-list .icon { color: var(--brand); }

/* ---------- Product detail ---------- */
.product-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.product-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.product-gallery-main { position: relative; margin: 0; aspect-ratio: 1; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8%; display: grid; place-items: center; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery-main .badge { position: absolute; top: 16px; left: 16px; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 76px; height: 76px; padding: 6px; border: 2px solid var(--border); border-radius: 12px; background: #fff; }
.thumb.is-active { border-color: var(--brand); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-summary h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.spec-sheet { margin: 28px 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.spec-title { display: flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-family: var(--font-body); }
.spec-table { margin: 0; display: grid; }
.spec-table div { display: grid; grid-template-columns: 38% 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--border); font-size: .95rem; }
.spec-table div:first-child { border-top: 0; }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 600; font-family: var(--spec-font, inherit); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .88rem; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.product-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.aside-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.aside-card h2 { font-size: 1.05rem; margin-bottom: 12px; }
.aside-cta { background: var(--aside-cta-bg, var(--text)); color: var(--aside-cta-fg, var(--bg)); border-color: transparent; }
.aside-cta h2 { color: inherit; }
.aside-cta p { opacity: .8; font-size: .92rem; }
.aside-cta .btn-ghost { --b-fg: currentColor; --b-bg: rgba(255, 255, 255, .1); margin-top: 8px; }
.aside-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.aside-links a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-weight: 550; }
.aside-links a:hover { background: var(--surface-2); color: var(--brand); }
.tag-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 36px 0; }
.tag-group h2, .benefits h2 { font-size: 1.15rem; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); font-size: .88rem; font-weight: 550; }
.tag-list .icon { color: var(--success); }
.tag-list-alt .icon { color: var(--brand); }
.benefits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.benefits li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .92rem; }
.benefit-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); flex: none; }
@media (max-width: 900px) {
  .product-hero-grid, .product-detail-grid, .tag-groups, .benefits ul { grid-template-columns: 1fr; }
  .product-aside { position: static; }
}

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; box-shadow: var(--shadow-sm); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-search, .filter-select { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.filter-search input, .filter-select select { border: 0; background: none; outline: none; height: 100%; font-size: .9rem; min-width: 0; }
.filter-search input { width: 220px; }
.filter-count { color: var(--muted); font-size: .9rem; margin: 18px 0; }
.empty-state { text-align: center; padding: 48px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.ai-banner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--radius-lg); background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border)); }
.ai-banner > div { flex: 1; min-width: 240px; }
.ai-banner h2 { font-size: 1.35rem; margin-bottom: 4px; }
.ai-banner p { margin: 0; color: var(--text-2); }
.ai-banner-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: var(--brand-ink); }
.ai-banner-icon .icon { width: 28px; height: 28px; }

/* ---------- Product finder ---------- */
.finder-section { padding: clamp(24px, 4vw, 48px) 0 0; }
.finder { position: relative; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--finder-bg, linear-gradient(135deg, color-mix(in srgb, var(--brand) 7%, var(--surface)), var(--surface) 55%)); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; isolation: isolate; }
.finder::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 18%, transparent), transparent 65%); pointer-events: none; }
.finder-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.finder-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.finder-head .kicker { margin-bottom: 8px; }
.finder-meter { display: flex; align-items: center; gap: 12px; font-weight: 650; color: var(--text-2); }
.fm-ring { --v: 100; position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--v) * 1%), color-mix(in srgb, var(--text) 10%, transparent) 0); transition: background .4s; }
.fm-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.fm-ring b { position: relative; font-family: var(--font-head); font-size: 1.35rem; }
.finder-q { display: grid; grid-template-columns: 1.25fr 1fr .8fr; gap: clamp(16px, 2.5vw, 28px); }
.fq-title { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 12px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; text-transform: none; }
.fq-title span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: .8rem; font-family: var(--font-mono); flex: none; }
.fq-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.tile span { overflow-wrap: anywhere; hyphens: auto; padding-right: 18px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 84px; padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); text-align: left; font-weight: 600; font-size: .86rem; line-height: 1.25; transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .2s, opacity .2s; }
.tile .icon { width: 24px; height: 24px; color: var(--brand); transition: transform .3s var(--ease), color .2s; }
.tile::after { content: attr(data-n); position: absolute; top: 8px; right: 9px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 60%, var(--border)); box-shadow: var(--shadow); }
.tile:hover .icon { transform: scale(1.12) rotate(-4deg); }
.tile[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.tile[aria-pressed="true"] .icon { color: var(--brand-ink); }
.tile[aria-pressed="true"]::after { background: rgba(255, 255, 255, .25); }
.tile.is-zero { opacity: .38; }
.fq-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fq-inputs .field input { padding: 11px 12px; }
.fq-help { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.finder-must { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border); }
.fm-label { font-weight: 700; font-size: .88rem; margin-right: 4px; }
.finder-must .chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (max-width: 1000px) { .finder-q { grid-template-columns: 1fr; } }

.results-section { padding-top: clamp(24px, 3vw, 36px); }
.cat-chips { margin-bottom: 20px; }
.results-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.facets { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 4px; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-right: 4px; }
.facets-head { display: none; justify-content: space-between; align-items: center; padding: 6px 0 12px; }
.facet-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 8px; }
.facet-search input { border: 0; background: none; outline: none; min-width: 0; width: 100%; font-size: .9rem; color: var(--text); }
.facet { border-bottom: 1px solid var(--border); padding: 4px 0 10px; }
.facet summary { cursor: pointer; padding: 10px 0; font-weight: 700; font-size: .9rem; list-style: none; display: flex; justify-content: space-between; }
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: "+"; color: var(--muted); }
.facet[open] summary::after { content: "–"; }
.facet-opt { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 6px; font-size: .9rem; cursor: pointer; transition: background .15s, opacity .15s; }
.facet-opt:hover { background: var(--surface-2); }
.facet-opt input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.facet-opt span { flex: 1; }
.facet-opt em { font-style: normal; font-size: .75rem; color: var(--muted); min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.facet-opt.is-zero { opacity: .4; }
.facets-apply { display: none; margin-top: 14px; }
.results-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-count { margin: 0; font-weight: 650; color: var(--text-2); }
.results-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.sort-select select { height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: .88rem; }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle button { width: 40px; height: 38px; display: grid; place-items: center; border: 0; background: var(--surface); color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.facets-open { display: none; }
.pill-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .7rem; }
.active-chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.active-chips > div { display: flex; flex-wrap: wrap; gap: 6px; }
.active-chips .chip { padding: 6px 12px; font-size: .82rem; }
.finder-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.finder-grid .product-card { position: relative; }
.finder-grid .product-card.reveal { transition-delay: calc(var(--i, 0) * 45ms); }
.finder-empty { text-align: center; padding: clamp(32px, 6vw, 64px) 20px; border: 1.5px dashed var(--border); border-radius: var(--radius-lg); }
.finder-empty p { max-width: 520px; margin: 14px auto 6px; color: var(--text-2); }
.finder-empty .hero-actions { justify-content: center; }
.finder-empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.finder-empty-icon .icon { width: 30px; height: 30px; }
@media (max-width: 960px) {
  .results-layout { grid-template-columns: 1fr; }
  .facets { position: fixed; top: 0; left: 0; bottom: auto; z-index: 180; width: min(340px, 88vw); height: 100vh; height: 100dvh; max-height: none; padding: 16px; background: var(--bg); box-shadow: var(--shadow-lg); transform: translateX(-105%); transition: transform .35s var(--ease); align-content: start; overscroll-behavior: contain; }
  .facets.is-open { transform: none; }
  body.facets-open { overflow: hidden; }
  body.facets-open::after { content: ""; position: fixed; inset: 0; z-index: 170; background: rgba(0, 0, 0, .45); }
  .facets-head, .facets-apply { display: flex; }
  .facets-open { display: inline-flex; }
  .results-count { width: 100%; order: 3; }
}

/* Card extras on the finder page */
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; z-index: 1; }
.product-card-media .pc-badges .badge { position: static; }
.badge-food { background: #e8f0fe; color: #1e4fb4; }
.badge-best { background: linear-gradient(90deg, var(--brand), #ff8a3d); color: #fff; box-shadow: 0 6px 16px -6px var(--brand); animation: bestPulse 2.4s ease-in-out infinite; }
@keyframes bestPulse { 50% { box-shadow: 0 6px 22px -2px var(--brand); } }
.pc-match { --v: 0; position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--v) * 1%), rgba(0, 0, 0, .1) 0); transition: background .5s; }
.pc-match i { position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.pc-match b { position: relative; font-size: .72rem; font-weight: 800; color: #111; font-family: var(--font-mono); }
.pc-ranges { display: grid; gap: 8px; margin: 2px 0 12px; }
.pc-range { display: grid; grid-template-columns: 74px 1fr; grid-template-rows: auto auto; column-gap: 10px; font-size: .76rem; align-items: center; }
.pc-range span { color: var(--muted); grid-row: span 2; }
.pc-range strong { font-size: .76rem; font-weight: 650; font-family: var(--spec-font, inherit); }
.pc-bar { position: relative; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; }
.pc-bar i { position: absolute; top: 0; bottom: 0; left: var(--l, 0); width: var(--w, 100%); border-radius: 99px; background: var(--brand); }
.pc-bar i.any { left: 0; width: 100%; background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 10px); opacity: .55; }
.pc-fit { margin: -2px 0 10px; font-size: .78rem; font-weight: 700; }
.pc-fit.is-fit { color: var(--success); }
.pc-fit.is-custom { color: #b7791f; }
.pc-compare { display: flex; align-items: center; gap: 8px; padding: 10px 20px 14px; border-top: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.pc-compare input { width: 16px; height: 16px; accent-color: var(--brand); }
.pc-compare span { display: inline-flex; align-items: center; gap: 6px; }
.pc-compare.is-on { color: var(--brand); }
/* List view */
.finder-grid.is-list { grid-template-columns: 1fr; gap: 12px; }
.finder-grid.is-list .product-card { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.finder-grid.is-list .product-card-link { display: grid; grid-template-columns: 150px 1fr; }
.finder-grid.is-list .product-card-media { aspect-ratio: auto; height: 100%; min-height: 150px; border-bottom: 0; border-right: 1px solid var(--border); padding: 12px; }
.finder-grid.is-list .pc-ranges { grid-template-columns: 1fr 1fr; gap: 16px; }
.finder-grid.is-list .pc-compare { border-top: 0; border-left: 1px solid var(--border); height: 100%; padding: 0 20px; }
.finder-grid.is-list .pc-match { width: 40px; height: 40px; }
@media (max-width: 640px) {
  .finder-grid.is-list .product-card { grid-template-columns: 1fr; }
  .finder-grid.is-list .product-card-link { grid-template-columns: 110px 1fr; }
  .finder-grid.is-list .pc-ranges { grid-template-columns: 1fr; }
  .finder-grid.is-list .pc-compare { border-left: 0; border-top: 1px solid var(--border); padding: 10px 16px; }
}

/* Compare tray + modal */
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 145; padding: 12px 0; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .25); animation: trayIn .35s var(--ease); }
@keyframes trayIn { from { transform: translateY(100%); } }
body.has-tray .chat, body.has-tray .theme-switcher { bottom: 92px; }
.ct-inner { display: flex; align-items: center; gap: 14px; }
.ct-items { display: flex; gap: 8px; flex: 1; overflow-x: auto; }
.ct-item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.ct-item img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 6px; }
.ct-item button { border: 0; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; }
.ct-actions { display: flex; align-items: center; gap: 4px; }
.compare-modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 20px; background: rgba(5, 8, 14, .6); backdrop-filter: blur(6px); }
.cmp-box { width: min(1100px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: var(--surface); color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .25s var(--ease); }
.cmp-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cmp-head h2 { margin: 0; font-size: 1.25rem; }
.cmp-body { overflow: auto; }
.cmp-scroll { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.cmp-table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; vertical-align: bottom; }
.cmp-table thead a { display: grid; gap: 8px; text-decoration: none; }
.cmp-table thead img { width: 90px; height: 90px; object-fit: contain; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 6px; }
.cmp-table thead small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; margin-top: 4px; }
.cmp-table tbody th { width: 22%; color: var(--muted); font-weight: 600; font-size: .84rem; }
.cmp-table tr.is-diff td { background: color-mix(in srgb, var(--brand) 6%, transparent); font-weight: 600; }
.cmp-table tr.cmp-group th, .cmp-table tr.cmp-group td { border-top: 2px solid var(--border); }
.cmp-glabel { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 4px; }
.cmp-yes { color: var(--success); font-weight: 800; }
.cmp-actions td { white-space: nowrap; }

/* ---------- Prose ---------- */
.prose { color: var(--text-2); font-size: 1.04rem; line-height: 1.75; }
.prose-narrow { max-width: 780px; margin-bottom: 40px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 1.8em 0 .6em; color: var(--text); }
.prose h3 { margin: 1.5em 0 .5em; color: var(--text); }
.prose a { color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--text); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); font-style: italic; }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }

/* ---------- About / misc ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-facts div { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.about-facts dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.about-facts dd { margin: 4px 0 0; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.gallery-strip figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } .gallery-strip { grid-template-columns: 1fr 1fr; } }

/* Video (click-to-load YouTube) */
.container-video { margin-top: clamp(40px, 6vw, 72px); }
.video-embed { margin: 0; }
.video-embed > button, .video-embed > iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); overflow: hidden; background: #0b0d10; box-shadow: var(--shadow-lg); }
.video-facade { position: relative; padding: 0; cursor: pointer; color: #fff; isolation: isolate; }
.video-facade .video-poster { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.video-facade::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45)); }
.video-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: clamp(64px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%; background: var(--brand); color: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); animation: vplay 2.4s ease-out infinite; transition: transform .3s var(--ease); }
.video-play .icon { width: 40%; height: 40%; margin-left: 6%; stroke: none; }
.video-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px; font-size: .78rem; text-align: left; color: rgba(255, 255, 255, .85); background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.video-facade:hover .video-poster, .video-facade:focus-visible .video-poster { transform: scale(1.03); filter: brightness(1.08); }
.video-facade:hover .video-play, .video-facade:focus-visible .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-embed figcaption { margin-top: 12px; color: var(--text-2); font-size: .92rem; }
@keyframes vplay { 70% { box-shadow: 0 0 0 26px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .video-play { animation: none; } }

/* Team group photo */
.team-group { margin: clamp(8px, 2vw, 24px) 0 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 19 / 7; background: var(--surface-2); box-shadow: var(--shadow-lg); }
.team-group img { width: 100%; height: 100%; object-fit: cover; }
.child-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.child-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color .2s, transform .2s; }
.child-link:hover { border-color: var(--brand); transform: translateY(-2px); }
.child-link > span:nth-child(2) { flex: 1; }
.child-link strong { display: block; }
.child-link small { display: block; color: var(--muted); font-size: .84rem; }
.child-link-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); flex: none; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.doc-card { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; }
.doc-card h2 { font-size: 1.12rem; margin-top: 16px; }
.doc-card p { color: var(--muted); font-size: .92rem; }
.doc-card .btn { margin-top: auto; }
.doc-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.grant-infoblock { margin: 0 0 32px; max-width: 760px; }
.grant-list { display: grid; gap: 20px; }
.grant-card { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.grant-card h2 { font-size: 1.3rem; }
.grant-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 18px; font-size: .9rem; }
.grant-meta dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.grant-meta dd { margin: 0; font-weight: 650; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 650; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); flex: none; transition: transform .25s; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--brand); color: var(--brand-ink); }
.faq-answer { padding: 0 22px 20px; }
.faq-more { margin-top: 40px; text-align: center; }
.faq-more .hero-actions { justify-content: center; margin-top: 12px; }

/* ---------- Post ---------- */
.post-hero { padding: clamp(32px, 5vw, 64px) 0 0; }
.post-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.post-cover { margin: 32px auto 0; }
.post-cover img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 56px; justify-content: center; padding-block: 48px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .9rem; }
.toc-title { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px 14px; text-decoration: none; color: var(--text-2); margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.is-active { color: var(--brand); border-left-color: var(--brand); }
.post-foot { padding-bottom: 48px; }
@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-card { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: 16px; margin: 0; min-width: 0; }
.form-card legend { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; padding: 0 6px; margin-left: -6px; }
.form-card h2 { font-size: 1.5rem; margin-bottom: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .form-row, .form-row-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--text-2); min-width: 0; }
.field input, .field select, .field textarea, .ai-fill textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); font-size: 1rem; font-weight: 400; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea, .ai-fill textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus, .ai-fill textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.field.is-filled input, .field.is-filled select, .field.is-filled textarea { border-color: var(--success); background: color-mix(in srgb, var(--success) 6%, var(--bg)); }
.field .is-invalid, .field input:user-invalid { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.check a { color: var(--brand); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: .92rem; font-weight: 600; }
.form-status.is-ok { color: var(--success); }
.form-status.is-err { color: var(--danger); }
.form-success { padding: 32px; text-align: center; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--success) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.form-success .icon { width: 48px; height: 48px; color: var(--success); margin: 0 auto 12px; }
.ai-fill { padding: 24px; border-radius: var(--radius-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface) 60%); border: 1.5px dashed color-mix(in srgb, var(--brand) 40%, var(--border)); display: grid; gap: 14px; }
.ai-fill h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0; }
.ai-fill h2 .icon { color: var(--brand); }
.ai-fill-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.quote-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.quote-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.big-link { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 650; font-size: 1.05rem; text-decoration: none; }
.big-link .icon { color: var(--brand); }
.mini-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 20px 0 0; font-size: .9rem; color: var(--text-2); }
.mini-steps li { display: flex; align-items: center; gap: 6px; }
.mini-steps .icon { color: var(--brand); }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } .quote-aside { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-info { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color .2s; }
a.contact-card:hover { border-color: var(--brand); }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { display: block; font-size: 1.05rem; line-height: 1.5; }
.contact-card em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: .85rem; color: var(--brand); margin-top: 4px; }
.contact-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); flex: none; }
/* Find us: details + Google map (loads on click or after the visitor allowed it) */
.location-section { border-top: 1px solid var(--border); }
.location-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.location-list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 14px; }
.location-list li { display: flex; gap: 12px; align-items: flex-start; }
.location-list .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }
.location-list a { color: inherit; font-weight: 600; text-decoration: none; }
.gmap { position: relative; min-height: 440px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--map-bg, #e9edf1); box-shadow: var(--shadow); isolation: isolate; }
.gmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gmap-facade { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: linear-gradient(var(--map-grid, rgba(15, 27, 45, .06)) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, var(--map-grid, rgba(15, 27, 45, .06)) 1px, transparent 1px) 0 0 / 44px 44px; }
.gmap-road { position: absolute; z-index: -1; background: var(--map-road, #fff); box-shadow: 0 0 0 1px var(--map-grid, rgba(15, 27, 45, .08)); }
.gmap-road-1 { left: -10%; right: -10%; top: 56%; height: 16px; transform: rotate(-11deg); }
.gmap-road-2 { top: -10%; bottom: -10%; left: 30%; width: 11px; transform: rotate(16deg); }
.gmap-road-3 { left: -10%; right: -10%; top: 22%; height: 8px; transform: rotate(6deg); opacity: .8; }
.gmap-pin { position: absolute; left: 50%; top: 34%; color: var(--brand); transform: translate(-50%, -100%); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); animation: pinBob 2.4s ease-in-out infinite; }
.gmap-pin .icon { width: 48px; height: 48px; stroke-width: 2; fill: color-mix(in srgb, var(--brand) 22%, transparent); }
.gmap-card { position: relative; display: grid; justify-items: center; gap: 6px; max-width: 340px; margin-top: 110px; padding: 18px 22px; text-align: center; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.gmap-card strong { font-family: var(--font-head); font-size: 1.05rem; }
.gmap-card span { color: var(--text-2); font-size: .92rem; }
.gmap-card .btn { margin-top: 8px; }
.gmap-card small { color: var(--muted); font-size: .74rem; }
@keyframes pinBob { 50% { transform: translate(-50%, calc(-100% - 8px)); } }
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.social-label { margin-right: 4px; font-size: .82rem; color: var(--muted); }
.social-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); color: inherit; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.social-btn:hover, .social-btn:focus-visible { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.social-btn .icon { width: 18px; height: 18px; }
.site-footer .social-btn { border-color: rgba(255, 255, 255, .2); }
.site-footer .social-label { color: inherit; opacity: .7; }
@media (max-width: 900px) { .location-grid { grid-template-columns: 1fr; } .gmap { min-height: 360px; } }
@media (prefers-reduced-motion: reduce) { .gmap-pin { animation: none; } }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.seg { display: flex; gap: 6px; padding: 5px; border: 0; margin: 0; border-radius: 999px; background: var(--surface-2); flex-wrap: wrap; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.seg input:checked + span { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--brand); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); }
.calc-result { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; border-radius: var(--radius-lg); background: var(--calc-bg, var(--text)); color: var(--calc-fg, var(--bg)); }
.calc-visual { position: relative; margin: -8px -8px 16px; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.calc-svg { display: block; width: 100%; height: auto; aspect-ratio: 360 / 280; color: currentColor; font-family: var(--font-mono); font-size: 11px; }
.calc-tag { position: absolute; left: 10px; top: 8px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.calc-tag::before { content: "● "; color: var(--brand); animation: blink 1.6s infinite; }
.bp-grid line { stroke: currentColor; stroke-opacity: .07; stroke-width: 1; }
.bp-body { stroke: currentColor; stroke-width: 1.6; transition: d .3s; }
.bp-body-line { stroke: currentColor; stroke-width: 1.2; }
.bp-core { fill: none; stroke: currentColor; stroke-width: 1.2; }
.bp-fine { stroke: currentColor; stroke-opacity: .25; stroke-width: 1; }
.bp-open { stroke: currentColor; stroke-width: 2; stroke-dasharray: 5 4; }
.bp-seal { stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
.bp-fold { fill: none; stroke: currentColor; stroke-opacity: .65; stroke-width: 1.1; stroke-dasharray: 4 3; }
.bp-ext { stroke: currentColor; stroke-opacity: .4; stroke-width: 1; }
.bp-dimline { stroke: var(--brand); stroke-width: 1.2; }
.bp-arrow { fill: var(--brand); }
.bp-dim { fill: var(--brand); font-weight: 700; font-size: 12px; }
.bp-lbl { fill: currentColor; fill-opacity: .7; font-size: 11px; }
.bp-lbl.small { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; }
.bp-leader { stroke: currentColor; stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 2 3; }
.bp-zoom { fill: rgba(255, 255, 255, .06); stroke: currentColor; stroke-width: 1.4; }
.swatches { border: 0; margin: 4px 0 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.swatches legend { font-size: .88rem; font-weight: 600; color: var(--text-2); margin-bottom: 8px; float: left; width: 100%; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--sw); border: 2px solid var(--border); box-shadow: inset 0 0 0 2px var(--surface); transition: transform .2s, border-color .2s; }
.swatches .sw-clear { background: linear-gradient(135deg, #eef5fb 0 45%, #cfe3f5 45% 55%, #eef5fb 55%); }
.swatches input:checked + span { border-color: var(--brand); transform: scale(1.12); }
.swatches input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.swatch-name { margin-left: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
@keyframes blink { 50% { opacity: .2; } }
.calc-out { margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-out div { padding: 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .07); }
.calc-out dt { font-size: .78rem; opacity: .7; }
.calc-out dd { margin: 4px 0 0; font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; }
.calc-total { grid-column: 1 / -1; background: var(--brand) !important; color: var(--brand-ink); }
.calc-total dd { font-size: 2rem; }
.calc-note { font-size: .8rem; opacity: .7; }
[data-show] { display: grid; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-result { position: static; } }

/* ---------- Search page ---------- */
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.search-result { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color .2s; }
.search-result:hover { border-color: var(--brand); }
.search-result strong { display: block; font-size: 1.05rem; }
.search-result .muted { display: block; font-size: .9rem; }
.search-type { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.search-thumb { width: 72px; height: 72px; flex: none; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; }
.search-thumb img { width: 100%; height: 100%; object-fit: contain; }
.search-thumb-icon { color: var(--muted); background: var(--surface-2); }
.ai-answer { padding: 22px 24px; margin-bottom: 24px; border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border)); }
.ai-answer-label { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 8px; }
.ai-answer-body p:last-child { margin: 0; }
.ai-answer-body a { color: var(--brand); font-weight: 600; }

/* ---------- CTA band & footer ---------- */
.cta-band { padding-block: clamp(48px, 7vw, 88px); background: var(--cta-bg, var(--text)); color: var(--cta-fg, var(--bg)); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%); opacity: .5; pointer-events: none; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; }
.cta-copy { max-width: 560px; }
.cta-copy h2 { color: inherit; margin-bottom: 10px; }
.cta-copy p { opacity: .8; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-outline { --b-fg: currentColor; --b-bd: color-mix(in srgb, currentColor 35%, transparent); }
.cta-band .btn-ghost { --b-fg: currentColor; --b-bg: color-mix(in srgb, currentColor 12%, transparent); }
.site-footer { background: var(--footer-bg, #0b1220); color: var(--footer-fg, #c9d1dc); padding-top: clamp(48px, 7vw, 80px); position: relative; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand .brand { color: var(--footer-logo, #fff); margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; opacity: .8; max-width: 340px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge-cert { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); font-size: .76rem; font-weight: 600; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--footer-title, #fff); font-family: var(--font-body); margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .93rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: .93rem; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--brand); margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; opacity: .85; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.eu-infoblock { position: absolute; right: var(--gutter); top: -1px; transform: translateY(-100%); background: #fff; border-radius: 10px 10px 0 0; padding: 6px 8px 0; box-shadow: var(--shadow); }
.eu-infoblock-img { width: 260px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .eu-infoblock { position: static; transform: none; display: block; width: fit-content; margin: 0 auto 24px; border-radius: 10px; padding: 6px; } .eu-infoblock-img { width: 220px; } }

/* ---------- Chat widget ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 150; }
.chat-fab { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 8px; border: 0; border-radius: 999px; background: var(--chat-fab-bg, var(--text)); color: var(--chat-fab-fg, var(--bg)); box-shadow: var(--shadow-lg); font-weight: 650; transition: transform .2s var(--ease); }
.chat-fab:hover { transform: translateY(-2px) scale(1.02); }
.chat-fab-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); position: relative; }
.chat-fab-icon::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { opacity: .7; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.4); } }
.chat.is-open .chat-fab { display: none; }
.chat-panel { position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35); overflow: hidden; animation: pop .25s var(--ease); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 10px 14px 16px; border-bottom: 1px solid var(--border); background: var(--chat-head-bg, var(--surface)); }
.chat-head > div { flex: 1; }
.chat-head strong { display: block; }
.chat-head small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; }
.chat-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.chat-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { display: flex; }
.msg-user { justify-content: flex-end; }
.bubble { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: .93rem; line-height: 1.55; }
.msg-bot .bubble { background: var(--surface-2); border-bottom-left-radius: 6px; }
.msg-user .bubble { background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 6px; }
.bubble p { margin: 0 0 .5em; }
.bubble p:last-child { margin: 0; }
.bubble ul { margin: .3em 0; padding-left: 1.2em; }
.bubble a { color: var(--brand); font-weight: 600; }
.msg-user .bubble a { color: inherit; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-suggest .chip { font-size: .82rem; padding: 7px 12px; text-align: left; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-quote { padding: 0 16px 10px; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.chat-form textarea { flex: 1; resize: none; max-height: 120px; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 16px; background: var(--bg); outline: none; font-size: .95rem; line-height: 1.4; }
.chat-form textarea:focus { border-color: var(--brand); }
.chat-send { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--brand); color: var(--brand-ink); flex: none; }
.chat-disclaimer { margin: 0; padding: 0 16px 10px; font-size: .72rem; color: var(--muted); text-align: center; }
@media (max-width: 560px) {
  .chat { right: 12px; bottom: 12px; }
  .chat-fab-label { display: none; }
  .chat-fab { padding: 0 8px; }
  .chat.is-open { inset: 0; }
  .chat-panel { position: fixed; inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
}

/* ---------- Theme switcher (preview) ---------- */
.theme-switcher { position: fixed; left: 20px; bottom: 20px; z-index: 140; font-family: system-ui, sans-serif; }
.ts-toggle { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: #111827; color: #fff; font-size: .85rem; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.ts-toggle .icon { color: #ff2e17; }
.ts-panel { position: absolute; left: 0; bottom: calc(100% + 10px); width: min(360px, calc(100vw - 40px)); padding: 12px; border-radius: 16px; background: #111827; color: #e5e7eb; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.ts-hint { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #9ca3af; margin: 4px 6px 10px; }
.ts-option { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; text-decoration: none; color: inherit; border: 1px solid transparent; }
.ts-option:hover { background: rgba(255, 255, 255, .06); }
.ts-option.is-current { border-color: #ff2e17; background: rgba(255, 46, 23, .08); }
.ts-option strong { display: block; color: #fff; font-size: .92rem; }
.ts-option small { display: block; font-size: .78rem; color: #9ca3af; line-height: 1.4; margin-top: 2px; }
.ts-swatch { display: flex; flex: none; margin-top: 2px; }
.ts-swatch i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #111827; margin-left: -6px; }
.ts-swatch i:first-child { margin-left: 0; }
@media (max-width: 560px) { .theme-switcher { left: 12px; bottom: 12px; } .ts-toggle span { display: none; } }

/* ---------- Cookie ---------- */
.cookie { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 160; width: min(640px, calc(100vw - 32px)); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px 20px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .9rem; }
.cookie p { flex: 1; min-width: 240px; margin: 0; }
.cookie-actions { display: flex; gap: 8px; }

/* ---------- Small-screen safety: grid children may shrink, long buttons wrap ---------- */
.hero-inner > *, .product-hero-grid > *, .product-detail-grid > *, .calc > *, .quote-layout > *, .contact-grid > *, .intro-grid > *, .about-grid > *, .page-hero-inner > * { min-width: 0; }
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; }
  .seg span { white-space: normal; text-align: center; }
  .product-actions .btn, .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Page transitions (View Transitions API, progressive enhancement) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
/* ---------- Print / PDF data sheet ---------- */
.print-head, .print-foot { display: none; }
.print-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: var(--brand); font-weight: 600; cursor: pointer; }
@media print {
  @page { margin: 14mm; }
  html:root { --bg: #fff; --bg-alt: #fff; --surface: #fff; --surface-2: #f3f3f3; --text: #000; --text-2: #222; --muted: #555; --border: #cfcfcf; }
  body { background: #fff !important; font-size: 10.5pt; }
  body, body * { color: #000 !important; text-shadow: none !important; box-shadow: none !important; }
  .site-header, .site-footer, .chat, .theme-switcher, .cta-band, .mega-cta, .cookie, .breadcrumbs, .product-actions, .print-btn, .product-aside,
  .section-alt, .scroll-progress, .hover-tag, .intro-overlay, .eu-infoblock, .skip-link, .search-overlay, .product-thumbs, .ai-banner, .product-note { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .print-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 8px; margin-bottom: 16px; border-bottom: 2px solid #ff2e17; font-size: 8.5pt; }
  .print-head .logo-svg { height: 26px; }
  .print-meta { text-align: right; line-height: 1.5; }
  .print-foot { display: block; margin-top: 12px; padding-top: 6px; border-top: 1px solid #cfcfcf; font-size: 8pt; }
  .product-hero, .section { background: #fff !important; padding: 0 !important; border: 0 !important; }
  .product-hero-grid { grid-template-columns: 36% 1fr !important; gap: 18px !important; }
  .product-gallery-main { border: 1px solid #cfcfcf !important; background: #fff !important; }
  .product-summary h1 { font-size: 20pt; text-transform: none; }
  .spec-sheet { border: 1px solid #cfcfcf !important; background: #fff !important; break-inside: avoid; margin: 14px 0 !important; }
  .product-detail-grid { display: block !important; margin-top: 14px; }
  .tag-groups { grid-template-columns: 1fr 1fr !important; margin: 14px 0 !important; break-inside: avoid; }
  .tag-list li { background: #fff !important; border: 1px solid #cfcfcf; }
  .benefits li { border-color: #cfcfcf !important; }
  .prose { font-size: 10pt; }
  a { text-decoration: none; }
  .badge { border: 1px solid #999; }
}

/* Production line ("How our film is made"): pinned while scrolling, the film runs through the stations */
.production { --pl-line: color-mix(in srgb, var(--text) 50%, transparent); --pl-fill: var(--surface); position: relative; border-top: 1px solid var(--border); }
.production.pl-js { height: 230vh; }
.production-pin { padding: clamp(56px, 8vh, 96px) 0; overflow: hidden; }
.production.pl-js .production-pin { position: sticky; top: var(--header-h); min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding-block: clamp(20px, 4vh, 48px); }
.production .section-head { margin-bottom: 8px; }
.pl-stage { margin: 4px 0 18px; }
.pl-svg { display: block; width: 100%; height: auto; max-height: 40vh; overflow: visible; }
.pl-ground { stroke: var(--border); stroke-width: 2; }
.pl-track { fill: none; stroke: var(--pl-line); stroke-width: 2; stroke-dasharray: 4 8; opacity: .5; }
.pl-flow { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--brand) 55%, transparent)); }
.pl-machine { fill: var(--pl-fill); stroke: var(--pl-line); stroke-width: 2; }
.pl-machine-line { fill: none; stroke: var(--pl-line); stroke-width: 2; stroke-linecap: round; }
.pl-num { font-family: var(--font-mono, monospace); font-size: 13px; letter-spacing: .12em; fill: var(--muted); text-anchor: middle; }
.pl-granules circle { fill: var(--brand); opacity: .85; }
.pl-screw { stroke: var(--brand); stroke-width: 6; stroke-dasharray: 6 8; stroke-linecap: round; }
.pl-bubble { fill: url(#pl-iri); stroke: color-mix(in srgb, var(--text) 35%, transparent); stroke-width: 1.5; }
.pl-roll { fill: none; stroke: color-mix(in srgb, var(--brand) 65%, var(--text)); stroke-width: 14; stroke-dasharray: 8 6; opacity: .75; transform-box: fill-box; transform-origin: center; }
.pl-blade { fill: var(--text); }
.pl-film-strip { stroke: #9fd8ff; stroke-width: 6; stroke-dasharray: 14 6; }
.pl-bag { fill: color-mix(in srgb, #9fd8ff 35%, var(--pl-fill)); stroke: var(--pl-line); stroke-width: 1.5; }
.pl-box { fill: color-mix(in srgb, #c89b5e 45%, var(--pl-fill)); stroke: var(--pl-line); stroke-width: 1.5; }
.pl-check circle { fill: #16a34a; }
.pl-check path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.production.pl-js .pl-st { opacity: .3; transition: opacity .5s ease, filter .5s ease; }
.production.pl-js .pl-st.is-on { opacity: 1; }
.production.pl-js .pl-st.is-now { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--brand) 45%, transparent)); }
.production.is-running .pl-granules circle { animation: plFall 1.8s linear infinite; }
.production.is-running .pl-granules circle:nth-child(2n) { animation-delay: -.6s; }
.production.is-running .pl-granules circle:nth-child(3n) { animation-delay: -1.2s; }
.production.is-running .pl-screw { animation: plDash .6s linear infinite; }
.production.is-running .pl-bubble-sheen { animation: plSheen 2.8s ease-in-out infinite; }
.production.is-running .pl-roll { animation: plSpin 3s linear infinite; }
.production.is-running .pl-blade { animation: plCut 1.2s ease-in-out infinite; }
.production.is-running .pl-film-strip { animation: plStrip 1s linear infinite; }
@keyframes plFall { from { transform: translateY(-14px); opacity: 0; } 25% { opacity: .9; } to { transform: translateY(40px); opacity: 0; } }
@keyframes plDash { to { stroke-dashoffset: -14; } }
@keyframes plSheen { from { transform: translateY(240px); } to { transform: translateY(-60px); } }
@keyframes plSpin { to { transform: rotate(360deg); } }
@keyframes plCut { 50% { transform: translateY(14px); } }
@keyframes plStrip { to { stroke-dashoffset: -20; } }
.pl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.pl-step { display: grid; align-content: start; gap: 4px; padding-top: 14px; border-top: 2px solid var(--brand); }
.production.pl-js .pl-step { border-top-color: var(--border); opacity: .45; transition: opacity .4s, border-color .4s; }
.production.pl-js .pl-step.is-on { opacity: 1; border-top-color: var(--brand); }
.pl-step-num { font-family: var(--font-mono, monospace); font-size: .78rem; letter-spacing: .1em; color: var(--brand); }
.pl-step strong { font-family: var(--font-head); font-size: 1.02rem; }
.pl-step span:last-child { color: var(--text-2); font-size: .9rem; line-height: 1.45; }
.pl-cta { margin-top: 26px; }
@media (max-width: 860px) {
  .production.pl-js { height: auto; }
  .production.pl-js .production-pin { position: static; min-height: 0; display: block; overflow: visible; }
  .pl-svg { max-height: none; }
  /* Phone: the drawing stays under the header, zoomed in, and pans to the station of the step being read */
  .production.pl-js .pl-stage { position: sticky; top: var(--header-h); z-index: 3; margin: 0 calc(var(--gutter) * -1) 14px; padding: 10px var(--gutter) 12px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 16px 24px -20px rgba(0, 0, 0, .55); }
  .production.pl-js .pl-cam { transition: transform .8s cubic-bezier(.6, 0, .2, 1); }
  .production.pl-js .pl-flow { transition: stroke-dashoffset .8s ease; }
  .production.pl-js .pl-num { font-size: 20px; }
  .production.pl-js .pl-step { padding-block: 16px 22px; }
  .pl-steps { grid-template-columns: 1fr; gap: 14px; }
  .pl-step { grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; }
  .pl-step strong, .pl-step span:last-child { grid-column: 2; }
  .pl-step-num { grid-row: 1 / span 2; padding-top: 2px; }
}

/* Film sheen: light runs across a product picture like across a sheet of film */
.product-card-media { overflow: hidden; isolation: isolate; }
.product-card-media::after { content: ""; position: absolute; inset: -20% -60%; z-index: 1; pointer-events: none; background: linear-gradient(110deg, transparent 38%, rgba(120, 190, 255, .22) 45%, rgba(255, 170, 215, .24) 50%, rgba(120, 235, 200, .2) 55%, transparent 62%); transform: translateX(-70%); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.product-card:hover .product-card-media::after { transform: translateX(70%); }
@media (prefers-reduced-motion: reduce) { .product-card-media::after { display: none; } }

/* Calculator: "How thin is that?" */
.calc-micron { display: grid; gap: 8px; margin: 14px 0 4px; font-size: .84rem; }
.calc-micron-title { margin: 0; font-weight: 600; }
.mic-row { display: grid; grid-template-columns: 7.5em minmax(40px, 1fr) 10.5em; align-items: center; gap: 10px; }
.mic-row i { display: block; min-width: 2px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--calc-fg, var(--text)) 28%, transparent); transition: width .4s var(--ease); }
.mic-row i[data-mic="film"] { background: linear-gradient(90deg, #7cc4ff, #c9a6ff, #ffb8dc); box-shadow: 0 0 10px rgba(160, 200, 255, .45); }
.mic-row b { font-family: var(--font-mono, monospace); font-size: .76rem; font-weight: 500; white-space: nowrap; text-align: right; }
